OS X's sed doesn't understand the 'i' flag. And commas and spaces don't
[AROS.git] / configure
blob625b5fbaee595a13fe0be80488ab18c358bc90af
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 gcc_default_float_abi
618 gcc_default_fpu
619 gcc_default_cpu
620 aros_ios_sdk
621 aros_ios_version
622 aros_ios_platform
623 aros_enable_mmu
624 aros_nesting_supervisor
625 aros_palm_debug_hack
626 aros_serial_debug
627 aros_host_sdl_libs
628 aros_host_sdl_cflags
629 aros_host_x11_libdirs
630 aros_host_x11_includes
631 DO_VIDMODE_SUPPORT
632 DO_XSHM_SUPPORT
633 aros_default_wbdepth
634 aros_default_wbheight
635 aros_default_wbwidth
636 oss_library_target
637 pci_hidd_target
638 sdl_hidd_target
639 x11_hidd_target
640 aros_cflags_format_security
641 aros_cflags_strict_overflow
642 aros_cflags_enum_compare
643 aros_cflags_array_bounds
644 aros_cflags_unused_but_set_variable
645 crosstools_cxx_target
646 crosstools_target
647 aros_target_strip_flags
648 aros_target_genmap
649 aros_debug_ldflags
650 aros_debug_aflags
651 aros_debug_cflags
652 aros_target_cflags
653 aros_kernel_ldflags
654 aros_kernel_objcflags
655 aros_kernel_includes
656 aros_kernel_cflags
657 aros_shared_ldflags
658 aros_shared_aflags
659 aros_shared_cflags
660 aros_config_ldflags
661 aros_config_aflags
662 aros_config_cflags
663 aros_arch_libs
664 aros_compiler_libs
665 aros_object_format
666 aros_shared_ld
667 aros_shared_default
668 aros_target_nm
669 aros_target_strip
670 aros_target_objcopy
671 aros_target_objdump
672 aros_target_elfedit
673 aros_target_cc_path
674 aros_target_cc_includes
675 aros_target_ld
676 aros_target_as
677 aros_target_cpp
678 aros_target_cxx
679 aros_target_cc
680 aros_plain_ar
681 aros_plain_nm
682 aros_target_ranlib
683 aros_target_ar
684 aros_target_suffix
685 aros_target_variant
686 aros_target_cpu
687 aros_target_family
688 aros_target_arch
689 aros_target_bootloader
690 aros_target_iconset
691 aros_target_guitheme
692 aros_tools_dir
693 aros_host_lib_suffix
694 aros_host_exe_suffix
695 aros_host_mkargs
696 aros_host_mkdep
697 aros_host_debug
698 aros_host_ldflags
699 gnu89_inline
700 aros_host_cxxflags
701 aros_host_cflags
702 aros_host_make
703 aros_host_cxx
704 aros_host_cc
705 aros_host_cpp
706 aros_host_cpu
707 aros_host_arch
708 aros_cc_pre
709 aros_amigaos_compliance
710 AROS_PORTSSRCDIR
711 AROS_CROSSTOOLSDIR
712 SRCDIR
713 AROS_BUILDDIR_UNIX
714 AROS_BUILDDIR
715 aros_target_toolchain
716 aros_flavour_uc
717 aros_flavour
718 aros_cpu
719 aros_arch
720 SDL_LIBS
721 SDL_CFLAGS
722 SDL_CONFIG
723 XMKMF
724 aros_cflags_iquote_end
725 aros_cflags_iquote
726 kernel_cflags_iquote_end
727 kernel_cflags_iquote
728 host_cflags_iquote_end
729 host_cflags_iquote
730 aros_target_nostdlib_ldflags
731 aros_target_detach_ldflags
732 aros_target_nix_ldflags
733 aros_target_nostartup_ldflags
734 aros_target_nostdinc_cflags
735 aros_kernel_rescomp
736 orig_target_elfedit
737 orig_target_objdump
738 orig_target_objcopy
739 orig_target_strip
740 orig_target_nm
741 orig_target_ranlib
742 orig_target_ar
743 orig_target_as
744 orig_target_ld
745 orig_target_cxx
746 orig_target_cc
747 orig_target_cpp
748 aros_kernel_objdump
749 aros_kernel_objcopy
750 aros_kernel_strip
751 aros_kernel_nm
752 aros_kernel_ranlib
753 aros_kernel_ar
754 aros_kernel_as
755 aros_kernel_ld
756 aros_kernel_cxx
757 aros_kernel_cc
758 aros_kernel_cpp
760 android_tool
761 CCACHE
762 DISTCC
763 LIBOBJS
764 EGREP
765 GREP
767 TEST
770 pkgpyexecdir
771 pyexecdir
772 pkgpythondir
773 pythondir
774 PYTHON_PLATFORM
775 PYTHON_EXEC_PREFIX
776 PYTHON_PREFIX
777 PYTHON_VERSION
778 PYTHON
779 PATCH
780 CHMOD
782 PPMTOILBM
783 PNGTOPNM
784 FLEX
785 BISON
788 UNIQ
789 SORT
790 TOUCH
791 MKDIR
792 ECHO
796 aros_host_strip
797 aros_host_ranlib
798 aros_host_ar
799 aros_host_automake
800 aros_host_autoheader
801 aros_host_autoconf
802 aros_host_aclocal
803 aros_host_ld
804 MMAKE
807 ac_ct_CXX
808 CXXFLAGS
810 OBJEXT
811 EXEEXT
812 ac_ct_CC
813 CPPFLAGS
814 LDFLAGS
815 CFLAGS
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 target_alias
826 host_alias
827 build_alias
828 LIBS
829 ECHO_T
830 ECHO_N
831 ECHO_C
832 DEFS
833 mandir
834 localedir
835 libdir
836 psdir
837 pdfdir
838 dvidir
839 htmldir
840 infodir
841 docdir
842 oldincludedir
843 includedir
844 localstatedir
845 sharedstatedir
846 sysconfdir
847 datadir
848 datarootdir
849 libexecdir
850 sbindir
851 bindir
852 program_transform_name
853 prefix
854 exec_prefix
855 PACKAGE_URL
856 PACKAGE_BUGREPORT
857 PACKAGE_STRING
858 PACKAGE_VERSION
859 PACKAGE_TARNAME
860 PACKAGE_NAME
861 PATH_SEPARATOR
862 SHELL'
863 ac_subst_files=''
864 ac_user_opts='
865 enable_option_checking
866 enable_build_type
867 enable_debug
868 enable_distcc
869 enable_ccache
870 with_gcc_version
871 with_optimization
872 with_paranoia
873 enable_target_variant
874 with_xcode
875 with_sdk_version
876 with_sdk
877 with_ndk
878 with_ndk_version
879 enable_amigaos_compliance
880 with_kernel_toolchain_prefix
881 with_elf_toolchain_prefix
882 with_aros_toolchain
883 enable_crosstools
884 with_aros_toolchain_install
885 with_cpu
886 with_fpu
887 with_float
888 with_aros_gcc
889 with_portssources
890 with_bootloader
891 with_iconset
892 with_theme
893 enable_includes
894 with_resolution
895 with_serial_debug
896 enable_palm_debug_hack
897 enable_nesting_supervisor
898 enable_mmu
899 enable_x11_hidd
900 with_x
901 enable_x11_shm
902 enable_x11_vidmode
903 enable_sdl_hidd
904 with_sdl_prefix
905 with_sdl_exec_prefix
906 enable_sdltest
907 enable_dbus
909 ac_precious_vars='build_alias
910 host_alias
911 target_alias
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
918 CXXFLAGS
921 PYTHON
922 XMKMF'
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 ac_unrecognized_opts=
929 ac_unrecognized_sep=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
932 cache_file=/dev/null
933 exec_prefix=NONE
934 no_create=
935 no_recursion=
936 prefix=NONE
937 program_prefix=NONE
938 program_suffix=NONE
939 program_transform_name=s,x,x,
940 silent=
941 site=
942 srcdir=
943 verbose=
944 x_includes=NONE
945 x_libraries=NONE
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir='${exec_prefix}/bin'
954 sbindir='${exec_prefix}/sbin'
955 libexecdir='${exec_prefix}/libexec'
956 datarootdir='${prefix}/share'
957 datadir='${datarootdir}'
958 sysconfdir='${prefix}/etc'
959 sharedstatedir='${prefix}/com'
960 localstatedir='${prefix}/var'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
973 ac_prev=
974 ac_dashdash=
975 for ac_option
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\$ac_option
980 ac_prev=
981 continue
984 case $ac_option in
985 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 *=) ac_optarg= ;;
987 *) ac_optarg=yes ;;
988 esac
990 # Accept the important Cygnus configure options, so we can diagnose typos.
992 case $ac_dashdash$ac_option in
994 ac_dashdash=yes ;;
996 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 ac_prev=bindir ;;
998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999 bindir=$ac_optarg ;;
1001 -build | --build | --buil | --bui | --bu)
1002 ac_prev=build_alias ;;
1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004 build_alias=$ac_optarg ;;
1006 -cache-file | --cache-file | --cache-fil | --cache-fi \
1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008 ac_prev=cache_file ;;
1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011 cache_file=$ac_optarg ;;
1013 --config-cache | -C)
1014 cache_file=config.cache ;;
1016 -datadir | --datadir | --datadi | --datad)
1017 ac_prev=datadir ;;
1018 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019 datadir=$ac_optarg ;;
1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022 | --dataroo | --dataro | --datar)
1023 ac_prev=datarootdir ;;
1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026 datarootdir=$ac_optarg ;;
1028 -disable-* | --disable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=no ;;
1044 -docdir | --docdir | --docdi | --doc | --do)
1045 ac_prev=docdir ;;
1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047 docdir=$ac_optarg ;;
1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 ac_prev=dvidir ;;
1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052 dvidir=$ac_optarg ;;
1054 -enable-* | --enable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=\$ac_optarg ;;
1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072 | --exec | --exe | --ex)
1073 ac_prev=exec_prefix ;;
1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076 | --exec=* | --exe=* | --ex=*)
1077 exec_prefix=$ac_optarg ;;
1079 -gas | --gas | --ga | --g)
1080 # Obsolete; use --with-gas.
1081 with_gas=yes ;;
1083 -help | --help | --hel | --he | -h)
1084 ac_init_help=long ;;
1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086 ac_init_help=recursive ;;
1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088 ac_init_help=short ;;
1090 -host | --host | --hos | --ho)
1091 ac_prev=host_alias ;;
1092 -host=* | --host=* | --hos=* | --ho=*)
1093 host_alias=$ac_optarg ;;
1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 ac_prev=htmldir ;;
1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 | --ht=*)
1099 htmldir=$ac_optarg ;;
1101 -includedir | --includedir | --includedi | --included | --include \
1102 | --includ | --inclu | --incl | --inc)
1103 ac_prev=includedir ;;
1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105 | --includ=* | --inclu=* | --incl=* | --inc=*)
1106 includedir=$ac_optarg ;;
1108 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 ac_prev=infodir ;;
1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111 infodir=$ac_optarg ;;
1113 -libdir | --libdir | --libdi | --libd)
1114 ac_prev=libdir ;;
1115 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116 libdir=$ac_optarg ;;
1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119 | --libexe | --libex | --libe)
1120 ac_prev=libexecdir ;;
1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122 | --libexe=* | --libex=* | --libe=*)
1123 libexecdir=$ac_optarg ;;
1125 -localedir | --localedir | --localedi | --localed | --locale)
1126 ac_prev=localedir ;;
1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128 localedir=$ac_optarg ;;
1130 -localstatedir | --localstatedir | --localstatedi | --localstated \
1131 | --localstate | --localstat | --localsta | --localst | --locals)
1132 ac_prev=localstatedir ;;
1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135 localstatedir=$ac_optarg ;;
1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 ac_prev=mandir ;;
1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140 mandir=$ac_optarg ;;
1142 -nfp | --nfp | --nf)
1143 # Obsolete; use --without-fp.
1144 with_fp=no ;;
1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147 | --no-cr | --no-c | -n)
1148 no_create=yes ;;
1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152 no_recursion=yes ;;
1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156 | --oldin | --oldi | --old | --ol | --o)
1157 ac_prev=oldincludedir ;;
1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161 oldincludedir=$ac_optarg ;;
1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 ac_prev=prefix ;;
1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166 prefix=$ac_optarg ;;
1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169 | --program-pre | --program-pr | --program-p)
1170 ac_prev=program_prefix ;;
1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173 program_prefix=$ac_optarg ;;
1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176 | --program-suf | --program-su | --program-s)
1177 ac_prev=program_suffix ;;
1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180 program_suffix=$ac_optarg ;;
1182 -program-transform-name | --program-transform-name \
1183 | --program-transform-nam | --program-transform-na \
1184 | --program-transform-n | --program-transform- \
1185 | --program-transform | --program-transfor \
1186 | --program-transfo | --program-transf \
1187 | --program-trans | --program-tran \
1188 | --progr-tra | --program-tr | --program-t)
1189 ac_prev=program_transform_name ;;
1190 -program-transform-name=* | --program-transform-name=* \
1191 | --program-transform-nam=* | --program-transform-na=* \
1192 | --program-transform-n=* | --program-transform-=* \
1193 | --program-transform=* | --program-transfor=* \
1194 | --program-transfo=* | --program-transf=* \
1195 | --program-trans=* | --program-tran=* \
1196 | --progr-tra=* | --program-tr=* | --program-t=*)
1197 program_transform_name=$ac_optarg ;;
1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 ac_prev=pdfdir ;;
1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202 pdfdir=$ac_optarg ;;
1204 -psdir | --psdir | --psdi | --psd | --ps)
1205 ac_prev=psdir ;;
1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207 psdir=$ac_optarg ;;
1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1211 silent=yes ;;
1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 ac_prev=sbindir ;;
1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 | --sbi=* | --sb=*)
1217 sbindir=$ac_optarg ;;
1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221 | --sharedst | --shareds | --shared | --share | --shar \
1222 | --sha | --sh)
1223 ac_prev=sharedstatedir ;;
1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 | --sha=* | --sh=*)
1228 sharedstatedir=$ac_optarg ;;
1230 -site | --site | --sit)
1231 ac_prev=site ;;
1232 -site=* | --site=* | --sit=*)
1233 site=$ac_optarg ;;
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 ac_prev=srcdir ;;
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238 srcdir=$ac_optarg ;;
1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241 | --syscon | --sysco | --sysc | --sys | --sy)
1242 ac_prev=sysconfdir ;;
1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245 sysconfdir=$ac_optarg ;;
1247 -target | --target | --targe | --targ | --tar | --ta | --t)
1248 ac_prev=target_alias ;;
1249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250 target_alias=$ac_optarg ;;
1252 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253 verbose=yes ;;
1255 -version | --version | --versio | --versi | --vers | -V)
1256 ac_init_version=: ;;
1258 -with-* | --with-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1267 "with_$ac_useropt"
1268 "*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=\$ac_optarg ;;
1274 -without-* | --without-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=no ;;
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1308 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1309 Try \`$0 --help' for more information"
1312 *=*)
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 case $ac_envvar in #(
1316 '' | [0-9]* | *[!_$as_cr_alnum]* )
1317 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318 esac
1319 eval $ac_envvar=\$ac_optarg
1320 export $ac_envvar ;;
1323 # FIXME: should be removed in autoconf 3.0.
1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1330 esac
1331 done
1333 if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 as_fn_error $? "missing argument to $ac_option"
1338 if test -n "$ac_unrecognized_opts"; then
1339 case $enable_option_checking in
1340 no) ;;
1341 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1342 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343 esac
1346 # Check all directory arguments for consistency.
1347 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1352 eval ac_val=\$$ac_var
1353 # Remove trailing slashes.
1354 case $ac_val in
1355 */ )
1356 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357 eval $ac_var=\$ac_val;;
1358 esac
1359 # Be sure to have absolute directory names.
1360 case $ac_val in
1361 [\\/$]* | ?:[\\/]* ) continue;;
1362 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363 esac
1364 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1365 done
1367 # There might be people who depend on the old broken behavior: `$host'
1368 # used to hold the argument of --host etc.
1369 # FIXME: To remove some day.
1370 build=$build_alias
1371 host=$host_alias
1372 target=$target_alias
1374 # FIXME: To remove some day.
1375 if test "x$host_alias" != x; then
1376 if test "x$build_alias" = x; then
1377 cross_compiling=maybe
1378 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1379 If a cross compiler is detected then cross compile mode will be used" >&2
1380 elif test "x$build_alias" != "x$host_alias"; then
1381 cross_compiling=yes
1385 ac_tool_prefix=
1386 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388 test "$silent" = yes && exec 6>/dev/null
1391 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1392 ac_ls_di=`ls -di .` &&
1393 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1394 as_fn_error $? "working directory cannot be determined"
1395 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396 as_fn_error $? "pwd does not report name of working directory"
1399 # Find the source files, if location was not specified.
1400 if test -z "$srcdir"; then
1401 ac_srcdir_defaulted=yes
1402 # Try the directory containing this script, then the parent directory.
1403 ac_confdir=`$as_dirname -- "$as_myself" ||
1404 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405 X"$as_myself" : 'X\(//\)[^/]' \| \
1406 X"$as_myself" : 'X\(//\)$' \| \
1407 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1408 $as_echo X"$as_myself" |
1409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 s//\1/
1413 /^X\(\/\/\)[^/].*/{
1414 s//\1/
1417 /^X\(\/\/\)$/{
1418 s//\1/
1421 /^X\(\/\).*/{
1422 s//\1/
1425 s/.*/./; q'`
1426 srcdir=$ac_confdir
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 srcdir=..
1430 else
1431 ac_srcdir_defaulted=no
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1437 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 ac_abs_confdir=`(
1439 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1440 pwd)`
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 srcdir=.
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1448 case $srcdir in
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450 esac
1451 for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 done
1459 # Report the --help message.
1461 if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1464 cat <<_ACEOF
1465 \`configure' configures this package to adapt to many kinds of systems.
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE. See below for descriptions of some of the useful variables.
1472 Defaults for the options are specified in brackets.
1474 Configuration:
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking ...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485 Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 [PREFIX]
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1496 For better control, use the options below.
1498 Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1518 _ACEOF
1520 cat <<\_ACEOF
1522 X features:
1523 --x-includes=DIR X include files are in DIR
1524 --x-libraries=DIR X library files are in DIR
1526 System types:
1527 --build=BUILD configure for building on BUILD [guessed]
1528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529 _ACEOF
1532 if test -n "$ac_init_help"; then
1534 cat <<\_ACEOF
1536 Optional Features:
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-build-type=TYPE
1541 Select the build type. Available types are:
1542 personal, nightly, snapshot, milestone, release. Do
1543 NOT use this option unless you know what you are
1544 doing! (default=personal)
1545 --enable-debug=list Enable different types of debug. Commas or
1546 whitespaces can be used to separate the items in the
1547 list. Available types of debug are: all, none,
1548 messages, stack, mungwall, modules, symbols. If no
1549 list is provided then "all" is assumed.
1550 (default=none)
1551 --enable-distcc Use distcc as a front end to the compiler
1552 (default=no).
1553 --enable-ccache Use ccache as a front end to the compiler
1554 (default=no).
1555 --enable-target-variant=NAME
1556 Enable a specific target variant(default=none)
1557 --enable-amigaos-compliance=VERSION
1558 Enforce userspace AmigaOS compliance to a specific
1559 KickStart version (default=none).
1560 --disable-crosstools Do not build cross-compiler toolchain
1561 --enable-includes=dir Alternative system include directory
1562 --enable-palm-debug-hack
1563 Enable palm debug output hack in palm native
1564 (default=no)
1565 --enable-nesting-supervisor
1566 Enable nesting supervisor support in unix
1567 (default=no)
1568 --disable-mmu Disable MMU support (default=enabled)
1569 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1570 --enable-x11-shm use X11 shared memory (default=auto)
1571 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1572 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1573 --disable-sdltest Do not try to compile and run a test SDL program
1574 --enable-dbus Enable DBUS support via dbus.library (default=no)
1576 Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-kernel-gcc-version=VERSION
1580 Use host gcc-VERSION for building AROS
1581 --with-gcc-version=VERSION
1582 Use host gcc-VERSION for building AROS
1583 --with-optimization=FLAGS
1584 Use optimization flags FLAGS (default=-O2).
1585 --with-paranoia=FLAGS CC flags to enable paranoia
1586 --with-xcode=PATH Specify XCode path for iOS targets
1587 (default=/Developer).
1588 --with-sdk-version=VERSION
1589 Use iOS SDK version VERSION (default=4.1).
1590 --with-sdk=PATH Specify Android SDK path
1591 (default=$default_android_sdk).
1592 --with-ndk=PATH Specify Android NDK path (default=none).
1593 --with-sdk-version=LEVEL
1594 Use Android SDK for API LEVEL (default=12).
1595 --with-ndk-version=LEVEL
1596 Use Android NDK for API LEVEL (default=9).
1597 --with-kernel-toolchain-prefix=...
1598 Specify crosscompile toolchain prefix for kernel
1599 objects
1600 --with-elf-toolchain-prefix=...
1601 Specify crosscompile toolchain prefix to wrap for
1602 AROS objects
1603 --with-aros-toolchain=PREFIX
1604 Specify prebuilt AROS toolchain
1605 --with-aros-toolchain-install=DIR
1606 Where to install or search for cross tools binaries
1607 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1608 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1609 --with-float=<spec> Specify floating point ABI
1610 (default=$gcc_default_float_abi).
1611 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1612 --with-portssources=DIR Where to download sourcecode for external ports
1613 --with-bootloader=NAME Use a specific bootloader
1614 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1615 --with-theme=NAME Use a specific GUI Theme
1616 --with-resolution=XRESxYRESxDEPTH
1617 Default resolution of the initial WorkbenchScreen
1618 --with-serial-debug Enable serial debug output in native (default=no)
1619 --with-x use the X Window System
1620 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1621 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1623 Some influential environment variables:
1624 CC C compiler command
1625 CFLAGS C compiler flags
1626 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1627 nonstandard directory <lib dir>
1628 LIBS libraries to pass to the linker, e.g. -l<library>
1629 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1630 you have headers in a nonstandard directory <include dir>
1631 CXX C++ compiler command
1632 CXXFLAGS C++ compiler flags
1633 CPP C preprocessor
1634 PYTHON the Python interpreter
1635 XMKMF Path to xmkmf, Makefile generator for X Window System
1637 Use these variables to override the choices made by `configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1640 Report bugs to the package provider.
1641 _ACEOF
1642 ac_status=$?
1645 if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 continue
1651 ac_builddir=.
1653 case "$ac_dir" in
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 esac ;;
1663 esac
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1669 case $srcdir in
1670 .) # We are building in place.
1671 ac_srcdir=.
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
1675 ac_srcdir=$srcdir$ac_dir_suffix;
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1678 *) # Relative name.
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 esac
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1693 else
1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1697 done
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1702 cat <<\_ACEOF
1703 configure
1704 generated by GNU Autoconf 2.68
1706 Copyright (C) 2010 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1713 ## ------------------------ ##
1714 ## Autoconf initialization. ##
1715 ## ------------------------ ##
1717 # ac_fn_c_try_compile LINENO
1718 # --------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_compile ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 ac_retval=1
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_c_try_compile
1755 # ac_fn_cxx_try_compile LINENO
1756 # ----------------------------
1757 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_cxx_try_compile ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 rm -f conftest.$ac_objext
1762 if { { ac_try="$ac_compile"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_compile") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } && {
1778 test -z "$ac_cxx_werror_flag" ||
1779 test ! -s conftest.err
1780 } && test -s conftest.$ac_objext; then :
1781 ac_retval=0
1782 else
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1786 ac_retval=1
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1791 } # ac_fn_cxx_try_compile
1793 # ac_fn_c_try_cpp LINENO
1794 # ----------------------
1795 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_cpp ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_cpp conftest.$ac_ext"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } > conftest.i && {
1815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 ac_retval=1
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1828 } # ac_fn_c_try_cpp
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1834 # accordingly.
1835 ac_fn_c_check_header_mongrel ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if eval \${$3+:} false; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 else
1848 # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 ac_header_compiler=yes
1858 else
1859 ac_header_compiler=no
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873 ac_header_preproc=yes
1874 else
1875 ac_header_preproc=no
1877 rm -f conftest.err conftest.i conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1881 # So? What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1883 yes:no: )
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 no:yes:* )
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901 esac
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 eval "$3=\$ac_header_compiler"
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_check_header_mongrel
1917 # ac_fn_c_try_run LINENO
1918 # ----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920 # that executables *can* be run.
1921 ac_fn_c_try_run ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>&5
1932 ac_status=$?
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_try") 2>&5
1942 ac_status=$?
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: program exited with status $ac_status" >&5
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=$ac_status
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1957 } # ac_fn_c_try_run
1959 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960 # -------------------------------------------------------
1961 # Tests whether HEADER exists and can be compiled using the include files in
1962 # INCLUDES, setting the cache variable VAR accordingly.
1963 ac_fn_c_check_header_compile ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 eval "$3=yes"
1978 else
1979 eval "$3=no"
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 } # ac_fn_c_check_header_compile
1990 # ac_fn_c_try_link LINENO
1991 # -----------------------
1992 # Try to link conftest.$ac_ext, and return whether this succeeded.
1993 ac_fn_c_try_link ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 rm -f conftest.$ac_objext conftest$ac_exeext
1997 if { { ac_try="$ac_link"
1998 case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2001 esac
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>conftest.err
2005 ac_status=$?
2006 if test -s conftest.err; then
2007 grep -v '^ *+' conftest.err >conftest.er1
2008 cat conftest.er1 >&5
2009 mv -f conftest.er1 conftest.err
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; } && {
2013 test -z "$ac_c_werror_flag" ||
2014 test ! -s conftest.err
2015 } && test -s conftest$ac_exeext && {
2016 test "$cross_compiling" = yes ||
2017 $as_test_x conftest$ac_exeext
2018 }; then :
2019 ac_retval=0
2020 else
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2024 ac_retval=1
2026 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2027 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2028 # interfere with the next link command; also delete a directory that is
2029 # left behind by Apple's compiler. We do this before executing the actions.
2030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 as_fn_set_status $ac_retval
2034 } # ac_fn_c_try_link
2036 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2037 # ----------------------------------------------------
2038 # Tries to find if the field MEMBER exists in type AGGR, after including
2039 # INCLUDES, setting cache variable VAR accordingly.
2040 ac_fn_c_check_member ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2044 $as_echo_n "checking for $2.$3... " >&6; }
2045 if eval \${$4+:} false; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2052 main ()
2054 static $2 ac_aggr;
2055 if (ac_aggr.$3)
2056 return 0;
2058 return 0;
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$4=yes"
2063 else
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 static $2 ac_aggr;
2071 if (sizeof ac_aggr.$3)
2072 return 0;
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 eval "$4=yes"
2079 else
2080 eval "$4=no"
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 eval ac_res=\$$4
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 } # ac_fn_c_check_member
2093 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2094 # ---------------------------------------------
2095 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2096 # accordingly.
2097 ac_fn_c_check_decl ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 as_decl_name=`echo $2|sed 's/ *(.*//'`
2101 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2103 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2106 else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 #ifndef $as_decl_name
2114 #ifdef __cplusplus
2115 (void) $as_decl_use;
2116 #else
2117 (void) $as_decl_name;
2118 #endif
2119 #endif
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 eval "$3=yes"
2127 else
2128 eval "$3=no"
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_decl
2139 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140 # -------------------------------------------
2141 # Tests whether TYPE exists after having included INCLUDES, setting cache
2142 # variable VAR accordingly.
2143 ac_fn_c_check_type ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 eval "$3=no"
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 main ()
2158 if (sizeof ($2))
2159 return 0;
2161 return 0;
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 if (sizeof (($2)))
2172 return 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2179 else
2180 eval "$3=yes"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_type
2193 # ac_fn_c_check_func LINENO FUNC VAR
2194 # ----------------------------------
2195 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2196 ac_fn_c_check_func ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 $as_echo_n "checking for $2... " >&6; }
2201 if eval \${$3+:} false; then :
2202 $as_echo_n "(cached) " >&6
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2208 #define $2 innocuous_$2
2210 /* System header to define __stub macros and hopefully few prototypes,
2211 which can conflict with char $2 (); below.
2212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2213 <limits.h> exists even on freestanding compilers. */
2215 #ifdef __STDC__
2216 # include <limits.h>
2217 #else
2218 # include <assert.h>
2219 #endif
2221 #undef $2
2223 /* Override any GCC internal prototype to avoid an error.
2224 Use char because int might match the return type of a GCC
2225 builtin and then its argument prototype would still apply. */
2226 #ifdef __cplusplus
2227 extern "C"
2228 #endif
2229 char $2 ();
2230 /* The GNU C library defines this for functions which it implements
2231 to always fail with ENOSYS. Some functions are actually named
2232 something starting with __ and the normal name is an alias. */
2233 #if defined __stub_$2 || defined __stub___$2
2234 choke me
2235 #endif
2238 main ()
2240 return $2 ();
2242 return 0;
2244 _ACEOF
2245 if ac_fn_c_try_link "$LINENO"; then :
2246 eval "$3=yes"
2247 else
2248 eval "$3=no"
2250 rm -f core conftest.err conftest.$ac_objext \
2251 conftest$ac_exeext conftest.$ac_ext
2253 eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 } # ac_fn_c_check_func
2259 cat >config.log <<_ACEOF
2260 This file contains any messages produced by compilers while
2261 running configure, to aid debugging if configure makes a mistake.
2263 It was created by $as_me, which was
2264 generated by GNU Autoconf 2.68. Invocation command line was
2266 $ $0 $@
2268 _ACEOF
2269 exec 5>>config.log
2271 cat <<_ASUNAME
2272 ## --------- ##
2273 ## Platform. ##
2274 ## --------- ##
2276 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2277 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2278 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2279 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2280 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2282 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2283 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2285 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2286 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2287 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2288 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2289 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2290 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2291 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2293 _ASUNAME
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 $as_echo "PATH: $as_dir"
2301 done
2302 IFS=$as_save_IFS
2304 } >&5
2306 cat >&5 <<_ACEOF
2309 ## ----------- ##
2310 ## Core tests. ##
2311 ## ----------- ##
2313 _ACEOF
2316 # Keep a trace of the command line.
2317 # Strip out --no-create and --no-recursion so they do not pile up.
2318 # Strip out --silent because we don't want to record it for future runs.
2319 # Also quote any args containing shell meta-characters.
2320 # Make two passes to allow for proper duplicate-argument suppression.
2321 ac_configure_args=
2322 ac_configure_args0=
2323 ac_configure_args1=
2324 ac_must_keep_next=false
2325 for ac_pass in 1 2
2327 for ac_arg
2329 case $ac_arg in
2330 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2332 | -silent | --silent | --silen | --sile | --sil)
2333 continue ;;
2334 *\'*)
2335 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2336 esac
2337 case $ac_pass in
2338 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2340 as_fn_append ac_configure_args1 " '$ac_arg'"
2341 if test $ac_must_keep_next = true; then
2342 ac_must_keep_next=false # Got value, back to normal.
2343 else
2344 case $ac_arg in
2345 *=* | --config-cache | -C | -disable-* | --disable-* \
2346 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2347 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2348 | -with-* | --with-* | -without-* | --without-* | --x)
2349 case "$ac_configure_args0 " in
2350 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2351 esac
2353 -* ) ac_must_keep_next=true ;;
2354 esac
2356 as_fn_append ac_configure_args " '$ac_arg'"
2358 esac
2359 done
2360 done
2361 { ac_configure_args0=; unset ac_configure_args0;}
2362 { ac_configure_args1=; unset ac_configure_args1;}
2364 # When interrupted or exit'd, cleanup temporary files, and complete
2365 # config.log. We remove comments because anyway the quotes in there
2366 # would cause problems or look ugly.
2367 # WARNING: Use '\'' to represent an apostrophe within the trap.
2368 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2369 trap 'exit_status=$?
2370 # Save into config.log some information that might help in debugging.
2372 echo
2374 $as_echo "## ---------------- ##
2375 ## Cache variables. ##
2376 ## ---------------- ##"
2377 echo
2378 # The following way of writing the cache mishandles newlines in values,
2380 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in #(
2383 *${as_nl}*)
2384 case $ac_var in #(
2385 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2386 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2387 esac
2388 case $ac_var in #(
2389 _ | IFS | as_nl) ;; #(
2390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2391 *) { eval $ac_var=; unset $ac_var;} ;;
2392 esac ;;
2393 esac
2394 done
2395 (set) 2>&1 |
2396 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397 *${as_nl}ac_space=\ *)
2398 sed -n \
2399 "s/'\''/'\''\\\\'\'''\''/g;
2400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401 ;; #(
2403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2405 esac |
2406 sort
2408 echo
2410 $as_echo "## ----------------- ##
2411 ## Output variables. ##
2412 ## ----------------- ##"
2413 echo
2414 for ac_var in $ac_subst_vars
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2424 if test -n "$ac_subst_files"; then
2425 $as_echo "## ------------------- ##
2426 ## File substitutions. ##
2427 ## ------------------- ##"
2428 echo
2429 for ac_var in $ac_subst_files
2431 eval ac_val=\$$ac_var
2432 case $ac_val in
2433 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2434 esac
2435 $as_echo "$ac_var='\''$ac_val'\''"
2436 done | sort
2437 echo
2440 if test -s confdefs.h; then
2441 $as_echo "## ----------- ##
2442 ## confdefs.h. ##
2443 ## ----------- ##"
2444 echo
2445 cat confdefs.h
2446 echo
2448 test "$ac_signal" != 0 &&
2449 $as_echo "$as_me: caught signal $ac_signal"
2450 $as_echo "$as_me: exit $exit_status"
2451 } >&5
2452 rm -f core *.core core.conftest.* &&
2453 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454 exit $exit_status
2456 for ac_signal in 1 2 13 15; do
2457 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458 done
2459 ac_signal=0
2461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2462 rm -f -r conftest* confdefs.h
2464 $as_echo "/* confdefs.h */" > confdefs.h
2466 # Predefined preprocessor variables.
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_NAME "$PACKAGE_NAME"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_STRING "$PACKAGE_STRING"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_URL "$PACKAGE_URL"
2490 _ACEOF
2493 # Let the site file select an alternate cache file if it wants to.
2494 # Prefer an explicitly selected file to automatically selected ones.
2495 ac_site_file1=NONE
2496 ac_site_file2=NONE
2497 if test -n "$CONFIG_SITE"; then
2498 # We do not want a PATH search for config.site.
2499 case $CONFIG_SITE in #((
2500 -*) ac_site_file1=./$CONFIG_SITE;;
2501 */*) ac_site_file1=$CONFIG_SITE;;
2502 *) ac_site_file1=./$CONFIG_SITE;;
2503 esac
2504 elif test "x$prefix" != xNONE; then
2505 ac_site_file1=$prefix/share/config.site
2506 ac_site_file2=$prefix/etc/config.site
2507 else
2508 ac_site_file1=$ac_default_prefix/share/config.site
2509 ac_site_file2=$ac_default_prefix/etc/config.site
2511 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2513 test "x$ac_site_file" = xNONE && continue
2514 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2516 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2517 sed 's/^/| /' "$ac_site_file" >&5
2518 . "$ac_site_file" \
2519 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 as_fn_error $? "failed to load site script $ac_site_file
2522 See \`config.log' for more details" "$LINENO" 5; }
2524 done
2526 if test -r "$cache_file"; then
2527 # Some versions of bash will fail to source /dev/null (special files
2528 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2529 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2531 $as_echo "$as_me: loading cache $cache_file" >&6;}
2532 case $cache_file in
2533 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2534 *) . "./$cache_file";;
2535 esac
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2539 $as_echo "$as_me: creating cache $cache_file" >&6;}
2540 >$cache_file
2543 as_fn_append ac_header_list " stdlib.h"
2544 as_fn_append ac_header_list " unistd.h"
2545 as_fn_append ac_header_list " sys/param.h"
2546 # Check that the precious variables saved in the cache have kept the same
2547 # value.
2548 ac_cache_corrupted=false
2549 for ac_var in $ac_precious_vars; do
2550 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2551 eval ac_new_set=\$ac_env_${ac_var}_set
2552 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2553 eval ac_new_val=\$ac_env_${ac_var}_value
2554 case $ac_old_set,$ac_new_set in
2555 set,)
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2557 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2558 ac_cache_corrupted=: ;;
2559 ,set)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2561 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2562 ac_cache_corrupted=: ;;
2563 ,);;
2565 if test "x$ac_old_val" != "x$ac_new_val"; then
2566 # differences in whitespace do not lead to failure.
2567 ac_old_val_w=`echo x $ac_old_val`
2568 ac_new_val_w=`echo x $ac_new_val`
2569 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2571 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2572 ac_cache_corrupted=:
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2575 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2576 eval $ac_var=\$ac_old_val
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2579 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2581 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2582 fi;;
2583 esac
2584 # Pass precious variables to config.status.
2585 if test "$ac_new_set" = set; then
2586 case $ac_new_val in
2587 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2588 *) ac_arg=$ac_var=$ac_new_val ;;
2589 esac
2590 case " $ac_configure_args " in
2591 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2592 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2593 esac
2595 done
2596 if $ac_cache_corrupted; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2600 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2601 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2603 ## -------------------- ##
2604 ## Main body of script. ##
2605 ## -------------------- ##
2607 ac_ext=c
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 ac_aux_dir=
2616 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2617 if test -f "$ac_dir/install-sh"; then
2618 ac_aux_dir=$ac_dir
2619 ac_install_sh="$ac_aux_dir/install-sh -c"
2620 break
2621 elif test -f "$ac_dir/install.sh"; then
2622 ac_aux_dir=$ac_dir
2623 ac_install_sh="$ac_aux_dir/install.sh -c"
2624 break
2625 elif test -f "$ac_dir/shtool"; then
2626 ac_aux_dir=$ac_dir
2627 ac_install_sh="$ac_aux_dir/shtool install -c"
2628 break
2630 done
2631 if test -z "$ac_aux_dir"; then
2632 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2635 # These three variables are undocumented and unsupported,
2636 # and are intended to be withdrawn in a future Autoconf release.
2637 # They can cause serious problems if a builder's source tree is in a directory
2638 # whose full name contains unusual characters.
2639 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2640 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2641 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2645 # Check what host we are running on.
2646 # If a target is not suggested, we use this one.
2647 # Note that what we call a target, Autoconf calls a host.
2648 # Make sure we can run config.sub.
2649 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2650 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2653 $as_echo_n "checking build system type... " >&6; }
2654 if ${ac_cv_build+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 ac_build_alias=$build_alias
2658 test "x$ac_build_alias" = x &&
2659 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2660 test "x$ac_build_alias" = x &&
2661 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2662 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2663 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2667 $as_echo "$ac_cv_build" >&6; }
2668 case $ac_cv_build in
2669 *-*-*) ;;
2670 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2671 esac
2672 build=$ac_cv_build
2673 ac_save_IFS=$IFS; IFS='-'
2674 set x $ac_cv_build
2675 shift
2676 build_cpu=$1
2677 build_vendor=$2
2678 shift; shift
2679 # Remember, the first character of IFS is used to create $*,
2680 # except with old shells:
2681 build_os=$*
2682 IFS=$ac_save_IFS
2683 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2687 $as_echo_n "checking host system type... " >&6; }
2688 if ${ac_cv_host+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test "x$host_alias" = x; then
2692 ac_cv_host=$ac_cv_build
2693 else
2694 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2695 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2700 $as_echo "$ac_cv_host" >&6; }
2701 case $ac_cv_host in
2702 *-*-*) ;;
2703 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2704 esac
2705 host=$ac_cv_host
2706 ac_save_IFS=$IFS; IFS='-'
2707 set x $ac_cv_host
2708 shift
2709 host_cpu=$1
2710 host_vendor=$2
2711 shift; shift
2712 # Remember, the first character of IFS is used to create $*,
2713 # except with old shells:
2714 host_os=$*
2715 IFS=$ac_save_IFS
2716 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2720 # The AROS target is slightly different to the normal GNU style
2721 # format. We don't have the middle part, and we reverse the order
2722 # of the $(CPU) and $(OS) bits.
2724 # Don't strip the version of the target yet, it might be
2725 # useful on some systems.
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2728 $as_echo_n "checking for AROS style target... " >&6; }
2730 if test "$target" = "NONE" ; then
2731 target=$host_os-$host_cpu
2732 else
2733 if test "$target" = "" ; then
2734 target=$host_os-$host_cpu
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2738 $as_echo "$target" >&6; }
2740 if test "$host_os" = "mingw32" ; then
2741 PWDCMD="pwd -W"
2744 # Don't know where else to put this...
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2746 $as_echo_n "checking building AROS in... " >&6; }
2747 AROS_BUILDDIR=`${PWDCMD-pwd}`
2748 AROS_BUILDDIR_UNIX=${PWD}
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2750 $as_echo "$AROS_BUILDDIR" >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2753 $as_echo_n "checking AROS source in... " >&6; }
2754 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2755 SRCDIR=${srcpwd}
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2757 $as_echo "$SRCDIR" >&6; }
2759 # Parse the target field into something useful.
2761 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2762 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2765 # Some debug output, to be removed again.
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2767 $as_echo_n "checking for target system (debug output)... " >&6; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2769 $as_echo "$target_os" >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2771 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2773 $as_echo "$target_cpu" >&6; }
2775 aros_default_wbwidth=800
2776 aros_default_wbheight=600
2777 aros_default_wbdepth=4
2780 # The first step is to find the host binaries.
2781 # Check for a compiler.
2782 ac_ext=c
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$ac_cv_prog_CC"; then
2827 ac_ct_CC=$CC
2828 # Extract the first word of "gcc", so it can be a program name with args.
2829 set dummy gcc; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_CC="gcc"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2851 IFS=$as_save_IFS
2855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2858 $as_echo "$ac_ct_CC" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned=yes ;;
2872 esac
2873 CC=$ac_ct_CC
2875 else
2876 CC="$ac_cv_prog_CC"
2879 if test -z "$CC"; then
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_CC="${ac_tool_prefix}cc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2902 done
2903 done
2904 IFS=$as_save_IFS
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2920 if test -z "$CC"; then
2921 # Extract the first word of "cc", so it can be a program name with args.
2922 set dummy cc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 ac_prog_rejected=no
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2940 ac_prog_rejected=yes
2941 continue
2943 ac_cv_prog_CC="cc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2949 IFS=$as_save_IFS
2951 if test $ac_prog_rejected = yes; then
2952 # We found a bogon in the path, so make sure we never use it.
2953 set dummy $ac_cv_prog_CC
2954 shift
2955 if test $# != 0; then
2956 # We chose a different compiler from the bogus one.
2957 # However, it has the same basename, so the bogon will be chosen
2958 # first if we set CC to just the basename; use the full file name.
2959 shift
2960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2976 if test -z "$CC"; then
2977 if test -n "$ac_tool_prefix"; then
2978 for ac_prog in cl.exe
2980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3001 done
3002 done
3003 IFS=$as_save_IFS
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$CC" && break
3018 done
3020 if test -z "$CC"; then
3021 ac_ct_CC=$CC
3022 for ac_prog in cl.exe
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_ac_ct_CC="$ac_prog"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3047 IFS=$as_save_IFS
3051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3052 if test -n "$ac_ct_CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3054 $as_echo "$ac_ct_CC" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3061 test -n "$ac_ct_CC" && break
3062 done
3064 if test "x$ac_ct_CC" = x; then
3065 CC=""
3066 else
3067 case $cross_compiling:$ac_tool_warned in
3068 yes:)
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned=yes ;;
3072 esac
3073 CC=$ac_ct_CC
3080 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error $? "no acceptable C compiler found in \$PATH
3083 See \`config.log' for more details" "$LINENO" 5; }
3085 # Provide some information about the compiler.
3086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3087 set X $ac_compile
3088 ac_compiler=$2
3089 for ac_option in --version -v -V -qversion; do
3090 { { ac_try="$ac_compiler $ac_option >&5"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3098 ac_status=$?
3099 if test -s conftest.err; then
3100 sed '10a\
3101 ... rest of stderr output deleted ...
3102 10q' conftest.err >conftest.er1
3103 cat conftest.er1 >&5
3105 rm -f conftest.er1 conftest.err
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }
3108 done
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3114 main ()
3118 return 0;
3120 _ACEOF
3121 ac_clean_files_save=$ac_clean_files
3122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3123 # Try to create an executable without -o first, disregard a.out.
3124 # It will help us diagnose broken compilers, and finding out an intuition
3125 # of exeext.
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3127 $as_echo_n "checking whether the C compiler works... " >&6; }
3128 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3130 # The possible output files:
3131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3133 ac_rmfiles=
3134 for ac_file in $ac_files
3136 case $ac_file in
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3139 esac
3140 done
3141 rm -f $ac_rmfiles
3143 if { { ac_try="$ac_link_default"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link_default") 2>&5
3151 ac_status=$?
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
3154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3157 # so that the user can short-circuit this test for compilers unknown to
3158 # Autoconf.
3159 for ac_file in $ac_files ''
3161 test -f "$ac_file" || continue
3162 case $ac_file in
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3165 [ab].out )
3166 # We found the default executable, but exeext='' is most
3167 # certainly right.
3168 break;;
3169 *.* )
3170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3171 then :; else
3172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 # We set ac_cv_exeext here because the later test for it is not
3175 # safe: cross compilers may not add the suffix if given an `-o'
3176 # argument, so we may need to know it at that point already.
3177 # Even if this section looks crufty: it has the advantage of
3178 # actually working.
3179 break;;
3181 break;;
3182 esac
3183 done
3184 test "$ac_cv_exeext" = no && ac_cv_exeext=
3186 else
3187 ac_file=''
3189 if test -z "$ac_file"; then :
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
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 77 "C compiler cannot create executables
3198 See \`config.log' for more details" "$LINENO" 5; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3204 $as_echo_n "checking for C compiler default output file name... " >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3206 $as_echo "$ac_file" >&6; }
3207 ac_exeext=$ac_cv_exeext
3209 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3210 ac_clean_files=$ac_clean_files_save
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3212 $as_echo_n "checking for suffix of executables... " >&6; }
3213 if { { ac_try="$ac_link"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_link") 2>&5
3221 ac_status=$?
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }; then :
3224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3226 # work properly (i.e., refer to `conftest.exe'), while it won't with
3227 # `rm'.
3228 for ac_file in conftest.exe conftest conftest.*; do
3229 test -f "$ac_file" || continue
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 break;;
3234 * ) break;;
3235 esac
3236 done
3237 else
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3241 See \`config.log' for more details" "$LINENO" 5; }
3243 rm -f conftest conftest$ac_cv_exeext
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3245 $as_echo "$ac_cv_exeext" >&6; }
3247 rm -f conftest.$ac_ext
3248 EXEEXT=$ac_cv_exeext
3249 ac_exeext=$EXEEXT
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252 #include <stdio.h>
3254 main ()
3256 FILE *f = fopen ("conftest.out", "w");
3257 return ferror (f) || fclose (f) != 0;
3260 return 0;
3262 _ACEOF
3263 ac_clean_files="$ac_clean_files conftest.out"
3264 # Check that the compiler produces executables we can run. If not, either
3265 # the compiler is broken, or we cross compile.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3267 $as_echo_n "checking whether we are cross compiling... " >&6; }
3268 if test "$cross_compiling" != yes; then
3269 { { ac_try="$ac_link"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_link") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }
3280 if { ac_try='./conftest$ac_cv_exeext'
3281 { { case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_try") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; }; then
3291 cross_compiling=no
3292 else
3293 if test "$cross_compiling" = maybe; then
3294 cross_compiling=yes
3295 else
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $? "cannot run C compiled programs.
3299 If you meant to cross compile, use \`--host'.
3300 See \`config.log' for more details" "$LINENO" 5; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3305 $as_echo "$cross_compiling" >&6; }
3307 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3308 ac_clean_files=$ac_clean_files_save
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3310 $as_echo_n "checking for suffix of object files... " >&6; }
3311 if ${ac_cv_objext+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 rm -f conftest.o conftest.obj
3326 if { { ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_compile") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 for ac_file in conftest.o conftest.obj conftest.*; do
3338 test -f "$ac_file" || continue;
3339 case $ac_file in
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3342 break;;
3343 esac
3344 done
3345 else
3346 $as_echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "cannot compute suffix of object files: cannot compile
3352 See \`config.log' for more details" "$LINENO" 5; }
3354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3357 $as_echo "$ac_cv_objext" >&6; }
3358 OBJEXT=$ac_cv_objext
3359 ac_objext=$OBJEXT
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3361 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3362 if ${ac_cv_c_compiler_gnu+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3369 main ()
3371 #ifndef __GNUC__
3372 choke me
3373 #endif
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_compiler_gnu=yes
3381 else
3382 ac_compiler_gnu=no
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3389 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3390 if test $ac_compiler_gnu = yes; then
3391 GCC=yes
3392 else
3393 GCC=
3395 ac_test_CFLAGS=${CFLAGS+set}
3396 ac_save_CFLAGS=$CFLAGS
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3398 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3399 if ${ac_cv_prog_cc_g+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 ac_save_c_werror_flag=$ac_c_werror_flag
3403 ac_c_werror_flag=yes
3404 ac_cv_prog_cc_g=no
3405 CFLAGS="-g"
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3410 main ()
3414 return 0;
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3418 ac_cv_prog_cc_g=yes
3419 else
3420 CFLAGS=""
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3425 main ()
3429 return 0;
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3434 else
3435 ac_c_werror_flag=$ac_save_c_werror_flag
3436 CFLAGS="-g"
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3441 main ()
3445 return 0;
3447 _ACEOF
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_cv_prog_cc_g=yes
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3459 $as_echo "$ac_cv_prog_cc_g" >&6; }
3460 if test "$ac_test_CFLAGS" = set; then
3461 CFLAGS=$ac_save_CFLAGS
3462 elif test $ac_cv_prog_cc_g = yes; then
3463 if test "$GCC" = yes; then
3464 CFLAGS="-g -O2"
3465 else
3466 CFLAGS="-g"
3468 else
3469 if test "$GCC" = yes; then
3470 CFLAGS="-O2"
3471 else
3472 CFLAGS=
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3476 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3477 if ${ac_cv_prog_cc_c89+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 ac_cv_prog_cc_c89=no
3481 ac_save_CC=$CC
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484 #include <stdarg.h>
3485 #include <stdio.h>
3486 #include <sys/types.h>
3487 #include <sys/stat.h>
3488 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3489 struct buf { int x; };
3490 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3491 static char *e (p, i)
3492 char **p;
3493 int i;
3495 return p[i];
3497 static char *f (char * (*g) (char **, int), char **p, ...)
3499 char *s;
3500 va_list v;
3501 va_start (v,p);
3502 s = g (p, va_arg (v,int));
3503 va_end (v);
3504 return s;
3507 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3508 function prototypes and stuff, but not '\xHH' hex character constants.
3509 These don't provoke an error unfortunately, instead are silently treated
3510 as 'x'. The following induces an error, until -std is added to get
3511 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3512 array size at least. It's necessary to write '\x00'==0 to get something
3513 that's true only with -std. */
3514 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3516 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3517 inside strings and character constants. */
3518 #define FOO(x) 'x'
3519 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3521 int test (int i, double x);
3522 struct s1 {int (*f) (int a);};
3523 struct s2 {int (*f) (double a);};
3524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3525 int argc;
3526 char **argv;
3528 main ()
3530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3532 return 0;
3534 _ACEOF
3535 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3536 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3538 CC="$ac_save_CC $ac_arg"
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540 ac_cv_prog_cc_c89=$ac_arg
3542 rm -f core conftest.err conftest.$ac_objext
3543 test "x$ac_cv_prog_cc_c89" != "xno" && break
3544 done
3545 rm -f conftest.$ac_ext
3546 CC=$ac_save_CC
3549 # AC_CACHE_VAL
3550 case "x$ac_cv_prog_cc_c89" in
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3553 $as_echo "none needed" >&6; } ;;
3554 xno)
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3556 $as_echo "unsupported" >&6; } ;;
3558 CC="$CC $ac_cv_prog_cc_c89"
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3560 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3561 esac
3562 if test "x$ac_cv_prog_cc_c89" != xno; then :
3566 ac_ext=c
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 case $ac_cv_prog_cc_stdc in #(
3573 no) :
3574 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3575 *) :
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3577 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3578 if ${ac_cv_prog_cc_c99+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 ac_cv_prog_cc_c99=no
3582 ac_save_CC=$CC
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585 #include <stdarg.h>
3586 #include <stdbool.h>
3587 #include <stdlib.h>
3588 #include <wchar.h>
3589 #include <stdio.h>
3591 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3592 #define debug(...) fprintf (stderr, __VA_ARGS__)
3593 #define showlist(...) puts (#__VA_ARGS__)
3594 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3595 static void
3596 test_varargs_macros (void)
3598 int x = 1234;
3599 int y = 5678;
3600 debug ("Flag");
3601 debug ("X = %d\n", x);
3602 showlist (The first, second, and third items.);
3603 report (x>y, "x is %d but y is %d", x, y);
3606 // Check long long types.
3607 #define BIG64 18446744073709551615ull
3608 #define BIG32 4294967295ul
3609 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3610 #if !BIG_OK
3611 your preprocessor is broken;
3612 #endif
3613 #if BIG_OK
3614 #else
3615 your preprocessor is broken;
3616 #endif
3617 static long long int bignum = -9223372036854775807LL;
3618 static unsigned long long int ubignum = BIG64;
3620 struct incomplete_array
3622 int datasize;
3623 double data[];
3626 struct named_init {
3627 int number;
3628 const wchar_t *name;
3629 double average;
3632 typedef const char *ccp;
3634 static inline int
3635 test_restrict (ccp restrict text)
3637 // See if C++-style comments work.
3638 // Iterate through items via the restricted pointer.
3639 // Also check for declarations in for loops.
3640 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3641 continue;
3642 return 0;
3645 // Check varargs and va_copy.
3646 static void
3647 test_varargs (const char *format, ...)
3649 va_list args;
3650 va_start (args, format);
3651 va_list args_copy;
3652 va_copy (args_copy, args);
3654 const char *str;
3655 int number;
3656 float fnumber;
3658 while (*format)
3660 switch (*format++)
3662 case 's': // string
3663 str = va_arg (args_copy, const char *);
3664 break;
3665 case 'd': // int
3666 number = va_arg (args_copy, int);
3667 break;
3668 case 'f': // float
3669 fnumber = va_arg (args_copy, double);
3670 break;
3671 default:
3672 break;
3675 va_end (args_copy);
3676 va_end (args);
3680 main ()
3683 // Check bool.
3684 _Bool success = false;
3686 // Check restrict.
3687 if (test_restrict ("String literal") == 0)
3688 success = true;
3689 char *restrict newvar = "Another string";
3691 // Check varargs.
3692 test_varargs ("s, d' f .", "string", 65, 34.234);
3693 test_varargs_macros ();
3695 // Check flexible array members.
3696 struct incomplete_array *ia =
3697 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3698 ia->datasize = 10;
3699 for (int i = 0; i < ia->datasize; ++i)
3700 ia->data[i] = i * 1.234;
3702 // Check named initializers.
3703 struct named_init ni = {
3704 .number = 34,
3705 .name = L"Test wide string",
3706 .average = 543.34343,
3709 ni.number = 58;
3711 int dynamic_array[ni.number];
3712 dynamic_array[ni.number - 1] = 543;
3714 // work around unused variable warnings
3715 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3716 || dynamic_array[ni.number - 1] != 543);
3719 return 0;
3721 _ACEOF
3722 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3724 CC="$ac_save_CC $ac_arg"
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726 ac_cv_prog_cc_c99=$ac_arg
3728 rm -f core conftest.err conftest.$ac_objext
3729 test "x$ac_cv_prog_cc_c99" != "xno" && break
3730 done
3731 rm -f conftest.$ac_ext
3732 CC=$ac_save_CC
3735 # AC_CACHE_VAL
3736 case "x$ac_cv_prog_cc_c99" in
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3739 $as_echo "none needed" >&6; } ;;
3740 xno)
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3742 $as_echo "unsupported" >&6; } ;;
3744 CC="$CC $ac_cv_prog_cc_c99"
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3746 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3747 esac
3748 if test "x$ac_cv_prog_cc_c99" != xno; then :
3749 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3750 else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3752 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3753 if ${ac_cv_prog_cc_c89+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 ac_cv_prog_cc_c89=no
3757 ac_save_CC=$CC
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760 #include <stdarg.h>
3761 #include <stdio.h>
3762 #include <sys/types.h>
3763 #include <sys/stat.h>
3764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3765 struct buf { int x; };
3766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3767 static char *e (p, i)
3768 char **p;
3769 int i;
3771 return p[i];
3773 static char *f (char * (*g) (char **, int), char **p, ...)
3775 char *s;
3776 va_list v;
3777 va_start (v,p);
3778 s = g (p, va_arg (v,int));
3779 va_end (v);
3780 return s;
3783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3784 function prototypes and stuff, but not '\xHH' hex character constants.
3785 These don't provoke an error unfortunately, instead are silently treated
3786 as 'x'. The following induces an error, until -std is added to get
3787 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3788 array size at least. It's necessary to write '\x00'==0 to get something
3789 that's true only with -std. */
3790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3793 inside strings and character constants. */
3794 #define FOO(x) 'x'
3795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3797 int test (int i, double x);
3798 struct s1 {int (*f) (int a);};
3799 struct s2 {int (*f) (double a);};
3800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3801 int argc;
3802 char **argv;
3804 main ()
3806 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3808 return 0;
3810 _ACEOF
3811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3812 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3814 CC="$ac_save_CC $ac_arg"
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_c89=$ac_arg
3818 rm -f core conftest.err conftest.$ac_objext
3819 test "x$ac_cv_prog_cc_c89" != "xno" && break
3820 done
3821 rm -f conftest.$ac_ext
3822 CC=$ac_save_CC
3825 # AC_CACHE_VAL
3826 case "x$ac_cv_prog_cc_c89" in
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3829 $as_echo "none needed" >&6; } ;;
3830 xno)
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3832 $as_echo "unsupported" >&6; } ;;
3834 CC="$CC $ac_cv_prog_cc_c89"
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3836 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3837 esac
3838 if test "x$ac_cv_prog_cc_c89" != xno; then :
3839 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3840 else
3841 ac_cv_prog_cc_stdc=no
3846 esac
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3848 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3849 if ${ac_cv_prog_cc_stdc+:} false; then :
3850 $as_echo_n "(cached) " >&6
3853 case $ac_cv_prog_cc_stdc in #(
3854 no) :
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;; #(
3857 '') :
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3859 $as_echo "none needed" >&6; } ;; #(
3860 *) :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3862 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3863 esac
3865 ac_ext=cpp
3866 ac_cpp='$CXXCPP $CPPFLAGS'
3867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3870 if test -z "$CXX"; then
3871 if test -n "$CCC"; then
3872 CXX=$CCC
3873 else
3874 if test -n "$ac_tool_prefix"; then
3875 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880 $as_echo_n "checking for $ac_word... " >&6; }
3881 if ${ac_cv_prog_CXX+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 if test -n "$CXX"; then
3885 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3886 else
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3898 done
3899 done
3900 IFS=$as_save_IFS
3904 CXX=$ac_cv_prog_CXX
3905 if test -n "$CXX"; then
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3907 $as_echo "$CXX" >&6; }
3908 else
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 $as_echo "no" >&6; }
3914 test -n "$CXX" && break
3915 done
3917 if test -z "$CXX"; then
3918 ac_ct_CXX=$CXX
3919 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3921 # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 set dummy $ac_prog; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 $as_echo_n "checking for $ac_word... " >&6; }
3925 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -n "$ac_ct_CXX"; then
3929 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 ac_cv_prog_ac_ct_CXX="$ac_prog"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3942 done
3943 done
3944 IFS=$as_save_IFS
3948 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3949 if test -n "$ac_ct_CXX"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3951 $as_echo "$ac_ct_CXX" >&6; }
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3958 test -n "$ac_ct_CXX" && break
3959 done
3961 if test "x$ac_ct_CXX" = x; then
3962 CXX="g++"
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965 yes:)
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968 ac_tool_warned=yes ;;
3969 esac
3970 CXX=$ac_ct_CXX
3976 # Provide some information about the compiler.
3977 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3978 set X $ac_compile
3979 ac_compiler=$2
3980 for ac_option in --version -v -V -qversion; do
3981 { { ac_try="$ac_compiler $ac_option >&5"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 $as_echo "$ac_try_echo"; } >&5
3988 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3989 ac_status=$?
3990 if test -s conftest.err; then
3991 sed '10a\
3992 ... rest of stderr output deleted ...
3993 10q' conftest.err >conftest.er1
3994 cat conftest.er1 >&5
3996 rm -f conftest.er1 conftest.err
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 done
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4003 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4010 main ()
4012 #ifndef __GNUC__
4013 choke me
4014 #endif
4017 return 0;
4019 _ACEOF
4020 if ac_fn_cxx_try_compile "$LINENO"; then :
4021 ac_compiler_gnu=yes
4022 else
4023 ac_compiler_gnu=no
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4030 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then
4032 GXX=yes
4033 else
4034 GXX=
4036 ac_test_CXXFLAGS=${CXXFLAGS+set}
4037 ac_save_CXXFLAGS=$CXXFLAGS
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4039 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4040 if ${ac_cv_prog_cxx_g+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4044 ac_cxx_werror_flag=yes
4045 ac_cv_prog_cxx_g=no
4046 CXXFLAGS="-g"
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4051 main ()
4055 return 0;
4057 _ACEOF
4058 if ac_fn_cxx_try_compile "$LINENO"; then :
4059 ac_cv_prog_cxx_g=yes
4060 else
4061 CXXFLAGS=""
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 main ()
4070 return 0;
4072 _ACEOF
4073 if ac_fn_cxx_try_compile "$LINENO"; then :
4075 else
4076 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4077 CXXFLAGS="-g"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4082 main ()
4086 return 0;
4088 _ACEOF
4089 if ac_fn_cxx_try_compile "$LINENO"; then :
4090 ac_cv_prog_cxx_g=yes
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4100 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4101 if test "$ac_test_CXXFLAGS" = set; then
4102 CXXFLAGS=$ac_save_CXXFLAGS
4103 elif test $ac_cv_prog_cxx_g = yes; then
4104 if test "$GXX" = yes; then
4105 CXXFLAGS="-g -O2"
4106 else
4107 CXXFLAGS="-g"
4109 else
4110 if test "$GXX" = yes; then
4111 CXXFLAGS="-O2"
4112 else
4113 CXXFLAGS=
4116 ac_ext=c
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 ac_ext=c
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4128 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4129 # On Suns, sometimes $CPP names a directory.
4130 if test -n "$CPP" && test -d "$CPP"; then
4131 CPP=
4133 if test -z "$CPP"; then
4134 if ${ac_cv_prog_CPP+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 # Double quotes because CPP needs to be expanded
4138 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4140 ac_preproc_ok=false
4141 for ac_c_preproc_warn_flag in '' yes
4143 # Use a header file that comes with gcc, so configuring glibc
4144 # with a fresh cross-compiler works.
4145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4146 # <limits.h> exists even on freestanding compilers.
4147 # On the NeXT, cc -E runs the code through the compiler's parser,
4148 # not just through cpp. "Syntax error" is here to catch this case.
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #ifdef __STDC__
4152 # include <limits.h>
4153 #else
4154 # include <assert.h>
4155 #endif
4156 Syntax error
4157 _ACEOF
4158 if ac_fn_c_try_cpp "$LINENO"; then :
4160 else
4161 # Broken: fails on valid input.
4162 continue
4164 rm -f conftest.err conftest.i conftest.$ac_ext
4166 # OK, works on sane cases. Now check whether nonexistent headers
4167 # can be detected and how.
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #include <ac_nonexistent.h>
4171 _ACEOF
4172 if ac_fn_c_try_cpp "$LINENO"; then :
4173 # Broken: success on invalid input.
4174 continue
4175 else
4176 # Passes both tests.
4177 ac_preproc_ok=:
4178 break
4180 rm -f conftest.err conftest.i conftest.$ac_ext
4182 done
4183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184 rm -f conftest.i conftest.err conftest.$ac_ext
4185 if $ac_preproc_ok; then :
4186 break
4189 done
4190 ac_cv_prog_CPP=$CPP
4193 CPP=$ac_cv_prog_CPP
4194 else
4195 ac_cv_prog_CPP=$CPP
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4198 $as_echo "$CPP" >&6; }
4199 ac_preproc_ok=false
4200 for ac_c_preproc_warn_flag in '' yes
4202 # Use a header file that comes with gcc, so configuring glibc
4203 # with a fresh cross-compiler works.
4204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205 # <limits.h> exists even on freestanding compilers.
4206 # On the NeXT, cc -E runs the code through the compiler's parser,
4207 # not just through cpp. "Syntax error" is here to catch this case.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #ifdef __STDC__
4211 # include <limits.h>
4212 #else
4213 # include <assert.h>
4214 #endif
4215 Syntax error
4216 _ACEOF
4217 if ac_fn_c_try_cpp "$LINENO"; then :
4219 else
4220 # Broken: fails on valid input.
4221 continue
4223 rm -f conftest.err conftest.i conftest.$ac_ext
4225 # OK, works on sane cases. Now check whether nonexistent headers
4226 # can be detected and how.
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if ac_fn_c_try_cpp "$LINENO"; then :
4232 # Broken: success on invalid input.
4233 continue
4234 else
4235 # Passes both tests.
4236 ac_preproc_ok=:
4237 break
4239 rm -f conftest.err conftest.i conftest.$ac_ext
4241 done
4242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4243 rm -f conftest.i conftest.err conftest.$ac_ext
4244 if $ac_preproc_ok; then :
4246 else
4247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4249 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4250 See \`config.log' for more details" "$LINENO" 5; }
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 # Check for a compatible awk
4261 for ac_prog in gawk nawk
4263 # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_AWK+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$AWK"; then
4271 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_AWK="$ac_prog"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4284 done
4285 done
4286 IFS=$as_save_IFS
4290 AWK=$ac_cv_prog_AWK
4291 if test -n "$AWK"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4293 $as_echo "$AWK" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4300 test -n "$AWK" && break
4301 done
4303 if test "$AWK" = ""; then
4304 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4306 # Extract the first word of "mmake", so it can be a program name with args.
4307 set dummy mmake; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_MMAKE+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$MMAKE"; then
4314 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_MMAKE="mmake "
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4333 MMAKE=$ac_cv_prog_MMAKE
4334 if test -n "$MMAKE"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4336 $as_echo "$MMAKE" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4344 # Perform some default variable assignments. Note all of these will be
4345 # Regenerated from the script, so there is no need to cache them.
4347 aros_host_cpp="$CPP"
4348 aros_host_cc="$CC"
4349 aros_host_cxx="$CXX"
4350 if test "$GCC" = "yes"; then
4351 aros_gcc_ld=`$CC -print-prog-name=ld`
4352 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4353 set dummy `basename $aros_gcc_ld`; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_path_aros_host_ld+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 case $aros_host_ld in
4360 [\\/]* | ?:[\\/]*)
4361 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in `dirname $aros_gcc_ld`
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4380 esac
4382 aros_host_ld=$ac_cv_path_aros_host_ld
4383 if test -n "$aros_host_ld"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4385 $as_echo "$aros_host_ld" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4393 if test "$aros_host_ld" = ""; then
4394 # Extract the first word of "ld", so it can be a program name with args.
4395 set dummy ld; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_path_aros_host_ld+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 case $aros_host_ld in
4402 [\\/]* | ?:[\\/]*)
4403 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4417 done
4418 done
4419 IFS=$as_save_IFS
4422 esac
4424 aros_host_ld=$ac_cv_path_aros_host_ld
4425 if test -n "$aros_host_ld"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4427 $as_echo "$aros_host_ld" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4435 if test "$aros_host_ld" = ""; then
4436 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4438 aros_host_make="make"
4439 aros_host_cflags=$CFLAGS
4440 aros_host_cxxflags=$CXXFLAGS
4441 aros_host_ldflags=$LDFLAGS
4442 aros_host_debug="-g -O0"
4443 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4444 aros_host_mkargs="--no-print-directory"
4445 aros_host_exe_suffix="$EXEEXT"
4446 aros_host_lib_suffix=""
4448 # Ignore all compliance, AROS ROMs = 0
4449 # KickStart v1.0 = 30
4450 # KickStart v1.3 = 34
4451 # KickStart v2.0 = 37
4452 # KickStart v3.0 = 39
4453 # KickStart v3.1 = 40
4454 # AmigaOS v3.5 = 44
4455 aros_amigaos_compliance=0
4457 for ac_prog in aclocal aclocal19 aclocal-1.9
4459 # Extract the first word of "$ac_prog", so it can be a program name with args.
4460 set dummy $ac_prog; ac_word=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if test -n "$aros_host_aclocal"; then
4467 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 ac_cv_prog_aros_host_aclocal="$ac_prog"
4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4480 done
4481 done
4482 IFS=$as_save_IFS
4486 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4487 if test -n "$aros_host_aclocal"; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4489 $as_echo "$aros_host_aclocal" >&6; }
4490 else
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4496 test -n "$aros_host_aclocal" && break
4497 done
4499 for ac_prog in autoconf autoconf259 autoconf253
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -n "$aros_host_autoconf"; then
4509 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_prog_aros_host_autoconf="$ac_prog"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4522 done
4523 done
4524 IFS=$as_save_IFS
4528 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4529 if test -n "$aros_host_autoconf"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4531 $as_echo "$aros_host_autoconf" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4538 test -n "$aros_host_autoconf" && break
4539 done
4541 for ac_prog in autoheader autoheader259 autoheader253
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$aros_host_autoheader"; then
4551 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_aros_host_autoheader="$ac_prog"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4571 if test -n "$aros_host_autoheader"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4573 $as_echo "$aros_host_autoheader" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4580 test -n "$aros_host_autoheader" && break
4581 done
4583 for ac_prog in automake automake19 automake-1.9
4585 # Extract the first word of "$ac_prog", so it can be a program name with args.
4586 set dummy $ac_prog; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if ${ac_cv_prog_aros_host_automake+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$aros_host_automake"; then
4593 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_aros_host_automake="$ac_prog"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4606 done
4607 done
4608 IFS=$as_save_IFS
4612 aros_host_automake=$ac_cv_prog_aros_host_automake
4613 if test -n "$aros_host_automake"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4615 $as_echo "$aros_host_automake" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4622 test -n "$aros_host_automake" && break
4623 done
4626 if test "$aros_host_aclocal" = ""; then
4627 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4629 if test "$aros_host_automake" = ""; then
4630 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4633 case "$aros_host_cc" in
4634 *gcc*)
4635 aros_host_cc_pipe="-pipe"
4637 icc)
4638 aros_host_cc_pipe=""
4641 aros_host_cc_pipe=""
4643 esac
4645 aros_kernel_cc_includes=""
4646 aros_target_cc_includes=""
4647 host_cc_elf=yes
4649 # ----------------------------------------------------------------------------------------
4650 # Host-specific defaults
4652 # This is the main host configuration section. It is where the host
4653 # can change the values of any variables it needs to change. We do
4654 # not look at anything that compiles to the target yet, we'll get
4655 # to that later.
4657 case "$host_os" in
4658 aros*)
4659 aros_host_arch="aros"
4660 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4661 case "$host_cpu" in
4662 *i?86*)
4663 aros_host_cpu="i386"
4665 *x86_64*)
4666 aros_host_cpu="x86_64"
4668 *powerpc*)
4669 aros_host_cpu="ppc"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4673 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4674 aros_host_cpu="$host_cpu"
4676 esac
4679 linux*)
4680 aros_host_arch="linux"
4681 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4682 android_build_os="linux-x86"
4683 android_tool="android"
4684 default_android_sdk="/opt/android-sdk-linux_x86"
4685 case "$host_cpu" in
4686 *i?86*)
4687 aros_host_cpu="i386"
4689 *x86_64*)
4690 aros_host_cpu="x86_64"
4692 *m68k*)
4693 aros_host_cpu="m68k"
4695 *powerpc*)
4696 aros_host_cpu="ppc"
4698 *arm*)
4699 aros_host_cpu="arm"
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4703 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4704 aros_host_cpu="$host_cpu"
4706 esac
4709 freebsd*)
4710 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4711 aros_host_make="gmake"
4712 aros_host_arch="freebsd"
4713 aros_host_cpu="i386"
4715 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4717 case $host_os in
4718 freebsd[234]*)
4719 aros_object_format="elf_i386"
4723 aros_object_format="elf_i386_fbsd"
4725 esac
4729 darwin*)
4730 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4731 aros_host_arch="darwin"
4732 host_cc_elf=no
4733 android_build_os="darwin-x86"
4734 android_tool="android"
4735 default_android_sdk="/android-sdk-mac_x86"
4736 case "$host_cpu" in
4737 *i?86*)
4738 aros_host_cpu="i386"
4740 *x86_64*)
4741 aros_host_cpu="x86_64"
4743 *powerpc*)
4744 aros_host_cpu="ppc"
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4748 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4749 aros_host_cpu="$host_cpu"
4751 esac
4753 aros_host_ldflags="$aros_host_ldflags -liconv"
4757 dragonfly*)
4758 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4759 aros_host_make="gmake"
4760 aros_host_arch="dragonfly"
4761 case $host_cpu in
4762 *i?86*)
4763 aros_host_cpu="i386"
4765 *amd64*)
4766 aros_host_cpu="x86_64"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4770 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4771 aros_host_cpu="$host_cpu"
4773 esac
4776 netbsd*)
4777 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4778 aros_host_make="gmake"
4779 aros_host_arch="netbsd"
4780 case "$host_cpu" in
4781 *i?86*)
4782 aros_host_cpu="i386"
4784 *m68k*)
4785 aros_host_cpu="m68k"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4789 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4790 aros_host_cpu="$host_cpu"
4792 esac
4793 aros_host_lib_suffix=".0.0"
4796 openbsd*)
4797 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4798 aros_host_make="gmake"
4799 aros_host_arch="openbsd"
4800 case "$host_cpu" in
4801 *i?86*)
4802 aros_host_cpu="i386"
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4806 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4807 aros_host_cpu="$host_cpu"
4809 esac
4812 solaris*)
4813 aros_host_arch="solaris"
4814 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4815 case "$host_cpu" in
4816 *i?86*)
4817 aros_host_cpu="i386"
4819 *sparc*)
4820 aros_host_cpu="sparc"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4824 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4825 aros_host_cpu="$host_cpu"
4827 esac
4830 morphos*)
4831 aros_host_arch="morphos"
4832 aros_host_cpu="ppc"
4833 host_cc_elf=no
4836 amiga*)
4837 aros_host_arch="amiga"
4838 host_cc_elf=no
4839 SORT="/gg/bin/sort"
4840 TEST="/gg/bin/test"
4841 UNIQ="/gg/bin/uniq"
4842 FOR="for"
4843 TOUCH="/gg/bin/touch"
4844 case "$host_cpu" in
4845 *m68k*)
4846 aros_host_cpu="m68k"
4848 *powerpc*)
4849 aros_host_cpu="ppc"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4853 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4854 aros_host_cpu="$host_cpu"
4856 esac
4859 cygwin*)
4860 aros_host_arch="cygwin"
4861 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4862 host_cc_elf=no
4863 android_build_os="windows"
4864 android_tool="android.bat"
4865 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4867 case "$host_cpu" in
4868 *i?86*)
4869 aros_host_cpu="i386"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4873 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4874 aros_host_cpu="$host_cpu"
4876 esac
4879 mingw32*)
4880 aros_host_arch="mingw32"
4881 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4882 host_cc_elf=no
4883 android_build_os="windows"
4884 android_tool="android.bat"
4885 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4887 case "$host_cpu" in
4888 *i?86*)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4891 $as_echo_n "checking for Windows native gcc target... " >&6; }
4892 host_cpu=`gcc -dumpmachine`
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4894 $as_echo "$host_cpu" >&6; }
4897 esac
4899 case "$host_cpu" in
4900 *i?86*)
4901 aros_host_cpu="i386"
4904 mingw32*)
4905 aros_host_cpu="i386"
4908 *x86_64*)
4909 aros_host_cpu="x86_64"
4910 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4915 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4916 aros_host_cpu="$host_cpu"
4918 esac
4921 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4923 esac
4925 # Extract the first word of "ar", so it can be a program name with args.
4926 set dummy ar; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_aros_host_ar+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$aros_host_ar"; then
4933 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_aros_host_ar="ar cr"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4952 aros_host_ar=$ac_cv_prog_aros_host_ar
4953 if test -n "$aros_host_ar"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4955 $as_echo "$aros_host_ar" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 if test "$aros_host_ar" = ""; then
4963 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4965 # Extract the first word of "ranlib", so it can be a program name with args.
4966 set dummy ranlib; 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_ranlib+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if test -n "$aros_host_ranlib"; then
4973 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_aros_host_ranlib="ranlib "
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_ranlib=$ac_cv_prog_aros_host_ranlib
4993 if test -n "$aros_host_ranlib"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4995 $as_echo "$aros_host_ranlib" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 if test "$aros_host_ranlib" = ""; then
5003 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5005 # Extract the first word of "strip", so it can be a program name with args.
5006 set dummy strip; 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_strip+:} false; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$aros_host_strip"; then
5013 ac_cv_prog_aros_host_strip="$aros_host_strip" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_aros_host_strip="strip "
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_strip=$ac_cv_prog_aros_host_strip
5033 if test -n "$aros_host_strip"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5035 $as_echo "$aros_host_strip" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 if test "$aros_host_strip" = ""; then
5043 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5046 # Extract the first word of "rm", so it can be a program name with args.
5047 set dummy rm; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_RM+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$RM"; then
5054 ac_cv_prog_RM="$RM" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_RM="rm -rf"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5073 RM=$ac_cv_prog_RM
5074 if test -n "$RM"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5076 $as_echo "$RM" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 if test "$RM" = ""; then
5084 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5086 # Extract the first word of "cp", so it can be a program name with args.
5087 set dummy cp; 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_CP+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$CP"; then
5094 ac_cv_prog_CP="$CP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_CP="cp "
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 CP=$ac_cv_prog_CP
5114 if test -n "$CP"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5116 $as_echo "$CP" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5123 if test "$CP" = ""; then
5124 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5126 # Extract the first word of "mv", so it can be a program name with args.
5127 set dummy mv; 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_MV+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$MV"; then
5134 ac_cv_prog_MV="$MV" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_MV="mv "
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 MV=$ac_cv_prog_MV
5154 if test -n "$MV"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5156 $as_echo "$MV" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5163 if test "$MV" = ""; then
5164 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5166 # Extract the first word of "echo", so it can be a program name with args.
5167 set dummy echo; 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_ECHO+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$ECHO"; then
5174 ac_cv_prog_ECHO="$ECHO" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_prog_ECHO="echo "
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 ECHO=$ac_cv_prog_ECHO
5194 if test -n "$ECHO"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5196 $as_echo "$ECHO" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 if test "$ECHO" = ""; then
5204 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5206 # Extract the first word of "mkdir", so it can be a program name with args.
5207 set dummy mkdir; 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_MKDIR+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$MKDIR"; then
5214 ac_cv_prog_MKDIR="$MKDIR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_MKDIR="mkdir -p"
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 MKDIR=$ac_cv_prog_MKDIR
5234 if test -n "$MKDIR"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5236 $as_echo "$MKDIR" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 if test "$MKDIR" = ""; then
5244 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5246 # Extract the first word of "touch", so it can be a program name with args.
5247 set dummy touch; 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_TOUCH+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$TOUCH"; then
5254 ac_cv_prog_TOUCH="$TOUCH" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_TOUCH="touch "
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 TOUCH=$ac_cv_prog_TOUCH
5274 if test -n "$TOUCH"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5276 $as_echo "$TOUCH" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 if test "$TOUCH" = ""; then
5284 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5286 # Extract the first word of "sort", so it can be a program name with args.
5287 set dummy sort; 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_SORT+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -n "$SORT"; then
5294 ac_cv_prog_SORT="$SORT" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_prog_SORT="sort "
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 SORT=$ac_cv_prog_SORT
5314 if test -n "$SORT"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5316 $as_echo "$SORT" >&6; }
5317 else
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5323 if test "$SORT" = ""; then
5324 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5326 # Extract the first word of "uniq", so it can be a program name with args.
5327 set dummy uniq; 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_UNIQ+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 if test -n "$UNIQ"; then
5334 ac_cv_prog_UNIQ="$UNIQ" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_prog_UNIQ="uniq "
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 UNIQ=$ac_cv_prog_UNIQ
5354 if test -n "$UNIQ"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5356 $as_echo "$UNIQ" >&6; }
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5363 if test "$UNIQ" = ""; then
5364 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5366 # Extract the first word of "true", so it can be a program name with args.
5367 set dummy true; 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_NOP+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$NOP"; then
5374 ac_cv_prog_NOP="$NOP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_prog_NOP="true "
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 NOP=$ac_cv_prog_NOP
5394 if test -n "$NOP"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5396 $as_echo "$NOP" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 if test "$NOP" = ""; then
5404 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5406 # Extract the first word of "cat", so it can be a program name with args.
5407 set dummy cat; 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_CAT+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$CAT"; then
5414 ac_cv_prog_CAT="$CAT" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_prog_CAT="cat "
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 CAT=$ac_cv_prog_CAT
5434 if test -n "$CAT"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5436 $as_echo "$CAT" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5443 if test "$CAT" = ""; then
5444 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5446 # Extract the first word of "bison", so it can be a program name with args.
5447 set dummy bison; 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_BISON+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$BISON"; then
5454 ac_cv_prog_BISON="$BISON" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_BISON="bison "
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 BISON=$ac_cv_prog_BISON
5474 if test -n "$BISON"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5476 $as_echo "$BISON" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 if test "$BISON" = ""; then
5484 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5486 # Extract the first word of "flex", so it can be a program name with args.
5487 set dummy flex; 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_FLEX+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$FLEX"; then
5494 ac_cv_prog_FLEX="$FLEX" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_FLEX="flex "
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 FLEX=$ac_cv_prog_FLEX
5514 if test -n "$FLEX"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5516 $as_echo "$FLEX" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5523 if test "$FLEX" = ""; then
5524 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5526 # Extract the first word of "pngtopnm", so it can be a program name with args.
5527 set dummy pngtopnm; 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_PNGTOPNM+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$PNGTOPNM"; then
5534 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_prog_PNGTOPNM="pngtopnm "
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 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5554 if test -n "$PNGTOPNM"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5556 $as_echo "$PNGTOPNM" >&6; }
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5563 if test "$PNGTOPNM" = ""; then
5564 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5566 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5567 set dummy ppmtoilbm; 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_PPMTOILBM+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 if test -n "$PPMTOILBM"; then
5574 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_prog_PPMTOILBM="ppmtoilbm "
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 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5594 if test -n "$PPMTOILBM"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5596 $as_echo "$PPMTOILBM" >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 if test "$PPMTOILBM" = ""; then
5604 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5606 # Extract the first word of "sed", so it can be a program name with args.
5607 set dummy sed; 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_SED+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 if test -n "$SED"; then
5614 ac_cv_prog_SED="$SED" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 ac_cv_prog_SED="sed "
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 SED=$ac_cv_prog_SED
5634 if test -n "$SED"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5636 $as_echo "$SED" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5643 if test "$SED" = ""; then
5644 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5646 # Extract the first word of "chmod", so it can be a program name with args.
5647 set dummy chmod; 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_CHMOD+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if test -n "$CHMOD"; then
5654 ac_cv_prog_CHMOD="$CHMOD" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_prog_CHMOD="chmod "
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 CHMOD=$ac_cv_prog_CHMOD
5674 if test -n "$CHMOD"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5676 $as_echo "$CHMOD" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5683 if test "$CHMOD" = ""; then
5684 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5686 # Extract the first word of "patch", so it can be a program name with args.
5687 set dummy patch; 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_PATCH+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 if test -n "$PATCH"; then
5694 ac_cv_prog_PATCH="$PATCH" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_PATCH="patch "
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 PATCH=$ac_cv_prog_PATCH
5714 if test -n "$PATCH"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5716 $as_echo "$PATCH" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5723 if test "$PATCH" = ""; then
5724 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5733 if test -n "$PYTHON"; then
5734 # If the user set $PYTHON, use it and don't search something else.
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5736 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5737 prog="import sys
5738 # split strings by '.' and convert to numeric. Append some zeros
5739 # because we need at least 4 digits for the hex conversion.
5740 # map returns an iterator in Python 3.0 and a list in 2.x
5741 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5742 minverhex = 0
5743 # xrange is not present in Python 3.0 and range returns an iterator
5744 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5745 sys.exit(sys.hexversion < minverhex)"
5746 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5747 ($PYTHON -c "$prog") >&5 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; then :
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5752 $as_echo "yes" >&6; }
5753 else
5754 as_fn_error $? "too old" "$LINENO" 5
5756 am_display_PYTHON=$PYTHON
5757 else
5758 # Otherwise, try each interpreter until we find one that satisfies
5759 # VERSION.
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5761 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5762 if ${am_cv_pathless_PYTHON+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5766 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5767 test "$am_cv_pathless_PYTHON" = none && break
5768 prog="import sys
5769 # split strings by '.' and convert to numeric. Append some zeros
5770 # because we need at least 4 digits for the hex conversion.
5771 # map returns an iterator in Python 3.0 and a list in 2.x
5772 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5773 minverhex = 0
5774 # xrange is not present in Python 3.0 and range returns an iterator
5775 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5776 sys.exit(sys.hexversion < minverhex)"
5777 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5778 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; then :
5782 break
5784 done
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5787 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5788 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5789 if test "$am_cv_pathless_PYTHON" = none; then
5790 PYTHON=:
5791 else
5792 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5793 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_path_PYTHON+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 case $PYTHON in
5800 [\\/]* | ?:[\\/]*)
5801 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5815 done
5816 done
5817 IFS=$as_save_IFS
5820 esac
5822 PYTHON=$ac_cv_path_PYTHON
5823 if test -n "$PYTHON"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5825 $as_echo "$PYTHON" >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5833 am_display_PYTHON=$am_cv_pathless_PYTHON
5837 if test "$PYTHON" = :; then
5838 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5839 else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5843 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5844 if ${am_cv_python_version+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5850 $as_echo "$am_cv_python_version" >&6; }
5851 PYTHON_VERSION=$am_cv_python_version
5855 PYTHON_PREFIX='${prefix}'
5857 PYTHON_EXEC_PREFIX='${exec_prefix}'
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5862 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5863 if ${am_cv_python_platform+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5869 $as_echo "$am_cv_python_platform" >&6; }
5870 PYTHON_PLATFORM=$am_cv_python_platform
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5876 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5877 if ${am_cv_python_pythondir+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test "x$prefix" = xNONE
5881 then
5882 am_py_prefix=$ac_default_prefix
5883 else
5884 am_py_prefix=$prefix
5886 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
5887 case $am_cv_python_pythondir in
5888 $am_py_prefix*)
5889 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5890 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5893 case $am_py_prefix in
5894 /usr|/System*) ;;
5896 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5898 esac
5900 esac
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5904 $as_echo "$am_cv_python_pythondir" >&6; }
5905 pythondir=$am_cv_python_pythondir
5909 pkgpythondir=\${pythondir}/$PACKAGE
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5913 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5914 if ${am_cv_python_pyexecdir+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 if test "x$exec_prefix" = xNONE
5918 then
5919 am_py_exec_prefix=$am_py_prefix
5920 else
5921 am_py_exec_prefix=$exec_prefix
5923 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
5924 case $am_cv_python_pyexecdir in
5925 $am_py_exec_prefix*)
5926 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5927 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5930 case $am_py_exec_prefix in
5931 /usr|/System*) ;;
5933 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5935 esac
5937 esac
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5941 $as_echo "$am_cv_python_pyexecdir" >&6; }
5942 pyexecdir=$am_cv_python_pyexecdir
5946 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5954 FOR=for
5956 IF=if
5958 TEST=test
5960 CMP=cmp
5964 # Check for some includes for the X11 HIDD and the kernel
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5968 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5969 if ${ac_cv_path_GREP+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 if test -z "$GREP"; then
5973 ac_path_GREP_found=false
5974 # Loop through the user's path and test for each of PROGNAME-LIST
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_prog in grep ggrep; do
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5983 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5984 # Check for GNU ac_path_GREP and select it if it is found.
5985 # Check for GNU $ac_path_GREP
5986 case `"$ac_path_GREP" --version 2>&1` in
5987 *GNU*)
5988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5990 ac_count=0
5991 $as_echo_n 0123456789 >"conftest.in"
5992 while :
5994 cat "conftest.in" "conftest.in" >"conftest.tmp"
5995 mv "conftest.tmp" "conftest.in"
5996 cp "conftest.in" "conftest.nl"
5997 $as_echo 'GREP' >> "conftest.nl"
5998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6000 as_fn_arith $ac_count + 1 && ac_count=$as_val
6001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6002 # Best one so far, save it but keep looking for a better one
6003 ac_cv_path_GREP="$ac_path_GREP"
6004 ac_path_GREP_max=$ac_count
6006 # 10*(2^10) chars as input seems more than enough
6007 test $ac_count -gt 10 && break
6008 done
6009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6010 esac
6012 $ac_path_GREP_found && break 3
6013 done
6014 done
6015 done
6016 IFS=$as_save_IFS
6017 if test -z "$ac_cv_path_GREP"; then
6018 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6020 else
6021 ac_cv_path_GREP=$GREP
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6026 $as_echo "$ac_cv_path_GREP" >&6; }
6027 GREP="$ac_cv_path_GREP"
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6031 $as_echo_n "checking for egrep... " >&6; }
6032 if ${ac_cv_path_EGREP+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6036 then ac_cv_path_EGREP="$GREP -E"
6037 else
6038 if test -z "$EGREP"; then
6039 ac_path_EGREP_found=false
6040 # Loop through the user's path and test for each of PROGNAME-LIST
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_prog in egrep; do
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6049 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6050 # Check for GNU ac_path_EGREP and select it if it is found.
6051 # Check for GNU $ac_path_EGREP
6052 case `"$ac_path_EGREP" --version 2>&1` in
6053 *GNU*)
6054 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6056 ac_count=0
6057 $as_echo_n 0123456789 >"conftest.in"
6058 while :
6060 cat "conftest.in" "conftest.in" >"conftest.tmp"
6061 mv "conftest.tmp" "conftest.in"
6062 cp "conftest.in" "conftest.nl"
6063 $as_echo 'EGREP' >> "conftest.nl"
6064 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6066 as_fn_arith $ac_count + 1 && ac_count=$as_val
6067 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6068 # Best one so far, save it but keep looking for a better one
6069 ac_cv_path_EGREP="$ac_path_EGREP"
6070 ac_path_EGREP_max=$ac_count
6072 # 10*(2^10) chars as input seems more than enough
6073 test $ac_count -gt 10 && break
6074 done
6075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6076 esac
6078 $ac_path_EGREP_found && break 3
6079 done
6080 done
6081 done
6082 IFS=$as_save_IFS
6083 if test -z "$ac_cv_path_EGREP"; then
6084 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6086 else
6087 ac_cv_path_EGREP=$EGREP
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6093 $as_echo "$ac_cv_path_EGREP" >&6; }
6094 EGREP="$ac_cv_path_EGREP"
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6098 $as_echo_n "checking for ANSI C header files... " >&6; }
6099 if ${ac_cv_header_stdc+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <stdlib.h>
6105 #include <stdarg.h>
6106 #include <string.h>
6107 #include <float.h>
6110 main ()
6114 return 0;
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"; then :
6118 ac_cv_header_stdc=yes
6119 else
6120 ac_cv_header_stdc=no
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 if test $ac_cv_header_stdc = yes; then
6125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 #include <string.h>
6130 _ACEOF
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "memchr" >/dev/null 2>&1; then :
6134 else
6135 ac_cv_header_stdc=no
6137 rm -f conftest*
6141 if test $ac_cv_header_stdc = yes; then
6142 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 #include <stdlib.h>
6147 _ACEOF
6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6149 $EGREP "free" >/dev/null 2>&1; then :
6151 else
6152 ac_cv_header_stdc=no
6154 rm -f conftest*
6158 if test $ac_cv_header_stdc = yes; then
6159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6160 if test "$cross_compiling" = yes; then :
6162 else
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 #include <ctype.h>
6166 #include <stdlib.h>
6167 #if ((' ' & 0x0FF) == 0x020)
6168 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6169 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6170 #else
6171 # define ISLOWER(c) \
6172 (('a' <= (c) && (c) <= 'i') \
6173 || ('j' <= (c) && (c) <= 'r') \
6174 || ('s' <= (c) && (c) <= 'z'))
6175 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6176 #endif
6178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6180 main ()
6182 int i;
6183 for (i = 0; i < 256; i++)
6184 if (XOR (islower (i), ISLOWER (i))
6185 || toupper (i) != TOUPPER (i))
6186 return 2;
6187 return 0;
6189 _ACEOF
6190 if ac_fn_c_try_run "$LINENO"; then :
6192 else
6193 ac_cv_header_stdc=no
6195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6196 conftest.$ac_objext conftest.beam conftest.$ac_ext
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6202 $as_echo "$ac_cv_header_stdc" >&6; }
6203 if test $ac_cv_header_stdc = yes; then
6205 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6210 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6211 inttypes.h stdint.h unistd.h
6212 do :
6213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6214 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6217 cat >>confdefs.h <<_ACEOF
6218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219 _ACEOF
6223 done
6226 for ac_header in sys/ipc.h sys/shm.h \
6227 sys/mmap.h sys/mman.h sysexits.h \
6228 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6230 do :
6231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6232 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6233 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6234 cat >>confdefs.h <<_ACEOF
6235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6236 _ACEOF
6240 done
6243 for ac_header in sys/mount.h
6244 do :
6245 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6247 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6248 cat >>confdefs.h <<_ACEOF
6249 #define HAVE_SYS_MOUNT_H 1
6250 _ACEOF
6254 done
6257 ac_header_dirent=no
6258 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6259 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6261 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6262 if eval \${$as_ac_Header+:} false; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6268 #include <$ac_hdr>
6271 main ()
6273 if ((DIR *) 0)
6274 return 0;
6276 return 0;
6278 _ACEOF
6279 if ac_fn_c_try_compile "$LINENO"; then :
6280 eval "$as_ac_Header=yes"
6281 else
6282 eval "$as_ac_Header=no"
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 eval ac_res=\$$as_ac_Header
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6288 $as_echo "$ac_res" >&6; }
6289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6290 cat >>confdefs.h <<_ACEOF
6291 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6292 _ACEOF
6294 ac_header_dirent=$ac_hdr; break
6297 done
6298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6299 if test $ac_header_dirent = dirent.h; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6301 $as_echo_n "checking for library containing opendir... " >&6; }
6302 if ${ac_cv_search_opendir+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 ac_func_search_save_LIBS=$LIBS
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6309 /* Override any GCC internal prototype to avoid an error.
6310 Use char because int might match the return type of a GCC
6311 builtin and then its argument prototype would still apply. */
6312 #ifdef __cplusplus
6313 extern "C"
6314 #endif
6315 char opendir ();
6317 main ()
6319 return opendir ();
6321 return 0;
6323 _ACEOF
6324 for ac_lib in '' dir; do
6325 if test -z "$ac_lib"; then
6326 ac_res="none required"
6327 else
6328 ac_res=-l$ac_lib
6329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6331 if ac_fn_c_try_link "$LINENO"; then :
6332 ac_cv_search_opendir=$ac_res
6334 rm -f core conftest.err conftest.$ac_objext \
6335 conftest$ac_exeext
6336 if ${ac_cv_search_opendir+:} false; then :
6337 break
6339 done
6340 if ${ac_cv_search_opendir+:} false; then :
6342 else
6343 ac_cv_search_opendir=no
6345 rm conftest.$ac_ext
6346 LIBS=$ac_func_search_save_LIBS
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6349 $as_echo "$ac_cv_search_opendir" >&6; }
6350 ac_res=$ac_cv_search_opendir
6351 if test "$ac_res" != no; then :
6352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6358 $as_echo_n "checking for library containing opendir... " >&6; }
6359 if ${ac_cv_search_opendir+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 ac_func_search_save_LIBS=$LIBS
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6366 /* Override any GCC internal prototype to avoid an error.
6367 Use char because int might match the return type of a GCC
6368 builtin and then its argument prototype would still apply. */
6369 #ifdef __cplusplus
6370 extern "C"
6371 #endif
6372 char opendir ();
6374 main ()
6376 return opendir ();
6378 return 0;
6380 _ACEOF
6381 for ac_lib in '' x; do
6382 if test -z "$ac_lib"; then
6383 ac_res="none required"
6384 else
6385 ac_res=-l$ac_lib
6386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6388 if ac_fn_c_try_link "$LINENO"; then :
6389 ac_cv_search_opendir=$ac_res
6391 rm -f core conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext
6393 if ${ac_cv_search_opendir+:} false; then :
6394 break
6396 done
6397 if ${ac_cv_search_opendir+:} false; then :
6399 else
6400 ac_cv_search_opendir=no
6402 rm conftest.$ac_ext
6403 LIBS=$ac_func_search_save_LIBS
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6406 $as_echo "$ac_cv_search_opendir" >&6; }
6407 ac_res=$ac_cv_search_opendir
6408 if test "$ac_res" != no; then :
6409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6416 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6417 if ${ac_cv_header_stat_broken+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 #include <sys/types.h>
6423 #include <sys/stat.h>
6425 #if defined S_ISBLK && defined S_IFDIR
6426 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6427 #endif
6429 #if defined S_ISBLK && defined S_IFCHR
6430 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6431 #endif
6433 #if defined S_ISLNK && defined S_IFREG
6434 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6435 #endif
6437 #if defined S_ISSOCK && defined S_IFREG
6438 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6439 #endif
6441 _ACEOF
6442 if ac_fn_c_try_compile "$LINENO"; then :
6443 ac_cv_header_stat_broken=no
6444 else
6445 ac_cv_header_stat_broken=yes
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6450 $as_echo "$ac_cv_header_stat_broken" >&6; }
6451 if test $ac_cv_header_stat_broken = yes; then
6453 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6458 $as_echo_n "checking for ANSI C header files... " >&6; }
6459 if ${ac_cv_header_stdc+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <stdlib.h>
6465 #include <stdarg.h>
6466 #include <string.h>
6467 #include <float.h>
6470 main ()
6474 return 0;
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 ac_cv_header_stdc=yes
6479 else
6480 ac_cv_header_stdc=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 if test $ac_cv_header_stdc = yes; then
6485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 #include <string.h>
6490 _ACEOF
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492 $EGREP "memchr" >/dev/null 2>&1; then :
6494 else
6495 ac_cv_header_stdc=no
6497 rm -f conftest*
6501 if test $ac_cv_header_stdc = yes; then
6502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <stdlib.h>
6507 _ACEOF
6508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6509 $EGREP "free" >/dev/null 2>&1; then :
6511 else
6512 ac_cv_header_stdc=no
6514 rm -f conftest*
6518 if test $ac_cv_header_stdc = yes; then
6519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6520 if test "$cross_compiling" = yes; then :
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #include <ctype.h>
6526 #include <stdlib.h>
6527 #if ((' ' & 0x0FF) == 0x020)
6528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6530 #else
6531 # define ISLOWER(c) \
6532 (('a' <= (c) && (c) <= 'i') \
6533 || ('j' <= (c) && (c) <= 'r') \
6534 || ('s' <= (c) && (c) <= 'z'))
6535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6536 #endif
6538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6540 main ()
6542 int i;
6543 for (i = 0; i < 256; i++)
6544 if (XOR (islower (i), ISLOWER (i))
6545 || toupper (i) != TOUPPER (i))
6546 return 2;
6547 return 0;
6549 _ACEOF
6550 if ac_fn_c_try_run "$LINENO"; then :
6552 else
6553 ac_cv_header_stdc=no
6555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6556 conftest.$ac_objext conftest.beam conftest.$ac_ext
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6562 $as_echo "$ac_cv_header_stdc" >&6; }
6563 if test $ac_cv_header_stdc = yes; then
6565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6570 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6571 if ${ac_cv_header_sys_wait_h+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #include <sys/types.h>
6577 #include <sys/wait.h>
6578 #ifndef WEXITSTATUS
6579 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6580 #endif
6581 #ifndef WIFEXITED
6582 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6583 #endif
6586 main ()
6588 int s;
6589 wait (&s);
6590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6592 return 0;
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 ac_cv_header_sys_wait_h=yes
6597 else
6598 ac_cv_header_sys_wait_h=no
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6603 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6604 if test $ac_cv_header_sys_wait_h = yes; then
6606 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6611 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6612 if ${ac_cv_header_time+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 #include <sys/types.h>
6618 #include <sys/time.h>
6619 #include <time.h>
6622 main ()
6624 if ((struct tm *) 0)
6625 return 0;
6627 return 0;
6629 _ACEOF
6630 if ac_fn_c_try_compile "$LINENO"; then :
6631 ac_cv_header_time=yes
6632 else
6633 ac_cv_header_time=no
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6638 $as_echo "$ac_cv_header_time" >&6; }
6639 if test $ac_cv_header_time = yes; then
6641 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6645 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6646 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6648 cat >>confdefs.h <<_ACEOF
6649 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6650 _ACEOF
6653 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6658 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6659 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6661 cat >>confdefs.h <<_ACEOF
6662 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6663 _ACEOF
6666 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6668 else
6669 case " $LIBOBJS " in
6670 *" fileblocks.$ac_objext "* ) ;;
6671 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6673 esac
6678 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6679 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6681 cat >>confdefs.h <<_ACEOF
6682 #define HAVE_STRUCT_STAT_ST_RDEV 1
6683 _ACEOF
6686 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6692 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6693 if ${ac_cv_struct_tm+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 #include <sys/types.h>
6699 #include <time.h>
6702 main ()
6704 struct tm tm;
6705 int *p = &tm.tm_sec;
6706 return !p;
6708 return 0;
6710 _ACEOF
6711 if ac_fn_c_try_compile "$LINENO"; then :
6712 ac_cv_struct_tm=time.h
6713 else
6714 ac_cv_struct_tm=sys/time.h
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6719 $as_echo "$ac_cv_struct_tm" >&6; }
6720 if test $ac_cv_struct_tm = sys/time.h; then
6722 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6726 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6727 #include <$ac_cv_struct_tm>
6730 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6732 cat >>confdefs.h <<_ACEOF
6733 #define HAVE_STRUCT_TM_TM_ZONE 1
6734 _ACEOF
6739 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6741 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6743 else
6744 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6746 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6747 ac_have_decl=1
6748 else
6749 ac_have_decl=0
6752 cat >>confdefs.h <<_ACEOF
6753 #define HAVE_DECL_TZNAME $ac_have_decl
6754 _ACEOF
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6757 $as_echo_n "checking for tzname... " >&6; }
6758 if ${ac_cv_var_tzname+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 #include <time.h>
6764 #if !HAVE_DECL_TZNAME
6765 extern char *tzname[];
6766 #endif
6769 main ()
6771 return tzname[0][0];
6773 return 0;
6775 _ACEOF
6776 if ac_fn_c_try_link "$LINENO"; then :
6777 ac_cv_var_tzname=yes
6778 else
6779 ac_cv_var_tzname=no
6781 rm -f core conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6785 $as_echo "$ac_cv_var_tzname" >&6; }
6786 if test $ac_cv_var_tzname = yes; then
6788 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6793 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6794 if test "x$ac_cv_type_off_t" = xyes; then :
6796 else
6798 cat >>confdefs.h <<_ACEOF
6799 #define off_t long int
6800 _ACEOF
6804 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6805 if test "x$ac_cv_type_pid_t" = xyes; then :
6807 else
6809 cat >>confdefs.h <<_ACEOF
6810 #define pid_t int
6811 _ACEOF
6815 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6816 if test "x$ac_cv_type_size_t" = xyes; then :
6818 else
6820 cat >>confdefs.h <<_ACEOF
6821 #define size_t unsigned int
6822 _ACEOF
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6827 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6828 if ${ac_cv_type_uid_t+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 #include <sys/types.h>
6835 _ACEOF
6836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837 $EGREP "uid_t" >/dev/null 2>&1; then :
6838 ac_cv_type_uid_t=yes
6839 else
6840 ac_cv_type_uid_t=no
6842 rm -f conftest*
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6846 $as_echo "$ac_cv_type_uid_t" >&6; }
6847 if test $ac_cv_type_uid_t = no; then
6849 $as_echo "#define uid_t int" >>confdefs.h
6852 $as_echo "#define gid_t int" >>confdefs.h
6857 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6858 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6860 cat >>confdefs.h <<_ACEOF
6861 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6862 _ACEOF
6868 # Look for some functions
6869 for ac_func in getpagesize kqueue statfs statvfs \
6870 clone kse_create rfork_thread thr_create sa_register \
6871 getcontext makecontext setcontext sigaltstack swapcontext
6872 do :
6873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6874 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6875 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6876 cat >>confdefs.h <<_ACEOF
6877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6878 _ACEOF
6881 done
6887 for ac_header in $ac_header_list
6888 do :
6889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6890 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6893 cat >>confdefs.h <<_ACEOF
6894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895 _ACEOF
6899 done
6908 for ac_func in getpagesize
6909 do :
6910 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6911 if test "x$ac_cv_func_getpagesize" = xyes; then :
6912 cat >>confdefs.h <<_ACEOF
6913 #define HAVE_GETPAGESIZE 1
6914 _ACEOF
6917 done
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6920 $as_echo_n "checking for working mmap... " >&6; }
6921 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 if test "$cross_compiling" = yes; then :
6925 ac_cv_func_mmap_fixed_mapped=no
6926 else
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929 $ac_includes_default
6930 /* malloc might have been renamed as rpl_malloc. */
6931 #undef malloc
6933 /* Thanks to Mike Haertel and Jim Avera for this test.
6934 Here is a matrix of mmap possibilities:
6935 mmap private not fixed
6936 mmap private fixed at somewhere currently unmapped
6937 mmap private fixed at somewhere already mapped
6938 mmap shared not fixed
6939 mmap shared fixed at somewhere currently unmapped
6940 mmap shared fixed at somewhere already mapped
6941 For private mappings, we should verify that changes cannot be read()
6942 back from the file, nor mmap's back from the file at a different
6943 address. (There have been systems where private was not correctly
6944 implemented like the infamous i386 svr4.0, and systems where the
6945 VM page cache was not coherent with the file system buffer cache
6946 like early versions of FreeBSD and possibly contemporary NetBSD.)
6947 For shared mappings, we should conversely verify that changes get
6948 propagated back to all the places they're supposed to be.
6950 Grep wants private fixed already mapped.
6951 The main things grep needs to know about mmap are:
6952 * does it exist and is it safe to write into the mmap'd area
6953 * how to use it (BSD variants) */
6955 #include <fcntl.h>
6956 #include <sys/mman.h>
6958 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6959 char *malloc ();
6960 #endif
6962 /* This mess was copied from the GNU getpagesize.h. */
6963 #ifndef HAVE_GETPAGESIZE
6964 # ifdef _SC_PAGESIZE
6965 # define getpagesize() sysconf(_SC_PAGESIZE)
6966 # else /* no _SC_PAGESIZE */
6967 # ifdef HAVE_SYS_PARAM_H
6968 # include <sys/param.h>
6969 # ifdef EXEC_PAGESIZE
6970 # define getpagesize() EXEC_PAGESIZE
6971 # else /* no EXEC_PAGESIZE */
6972 # ifdef NBPG
6973 # define getpagesize() NBPG * CLSIZE
6974 # ifndef CLSIZE
6975 # define CLSIZE 1
6976 # endif /* no CLSIZE */
6977 # else /* no NBPG */
6978 # ifdef NBPC
6979 # define getpagesize() NBPC
6980 # else /* no NBPC */
6981 # ifdef PAGESIZE
6982 # define getpagesize() PAGESIZE
6983 # endif /* PAGESIZE */
6984 # endif /* no NBPC */
6985 # endif /* no NBPG */
6986 # endif /* no EXEC_PAGESIZE */
6987 # else /* no HAVE_SYS_PARAM_H */
6988 # define getpagesize() 8192 /* punt totally */
6989 # endif /* no HAVE_SYS_PARAM_H */
6990 # endif /* no _SC_PAGESIZE */
6992 #endif /* no HAVE_GETPAGESIZE */
6995 main ()
6997 char *data, *data2, *data3;
6998 const char *cdata2;
6999 int i, pagesize;
7000 int fd, fd2;
7002 pagesize = getpagesize ();
7004 /* First, make a file with some known garbage in it. */
7005 data = (char *) malloc (pagesize);
7006 if (!data)
7007 return 1;
7008 for (i = 0; i < pagesize; ++i)
7009 *(data + i) = rand ();
7010 umask (0);
7011 fd = creat ("conftest.mmap", 0600);
7012 if (fd < 0)
7013 return 2;
7014 if (write (fd, data, pagesize) != pagesize)
7015 return 3;
7016 close (fd);
7018 /* Next, check that the tail of a page is zero-filled. File must have
7019 non-zero length, otherwise we risk SIGBUS for entire page. */
7020 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7021 if (fd2 < 0)
7022 return 4;
7023 cdata2 = "";
7024 if (write (fd2, cdata2, 1) != 1)
7025 return 5;
7026 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7027 if (data2 == MAP_FAILED)
7028 return 6;
7029 for (i = 0; i < pagesize; ++i)
7030 if (*(data2 + i))
7031 return 7;
7032 close (fd2);
7033 if (munmap (data2, pagesize))
7034 return 8;
7036 /* Next, try to mmap the file at a fixed address which already has
7037 something else allocated at it. If we can, also make sure that
7038 we see the same garbage. */
7039 fd = open ("conftest.mmap", O_RDWR);
7040 if (fd < 0)
7041 return 9;
7042 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7043 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7044 return 10;
7045 for (i = 0; i < pagesize; ++i)
7046 if (*(data + i) != *(data2 + i))
7047 return 11;
7049 /* Finally, make sure that changes to the mapped area do not
7050 percolate back to the file as seen by read(). (This is a bug on
7051 some variants of i386 svr4.0.) */
7052 for (i = 0; i < pagesize; ++i)
7053 *(data2 + i) = *(data2 + i) + 1;
7054 data3 = (char *) malloc (pagesize);
7055 if (!data3)
7056 return 12;
7057 if (read (fd, data3, pagesize) != pagesize)
7058 return 13;
7059 for (i = 0; i < pagesize; ++i)
7060 if (*(data + i) != *(data3 + i))
7061 return 14;
7062 close (fd);
7063 return 0;
7065 _ACEOF
7066 if ac_fn_c_try_run "$LINENO"; then :
7067 ac_cv_func_mmap_fixed_mapped=yes
7068 else
7069 ac_cv_func_mmap_fixed_mapped=no
7071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7072 conftest.$ac_objext conftest.beam conftest.$ac_ext
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7077 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7078 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7080 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7083 rm -f conftest.mmap conftest.txt
7088 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7089 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7090 aros_config_ldflags=""
7092 aros_shared_default=yes
7094 aros_shared_cflags="-fPIC"
7095 aros_shared_aflags=""
7096 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7097 aros_kernel_ldflags="-Wl,-rpath,./lib"
7099 aros_kernel_ar_flags="cr"
7100 aros_target_ar_flags="cr"
7101 aros_target_nm_flags="-C -ul"
7102 aros_target_strip_flags="--strip-unneeded -R.comment"
7104 aros_compiler_libs=
7105 aros_arch_libs=
7107 aros_target_genmap="-Wl,-Map -Xlinker"
7109 # Native flavour stuff
7110 aros_serial_debug="0"
7112 # Palm native flavour stuff
7113 aros_palm_debug_hack="0"
7115 # Unix flavour stuff
7116 aros_nesting_supervisor="0"
7118 # Collect-aros stuff: "-ius" to ignore undefined symbols
7119 ignore_undefined_symbols=""
7121 # Check for X11 by default
7122 need_x11="auto"
7124 #-----------------------------------------------------------------------------
7127 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7128 # it switched on by default, and we use the host compiler, so it compiles AROS
7129 # code with this enabled resulting in link failures as we don't have support
7130 # for it.
7132 # We use two methods to disable it. For the host compiler (used to compile
7133 # some hosted modules), we test to see if the compiler supports stack
7134 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7135 # work on all platforms.
7137 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7138 # (this is done unconditionally, as it should have no effect on compilers
7139 # without the stack protection feature). This may be specific to the way that
7140 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7141 # strong enough to disable it in a generic way though, so we'll live with it
7142 # until another vendor ships GCC with it enabled in a different way, and deal
7143 # with it then.
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7147 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7148 save_cflags="$CFLAGS"
7149 CFLAGS="$CFLAGS -fno-stack-protector"
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7154 main ()
7158 return 0;
7160 _ACEOF
7161 if ac_fn_c_try_compile "$LINENO"; then :
7162 use_no_stack_protector="yes"
7163 else
7164 use_no_stack_protector="no"
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7168 $as_echo "$use_no_stack_protector" >&6; }
7169 if test "x-$use_no_stack_protector" = "x-yes" ; then
7170 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7172 CFLAGS="$save_cflags"
7174 #-----------------------------------------------------------------------------
7176 # Disable pointer-signedness warnings if the compiler recognises the option
7177 # (this only works for the host compiler at the moment)
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7180 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7181 save_cflags="$CFLAGS"
7182 CFLAGS="$CFLAGS -Wno-pointer-sign"
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7187 main ()
7191 return 0;
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 use_no_sign_warning="yes"
7196 else
7197 use_no_sign_warning="no"
7199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7201 $as_echo "$use_no_sign_warning" >&6; }
7202 if test "x-$use_no_sign_warning" = "x-yes" ; then
7203 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7205 CFLAGS="$save_cflags"
7207 #-----------------------------------------------------------------------------
7209 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7212 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7213 save_cflags="$CFLAGS"
7214 CFLAGS="$CFLAGS -fgnu89-inline"
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7219 main ()
7223 return 0;
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"; then :
7227 use_gnu89_inline="yes"
7228 else
7229 use_gnu89_inline="no"
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7233 $as_echo "$use_gnu89_inline" >&6; }
7234 if test "x-$use_gnu89_inline" = "x-yes" ; then
7235 gnu89_inline="-fgnu89-inline"
7237 CFLAGS="$save_cflags"
7239 #-----------------------------------------------------------------------------
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7242 $as_echo_n "checking for type of build... " >&6; }
7243 # Check whether --enable-build_type was given.
7244 if test "${enable_build_type+set}" = set; then :
7245 enableval=$enable_build_type; build_type=$enableval
7246 else
7247 build_type="personal"
7251 if test "$build_type" = "nightly"; then
7252 build_type_string="NIGHTLY"
7253 elif test "$build_type" = "snapshot"; then
7254 build_type_string="SNAPSHOT"
7255 elif test "$build_type" = "milestone"; then
7256 build_type_string="MILESTONE"
7257 elif test "$build_type" = "release"; then
7258 build_type_string="RELEASE"
7259 else
7260 build_type_string="PERSONAL"
7261 build_type="personal"
7264 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7267 $as_echo "$build_type" >&6; }
7269 #-----------------------------------------------------------------------------
7270 all_debug_types="messages stack modules mungwall symbols"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7273 $as_echo_n "checking which debug types to enable... " >&6; }
7274 # Check whether --enable-debug was given.
7275 if test "${enable_debug+set}" = set; then :
7276 enableval=$enable_debug; debug="$enableval"
7277 else
7278 debug=""
7282 if test "$debug" = "" -o "$debug" = "no"; then
7283 debug="none"
7284 elif test "$debug" = "yes"; then
7285 debug="all"
7288 if test "$debug" = "all" ; then
7289 debug="messages stack modules symbols"
7290 for d in $all_debug_types; do
7291 export aros_${d}_debug="1"
7292 done
7293 else
7294 for d in $all_debug_types; do
7295 export aros_${d}_debug="0"
7296 done
7299 if test "$debug" != "none"; then
7300 debug=`echo $debug | sed s/,/\ /g`
7301 for d in $debug; do
7302 found="0"
7303 for d2 in $all_debug_types; do
7304 if test "$d2" = "$d"; then
7305 found="1"
7306 break
7308 done
7309 if test "$found" = "0"; then
7310 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7312 export aros_${d}_debug="1"
7313 done
7314 aros_debug="yes"
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7317 $as_echo "$debug" >&6; }
7319 if test "$aros_messages_debug" = "1"; then
7320 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7321 else
7322 aros_messages_debug=""
7324 if test "$aros_symbols_debug" = "1"; then
7325 aros_symbols_debug="-g"
7326 else
7327 aros_symbols_debug=""
7330 # These are the flags to pass when compiling debugged programs
7331 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7332 aros_debug_aflags=""
7333 aros_debug_ldflags="$aros_symbols_debug"
7335 #-----------------------------------------------------------------------------
7336 # Checking for distcc and ccache.
7338 # Always apply the transforms in this particular order. Basically you should
7339 # always run 'ccache distcc compiler' in that order for the best performance.
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7342 $as_echo_n "checking whether to enable distcc... " >&6; }
7343 # Check whether --enable-distcc was given.
7344 if test "${enable_distcc+set}" = set; then :
7345 enableval=$enable_distcc; distcc="$enableval"
7346 else
7347 distcc="no"
7350 if test "$distcc" != "" -a "$distcc" != "no"; then
7351 # AC_CHECK_PROG will print out the result in this case
7352 # Extract the first word of "distcc", so it can be a program name with args.
7353 set dummy distcc; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_path_DISTCC+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 case $DISTCC in
7360 [\\/]* | ?:[\\/]*)
7361 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7375 done
7376 done
7377 IFS=$as_save_IFS
7379 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7381 esac
7383 DISTCC=$ac_cv_path_DISTCC
7384 if test -n "$DISTCC"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7386 $as_echo "$DISTCC" >&6; }
7387 else
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7399 $as_echo_n "checking whether to enable ccache... " >&6; }
7400 # Check whether --enable-ccache was given.
7401 if test "${enable_ccache+set}" = set; then :
7402 enableval=$enable_ccache; ccache="$enableval"
7403 else
7404 ccache="no"
7407 if test "$ccache" != "" -a "$ccache" != "no"; then
7408 # AC_CHECK_PROG will print out the result in this case
7409 # Extract the first word of "ccache", so it can be a program name with args.
7410 set dummy ccache; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_CCACHE+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 if test -n "$CCACHE"; then
7417 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_prog_CCACHE="ccache"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7430 done
7431 done
7432 IFS=$as_save_IFS
7436 CCACHE=$ac_cv_prog_CCACHE
7437 if test -n "$CCACHE"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7439 $as_echo "$CCACHE" >&6; }
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7451 #-----------------------------------------------------------------------------
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7453 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7455 # Check whether --with-gcc-version was given.
7456 if test "${with_gcc_version+set}" = set; then :
7457 withval=$with_gcc_version; kernel_tool_version="$withval"
7458 else
7459 kernel_tool_version="default"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7463 $as_echo "$kernel_tool_version" >&6; }
7465 #-----------------------------------------------------------------------------
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7467 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7469 # Check whether --with-gcc-version was given.
7470 if test "${with_gcc_version+set}" = set; then :
7471 withval=$with_gcc_version; target_tool_version="$withval"
7472 else
7473 target_tool_version="default"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7477 $as_echo "$target_tool_version" >&6; }
7479 #-----------------------------------------------------------------------------
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7481 $as_echo_n "checking what optimization flags to use... " >&6; }
7483 # Check whether --with-optimization was given.
7484 if test "${with_optimization+set}" = set; then :
7485 withval=$with_optimization; optimization="$withval"
7486 else
7487 optimization="unknown"
7490 if test "$optimization" = "unknown"; then
7491 if test "$debug" != "none"; then
7492 optimization="-O0"
7493 else
7494 optimization="-O2"
7497 aros_config_cflags="$aros_config_cflags $optimization"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7499 $as_echo "$optimization" >&6; }
7501 #-----------------------------------------------------------------------------
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7503 $as_echo_n "checking what paranoia flags to use... " >&6; }
7505 # Check whether --with-paranoia was given.
7506 if test "${with_paranoia+set}" = set; then :
7507 withval=$with_paranoia; paranoia_flags="$withval"
7508 else
7509 paranoia_flags="default"
7512 if test "$paranoia_flags" = "default"; then
7513 paranoia_flags=""
7514 else if test "$paranoia_flags" = "yes"; then
7515 paranoia_flags="-Wall -Werror"
7516 fi fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7518 $as_echo "$paranoia_flags" >&6; }
7519 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7521 #-----------------------------------------------------------------------------
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7523 $as_echo_n "checking what target variant to enable... " >&6; }
7524 # Check whether --enable-target_variant was given.
7525 if test "${enable_target_variant+set}" = set; then :
7526 enableval=$enable_target_variant; target_variant=$enableval
7527 else
7528 target_variant=""
7531 if test "$target_variant" = ""; then
7532 aros_target_variant=""
7533 aros_target_suffix=""
7534 enableval="none"
7535 else
7536 aros_target_variant="$target_variant"
7537 aros_target_suffix="-$target_variant"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7540 $as_echo "$enableval" >&6; }
7542 #-----------------------------------------------------------------------------
7543 # Target-specific defaults. You can override then on a per-target basis.
7545 # Bootloader name. Currently used by PC target.
7546 target_bootloader="none"
7548 #-----------------------------------------------------------------------------
7549 # Additional options for some specific targets
7551 case "$aros_target_variant" in
7552 ios)
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7554 $as_echo_n "checking XCode path... " >&6; }
7556 # Check whether --with-xcode was given.
7557 if test "${with_xcode+set}" = set; then :
7558 withval=$with_xcode; aros_xcode_path="$withval"
7559 else
7560 aros_xcode_path="/Developer"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7564 $as_echo "$aros_xcode_path" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7567 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7569 # Check whether --with-sdk-version was given.
7570 if test "${with_sdk_version+set}" = set; then :
7571 withval=$with_sdk_version; aros_sdk_version="$withval"
7572 else
7573 aros_sdk_version="4.1"
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7577 $as_echo "$aros_sdk_version" >&6; }
7581 "android")
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7583 $as_echo_n "checking Android SDK path... " >&6; }
7585 # Check whether --with-sdk was given.
7586 if test "${with_sdk+set}" = set; then :
7587 withval=$with_sdk; aros_android_sdk="$withval"
7588 else
7589 aros_android_sdk=$default_android_sdk
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7593 $as_echo "$aros_android_sdk" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7596 $as_echo_n "checking Android NDK path... " >&6; }
7598 # Check whether --with-ndk was given.
7599 if test "${with_ndk+set}" = set; then :
7600 withval=$with_ndk; aros_android_ndk="$withval"
7601 else
7602 aros_android_ndk="none"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7606 $as_echo "$aros_android_ndk" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7609 $as_echo_n "checking what Android SDK version to use... " >&6; }
7611 # Check whether --with-sdk-version was given.
7612 if test "${with_sdk_version+set}" = set; then :
7613 withval=$with_sdk_version; aros_sdk_version="$withval"
7614 else
7615 aros_sdk_version="12"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7619 $as_echo "$aros_sdk_version" >&6; }
7621 if test "$aros_android_ndk" != "none"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7623 $as_echo_n "checking what Android NDK version to use... " >&6; }
7625 # Check whether --with-ndk-version was given.
7626 if test "${with_ndk_version+set}" = set; then :
7627 withval=$with_ndk_version; aros_ndk_version="$withval"
7628 else
7629 aros_ndk_version="9"
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7633 $as_echo "$aros_ndk_version" >&6; }
7636 export PATH="$aros_android_sdk/tools:$PATH"
7637 # Extract the first word of "$android_tool", so it can be a program name with args.
7638 set dummy $android_tool; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_path_android_tool+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 case $android_tool in
7645 [\\/]* | ?:[\\/]*)
7646 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7660 done
7661 done
7662 IFS=$as_save_IFS
7665 esac
7667 android_tool=$ac_cv_path_android_tool
7668 if test -n "$android_tool"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7670 $as_echo "$android_tool" >&6; }
7671 else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7677 if test "$android_tool" = ""; then
7678 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7681 aros_android_level=android-$aros_sdk_version
7682 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7683 echo "Platform $aros_android_level is not installed in your SDK"
7684 echo "Use --with-sdk-version=<API level number> to select another platform version"
7685 echo "You can check what plaform versions are installed in your SDK"
7686 echo "by examining contents of $aros_android_sdk/platforms directory"
7687 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7690 # Extract the first word of "ant", so it can be a program name with args.
7691 set dummy ant; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_path_ant+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 case $ant in
7698 [\\/]* | ?:[\\/]*)
7699 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7713 done
7714 done
7715 IFS=$as_save_IFS
7718 esac
7720 ant=$ac_cv_path_ant
7721 if test -n "$ant"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7723 $as_echo "$ant" >&6; }
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7730 if test "$ant" = ""; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7732 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7735 if test "$host_os" = "mingw32"; then
7736 android_tool="cmd //c $android_tool"
7740 esac
7742 #-----------------------------------------------------------------------------
7743 # External toolchains
7744 kernel_tool_prefix="none"
7745 aros_tool_prefix="none"
7746 elf_tool_prefix="${target_cpu}-elf-"
7748 # This is the target configuration switch.
7749 case "$target_os" in
7750 linux*)
7751 aros_target_arch="linux"
7752 aros_target_family="unix"
7753 case "$target_cpu" in
7754 *m68k*)
7755 aros_target_cpu="m68k"
7756 aros_object_format="m68kelf"
7757 aros_flavour="emulcompat"
7758 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7759 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7760 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7761 gcc_target_cpu="mc68000"
7763 *i?86*)
7764 aros_target_cpu="i386"
7765 aros_object_format="elf_i386"
7766 aros_flavour="emulation"
7767 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7768 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7769 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7770 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7771 aros_config_ldflags="-m32 -march=i486"
7772 aros_kernel_ldflags="-melf_i386"
7773 aros_default_wbdepth=8
7774 gcc_target_cpu="i386"
7775 pci_hidd_target="hidd-pci-linux"
7776 android_tool_dir_prefix="x86"
7777 android_tool_prefix="i686-android-linux"
7778 android_ndk_arch="x86"
7780 *x86_64*)
7781 aros_target_cpu="x86_64"
7782 aros_object_format="elf_x86_64"
7783 aros_flavour="emulation"
7784 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7785 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7786 aros_default_wbdepth=8
7787 pci_hidd_target="hidd-pci-linux"
7789 *powerpc*)
7790 aros_target_cpu="ppc"
7791 aros_object_format="elf32ppc"
7792 aros_flavour="emulation"
7793 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7794 aros_default_wbdepth=8
7795 gcc_target_cpu="ppc"
7797 # TODO
7798 # Same as powerpc, but I need this for the nightly build to work again.
7799 # Actually, the nightly should be made working with powerpc target.
7800 # That just was too much work for the moment, another week or two.
7801 *ppc*)
7802 aros_target_cpu="ppc"
7803 aros_object_format="elf32ppc"
7804 aros_flavour="emulation"
7805 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7806 aros_default_wbdepth=8
7807 gcc_target_cpu="ppc"
7809 *armhf*)
7810 aros_target_cpu="arm"
7811 target_cpu="arm"
7812 aros_object_format="armelf_linux_eabi"
7813 aros_flavour="emulation"
7814 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7815 gcc_target_cpu="arm"
7816 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7817 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7818 aros_arch_libs="-laeabi"
7819 gcc_default_fpu="vfpv3-d16"
7820 gcc_default_float_abi="hard"
7821 android_tool_dir_prefix="arm-linux-androideabi"
7822 android_tool_prefix="arm-linux-androideabi"
7823 android_ndk_arch="arm"
7824 kernel_tool_prefix="arm-linux-gnueabihf-"
7826 *arm*)
7827 aros_target_cpu="arm"
7828 aros_object_format="armelf_linux_eabi"
7829 aros_flavour="emulation"
7830 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7831 gcc_target_cpu="arm"
7832 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7833 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7834 aros_arch_libs="-laeabi"
7835 android_tool_dir_prefix="arm-linux-androideabi"
7836 android_tool_prefix="arm-linux-androideabi"
7837 android_ndk_arch="arm"
7838 kernel_tool_prefix="arm-linux-gnueabi-"
7841 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7843 esac
7844 case "$aros_target_variant" in
7845 android)
7847 if test "$android_ndk_arch" = ""; then
7848 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7851 aros_default_wbwidth=320
7852 aros_default_wbheight=480
7853 if test "$aros_android_ndk" = "none"; then
7854 aros_kernel_cflags="-mandroid"
7855 aros_kernel_ldflags="-mandroid"
7856 CFLAGS="-mandroid"
7857 else
7858 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7859 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7860 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7861 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7862 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7863 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7865 need_x11=no
7866 x11_hidd_target=kernel-hidd-androidgfx-kobj
7867 # Disable implicit PIC mode
7868 aros_target_cflags="$aros_target_cflags -fno-pic"
7869 kernel_tool_prefix="$android_tool_prefix-"
7871 esac
7875 aros_target_arch="pc"
7876 aros_shared_default="no"
7877 target_bootloader="grub2"
7878 case "$target_cpu" in
7879 *i?86*)
7880 aros_target_cpu="i386"
7883 if test "$aros_object_format" = "" ; then
7884 aros_object_format="elf_i386"
7886 aros_flavour="standalone"
7887 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7888 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7889 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7890 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7891 aros_config_ldflags="-m32 -march=i486"
7892 aros_kernel_ldflags="-melf_i386"
7893 aros_default_wbwidth=640
7894 aros_default_wbheight=480
7895 gcc_target_cpu="i386"
7897 *x86_64*)
7898 aros_target_cpu="x86_64"
7899 aros_serial_debug=1
7900 if test "$aros_object_format" = "" ; then
7901 aros_object_format="elf_x86_64"
7903 aros_flavour="standalone"
7904 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7905 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7906 aros_kernel_ldflags=""
7907 aros_default_wbwidth=640
7908 aros_default_wbheight=480
7911 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7913 esac
7916 prep)
7917 aros_target_arch="prep"
7918 aros_shared_default="no"
7919 aros_target_cpu="ppc"
7920 aros_object_format="elf32ppc"
7921 aros_flavour="ppcnative"
7922 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7923 aros_kernel_ldflags=""
7924 aros_default_wbwidth=640
7925 aros_default_wbheight=480
7926 gcc_target_cpu="ppc"
7929 freebsd*)
7930 aros_target_arch="freebsd"
7931 aros_target_family="unix"
7932 aros_target_cpu="i386"
7933 aros_flavour="emulation"
7934 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7935 gcc_target_cpu="i386"
7937 aros_target_strip_flags="-x"
7940 darwin*)
7941 aros_target_arch="darwin"
7942 aros_target_family="unix"
7943 aros_flavour="emulation"
7944 case "$target_cpu" in
7945 *i?86*)
7946 aros_ios_platform="iPhoneSimulator"
7947 aros_target_cpu="i386"
7948 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7949 aros_kernel_ldflags=""
7950 aros_macosx_version="10.4"
7951 aros_default_wbdepth=8
7952 gcc_target_cpu="i386"
7953 aros_object_format="elf_i386"
7954 aros_kernel_ar_flags="-cr"
7955 aros_target_strip_flags="-x"
7956 kernel_tool_flags="-m32"
7958 *x86_64*)
7959 aros_target_cpu="x86_64"
7960 aros_object_format="elf_x86_64"
7961 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7962 aros_macosx_version="10.6"
7963 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7964 aros_kernel_cflags="-m64"
7965 aros_kernel_ldflags="-m64"
7966 aros_target_cflags="-mcmodel=large"
7967 aros_default_wbdepth=8
7968 aros_kernel_ar="ar"
7969 aros_kernel_ar_flags="-cr"
7970 aros_kernel_ld="ld"
7971 aros_kernel_ranlib="ranlib"
7973 *ppc*)
7974 aros_target_cpu="ppc"
7975 aros_object_format="elf32ppc"
7976 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7977 aros_kernel_ldflags=""
7978 aros_macosx_version="10.0"
7979 aros_default_wbdepth=8
7980 gcc_target_cpu="ppc"
7981 aros_kernel_ar="ar"
7982 aros_kernel_ar_flags="-cr"
7983 aros_kernel_ld="ld -arch ppc"
7984 aros_kernel_ranlib="ranlib -arch ppc"
7985 kernel_tool_prefix="powerpc-apple-darwin10-"
7987 *arm*)
7988 aros_ios_platform="iPhoneOS"
7989 aros_target_cpu="arm"
7990 aros_object_format="armelf_linux_eabi"
7991 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7992 aros_arch_libs="-laeabi"
7993 aros_default_wbdepth=8
7994 gcc_target_cpu="arm"
7995 aros_kernel_ar="ar"
7996 aros_kernel_ar_flags="-cr"
7997 aros_kernel_ld="ld -arch arm"
7998 aros_kernel_ranlib="ranlib -arch arm"
7999 kernel_tool_prefix="arm-apple-darwin10-"
8000 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8003 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8005 esac
8006 case "$aros_target_variant" in
8007 ios)
8008 aros_ios_version="3.0"
8009 aros_default_wbwidth=320
8010 aros_default_wbheight=480
8011 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8012 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8013 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8014 need_x11=no
8015 # This is here because it may depend on iOS or SDK version
8016 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8017 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8018 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8021 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8022 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8024 esac
8027 dragonfly*)
8028 aros_target_arch="dragonfly"
8029 aros_target_family="unix"
8030 aros_flavour="emulation"
8031 case "$target_cpu" in
8032 *i?86*)
8033 aros_target_cpu="i386"
8034 aros_object_format="elf_i386"
8035 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8037 *x86_64*)
8038 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8039 aros_target_cpu="x86_64"
8040 aros_object_format="elf_x86_64"
8041 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8044 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8046 esac
8049 netbsd*)
8050 aros_target_arch="netbsd"
8051 aros_target_family="unix"
8052 case "$target_cpu" in
8053 *m68k*)
8054 aros_target_cpu="m68k"
8055 aros_object_format="m68kelf"
8056 aros_flavour="emulcompat"
8057 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8058 gcc_target_cpu="mc68000"
8060 *i?86*)
8061 aros_target_cpu="i386"
8062 aros_object_format="elf_i386"
8063 aros_flavour="emulation"
8064 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8065 aros_default_wbdepth=8
8066 gcc_target_cpu="i386"
8069 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8071 esac
8072 aros_target_genmap="-Wl,-M -Xlinker >"
8073 aros_flavour="emulation"
8074 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8077 openbsd*)
8078 aros_target_arch="openbsd"
8079 aros_target_family="unix"
8080 case "$target_cpu" in
8081 *i?86*)
8082 aros_target_cpu="i386"
8083 aros_object_format="elf_i386"
8084 aros_flavour="emulation"
8085 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8086 gcc_target_cpu="i386"
8089 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8091 esac
8092 aros_target_genmap="-Wl,-M -Xlinker >"
8093 aros_target_nm_flags="-u"
8094 aros_flavour="emulation"
8097 solaris*)
8098 aros_target_arch="solaris"
8099 aros_target_family="unix"
8100 case "$target_cpu" in
8101 *i?86*)
8102 aros_target_cpu="i386"
8103 aros_object_format="elf_i386"
8104 aros_flavour="emulation"
8105 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8106 aros_default_wbdepth=8
8107 gcc_target_cpu="i386"
8109 *sparc*)
8110 aros_target_cpu="sparc"
8111 aros_object_format="elf_sparc"
8112 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8113 gcc_target_cpu="sparc"
8116 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8118 esac
8119 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8120 aros_flavour="emulation"
8123 morphos*)
8124 aros_target_arch="morphos"
8125 aros_shared_default="no"
8126 aros_target_cpu="ppc"
8127 aros_object_format="elf_ppc"
8128 aros_flavour="nativecompat"
8129 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8130 gcc_target_cpu="ppc"
8133 sam440)
8134 aros_target_arch="sam440"
8135 aros_shared_default="no"
8136 aros_target_cpu="ppc"
8137 aros_object_format="elf32ppc"
8138 aros_flavour="ppcnative"
8139 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8140 aros_kernel_ldflags=""
8141 aros_default_wbwidth=1024
8142 aros_default_wbheight=768
8143 aros_default_wbdepth=24
8144 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8145 gcc_target_cpu="powerpc"
8148 efika)
8149 aros_target_arch="efika"
8150 aros_shared_default="no"
8151 aros_target_cpu="arm"
8152 aros_object_format="armelf_linux_eabi"
8153 aros_flavour="standalone"
8154 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8155 aros_kernel_ldflags=""
8156 aros_default_wbwidth=1024
8157 aros_default_wbheight=600
8158 aros_arch_libs="-laeabi"
8159 gcc_default_cpu="armv7-a"
8160 gcc_default_fpu="vfpv3"
8161 gcc_default_float_abi="softfp"
8162 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8163 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8166 chrp)
8167 aros_target_arch="chrp"
8168 aros_shared_default="no"
8169 aros_target_cpu="ppc"
8170 aros_object_format="elf32ppc"
8171 aros_flavour="ppcnative"
8172 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8173 aros_kernel_ldflags=""
8174 aros_default_wbwidth=640
8175 aros_default_wbheight=480
8176 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8177 gcc_target_cpu="powerpc"
8178 case "$aros_target_variant" in
8179 efika)
8180 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8182 esac
8185 amiga*)
8186 aros_target_arch="amiga"
8187 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8188 aros_shared_default="no"
8190 case "$target_cpu" in
8191 *m68k*)
8192 # Check whether --enable-amigaos_compliance was given.
8193 if test "${enable_amigaos_compliance+set}" = set; then :
8194 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8197 aros_enable_mmu=no
8198 aros_target_cpu="m68k"
8199 aros_object_format="m68kelf"
8200 aros_flavour="standcompat"
8201 gcc_target_cpu="m68000"
8202 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os"
8203 aros_config_aflags="$aros_config_aflags"
8204 aros_target_strip_flags="-R.comment --strip-debug"
8205 aros_default_wbwidth=640
8206 aros_default_wbheight=256
8207 aros_default_wbdepth=2
8209 *ppc*)
8210 aros_cpu="ppc"
8211 aros_flavour="native"
8212 gcc_target_cpu="ppc"
8215 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8217 esac
8220 mingw*)
8221 aros_target_arch="mingw32"
8222 aros_shared_default="no"
8223 aros_flavour="emulation"
8224 aros_shared_cflags=""
8225 need_crosstools="yes"
8226 need_dlopen="no"
8227 rescomp="windres"
8228 case "$target_cpu" in
8229 *i?86*)
8230 aros_target_cpu="i386"
8231 aros_object_format="elf_i386"
8232 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8233 aros_default_wbdepth=8
8234 gcc_target_cpu="i386"
8236 kernel_tool_prefix="i386-mingw32-"
8238 *x86_64*)
8239 aros_target_cpu="x86_64"
8240 aros_object_format="elf_x86_64"
8241 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8242 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8243 aros_default_wbdepth=8
8244 kernel_tool_prefix="x86_64-w64-mingw32-"
8246 *arm*)
8247 aros_target_cpu="arm"
8248 aros_object_format="armelf_linux_eabi"
8249 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8250 aros_arch_libs="-laeabi"
8251 aros_default_wbdepth=8
8252 gcc_target_cpu="arm"
8253 gcc_default_float_abi="soft"
8254 kernel_tool_prefix="arm-mingw32ce-"
8255 aros_default_wbwidth=160
8256 aros_default_wbheight=160
8259 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8261 esac
8262 if test $host_os = "cygwin"; then
8263 aros_kernel_cflags="-mno-cygwin"
8266 pp*)
8267 aros_target_arch="pp"
8268 aros_shared_default="no"
8269 case "$target_cpu" in
8270 *m68k*)
8271 aros_target_cpu="m68k"
8272 aros_object_format="m68kelf"
8273 aros_flavour="palmnative"
8274 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8275 aros_default_wbwidth=160
8276 aros_default_wbheight=160
8277 aros_default_wbdepth=1
8278 aros_target_ar_flags="cru"
8279 aros_compiler_libs="-lgcc1"
8280 aros_shared_default=no
8281 aros_shared_cflags="-fpic"
8282 aros_shared_aflags=""
8283 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8284 aros_kernel_ldflags="-Wl,-rpath,./lib"
8285 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8286 aros_debug_aflags=""
8287 aros_debug_ldflags="$aros_symbols_debug"
8288 aros_mungwall_debug="0"
8289 aros_modules_debug="0"
8290 gcc_target_cpu="mc68000"
8291 ignore_undefined_symbols="-ius"
8294 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8296 esac
8299 mac*)
8300 aros_target_arch="mac"
8301 aros_shared_default="no"
8302 case "$target_cpu" in
8303 *m68k*)
8304 aros_target_cpu="m68k"
8305 aros_object_format="m68kelf"
8306 aros_flavour="mac68knative"
8307 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8308 aros_default_wbwidth=512
8309 aros_default_wbheight=384
8310 aros_default_wbdepth=8
8311 aros_target_ar_flags="cru"
8312 aros_compiler_libs="-lgcc1"
8313 aros_shared_default=no
8314 aros_shared_cflags="-fpic"
8315 aros_shared_aflags=""
8316 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8317 aros_kernel_ldflags="-Wl,-rpath,./lib"
8318 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8319 aros_debug_aflags=""
8320 aros_debug_ldflags="$aros_symbols_debug"
8321 aros_mungwall_debug="0"
8322 aros_modules_debug="0"
8323 gcc_target_cpu="mc68000"
8324 ignore_undefined_symbols="-ius"
8327 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8329 esac
8333 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8335 esac
8337 #-----------------------------------------------------------------------------
8338 crosstools_guess=yes
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8341 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8343 # Check whether --with-kernel-toolchain-prefix was given.
8344 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8345 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8349 $as_echo "$kernel_tool_prefix" >&6; }
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8352 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8354 # Check whether --with-elf-toolchain-prefix was given.
8355 if test "${with_elf_toolchain_prefix+set}" = set; then :
8356 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8357 crosstools_guess=no
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8361 $as_echo "$elf_tool_prefix" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8364 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8366 # Check whether --with-aros-toolchain was given.
8367 if test "${with_aros_toolchain+set}" = set; then :
8368 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8369 crosstools_guess=no
8372 if test "$aros_tool_prefix" = "yes" ; then
8373 aros_tool_prefix=$aros_target_cpu-aros-
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8376 $as_echo "$aros_tool_prefix" >&6; }
8378 #-----------------------------------------------------------------------------
8379 # Checking if we should build crosstools..
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8381 $as_echo_n "checking whether to build crosstools... " >&6; }
8382 # Check whether --enable-crosstools was given.
8383 if test "${enable_crosstools+set}" = set; then :
8384 enableval=$enable_crosstools; crosstools="$enableval"
8385 else
8386 crosstools="$crosstools_guess"
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8390 $as_echo "$crosstools" >&6; }
8392 if test "${crosstools}" = "yes"; then
8393 if test "${crosstools_guess}" = "no"; then
8394 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8399 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8401 # Check whether --with-aros-toolchain-install was given.
8402 if test "${with_aros_toolchain_install+set}" = set; then :
8403 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8406 if test "x$aros_toolchain_install" = "x"; then
8407 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8408 else
8409 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8410 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8413 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8416 # Now process extra architecture-specific options.
8417 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8418 # as well as floating-point ABI.
8419 case "$aros_target_cpu" in
8420 arm)
8421 if test "$gcc_default_cpu" = ""; then
8422 gcc_default_cpu="armv6"
8424 if test "$gcc_default_fpu" = ""; then
8425 gcc_default_fpu="vfp"
8427 if test "$gcc_default_float_abi" = ""; then
8428 gcc_default_float_abi="softfp"
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8432 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8434 # Check whether --with-cpu was given.
8435 if test "${with_cpu+set}" = set; then :
8436 withval=$with_cpu; aros_gcc_cpu="$withval"
8437 else
8438 aros_gcc_cpu=$gcc_default_cpu
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8442 $as_echo "$aros_gcc_cpu" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8445 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8447 # Check whether --with-fpu was given.
8448 if test "${with_fpu+set}" = set; then :
8449 withval=$with_fpu; aros_gcc_fpu="$withval"
8450 else
8451 aros_gcc_fpu=$gcc_default_fpu
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8455 $as_echo "$aros_gcc_fpu" >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8458 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8460 # Check whether --with-float was given.
8461 if test "${with_float+set}" = set; then :
8462 withval=$with_float; aros_gcc_float_abi="$withval"
8463 else
8464 aros_gcc_float_abi=$gcc_default_float_abi
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8468 $as_echo "$aros_gcc_float_abi" >&6; }
8470 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8471 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8473 esac
8475 # Some formats need custom ELF specs.
8476 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8477 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8478 elf_specs_in=config/${aros_object_format}-specs.in
8479 else
8480 elf_specs_in=config/elf-specs.in
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8484 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8486 # Check whether --with-aros-gcc was given.
8487 if test "${with_aros_gcc+set}" = set; then :
8488 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8489 else
8490 aros_gcc_version=""
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8494 $as_echo "$aros_gcc_version" >&6; }
8496 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8497 # Since we override specs, we may need to put these defines there
8498 if test "$gcc_target_cpu" != ""; then
8499 gcc_target_cpu="-D__${gcc_target_cpu}__"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8503 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8505 # Check whether --with-portssources was given.
8506 if test "${with_portssources+set}" = set; then :
8507 withval=$with_portssources; with_portssrcdir=$withval
8508 else
8509 with_portssrcdir="default"
8512 if test "$with_portssrcdir" = "default"; then
8513 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8514 else
8515 AROS_PORTSSRCDIR="$with_portssrcdir"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8518 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8521 $as_echo_n "checking which bootloader to use... " >&6; }
8523 # Check whether --with-bootloader was given.
8524 if test "${with_bootloader+set}" = set; then :
8525 withval=$with_bootloader; target_bootloader=$withval
8526 else
8527 target_bootloader=$target_bootloader
8530 if test "$target_bootloader" = "none"; then
8531 aros_target_bootloader=""
8532 else
8533 aros_target_bootloader="$target_bootloader"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8536 $as_echo "$target_bootloader" >&6; }
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8539 $as_echo_n "checking which icon-set to use... " >&6; }
8541 # Check whether --with-iconset was given.
8542 if test "${with_iconset+set}" = set; then :
8543 withval=$with_iconset; target_iconset=$withval
8544 else
8545 target_iconset="default"
8548 if test "$target_iconset" = "default"; then
8549 aros_target_iconset="Gorilla"
8550 target_iconset="default (Gorilla)"
8551 else
8552 aros_target_iconset="$target_iconset"
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8555 $as_echo "$target_iconset" >&6; }
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8558 $as_echo_n "checking which GUI Theme to use... " >&6; }
8560 # Check whether --with-theme was given.
8561 if test "${with_theme+set}" = set; then :
8562 withval=$with_theme; target_guitheme=$withval
8563 else
8564 target_guitheme="default"
8567 if test "$target_guitheme" = "default"; then
8568 aros_target_guitheme="Ice"
8569 else
8570 aros_target_guitheme="$target_guitheme"
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8573 $as_echo "$aros_target_guitheme" >&6; }
8575 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8576 # for target code)
8577 cross_compiling=no
8579 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8580 cross_compiling=yes
8583 if test "$aros_host_cpu" == "x86_64" ; then
8584 if test "$aros_target_cpu" == "i386" ; then
8585 cross_compiling=no
8589 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8590 if test "$aros_host_arch" != "$aros_target_arch" ; then
8591 cross_compiling=yes
8593 else
8594 if test "$host_cc_elf" = "no" ; then
8595 cross_compiling=yes
8599 if test "$cross_compiling" = "no" ; then
8600 kernel_tool_prefix=""
8601 if test "$host_cc_elf" = "yes" ; then
8602 elf_tool_prefix=""
8606 #######################################################################
8607 ## Compute what toolchains to use, and their paths ##
8608 #######################################################################
8610 # This takes, as input:
8611 # crosstools {yes,no}
8612 # aros_gcc_version {default,[version]}
8613 # kernel_tool_prefix {none,[some-arch-os-]}
8614 # aros_tool_prefix ${target_cpu}-aros-
8616 # The output is
8617 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8618 # Where the 'kernel' binaries are located
8619 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8620 # Where the 'target' binaries are located
8621 # (not the symlink farm - that is aros_target_*!)
8623 # The rules are:
8624 # if crosstools then
8625 # if kernel_tools_prefix = "no-kernel-prefix-"
8626 # aros_kernel_* = crosstools cc paths
8627 # aros_kernel_cc = elf cc wrapper around crosstools cc
8628 # else
8629 # VALIDATE(${kernel_tools_prefix}*)
8630 # aros_kernel_* = ${kernel_tools_prefix}*
8631 # if ${kernel_tools_prefix}cc is an AROS gcc
8632 # aros_kernel_cc = ${kernel_tools_prefix}cc
8633 # else
8634 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8635 # fi
8636 # fi
8638 # orig_target_* = aros built crosstools
8639 # orig_target_cc = elf cc wrapper around crosstools cc
8640 # else
8641 # VALIDATE(${kernel_tools_prefix}*)
8643 # orig_target_* = aros_kernel_*
8644 # if aros_kernel_cc is an AROS gcc
8645 # orig_target_cc = aros_kernel_cc
8646 # else
8647 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8648 # fi
8649 # fi
8651 target_tool_prefix="${target_cpu}-aros-"
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8654 $as_echo_n "checking which kernel tools... " >&6; }
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8656 $as_echo "$kernel_tool_prefix" >&6; };
8658 if test "$kernel_tool_prefix" = "none" ; then
8659 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8660 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8662 else
8663 # Kernel tools required - find them
8664 # Note that 'normally', aros_kernel_* overrides will
8665 # empty, unless specified in the per-arch sections above.
8667 if test "$aros_kernel_cpp" = ""; then
8668 if test "$cross_compiling" = "yes" ; then
8669 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8670 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 case $aros_kernel_cpp in
8677 [\\/]* | ?:[\\/]*)
8678 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8684 IFS=$as_save_IFS
8685 test -z "$as_dir" && as_dir=.
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8688 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 break 2
8692 done
8693 done
8694 IFS=$as_save_IFS
8697 esac
8699 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8700 if test -n "$aros_kernel_cpp"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8702 $as_echo "$aros_kernel_cpp" >&6; }
8703 else
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8709 else
8710 if test "$GCC" = "yes"; then
8711 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8712 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8713 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 case $aros_kernel_cpp in
8720 [\\/]* | ?:[\\/]*)
8721 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 for as_dir in `dirname $aros_gcc_cpp`
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8731 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 break 2
8735 done
8736 done
8737 IFS=$as_save_IFS
8740 esac
8742 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8743 if test -n "$aros_kernel_cpp"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8745 $as_echo "$aros_kernel_cpp" >&6; }
8746 else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8753 if test "$aros_kernel_cpp" = ""; then
8754 # Extract the first word of "cpp", so it can be a program name with args.
8755 set dummy cpp; ac_word=$2
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 case $aros_kernel_cpp in
8762 [\\/]* | ?:[\\/]*)
8763 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 for as_dir in $PATH
8769 IFS=$as_save_IFS
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8773 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 break 2
8777 done
8778 done
8779 IFS=$as_save_IFS
8782 esac
8784 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8785 if test -n "$aros_kernel_cpp"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8787 $as_echo "$aros_kernel_cpp" >&6; }
8788 else
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790 $as_echo "no" >&6; }
8796 else
8797 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8798 set dummy $aros_kernel_cpp; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 case $aros_kernel_cpp in
8805 [\\/]* | ?:[\\/]*)
8806 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in $PATH
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
8815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8816 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8820 done
8821 done
8822 IFS=$as_save_IFS
8825 esac
8827 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8828 if test -n "$aros_kernel_cpp"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8830 $as_echo "$aros_kernel_cpp" >&6; }
8831 else
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8839 if test "$aros_kernel_cpp" = ""; then
8840 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8842 if test "x$aros_kernel_cc" = "x"; then
8843 aros_kernel_cc=${kernel_tool_prefix}gcc
8846 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8847 if test "$cross_compiling" = "yes" ; then
8848 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8849 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 case $aros_kernel_cc in
8856 [\\/]* | ?:[\\/]*)
8857 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8863 IFS=$as_save_IFS
8864 test -z "$as_dir" && as_dir=.
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 break 2
8871 done
8872 done
8873 IFS=$as_save_IFS
8876 esac
8878 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8879 if test -n "$aros_kernel_cc"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8881 $as_echo "$aros_kernel_cc" >&6; }
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8888 else
8889 if test "$GCC" = "yes"; then
8890 aros_gcc_cc=`$CC -print-prog-name=cc`
8891 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8892 set dummy `basename $aros_gcc_cc`; ac_word=$2
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8894 $as_echo_n "checking for $ac_word... " >&6; }
8895 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 case $aros_kernel_cc in
8899 [\\/]* | ?:[\\/]*)
8900 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in `dirname $aros_gcc_cc`
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8910 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8914 done
8915 done
8916 IFS=$as_save_IFS
8919 esac
8921 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8922 if test -n "$aros_kernel_cc"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8924 $as_echo "$aros_kernel_cc" >&6; }
8925 else
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8932 if test "$aros_kernel_cc" = ""; then
8933 # Extract the first word of "cc", so it can be a program name with args.
8934 set dummy cc; ac_word=$2
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936 $as_echo_n "checking for $ac_word... " >&6; }
8937 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 case $aros_kernel_cc in
8941 [\\/]* | ?:[\\/]*)
8942 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8956 done
8957 done
8958 IFS=$as_save_IFS
8961 esac
8963 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8964 if test -n "$aros_kernel_cc"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8966 $as_echo "$aros_kernel_cc" >&6; }
8967 else
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8975 else
8976 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8977 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 case $aros_kernel_cc in
8984 [\\/]* | ?:[\\/]*)
8985 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 for as_dir in $PATH
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8999 done
9000 done
9001 IFS=$as_save_IFS
9004 esac
9006 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9007 if test -n "$aros_kernel_cc"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9009 $as_echo "$aros_kernel_cc" >&6; }
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9018 if test "$aros_kernel_cc" = ""; then
9019 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9021 if test "x$aros_kernel_cxx" = "x"; then
9022 aros_kernel_cxx=${kernel_tool_prefix}g++
9025 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
9026 if test "$cross_compiling" = "yes" ; then
9027 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9028 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 case $aros_kernel_cxx in
9035 [\\/]* | ?:[\\/]*)
9036 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 for as_dir in $PATH
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9046 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9048 break 2
9050 done
9051 done
9052 IFS=$as_save_IFS
9055 esac
9057 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9058 if test -n "$aros_kernel_cxx"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9060 $as_echo "$aros_kernel_cxx" >&6; }
9061 else
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9067 else
9068 if test "$GCC" = "yes"; then
9069 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9070 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9071 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 case $aros_kernel_cxx in
9078 [\\/]* | ?:[\\/]*)
9079 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 for as_dir in `dirname $aros_gcc_cxx`
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9089 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9093 done
9094 done
9095 IFS=$as_save_IFS
9098 esac
9100 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9101 if test -n "$aros_kernel_cxx"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9103 $as_echo "$aros_kernel_cxx" >&6; }
9104 else
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 $as_echo "no" >&6; }
9111 if test "$aros_kernel_cxx" = ""; then
9112 # Extract the first word of "cxx", so it can be a program name with args.
9113 set dummy cxx; ac_word=$2
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115 $as_echo_n "checking for $ac_word... " >&6; }
9116 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 case $aros_kernel_cxx in
9120 [\\/]* | ?:[\\/]*)
9121 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125 for as_dir in $PATH
9127 IFS=$as_save_IFS
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9131 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 break 2
9135 done
9136 done
9137 IFS=$as_save_IFS
9140 esac
9142 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9143 if test -n "$aros_kernel_cxx"; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9145 $as_echo "$aros_kernel_cxx" >&6; }
9146 else
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9154 else
9155 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9156 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 case $aros_kernel_cxx in
9163 [\\/]* | ?:[\\/]*)
9164 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $PATH
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9174 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9178 done
9179 done
9180 IFS=$as_save_IFS
9183 esac
9185 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9186 if test -n "$aros_kernel_cxx"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9188 $as_echo "$aros_kernel_cxx" >&6; }
9189 else
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9197 # If it's set, make sure it's really there
9198 if test "x$aros_kernel_cxx" != "x" ; then
9199 if test "$aros_kernel_cxx" = ""; then
9200 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9204 if test "$aros_kernel_ld" = ""; then
9205 if test "$cross_compiling" = "yes" ; then
9206 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9207 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 case $aros_kernel_ld in
9214 [\\/]* | ?:[\\/]*)
9215 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219 for as_dir in $PATH
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9225 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 break 2
9229 done
9230 done
9231 IFS=$as_save_IFS
9234 esac
9236 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9237 if test -n "$aros_kernel_ld"; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9239 $as_echo "$aros_kernel_ld" >&6; }
9240 else
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9246 else
9247 if test "$GCC" = "yes"; then
9248 aros_gcc_ld=`$CC -print-prog-name=ld`
9249 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9250 set dummy `basename $aros_gcc_ld`; ac_word=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 case $aros_kernel_ld in
9257 [\\/]* | ?:[\\/]*)
9258 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in `dirname $aros_gcc_ld`
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9268 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 break 2
9272 done
9273 done
9274 IFS=$as_save_IFS
9277 esac
9279 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9280 if test -n "$aros_kernel_ld"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9282 $as_echo "$aros_kernel_ld" >&6; }
9283 else
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9290 if test "$aros_kernel_ld" = ""; then
9291 # Extract the first word of "ld", so it can be a program name with args.
9292 set dummy ld; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 case $aros_kernel_ld in
9299 [\\/]* | ?:[\\/]*)
9300 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304 for as_dir in $PATH
9306 IFS=$as_save_IFS
9307 test -z "$as_dir" && as_dir=.
9308 for ac_exec_ext in '' $ac_executable_extensions; do
9309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9310 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9312 break 2
9314 done
9315 done
9316 IFS=$as_save_IFS
9319 esac
9321 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9322 if test -n "$aros_kernel_ld"; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9324 $as_echo "$aros_kernel_ld" >&6; }
9325 else
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9327 $as_echo "no" >&6; }
9333 else
9334 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9335 set dummy $aros_kernel_ld; ac_word=$2
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337 $as_echo_n "checking for $ac_word... " >&6; }
9338 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 case $aros_kernel_ld in
9342 [\\/]* | ?:[\\/]*)
9343 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9357 done
9358 done
9359 IFS=$as_save_IFS
9362 esac
9364 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9365 if test -n "$aros_kernel_ld"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9367 $as_echo "$aros_kernel_ld" >&6; }
9368 else
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9376 if test "$aros_kernel_ld" = ""; then
9377 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9380 if test "$aros_kernel_as" = ""; then
9381 if test "$cross_compiling" = "yes" ; then
9382 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9383 set dummy ${kernel_tool_prefix}as; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if ${ac_cv_path_aros_kernel_as+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 case $aros_kernel_as in
9390 [\\/]* | ?:[\\/]*)
9391 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 for as_dir in $PATH
9397 IFS=$as_save_IFS
9398 test -z "$as_dir" && as_dir=.
9399 for ac_exec_ext in '' $ac_executable_extensions; do
9400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9401 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9403 break 2
9405 done
9406 done
9407 IFS=$as_save_IFS
9410 esac
9412 aros_kernel_as=$ac_cv_path_aros_kernel_as
9413 if test -n "$aros_kernel_as"; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9415 $as_echo "$aros_kernel_as" >&6; }
9416 else
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9422 else
9423 if test "$GCC" = "yes"; then
9424 aros_gcc_as=`$CC -print-prog-name=as`
9425 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9426 set dummy `basename $aros_gcc_as`; ac_word=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if ${ac_cv_path_aros_kernel_as+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 case $aros_kernel_as in
9433 [\\/]* | ?:[\\/]*)
9434 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in `dirname $aros_gcc_as`
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9444 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 break 2
9448 done
9449 done
9450 IFS=$as_save_IFS
9453 esac
9455 aros_kernel_as=$ac_cv_path_aros_kernel_as
9456 if test -n "$aros_kernel_as"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9458 $as_echo "$aros_kernel_as" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9466 if test "$aros_kernel_as" = ""; then
9467 # Extract the first word of "as", so it can be a program name with args.
9468 set dummy as; ac_word=$2
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 $as_echo_n "checking for $ac_word... " >&6; }
9471 if ${ac_cv_path_aros_kernel_as+:} false; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 case $aros_kernel_as in
9475 [\\/]* | ?:[\\/]*)
9476 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 for as_dir in $PATH
9482 IFS=$as_save_IFS
9483 test -z "$as_dir" && as_dir=.
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9486 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9488 break 2
9490 done
9491 done
9492 IFS=$as_save_IFS
9495 esac
9497 aros_kernel_as=$ac_cv_path_aros_kernel_as
9498 if test -n "$aros_kernel_as"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9500 $as_echo "$aros_kernel_as" >&6; }
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9509 else
9510 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9511 set dummy $aros_kernel_as; ac_word=$2
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9513 $as_echo_n "checking for $ac_word... " >&6; }
9514 if ${ac_cv_path_aros_kernel_as+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 case $aros_kernel_as in
9518 [\\/]* | ?:[\\/]*)
9519 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9525 IFS=$as_save_IFS
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531 break 2
9533 done
9534 done
9535 IFS=$as_save_IFS
9538 esac
9540 aros_kernel_as=$ac_cv_path_aros_kernel_as
9541 if test -n "$aros_kernel_as"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9543 $as_echo "$aros_kernel_as" >&6; }
9544 else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 $as_echo "no" >&6; }
9552 if test "$aros_kernel_as" = ""; then
9553 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9556 if test "$aros_kernel_ar" = ""; then
9557 if test "$cross_compiling" = "yes" ; then
9558 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9559 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 case $aros_kernel_ar in
9566 [\\/]* | ?:[\\/]*)
9567 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571 for as_dir in $PATH
9573 IFS=$as_save_IFS
9574 test -z "$as_dir" && as_dir=.
9575 for ac_exec_ext in '' $ac_executable_extensions; do
9576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9577 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9579 break 2
9581 done
9582 done
9583 IFS=$as_save_IFS
9586 esac
9588 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9589 if test -n "$aros_kernel_ar"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9591 $as_echo "$aros_kernel_ar" >&6; }
9592 else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9598 else
9599 if test "$GCC" = "yes"; then
9600 aros_gcc_ar=`$CC -print-prog-name=ar`
9601 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9602 set dummy `basename $aros_gcc_ar`; ac_word=$2
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604 $as_echo_n "checking for $ac_word... " >&6; }
9605 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 case $aros_kernel_ar in
9609 [\\/]* | ?:[\\/]*)
9610 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614 for as_dir in `dirname $aros_gcc_ar`
9616 IFS=$as_save_IFS
9617 test -z "$as_dir" && as_dir=.
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9620 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9622 break 2
9624 done
9625 done
9626 IFS=$as_save_IFS
9629 esac
9631 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9632 if test -n "$aros_kernel_ar"; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9634 $as_echo "$aros_kernel_ar" >&6; }
9635 else
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9642 if test "$aros_kernel_ar" = ""; then
9643 # Extract the first word of "ar", so it can be a program name with args.
9644 set dummy ar; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 case $aros_kernel_ar in
9651 [\\/]* | ?:[\\/]*)
9652 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 for as_dir in $PATH
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
9660 for ac_exec_ext in '' $ac_executable_extensions; do
9661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9662 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 break 2
9666 done
9667 done
9668 IFS=$as_save_IFS
9671 esac
9673 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9674 if test -n "$aros_kernel_ar"; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9676 $as_echo "$aros_kernel_ar" >&6; }
9677 else
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9685 else
9686 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9687 set dummy $aros_kernel_ar; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 case $aros_kernel_ar in
9694 [\\/]* | ?:[\\/]*)
9695 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 for as_dir in $PATH
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9705 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 break 2
9709 done
9710 done
9711 IFS=$as_save_IFS
9714 esac
9716 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9717 if test -n "$aros_kernel_ar"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9719 $as_echo "$aros_kernel_ar" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9728 if test "$aros_kernel_ar" = ""; then
9729 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9732 if test "$aros_kernel_ranlib" = ""; then
9733 if test "$cross_compiling" = "yes" ; then
9734 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9735 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 case $aros_kernel_ranlib in
9742 [\\/]* | ?:[\\/]*)
9743 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in $PATH
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9753 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 break 2
9757 done
9758 done
9759 IFS=$as_save_IFS
9762 esac
9764 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9765 if test -n "$aros_kernel_ranlib"; then
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9767 $as_echo "$aros_kernel_ranlib" >&6; }
9768 else
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9770 $as_echo "no" >&6; }
9774 else
9775 if test "$GCC" = "yes"; then
9776 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9777 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9778 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 case $aros_kernel_ranlib in
9785 [\\/]* | ?:[\\/]*)
9786 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in `dirname $aros_gcc_ranlib`
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9800 done
9801 done
9802 IFS=$as_save_IFS
9805 esac
9807 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9808 if test -n "$aros_kernel_ranlib"; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9810 $as_echo "$aros_kernel_ranlib" >&6; }
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9818 if test "$aros_kernel_ranlib" = ""; then
9819 # Extract the first word of "ranlib", so it can be a program name with args.
9820 set dummy ranlib; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 case $aros_kernel_ranlib in
9827 [\\/]* | ?:[\\/]*)
9828 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 break 2
9842 done
9843 done
9844 IFS=$as_save_IFS
9847 esac
9849 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9850 if test -n "$aros_kernel_ranlib"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9852 $as_echo "$aros_kernel_ranlib" >&6; }
9853 else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9861 else
9862 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9863 set dummy $aros_kernel_ranlib; ac_word=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 case $aros_kernel_ranlib in
9870 [\\/]* | ?:[\\/]*)
9871 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 for as_dir in $PATH
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9885 done
9886 done
9887 IFS=$as_save_IFS
9890 esac
9892 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9893 if test -n "$aros_kernel_ranlib"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9895 $as_echo "$aros_kernel_ranlib" >&6; }
9896 else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9904 if test "$aros_kernel_ranlib" = ""; then
9905 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9908 if test "$aros_kernel_nm" = ""; then
9909 if test "$cross_compiling" = "yes" ; then
9910 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9911 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 $as_echo_n "checking for $ac_word... " >&6; }
9914 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9915 $as_echo_n "(cached) " >&6
9916 else
9917 case $aros_kernel_nm in
9918 [\\/]* | ?:[\\/]*)
9919 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9929 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9933 done
9934 done
9935 IFS=$as_save_IFS
9938 esac
9940 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9941 if test -n "$aros_kernel_nm"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9943 $as_echo "$aros_kernel_nm" >&6; }
9944 else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9950 else
9951 if test "$GCC" = "yes"; then
9952 aros_gcc_nm=`$CC -print-prog-name=nm`
9953 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9954 set dummy `basename $aros_gcc_nm`; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 case $aros_kernel_nm in
9961 [\\/]* | ?:[\\/]*)
9962 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in `dirname $aros_gcc_nm`
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9976 done
9977 done
9978 IFS=$as_save_IFS
9981 esac
9983 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9984 if test -n "$aros_kernel_nm"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9986 $as_echo "$aros_kernel_nm" >&6; }
9987 else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9994 if test "$aros_kernel_nm" = ""; then
9995 # Extract the first word of "nm", so it can be a program name with args.
9996 set dummy nm; ac_word=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 case $aros_kernel_nm in
10003 [\\/]* | ?:[\\/]*)
10004 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10014 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 break 2
10018 done
10019 done
10020 IFS=$as_save_IFS
10023 esac
10025 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10026 if test -n "$aros_kernel_nm"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10028 $as_echo "$aros_kernel_nm" >&6; }
10029 else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031 $as_echo "no" >&6; }
10037 else
10038 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10039 set dummy $aros_kernel_nm; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 case $aros_kernel_nm in
10046 [\\/]* | ?:[\\/]*)
10047 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10061 done
10062 done
10063 IFS=$as_save_IFS
10066 esac
10068 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10069 if test -n "$aros_kernel_nm"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10071 $as_echo "$aros_kernel_nm" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10080 if test "$aros_kernel_nm" = ""; then
10081 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10084 if test "$aros_kernel_strip" = ""; then
10085 if test "$cross_compiling" = "yes" ; then
10086 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10087 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 case $aros_kernel_strip in
10094 [\\/]* | ?:[\\/]*)
10095 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10105 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10109 done
10110 done
10111 IFS=$as_save_IFS
10114 esac
10116 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10117 if test -n "$aros_kernel_strip"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10119 $as_echo "$aros_kernel_strip" >&6; }
10120 else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }
10126 else
10127 if test "$GCC" = "yes"; then
10128 aros_gcc_strip=`$CC -print-prog-name=strip`
10129 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10130 set dummy `basename $aros_gcc_strip`; ac_word=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 case $aros_kernel_strip in
10137 [\\/]* | ?:[\\/]*)
10138 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in `dirname $aros_gcc_strip`
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10152 done
10153 done
10154 IFS=$as_save_IFS
10157 esac
10159 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10160 if test -n "$aros_kernel_strip"; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10162 $as_echo "$aros_kernel_strip" >&6; }
10163 else
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; }
10170 if test "$aros_kernel_strip" = ""; then
10171 # Extract the first word of "strip", so it can be a program name with args.
10172 set dummy strip; ac_word=$2
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 $as_echo_n "checking for $ac_word... " >&6; }
10175 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 case $aros_kernel_strip in
10179 [\\/]* | ?:[\\/]*)
10180 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10190 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10194 done
10195 done
10196 IFS=$as_save_IFS
10199 esac
10201 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10202 if test -n "$aros_kernel_strip"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10204 $as_echo "$aros_kernel_strip" >&6; }
10205 else
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10213 else
10214 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10215 set dummy $aros_kernel_strip; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 case $aros_kernel_strip in
10222 [\\/]* | ?:[\\/]*)
10223 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10233 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10237 done
10238 done
10239 IFS=$as_save_IFS
10242 esac
10244 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10245 if test -n "$aros_kernel_strip"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10247 $as_echo "$aros_kernel_strip" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10256 if test "$aros_kernel_strip" = ""; then
10257 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10260 # Objcopy and objdump are not required for the kernel
10261 # toolchain on many architectures.
10262 # So we'll look for them, but not make them strictly required.
10264 if test "$aros_kernel_objcopy" = ""; then
10265 if test "$cross_compiling" = "yes" ; then
10266 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10267 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 case $aros_kernel_objcopy in
10274 [\\/]* | ?:[\\/]*)
10275 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10285 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 break 2
10289 done
10290 done
10291 IFS=$as_save_IFS
10294 esac
10296 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10297 if test -n "$aros_kernel_objcopy"; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10299 $as_echo "$aros_kernel_objcopy" >&6; }
10300 else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10306 else
10307 if test "$GCC" = "yes"; then
10308 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10309 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10310 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312 $as_echo_n "checking for $ac_word... " >&6; }
10313 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 case $aros_kernel_objcopy in
10317 [\\/]* | ?:[\\/]*)
10318 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in `dirname $aros_gcc_objcopy`
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10328 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10332 done
10333 done
10334 IFS=$as_save_IFS
10337 esac
10339 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10340 if test -n "$aros_kernel_objcopy"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10342 $as_echo "$aros_kernel_objcopy" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10350 if test "$aros_kernel_objcopy" = ""; then
10351 # Extract the first word of "objcopy", so it can be a program name with args.
10352 set dummy objcopy; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 case $aros_kernel_objcopy in
10359 [\\/]* | ?:[\\/]*)
10360 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10370 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10374 done
10375 done
10376 IFS=$as_save_IFS
10379 esac
10381 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10382 if test -n "$aros_kernel_objcopy"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10384 $as_echo "$aros_kernel_objcopy" >&6; }
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10393 else
10394 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10395 set dummy $aros_kernel_objcopy; ac_word=$2
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10397 $as_echo_n "checking for $ac_word... " >&6; }
10398 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 case $aros_kernel_objcopy in
10402 [\\/]* | ?:[\\/]*)
10403 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10413 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10417 done
10418 done
10419 IFS=$as_save_IFS
10422 esac
10424 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10425 if test -n "$aros_kernel_objcopy"; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10427 $as_echo "$aros_kernel_objcopy" >&6; }
10428 else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; }
10437 if test "$aros_kernel_objdump" = ""; then
10438 if test "$cross_compiling" = "yes" ; then
10439 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10440 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 case $aros_kernel_objdump in
10447 [\\/]* | ?:[\\/]*)
10448 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $PATH
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10458 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10462 done
10463 done
10464 IFS=$as_save_IFS
10467 esac
10469 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10470 if test -n "$aros_kernel_objdump"; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10472 $as_echo "$aros_kernel_objdump" >&6; }
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475 $as_echo "no" >&6; }
10479 else
10480 if test "$GCC" = "yes"; then
10481 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10482 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10483 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10485 $as_echo_n "checking for $ac_word... " >&6; }
10486 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10487 $as_echo_n "(cached) " >&6
10488 else
10489 case $aros_kernel_objdump in
10490 [\\/]* | ?:[\\/]*)
10491 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495 for as_dir in `dirname $aros_gcc_objdump`
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10501 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 break 2
10505 done
10506 done
10507 IFS=$as_save_IFS
10510 esac
10512 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10513 if test -n "$aros_kernel_objdump"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10515 $as_echo "$aros_kernel_objdump" >&6; }
10516 else
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; }
10523 if test "$aros_kernel_objdump" = ""; then
10524 # Extract the first word of "objdump", so it can be a program name with args.
10525 set dummy objdump; ac_word=$2
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527 $as_echo_n "checking for $ac_word... " >&6; }
10528 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 case $aros_kernel_objdump in
10532 [\\/]* | ?:[\\/]*)
10533 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537 for as_dir in $PATH
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10543 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10547 done
10548 done
10549 IFS=$as_save_IFS
10552 esac
10554 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10555 if test -n "$aros_kernel_objdump"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10557 $as_echo "$aros_kernel_objdump" >&6; }
10558 else
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; }
10566 else
10567 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10568 set dummy $aros_kernel_objdump; ac_word=$2
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10570 $as_echo_n "checking for $ac_word... " >&6; }
10571 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 case $aros_kernel_objdump in
10575 [\\/]* | ?:[\\/]*)
10576 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10586 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 break 2
10590 done
10591 done
10592 IFS=$as_save_IFS
10595 esac
10597 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10598 if test -n "$aros_kernel_objdump"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10600 $as_echo "$aros_kernel_objdump" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10609 if test "x${crosstools}" != "xyes" ; then
10610 if test "$aros_kernel_objcopy" = ""; then
10611 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10613 if test "$aros_kernel_objdump" = ""; then
10614 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10620 $as_echo_n "checking which target tools to use... " >&6; }
10621 if test "$crosstools" = "yes"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10623 $as_echo "$target_tool_prefix" >&6; }
10624 # We are are building AROS crosstools
10625 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10626 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10627 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10628 orig_target_cpp="${tmp_tool_prefix}cpp"
10629 orig_target_ld="${tmp_tool_prefix}ld"
10630 orig_target_as="${tmp_tool_prefix}as"
10631 orig_target_ar="${tmp_tool_prefix}ar"
10632 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10633 orig_target_nm="${tmp_tool_prefix}nm"
10634 orig_target_strip="${tmp_tool_prefix}strip"
10635 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10636 orig_target_objdump="${tmp_tool_prefix}objdump"
10637 orig_target_elfedit="${tmp_tool_prefix}elfedit"
10638 else
10639 # Determine whether AROS or ELF tools should be used
10640 if test "$aros_tool_prefix" = "none"; then
10641 aros_tool_prefix="${elf_tool_prefix}"
10642 crosstools_cxx_target=tools-crosstools
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10646 $as_echo "$aros_tool_prefix" >&6; }
10647 # We are *not* building AROS crosstools - use the AROS or ELF tools
10649 if test "${aros_tool_prefix}cpp" = ""; then
10650 if test "$cross_compiling" = "yes" ; then
10651 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10652 set dummy ${target_tool_prefix}cpp; ac_word=$2
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654 $as_echo_n "checking for $ac_word... " >&6; }
10655 if ${ac_cv_path_orig_target_cpp+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 case $orig_target_cpp in
10659 [\\/]* | ?:[\\/]*)
10660 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10674 done
10675 done
10676 IFS=$as_save_IFS
10679 esac
10681 orig_target_cpp=$ac_cv_path_orig_target_cpp
10682 if test -n "$orig_target_cpp"; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10684 $as_echo "$orig_target_cpp" >&6; }
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; }
10691 else
10692 if test "$GCC" = "yes"; then
10693 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10694 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10695 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 $as_echo_n "checking for $ac_word... " >&6; }
10698 if ${ac_cv_path_orig_target_cpp+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 case $orig_target_cpp in
10702 [\\/]* | ?:[\\/]*)
10703 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707 for as_dir in `dirname $aros_gcc_cpp`
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10717 done
10718 done
10719 IFS=$as_save_IFS
10722 esac
10724 orig_target_cpp=$ac_cv_path_orig_target_cpp
10725 if test -n "$orig_target_cpp"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10727 $as_echo "$orig_target_cpp" >&6; }
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10735 if test "$orig_target_cpp" = ""; then
10736 # Extract the first word of "cpp", so it can be a program name with args.
10737 set dummy cpp; ac_word=$2
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739 $as_echo_n "checking for $ac_word... " >&6; }
10740 if ${ac_cv_path_orig_target_cpp+:} false; then :
10741 $as_echo_n "(cached) " >&6
10742 else
10743 case $orig_target_cpp in
10744 [\\/]* | ?:[\\/]*)
10745 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749 for as_dir in $PATH
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10755 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 break 2
10759 done
10760 done
10761 IFS=$as_save_IFS
10764 esac
10766 orig_target_cpp=$ac_cv_path_orig_target_cpp
10767 if test -n "$orig_target_cpp"; then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10769 $as_echo "$orig_target_cpp" >&6; }
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10778 else
10779 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10780 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10782 $as_echo_n "checking for $ac_word... " >&6; }
10783 if ${ac_cv_path_orig_target_cpp+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 case $orig_target_cpp in
10787 [\\/]* | ?:[\\/]*)
10788 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10802 done
10803 done
10804 IFS=$as_save_IFS
10807 esac
10809 orig_target_cpp=$ac_cv_path_orig_target_cpp
10810 if test -n "$orig_target_cpp"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10812 $as_echo "$orig_target_cpp" >&6; }
10813 else
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10821 if test "$orig_target_cpp" = ""; then
10822 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10825 if test "${aros_tool_prefix}gcc" = ""; then
10826 if test "$cross_compiling" = "yes" ; then
10827 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10828 set dummy ${target_tool_prefix}gcc; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if ${ac_cv_path_orig_target_cc+:} false; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 case $orig_target_cc in
10835 [\\/]* | ?:[\\/]*)
10836 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10850 done
10851 done
10852 IFS=$as_save_IFS
10855 esac
10857 orig_target_cc=$ac_cv_path_orig_target_cc
10858 if test -n "$orig_target_cc"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10860 $as_echo "$orig_target_cc" >&6; }
10861 else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10867 else
10868 if test "$GCC" = "yes"; then
10869 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10870 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10871 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if ${ac_cv_path_orig_target_cc+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 case $orig_target_cc in
10878 [\\/]* | ?:[\\/]*)
10879 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in `dirname $aros_gcc_gcc`
10885 IFS=$as_save_IFS
10886 test -z "$as_dir" && as_dir=.
10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10889 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10891 break 2
10893 done
10894 done
10895 IFS=$as_save_IFS
10898 esac
10900 orig_target_cc=$ac_cv_path_orig_target_cc
10901 if test -n "$orig_target_cc"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10903 $as_echo "$orig_target_cc" >&6; }
10904 else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10911 if test "$orig_target_cc" = ""; then
10912 # Extract the first word of "gcc", so it can be a program name with args.
10913 set dummy gcc; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if ${ac_cv_path_orig_target_cc+:} false; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 case $orig_target_cc in
10920 [\\/]* | ?:[\\/]*)
10921 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10927 IFS=$as_save_IFS
10928 test -z "$as_dir" && as_dir=.
10929 for ac_exec_ext in '' $ac_executable_extensions; do
10930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10931 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10935 done
10936 done
10937 IFS=$as_save_IFS
10940 esac
10942 orig_target_cc=$ac_cv_path_orig_target_cc
10943 if test -n "$orig_target_cc"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10945 $as_echo "$orig_target_cc" >&6; }
10946 else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10954 else
10955 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10956 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if ${ac_cv_path_orig_target_cc+:} false; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 case $orig_target_cc in
10963 [\\/]* | ?:[\\/]*)
10964 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10974 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10978 done
10979 done
10980 IFS=$as_save_IFS
10983 esac
10985 orig_target_cc=$ac_cv_path_orig_target_cc
10986 if test -n "$orig_target_cc"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10988 $as_echo "$orig_target_cc" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10997 if test "$orig_target_cc" = ""; then
10998 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11000 if test "x${crosstools_cxx_target}" = "x" ; then
11002 if test "${aros_tool_prefix}g++" = ""; then
11003 if test "$cross_compiling" = "yes" ; then
11004 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11005 set dummy ${target_tool_prefix}g++; ac_word=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if ${ac_cv_path_orig_target_cxx+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 case $orig_target_cxx in
11012 [\\/]* | ?:[\\/]*)
11013 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017 for as_dir in $PATH
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11023 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11027 done
11028 done
11029 IFS=$as_save_IFS
11032 esac
11034 orig_target_cxx=$ac_cv_path_orig_target_cxx
11035 if test -n "$orig_target_cxx"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11037 $as_echo "$orig_target_cxx" >&6; }
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 $as_echo "no" >&6; }
11044 else
11045 if test "$GCC" = "yes"; then
11046 aros_gcc_g++=`$CC -print-prog-name=g++`
11047 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11048 set dummy `basename $aros_gcc_g++`; ac_word=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050 $as_echo_n "checking for $ac_word... " >&6; }
11051 if ${ac_cv_path_orig_target_cxx+:} false; then :
11052 $as_echo_n "(cached) " >&6
11053 else
11054 case $orig_target_cxx in
11055 [\\/]* | ?:[\\/]*)
11056 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in `dirname $aros_gcc_g++`
11062 IFS=$as_save_IFS
11063 test -z "$as_dir" && as_dir=.
11064 for ac_exec_ext in '' $ac_executable_extensions; do
11065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11066 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068 break 2
11070 done
11071 done
11072 IFS=$as_save_IFS
11075 esac
11077 orig_target_cxx=$ac_cv_path_orig_target_cxx
11078 if test -n "$orig_target_cxx"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11080 $as_echo "$orig_target_cxx" >&6; }
11081 else
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; }
11088 if test "$orig_target_cxx" = ""; then
11089 # Extract the first word of "g++", so it can be a program name with args.
11090 set dummy g++; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if ${ac_cv_path_orig_target_cxx+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 case $orig_target_cxx in
11097 [\\/]* | ?:[\\/]*)
11098 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $PATH
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11108 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 break 2
11112 done
11113 done
11114 IFS=$as_save_IFS
11117 esac
11119 orig_target_cxx=$ac_cv_path_orig_target_cxx
11120 if test -n "$orig_target_cxx"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11122 $as_echo "$orig_target_cxx" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11131 else
11132 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11133 set dummy ${aros_tool_prefix}g++; ac_word=$2
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135 $as_echo_n "checking for $ac_word... " >&6; }
11136 if ${ac_cv_path_orig_target_cxx+:} false; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 case $orig_target_cxx in
11140 [\\/]* | ?:[\\/]*)
11141 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11151 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11155 done
11156 done
11157 IFS=$as_save_IFS
11160 esac
11162 orig_target_cxx=$ac_cv_path_orig_target_cxx
11163 if test -n "$orig_target_cxx"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11165 $as_echo "$orig_target_cxx" >&6; }
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11174 if test "$orig_target_cxx" = ""; then
11175 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11179 if test "${aros_tool_prefix}ld" = ""; then
11180 if test "$cross_compiling" = "yes" ; then
11181 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11182 set dummy ${target_tool_prefix}gcc; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_path_orig_target_ld+:} false; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 case $orig_target_ld in
11189 [\\/]* | ?:[\\/]*)
11190 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11200 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11204 done
11205 done
11206 IFS=$as_save_IFS
11209 esac
11211 orig_target_ld=$ac_cv_path_orig_target_ld
11212 if test -n "$orig_target_ld"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11214 $as_echo "$orig_target_ld" >&6; }
11215 else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11221 else
11222 if test "$GCC" = "yes"; then
11223 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11224 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11225 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11227 $as_echo_n "checking for $ac_word... " >&6; }
11228 if ${ac_cv_path_orig_target_ld+:} false; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 case $orig_target_ld in
11232 [\\/]* | ?:[\\/]*)
11233 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in `dirname $aros_gcc_gcc`
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11243 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11247 done
11248 done
11249 IFS=$as_save_IFS
11252 esac
11254 orig_target_ld=$ac_cv_path_orig_target_ld
11255 if test -n "$orig_target_ld"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11257 $as_echo "$orig_target_ld" >&6; }
11258 else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11265 if test "$orig_target_ld" = ""; then
11266 # Extract the first word of "gcc", so it can be a program name with args.
11267 set dummy gcc; ac_word=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if ${ac_cv_path_orig_target_ld+:} false; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 case $orig_target_ld in
11274 [\\/]* | ?:[\\/]*)
11275 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279 for as_dir in $PATH
11281 IFS=$as_save_IFS
11282 test -z "$as_dir" && as_dir=.
11283 for ac_exec_ext in '' $ac_executable_extensions; do
11284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11285 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 break 2
11289 done
11290 done
11291 IFS=$as_save_IFS
11294 esac
11296 orig_target_ld=$ac_cv_path_orig_target_ld
11297 if test -n "$orig_target_ld"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11299 $as_echo "$orig_target_ld" >&6; }
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11308 else
11309 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11310 set dummy ${aros_tool_prefix}ld; ac_word=$2
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11312 $as_echo_n "checking for $ac_word... " >&6; }
11313 if ${ac_cv_path_orig_target_ld+:} false; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 case $orig_target_ld in
11317 [\\/]* | ?:[\\/]*)
11318 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11328 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11332 done
11333 done
11334 IFS=$as_save_IFS
11337 esac
11339 orig_target_ld=$ac_cv_path_orig_target_ld
11340 if test -n "$orig_target_ld"; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11342 $as_echo "$orig_target_ld" >&6; }
11343 else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11351 if test "$orig_target_ld" = ""; then
11352 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11355 if test "${aros_tool_prefix}as" = ""; then
11356 if test "$cross_compiling" = "yes" ; then
11357 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11358 set dummy ${target_tool_prefix}as; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if ${ac_cv_path_orig_target_as+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 case $orig_target_as in
11365 [\\/]* | ?:[\\/]*)
11366 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370 for as_dir in $PATH
11372 IFS=$as_save_IFS
11373 test -z "$as_dir" && as_dir=.
11374 for ac_exec_ext in '' $ac_executable_extensions; do
11375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11376 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11378 break 2
11380 done
11381 done
11382 IFS=$as_save_IFS
11385 esac
11387 orig_target_as=$ac_cv_path_orig_target_as
11388 if test -n "$orig_target_as"; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11390 $as_echo "$orig_target_as" >&6; }
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11397 else
11398 if test "$GCC" = "yes"; then
11399 aros_gcc_as=`$CC -print-prog-name=as`
11400 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11401 set dummy `basename $aros_gcc_as`; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if ${ac_cv_path_orig_target_as+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 case $orig_target_as in
11408 [\\/]* | ?:[\\/]*)
11409 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413 for as_dir in `dirname $aros_gcc_as`
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11419 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 break 2
11423 done
11424 done
11425 IFS=$as_save_IFS
11428 esac
11430 orig_target_as=$ac_cv_path_orig_target_as
11431 if test -n "$orig_target_as"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11433 $as_echo "$orig_target_as" >&6; }
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 $as_echo "no" >&6; }
11441 if test "$orig_target_as" = ""; then
11442 # Extract the first word of "as", so it can be a program name with args.
11443 set dummy as; ac_word=$2
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if ${ac_cv_path_orig_target_as+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 case $orig_target_as in
11450 [\\/]* | ?:[\\/]*)
11451 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in $PATH
11457 IFS=$as_save_IFS
11458 test -z "$as_dir" && as_dir=.
11459 for ac_exec_ext in '' $ac_executable_extensions; do
11460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11461 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11463 break 2
11465 done
11466 done
11467 IFS=$as_save_IFS
11470 esac
11472 orig_target_as=$ac_cv_path_orig_target_as
11473 if test -n "$orig_target_as"; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11475 $as_echo "$orig_target_as" >&6; }
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11484 else
11485 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11486 set dummy ${aros_tool_prefix}as; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if ${ac_cv_path_orig_target_as+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 case $orig_target_as in
11493 [\\/]* | ?:[\\/]*)
11494 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH
11500 IFS=$as_save_IFS
11501 test -z "$as_dir" && as_dir=.
11502 for ac_exec_ext in '' $ac_executable_extensions; do
11503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11504 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 break 2
11508 done
11509 done
11510 IFS=$as_save_IFS
11513 esac
11515 orig_target_as=$ac_cv_path_orig_target_as
11516 if test -n "$orig_target_as"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11518 $as_echo "$orig_target_as" >&6; }
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521 $as_echo "no" >&6; }
11527 if test "$orig_target_as" = ""; then
11528 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11531 if test "${aros_tool_prefix}ar" = ""; then
11532 if test "$cross_compiling" = "yes" ; then
11533 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11534 set dummy ${target_tool_prefix}ar; ac_word=$2
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if ${ac_cv_path_orig_target_ar+:} false; then :
11538 $as_echo_n "(cached) " >&6
11539 else
11540 case $orig_target_ar in
11541 [\\/]* | ?:[\\/]*)
11542 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11552 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 break 2
11556 done
11557 done
11558 IFS=$as_save_IFS
11561 esac
11563 orig_target_ar=$ac_cv_path_orig_target_ar
11564 if test -n "$orig_target_ar"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11566 $as_echo "$orig_target_ar" >&6; }
11567 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11573 else
11574 if test "$GCC" = "yes"; then
11575 aros_gcc_ar=`$CC -print-prog-name=ar`
11576 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11577 set dummy `basename $aros_gcc_ar`; ac_word=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if ${ac_cv_path_orig_target_ar+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 case $orig_target_ar in
11584 [\\/]* | ?:[\\/]*)
11585 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in `dirname $aros_gcc_ar`
11591 IFS=$as_save_IFS
11592 test -z "$as_dir" && as_dir=.
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11595 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11597 break 2
11599 done
11600 done
11601 IFS=$as_save_IFS
11604 esac
11606 orig_target_ar=$ac_cv_path_orig_target_ar
11607 if test -n "$orig_target_ar"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11609 $as_echo "$orig_target_ar" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11617 if test "$orig_target_ar" = ""; then
11618 # Extract the first word of "ar", so it can be a program name with args.
11619 set dummy ar; ac_word=$2
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621 $as_echo_n "checking for $ac_word... " >&6; }
11622 if ${ac_cv_path_orig_target_ar+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 case $orig_target_ar in
11626 [\\/]* | ?:[\\/]*)
11627 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11633 IFS=$as_save_IFS
11634 test -z "$as_dir" && as_dir=.
11635 for ac_exec_ext in '' $ac_executable_extensions; do
11636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11637 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 break 2
11641 done
11642 done
11643 IFS=$as_save_IFS
11646 esac
11648 orig_target_ar=$ac_cv_path_orig_target_ar
11649 if test -n "$orig_target_ar"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11651 $as_echo "$orig_target_ar" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11660 else
11661 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11662 set dummy ${aros_tool_prefix}ar; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_path_orig_target_ar+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 case $orig_target_ar in
11669 [\\/]* | ?:[\\/]*)
11670 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11684 done
11685 done
11686 IFS=$as_save_IFS
11689 esac
11691 orig_target_ar=$ac_cv_path_orig_target_ar
11692 if test -n "$orig_target_ar"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11694 $as_echo "$orig_target_ar" >&6; }
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11703 if test "$orig_target_ar" = ""; then
11704 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11707 if test "${aros_tool_prefix}ranlib" = ""; then
11708 if test "$cross_compiling" = "yes" ; then
11709 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11710 set dummy ${target_tool_prefix}ar; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 case $orig_target_ranlib in
11717 [\\/]* | ?:[\\/]*)
11718 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11732 done
11733 done
11734 IFS=$as_save_IFS
11737 esac
11739 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11740 if test -n "$orig_target_ranlib"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11742 $as_echo "$orig_target_ranlib" >&6; }
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11749 else
11750 if test "$GCC" = "yes"; then
11751 aros_gcc_ar=`$CC -print-prog-name=ar`
11752 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11753 set dummy `basename $aros_gcc_ar`; ac_word=$2
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11755 $as_echo_n "checking for $ac_word... " >&6; }
11756 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11757 $as_echo_n "(cached) " >&6
11758 else
11759 case $orig_target_ranlib in
11760 [\\/]* | ?:[\\/]*)
11761 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in `dirname $aros_gcc_ar`
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11771 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 break 2
11775 done
11776 done
11777 IFS=$as_save_IFS
11780 esac
11782 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11783 if test -n "$orig_target_ranlib"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11785 $as_echo "$orig_target_ranlib" >&6; }
11786 else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11793 if test "$orig_target_ranlib" = ""; then
11794 # Extract the first word of "ar", so it can be a program name with args.
11795 set dummy ar; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 case $orig_target_ranlib in
11802 [\\/]* | ?:[\\/]*)
11803 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11813 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 break 2
11817 done
11818 done
11819 IFS=$as_save_IFS
11822 esac
11824 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11825 if test -n "$orig_target_ranlib"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11827 $as_echo "$orig_target_ranlib" >&6; }
11828 else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11836 else
11837 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11838 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11842 $as_echo_n "(cached) " >&6
11843 else
11844 case $orig_target_ranlib in
11845 [\\/]* | ?:[\\/]*)
11846 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11856 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 break 2
11860 done
11861 done
11862 IFS=$as_save_IFS
11865 esac
11867 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11868 if test -n "$orig_target_ranlib"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11870 $as_echo "$orig_target_ranlib" >&6; }
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11879 if test "$orig_target_ranlib" = ""; then
11880 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11883 if test "${aros_tool_prefix}nm" = ""; then
11884 if test "$cross_compiling" = "yes" ; then
11885 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11886 set dummy ${target_tool_prefix}nm; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if ${ac_cv_path_orig_target_nm+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 case $orig_target_nm in
11893 [\\/]* | ?:[\\/]*)
11894 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11904 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11908 done
11909 done
11910 IFS=$as_save_IFS
11913 esac
11915 orig_target_nm=$ac_cv_path_orig_target_nm
11916 if test -n "$orig_target_nm"; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11918 $as_echo "$orig_target_nm" >&6; }
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11925 else
11926 if test "$GCC" = "yes"; then
11927 aros_gcc_nm=`$CC -print-prog-name=nm`
11928 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11929 set dummy `basename $aros_gcc_nm`; ac_word=$2
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931 $as_echo_n "checking for $ac_word... " >&6; }
11932 if ${ac_cv_path_orig_target_nm+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 case $orig_target_nm in
11936 [\\/]* | ?:[\\/]*)
11937 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941 for as_dir in `dirname $aros_gcc_nm`
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11947 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949 break 2
11951 done
11952 done
11953 IFS=$as_save_IFS
11956 esac
11958 orig_target_nm=$ac_cv_path_orig_target_nm
11959 if test -n "$orig_target_nm"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11961 $as_echo "$orig_target_nm" >&6; }
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11969 if test "$orig_target_nm" = ""; then
11970 # Extract the first word of "nm", so it can be a program name with args.
11971 set dummy nm; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_path_orig_target_nm+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 case $orig_target_nm in
11978 [\\/]* | ?:[\\/]*)
11979 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11989 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 break 2
11993 done
11994 done
11995 IFS=$as_save_IFS
11998 esac
12000 orig_target_nm=$ac_cv_path_orig_target_nm
12001 if test -n "$orig_target_nm"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12003 $as_echo "$orig_target_nm" >&6; }
12004 else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12012 else
12013 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12014 set dummy ${aros_tool_prefix}nm; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_path_orig_target_nm+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 case $orig_target_nm in
12021 [\\/]* | ?:[\\/]*)
12022 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12032 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 break 2
12036 done
12037 done
12038 IFS=$as_save_IFS
12041 esac
12043 orig_target_nm=$ac_cv_path_orig_target_nm
12044 if test -n "$orig_target_nm"; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12046 $as_echo "$orig_target_nm" >&6; }
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12055 if test "$orig_target_nm" = ""; then
12056 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12059 if test "${aros_tool_prefix}strip" = ""; then
12060 if test "$cross_compiling" = "yes" ; then
12061 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12062 set dummy ${target_tool_prefix}strip; ac_word=$2
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12064 $as_echo_n "checking for $ac_word... " >&6; }
12065 if ${ac_cv_path_orig_target_strip+:} false; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 case $orig_target_strip in
12069 [\\/]* | ?:[\\/]*)
12070 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $PATH
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12080 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12082 break 2
12084 done
12085 done
12086 IFS=$as_save_IFS
12089 esac
12091 orig_target_strip=$ac_cv_path_orig_target_strip
12092 if test -n "$orig_target_strip"; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12094 $as_echo "$orig_target_strip" >&6; }
12095 else
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097 $as_echo "no" >&6; }
12101 else
12102 if test "$GCC" = "yes"; then
12103 aros_gcc_strip=`$CC -print-prog-name=strip`
12104 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12105 set dummy `basename $aros_gcc_strip`; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if ${ac_cv_path_orig_target_strip+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 case $orig_target_strip in
12112 [\\/]* | ?:[\\/]*)
12113 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in `dirname $aros_gcc_strip`
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12123 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12127 done
12128 done
12129 IFS=$as_save_IFS
12132 esac
12134 orig_target_strip=$ac_cv_path_orig_target_strip
12135 if test -n "$orig_target_strip"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12137 $as_echo "$orig_target_strip" >&6; }
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12145 if test "$orig_target_strip" = ""; then
12146 # Extract the first word of "strip", so it can be a program name with args.
12147 set dummy strip; ac_word=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if ${ac_cv_path_orig_target_strip+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 case $orig_target_strip in
12154 [\\/]* | ?:[\\/]*)
12155 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12169 done
12170 done
12171 IFS=$as_save_IFS
12174 esac
12176 orig_target_strip=$ac_cv_path_orig_target_strip
12177 if test -n "$orig_target_strip"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12179 $as_echo "$orig_target_strip" >&6; }
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12188 else
12189 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12190 set dummy ${aros_tool_prefix}strip; ac_word=$2
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192 $as_echo_n "checking for $ac_word... " >&6; }
12193 if ${ac_cv_path_orig_target_strip+:} false; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 case $orig_target_strip in
12197 [\\/]* | ?:[\\/]*)
12198 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12208 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12212 done
12213 done
12214 IFS=$as_save_IFS
12217 esac
12219 orig_target_strip=$ac_cv_path_orig_target_strip
12220 if test -n "$orig_target_strip"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12222 $as_echo "$orig_target_strip" >&6; }
12223 else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12231 if test "$orig_target_strip" = ""; then
12232 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12235 if test "${aros_tool_prefix}objcopy" = ""; then
12236 if test "$cross_compiling" = "yes" ; then
12237 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12238 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12240 $as_echo_n "checking for $ac_word... " >&6; }
12241 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 case $orig_target_objcopy in
12245 [\\/]* | ?:[\\/]*)
12246 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $PATH
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12256 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 break 2
12260 done
12261 done
12262 IFS=$as_save_IFS
12265 esac
12267 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12268 if test -n "$orig_target_objcopy"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12270 $as_echo "$orig_target_objcopy" >&6; }
12271 else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12277 else
12278 if test "$GCC" = "yes"; then
12279 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12280 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12281 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 case $orig_target_objcopy in
12288 [\\/]* | ?:[\\/]*)
12289 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293 for as_dir in `dirname $aros_gcc_objcopy`
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
12297 for ac_exec_ext in '' $ac_executable_extensions; do
12298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12299 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 break 2
12303 done
12304 done
12305 IFS=$as_save_IFS
12308 esac
12310 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12311 if test -n "$orig_target_objcopy"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12313 $as_echo "$orig_target_objcopy" >&6; }
12314 else
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12321 if test "$orig_target_objcopy" = ""; then
12322 # Extract the first word of "objcopy", so it can be a program name with args.
12323 set dummy objcopy; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 case $orig_target_objcopy in
12330 [\\/]* | ?:[\\/]*)
12331 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12341 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12345 done
12346 done
12347 IFS=$as_save_IFS
12350 esac
12352 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12353 if test -n "$orig_target_objcopy"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12355 $as_echo "$orig_target_objcopy" >&6; }
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12364 else
12365 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12366 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12368 $as_echo_n "checking for $ac_word... " >&6; }
12369 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 case $orig_target_objcopy in
12373 [\\/]* | ?:[\\/]*)
12374 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12388 done
12389 done
12390 IFS=$as_save_IFS
12393 esac
12395 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12396 if test -n "$orig_target_objcopy"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12398 $as_echo "$orig_target_objcopy" >&6; }
12399 else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401 $as_echo "no" >&6; }
12407 if test "$orig_target_objcopy" = ""; then
12408 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12411 if test "${aros_tool_prefix}objdump" = ""; then
12412 if test "$cross_compiling" = "yes" ; then
12413 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12414 set dummy ${target_tool_prefix}objdump; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if ${ac_cv_path_orig_target_objdump+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 case $orig_target_objdump in
12421 [\\/]* | ?:[\\/]*)
12422 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12428 IFS=$as_save_IFS
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12432 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 break 2
12436 done
12437 done
12438 IFS=$as_save_IFS
12441 esac
12443 orig_target_objdump=$ac_cv_path_orig_target_objdump
12444 if test -n "$orig_target_objdump"; then
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12446 $as_echo "$orig_target_objdump" >&6; }
12447 else
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449 $as_echo "no" >&6; }
12453 else
12454 if test "$GCC" = "yes"; then
12455 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12456 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12457 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459 $as_echo_n "checking for $ac_word... " >&6; }
12460 if ${ac_cv_path_orig_target_objdump+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 case $orig_target_objdump in
12464 [\\/]* | ?:[\\/]*)
12465 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in `dirname $aros_gcc_objdump`
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12475 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12479 done
12480 done
12481 IFS=$as_save_IFS
12484 esac
12486 orig_target_objdump=$ac_cv_path_orig_target_objdump
12487 if test -n "$orig_target_objdump"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12489 $as_echo "$orig_target_objdump" >&6; }
12490 else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12497 if test "$orig_target_objdump" = ""; then
12498 # Extract the first word of "objdump", so it can be a program name with args.
12499 set dummy objdump; ac_word=$2
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501 $as_echo_n "checking for $ac_word... " >&6; }
12502 if ${ac_cv_path_orig_target_objdump+:} false; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 case $orig_target_objdump in
12506 [\\/]* | ?:[\\/]*)
12507 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511 for as_dir in $PATH
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12517 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 break 2
12521 done
12522 done
12523 IFS=$as_save_IFS
12526 esac
12528 orig_target_objdump=$ac_cv_path_orig_target_objdump
12529 if test -n "$orig_target_objdump"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12531 $as_echo "$orig_target_objdump" >&6; }
12532 else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12540 else
12541 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12542 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544 $as_echo_n "checking for $ac_word... " >&6; }
12545 if ${ac_cv_path_orig_target_objdump+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 case $orig_target_objdump in
12549 [\\/]* | ?:[\\/]*)
12550 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $PATH
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12560 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12564 done
12565 done
12566 IFS=$as_save_IFS
12569 esac
12571 orig_target_objdump=$ac_cv_path_orig_target_objdump
12572 if test -n "$orig_target_objdump"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12574 $as_echo "$orig_target_objdump" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12583 if test "$orig_target_objdump" = ""; then
12584 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12587 if test "${aros_tool_prefix}elfedit" = ""; then
12588 if test "$cross_compiling" = "yes" ; then
12589 # Extract the first word of "${target_tool_prefix}elfedit", so it can be a program name with args.
12590 set dummy ${target_tool_prefix}elfedit; ac_word=$2
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if ${ac_cv_path_orig_target_elfedit+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 case $orig_target_elfedit in
12597 [\\/]* | ?:[\\/]*)
12598 ac_cv_path_orig_target_elfedit="$orig_target_elfedit" # Let the user override the test with a path.
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12604 IFS=$as_save_IFS
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
12607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608 ac_cv_path_orig_target_elfedit="$as_dir/$ac_word$ac_exec_ext"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 break 2
12612 done
12613 done
12614 IFS=$as_save_IFS
12617 esac
12619 orig_target_elfedit=$ac_cv_path_orig_target_elfedit
12620 if test -n "$orig_target_elfedit"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_elfedit" >&5
12622 $as_echo "$orig_target_elfedit" >&6; }
12623 else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12629 else
12630 if test "$GCC" = "yes"; then
12631 aros_gcc_elfedit=`$CC -print-prog-name=elfedit`
12632 # Extract the first word of "`basename $aros_gcc_[elfedit]`", so it can be a program name with args.
12633 set dummy `basename $aros_gcc_elfedit`; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_path_orig_target_elfedit+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 case $orig_target_elfedit in
12640 [\\/]* | ?:[\\/]*)
12641 ac_cv_path_orig_target_elfedit="$orig_target_elfedit" # Let the user override the test with a path.
12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645 for as_dir in `dirname $aros_gcc_elfedit`
12647 IFS=$as_save_IFS
12648 test -z "$as_dir" && as_dir=.
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12651 ac_cv_path_orig_target_elfedit="$as_dir/$ac_word$ac_exec_ext"
12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 break 2
12655 done
12656 done
12657 IFS=$as_save_IFS
12660 esac
12662 orig_target_elfedit=$ac_cv_path_orig_target_elfedit
12663 if test -n "$orig_target_elfedit"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_elfedit" >&5
12665 $as_echo "$orig_target_elfedit" >&6; }
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12673 if test "$orig_target_elfedit" = ""; then
12674 # Extract the first word of "elfedit", so it can be a program name with args.
12675 set dummy elfedit; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_path_orig_target_elfedit+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 case $orig_target_elfedit in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_orig_target_elfedit="$orig_target_elfedit" # Let the user override the test with a path.
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_path_orig_target_elfedit="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12697 done
12698 done
12699 IFS=$as_save_IFS
12702 esac
12704 orig_target_elfedit=$ac_cv_path_orig_target_elfedit
12705 if test -n "$orig_target_elfedit"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_elfedit" >&5
12707 $as_echo "$orig_target_elfedit" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12716 else
12717 # Extract the first word of "${aros_tool_prefix}elfedit", so it can be a program name with args.
12718 set dummy ${aros_tool_prefix}elfedit; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_path_orig_target_elfedit+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 case $orig_target_elfedit in
12725 [\\/]* | ?:[\\/]*)
12726 ac_cv_path_orig_target_elfedit="$orig_target_elfedit" # Let the user override the test with a path.
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
12735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12736 ac_cv_path_orig_target_elfedit="$as_dir/$ac_word$ac_exec_ext"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 break 2
12740 done
12741 done
12742 IFS=$as_save_IFS
12745 esac
12747 orig_target_elfedit=$ac_cv_path_orig_target_elfedit
12748 if test -n "$orig_target_elfedit"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_elfedit" >&5
12750 $as_echo "$orig_target_elfedit" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12759 if test "$orig_target_elfedit" = ""; then
12760 as_fn_error $? "elfedit is required to build AROS. Please install and run configure again." "$LINENO" 5
12764 if test "$kernel_tool_prefix" = "none" ; then
12765 # No kernel tools specified
12766 # Assume target tools == kernel tools with ELF wrapper
12767 aros_kernel_cc=$orig_target_cc
12768 aros_kernel_cxx=$orig_target_cxx
12769 aros_kernel_cpp=$orig_target_cpp
12770 aros_kernel_ld=$orig_target_ld
12771 aros_kernel_as=$orig_target_as
12772 aros_kernel_ar=$orig_target_ar
12773 aros_kernel_ranlib=$orig_target_ranlib
12774 aros_kernel_nm=$orig_target_nm
12775 aros_kernel_strip=$orig_target_strip
12776 aros_kernel_objcopy=$orig_target_objcopy
12777 aros_kernel_objdump=$orig_target_objdump
12778 use_kernel_cc_wrapper=yes
12781 # At this point, all aros_kernel_* and aros_target_*
12782 # tools should be set up correctly
12784 CC="$aros_kernel_cc $kernel_tool_flags"
12785 CPP="$aros_kernel_cpp"
12787 #-----------------------------------------------------------------------------
12789 # Disable pointer-signedness warnings if the compiler recognises the option
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12792 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12793 save_cflags="$CFLAGS"
12794 if test "$crosstools" != "yes" ; then
12795 CFLAGS="$CFLAGS -Wno-pointer-sign"
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12800 main ()
12804 return 0;
12806 _ACEOF
12807 if ac_fn_c_try_compile "$LINENO"; then :
12808 use_no_sign_warning="yes"
12809 else
12810 use_no_sign_warning="no"
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 else
12814 # we do know it is supported for the smallest version of gcc we are going to build
12815 # we assume it's also supported by later versions
12816 use_no_sign_warning=yes
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12819 $as_echo "$use_no_sign_warning" >&6; }
12820 if test "x-$use_no_sign_warning" = "x-yes" ; then
12821 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12823 CFLAGS="$save_cflags"
12825 #-----------------------------------------------------------------------------
12827 # Find all the tools we need to compile. This could be cross-compiling
12828 # though! If that is the case we use the GNU form of the target and
12829 # simply add this to the front of the binary name. This is rather simple,
12830 # but it should work under most circumstances.
12832 # The default tools are to use the same as the host, but only if the
12833 # host and target CPU are the same. With GCC this is normally enough.
12836 aros_cc_pre=""
12837 aros_shared_ld="$aros_host_ld"
12839 aros_target_mkdep="$aros_host_mkdep"
12841 # The default tools executables to be linked to.
12842 if test "$rescomp" != ""; then
12843 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12844 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 case $aros_kernel_rescomp in
12851 [\\/]* | ?:[\\/]*)
12852 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12862 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12866 done
12867 done
12868 IFS=$as_save_IFS
12871 esac
12873 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12874 if test -n "$aros_kernel_rescomp"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12876 $as_echo "$aros_kernel_rescomp" >&6; }
12877 else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12883 if test "$aros_kernel_rescomp" = ""; then
12884 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12888 # Set up the sources for the symlink farm
12889 if test "$crosstools" = "yes"; then
12890 crosstools_target=tools-crosstools
12893 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12894 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12897 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12898 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12899 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12900 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12901 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12902 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12903 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12905 # aros_cc_pre is a variable that is added to the front of the compiler name
12906 # in the generated aros-gcc shell script. We need this to enable the cache
12907 # to work across cleaned builds. Also, support DISTCC using the correct
12908 # environment variable.
12911 if test "x${DISTCC}" != "x" ; then
12912 if test "x${CCACHE}" != "x" ; then
12913 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12914 else
12915 aros_cc_pre="${DISTCC} "
12917 else
12918 if test "x${CCACHE}" != "x" ; then
12919 aros_cc_pre="${CCACHE} "
12923 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12925 aros_target_nostdinc_cflags=-nostdinc
12927 aros_target_nostartup_ldflags=-nostartfiles
12929 aros_target_nix_ldflags=-nix
12931 aros_target_detach_ldflags=-detach
12933 aros_target_nostdlib_ldflags=-nostdlib
12936 # Target tools
12937 if test "$crosstools" != "yes"; then
12938 if test "$GCC" = "yes"; then
12939 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12941 else
12942 # We do not know which gcc version we are going to build and what we need to know
12943 # here is different for different versions so this will be set later during the
12944 # build of crosstools.
12945 aros_target_cc_path=@aros_target_cc_path@
12947 aros_target_cpp="${prefix}cpp"
12948 aros_target_cc="${prefix}gcc"
12949 aros_target_cxx="${prefix}g++"
12950 aros_target_as="${prefix}as"
12951 aros_target_ld="${prefix}ld"
12952 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12953 aros_target_objcopy="${prefix}objcopy"
12954 aros_target_objdump="${prefix}objdump"
12955 aros_target_elfedit="${prefix}elfedit"
12956 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12957 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12958 aros_target_strip="${prefix}strip"
12959 aros_plain_nm="${prefix}nm"
12960 aros_plain_ar="${prefix}ar"
12962 # Check whether --enable-includes was given.
12963 if test "${enable_includes+set}" = set; then :
12964 enableval=$enable_includes; aros_target_incl=$enable_includes
12965 else
12966 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12970 if test "$aros_kernel_includes" = ""; then
12971 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12972 aros_kernel_includes="-isystem $aros_target_incl"
12976 if test "$aros_kernel_includes" != "" ; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12978 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12979 if test "$aros_kernel_cc_includes" = "" ; then
12980 # Try to guess where the directory is.
12981 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12982 if test -d $aros_kernel_cc_includes; then
12983 # Check if there is also an include-fixed directory and add it
12984 # to kernel compiler's include path as it may contain some of
12985 # the headers we need.
12986 if test -d "$aros_kernel_cc_includes"-fixed; then
12987 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12989 # Check for specific includes directory. Neede for Ubuntu 11.10
12990 if test -d "/usr/include/i386-linux-gnu"; then
12991 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12993 else
12994 # The directory doesn't exist, we need to do some more work.
12995 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12997 # These are the headers we're looking for.
12998 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12999 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13000 zutil.h stdint.h"
13002 dirs=
13003 for h in $headers; do
13004 # Which other headers are needed by each of the above?
13005 deps=$(echo "#include <$h>" | \
13006 $aros_kernel_cc -E -M - 2>/dev/null | \
13007 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13009 # Copy all the needed headers to a directory beneath gendir.
13010 for d in $deps; do
13011 h=$(basename $d)
13012 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13013 sed -n "s,^.*/include\(/.*\),\1,p")
13014 ! test -d $dir && mkdir -p $dir
13015 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13016 done
13017 done
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13021 $as_echo "$aros_kernel_cc_includes" >&6; }
13022 # Adding -nostdinc to kernel includes as they are always used together.
13023 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13026 if test "$crosstools" != "yes"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13028 $as_echo_n "checking for the target compiler's include path... " >&6; }
13029 if test "$aros_target_cc_includes" = "" ; then
13030 #try to guess where the directory is
13031 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13032 if ! test -d $aros_target_cc_includes; then
13033 #the directory doesn't exist, we need to do some more work
13034 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13036 #these are the headers we're looking for
13037 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13038 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13039 zutil.h"
13041 dirs=
13042 for h in $headers; do
13043 #which other headers each of the above headers needs?
13044 deps=$(echo "#include <$h>" | \
13045 $orig_target_cc -E -M - 2>/dev/null | \
13046 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13048 #copy all the needed headers to a directory beneath gendir
13049 for d in $deps; do
13050 h=$(basename $d)
13051 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13052 sed -n "s,^.*/include\(/.*\),\1,p")
13053 ! test -d $dir && mkdir -p $dir
13054 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13055 done
13056 done
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13060 $as_echo "$aros_target_cc_includes" >&6; }
13061 else
13062 # We do not know which gcc version we are going to build and what we need to know
13063 # here is different for different versions so this will be set later during the
13064 # build of crosstools.
13065 aros_target_cc_includes=@aros_target_cc_includes@
13069 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13070 # On GCC >= 4.0 -iquote should be used
13073 save_cc="$CC"
13074 save_cflags="$CFLAGS"
13075 CFLAGS="-iquote."
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13077 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13078 if test "x-$crosstools" != "x-yes"; then
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13083 main ()
13087 return 0;
13089 _ACEOF
13090 if ac_fn_c_try_compile "$LINENO"; then :
13091 has_iquote="yes"
13092 else
13093 has_iquote="no"
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13096 else
13097 # we do know it is supported for the smallest version of gcc we are going to build
13098 # we assume it's also supported by later versions
13099 has_iquote=yes
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13102 $as_echo "$has_iquote" >&6; }
13103 if test "x-$has_iquote" = "x-yes" ; then
13104 host_cflags_iquote=-iquote
13105 host_cflags_iquote_end=
13106 else
13107 host_cflags_iquote=-I
13108 host_cflags_iquote_end=-I-
13110 kernel_cflags_iquote=$host_cflags_iquote
13111 kernel_cflags_iquote_end=$host_cflags_iquote_end
13112 if test "x-$cross_compiling" = "x-yes"; then
13113 CC="$aros_kernel_cc"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13115 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13116 if test "x-$crosstools" != "x-yes"; then
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13121 main ()
13125 return 0;
13127 _ACEOF
13128 if ac_fn_c_try_compile "$LINENO"; then :
13129 use_no_stack_protector="yes"
13130 else
13131 use_no_stack_protector="no"
13133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 else
13135 # we do know it is supported for the smallest version of gcc we are going to build
13136 # we assume it's also supported by later versions
13137 use_no_stack_protector=yes
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13140 $as_echo "$use_no_stack_protector" >&6; }
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13142 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13143 if test "x-$crosstools" != "x-yes"; then
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13148 main ()
13152 return 0;
13154 _ACEOF
13155 if ac_fn_c_try_compile "$LINENO"; then :
13156 has_iquote="yes"
13157 else
13158 has_iquote="no"
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 else
13162 # we do know it is supported for the smallest version of gcc we are going to build
13163 # we assume it's also supported by later versions
13164 has_iquote=yes
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13167 $as_echo "$has_iquote" >&6; }
13168 if test "x-$has_iquote" = "x-yes" ; then
13169 kernel_cflags_iquote=-iquote
13170 kernel_cflags_iquote_end=
13171 else
13172 kernel_cflags_iquote=-I
13173 kernel_cflags_iquote_end=-I-
13176 aros_cflags_iquote=$kernel_cflags_iquote
13177 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13178 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13179 CC="$orig_target_cc"
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13181 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13182 if test "x-$crosstools" != "x-yes"; then
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13187 main ()
13191 return 0;
13193 _ACEOF
13194 if ac_fn_c_try_compile "$LINENO"; then :
13195 has_iquote="yes"
13196 else
13197 has_iquote="no"
13199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13200 else
13201 # we do know it is supported for the smallest version of gcc we are going to build
13202 # we assume it's also supported by later versions
13203 has_iquote=yes
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13206 $as_echo "$has_iquote" >&6; }
13207 if test "x-$has_iquote" = "x-yes" ; then
13208 aros_cflags_iquote=-iquote
13209 aros_cflags_iquote_end=
13210 else
13211 aros_cflags_iquote=-I
13212 aros_cflags_iquote_end=-I-
13215 if test "x-$use_no_stack_protector" = "x-yes" ; then
13216 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13220 #-----------------------------------------------------------------------------
13222 # Check if the target compiler supports some options used for delinting:
13223 # -Wunused-but-set-variable
13224 # -Warray-bounds
13225 # -Wenum-compare
13226 # -Wstrict-overflow
13227 # -Wformat-security
13229 if test "x-$crosstools" != "x-yes"; then
13230 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13231 CC="$orig_target_cc"
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13234 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13235 CFLAGS=-Wunused-but-set-variable
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13240 main ()
13244 return 0;
13246 _ACEOF
13247 if ac_fn_c_try_compile "$LINENO"; then :
13248 aros_unused_but_set_variable="yes"
13249 else
13250 aros_unused_but_set_variable="no"
13252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13254 $as_echo "$aros_unused_but_set_variable" >&6; }
13255 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13256 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13260 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13261 CFLAGS=-Warray-bounds
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13266 main ()
13270 return 0;
13272 _ACEOF
13273 if ac_fn_c_try_compile "$LINENO"; then :
13274 aros_array_bounds="yes"
13275 else
13276 aros_array_bounds="no"
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13280 $as_echo "$aros_array_bounds" >&6; }
13281 if test "x-$aros_array_bounds" = "x-yes" ; then
13282 aros_cflags_array_bounds=-Wno-array-bounds
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13286 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13287 CFLAGS=-Wenum-compare
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13292 main ()
13296 return 0;
13298 _ACEOF
13299 if ac_fn_c_try_compile "$LINENO"; then :
13300 aros_enum_compare="yes"
13301 else
13302 aros_enum_compare="no"
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13306 $as_echo "$aros_enum_compare" >&6; }
13307 if test "x-$aros_enum_compare" = "x-yes" ; then
13308 aros_cflags_enum_compare=-Wno-enum-compare
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13312 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13313 CFLAGS=-Wstrict-overflow
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13318 main ()
13322 return 0;
13324 _ACEOF
13325 if ac_fn_c_try_compile "$LINENO"; then :
13326 aros_strict_overflow="yes"
13327 else
13328 aros_strict_overflow="no"
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13332 $as_echo "$aros_strict_overflow" >&6; }
13333 if test "x-$aros_strict_overflow" = "x-yes" ; then
13334 aros_cflags_strict_overflow=-Wno-strict-overflow
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13338 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13339 CFLAGS=-Wformat-security
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13344 main ()
13348 return 0;
13350 _ACEOF
13351 if ac_fn_c_try_compile "$LINENO"; then :
13352 aros_format_security="yes"
13353 else
13354 aros_format_security="no"
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13358 $as_echo "$aros_format_security" >&6; }
13359 if test "x-$aros_format_security" = "x-yes" ; then
13360 aros_cflags_format_security=-Wno-format-security
13362 else
13363 # We do not know which gcc version we are going to build and what we need to know
13364 # here is different for different versions so this will be set later during the
13365 # build of crosstools.
13366 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13367 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13368 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13369 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13370 aros_cflags_format_security=@aros_cflags_format_security@
13373 #-----------------------------------------------------------------------------
13375 # Check if we can explicitly choose older version of symbol hashing
13377 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13378 CC="$aros_kernel_cc"
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13380 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13385 main ()
13389 return 0;
13391 _ACEOF
13392 if ac_fn_c_try_link "$LINENO"; then :
13393 use_hash_style="yes"
13394 else
13395 use_hash_style="no"
13397 rm -f core conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13400 $as_echo "$use_hash_style" >&6; }
13401 if test "x-$use_hash_style" = "x-yes" ; then
13402 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13404 CC="$save_cc"
13405 CFLAGS="$save_cflags"
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13416 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13418 # Check whether --with-resolution was given.
13419 if test "${with_resolution+set}" = set; then :
13420 withval=$with_resolution; resolution=$withval
13421 else
13422 resolution=none
13425 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13426 if test "$resolution" = "yes" ; then
13427 resolution="none"
13429 if test "$resolution" = "no" ; then
13430 resolution="none"
13432 if test "$resolution" != "none" ; then
13433 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13434 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13435 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13438 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13439 aros_cv_default_wbwidth=$aros_default_wbwidth
13440 aros_cv_default_wbheight=$aros_default_wbheight
13441 aros_cv_default_wbdepth=$aros_default_wbdepth
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13444 $as_echo_n "checking if serial debug is enabled... " >&6; }
13446 # Check whether --with-serial-debug was given.
13447 if test "${with_serial_debug+set}" = set; then :
13448 withval=$with_serial_debug; serial_debug=$withval
13449 else
13450 serial_debug=none
13453 if test "$aros_serial_debug" = 0 ; then
13454 serial_debug_forced=""
13455 if test "$serial_debug" = "yes" ; then
13456 serial_debug="1"
13458 if test "$serial_debug" = "no" ; then
13459 serial_debug="none"
13461 else
13462 serial_debug_forced="(forced)"
13463 serial_debug=$aros_serial_debug
13465 if test "$serial_debug" != "none" ; then
13466 aros_serial_debug=$serial_debug
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13468 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13469 else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13475 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13476 # Check whether --enable-palm_debug_hack was given.
13477 if test "${enable_palm_debug_hack+set}" = set; then :
13478 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13479 else
13480 palm_debug_hack="no"
13483 if test "$palm_debug_hack" = "yes" ; then
13484 aros_palm_debug_hack="1"
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13487 $as_echo "$palm_debug_hack" >&6; }
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13490 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13491 # Check whether --enable-nesting_supervisor was given.
13492 if test "${enable_nesting_supervisor+set}" = set; then :
13493 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13494 else
13495 nesting_supervisor="no"
13498 if test "$nesting_supervisor" = "yes" ; then
13499 aros_nesting_supervisor="1"
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13502 $as_echo "$nesting_supervisor" >&6; }
13504 if test "$aros_enable_mmu" = "" ; then
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13506 $as_echo_n "checking if MMU support is enabled... " >&6; }
13507 # Check whether --enable-mmu was given.
13508 if test "${enable_mmu+set}" = set; then :
13509 enableval=$enable_mmu; aros_enable_mmu=$enableval
13510 else
13511 aros_enable_mmu="yes"
13514 if test "$aros_enable_mmu" = "" ; then
13515 aros_enable_mmu="yes"
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13518 $as_echo "$aros_enable_mmu" >&6; }
13520 if test "$aros_enable_mmu" = "no" ; then
13521 aros_enable_mmu="0"
13522 else
13523 aros_enable_mmu="1"
13527 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13529 if test "x-$need_dlopen" != "x-no" ; then
13530 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13531 if test "x$ac_cv_func_dlopen" = xyes; then :
13532 have_dl="yes"
13533 else
13534 have_dl="no"
13537 if test "x-$have_dl" = "x-no" ; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13539 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13540 if ${ac_cv_lib_dl_dlopen+:} false; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543 ac_check_lib_save_LIBS=$LIBS
13544 LIBS="-ldl $LIBS"
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13548 /* Override any GCC internal prototype to avoid an error.
13549 Use char because int might match the return type of a GCC
13550 builtin and then its argument prototype would still apply. */
13551 #ifdef __cplusplus
13552 extern "C"
13553 #endif
13554 char dlopen ();
13556 main ()
13558 return dlopen ();
13560 return 0;
13562 _ACEOF
13563 if ac_fn_c_try_link "$LINENO"; then :
13564 ac_cv_lib_dl_dlopen=yes
13565 else
13566 ac_cv_lib_dl_dlopen=no
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 LIBS=$ac_check_lib_save_LIBS
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13573 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13574 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13575 have_dl="yes"
13576 aros_host_ldflags="$aros_host_ldflags -ldl"
13577 else
13578 have_dl="no"
13582 if test "x-$have_dl" = "x-no" ; then
13583 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13588 # Check whether --enable-x11_hidd was given.
13589 if test "${enable_x11_hidd+set}" = set; then :
13590 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13591 else
13592 x11_hidd="$need_x11"
13595 case "x-$x11_hidd" in
13596 x-yes|x-no|x-auto) ;;
13597 *) x11_hidd="$need_x11" ;;
13598 esac
13600 ENABLE_X11=0
13602 if test "x-$x11_hidd" != "x-no" ; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13605 $as_echo_n "checking for X... " >&6; }
13608 # Check whether --with-x was given.
13609 if test "${with_x+set}" = set; then :
13610 withval=$with_x;
13613 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13614 if test "x$with_x" = xno; then
13615 # The user explicitly disabled X.
13616 have_x=disabled
13617 else
13618 case $x_includes,$x_libraries in #(
13619 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13620 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 # One or both of the vars are not set, and there is no cached value.
13624 ac_x_includes=no ac_x_libraries=no
13625 rm -f -r conftest.dir
13626 if mkdir conftest.dir; then
13627 cd conftest.dir
13628 cat >Imakefile <<'_ACEOF'
13629 incroot:
13630 @echo incroot='${INCROOT}'
13631 usrlibdir:
13632 @echo usrlibdir='${USRLIBDIR}'
13633 libdir:
13634 @echo libdir='${LIBDIR}'
13635 _ACEOF
13636 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13637 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13638 for ac_var in incroot usrlibdir libdir; do
13639 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13640 done
13641 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13642 for ac_extension in a so sl dylib la dll; do
13643 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13644 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13645 ac_im_usrlibdir=$ac_im_libdir; break
13647 done
13648 # Screen out bogus values from the imake configuration. They are
13649 # bogus both because they are the default anyway, and because
13650 # using them would break gcc on systems where it needs fixed includes.
13651 case $ac_im_incroot in
13652 /usr/include) ac_x_includes= ;;
13653 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13654 esac
13655 case $ac_im_usrlibdir in
13656 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13657 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13658 esac
13660 cd ..
13661 rm -f -r conftest.dir
13664 # Standard set of common directories for X headers.
13665 # Check X11 before X11Rn because it is often a symlink to the current release.
13666 ac_x_header_dirs='
13667 /usr/X11/include
13668 /usr/X11R7/include
13669 /usr/X11R6/include
13670 /usr/X11R5/include
13671 /usr/X11R4/include
13673 /usr/include/X11
13674 /usr/include/X11R7
13675 /usr/include/X11R6
13676 /usr/include/X11R5
13677 /usr/include/X11R4
13679 /usr/local/X11/include
13680 /usr/local/X11R7/include
13681 /usr/local/X11R6/include
13682 /usr/local/X11R5/include
13683 /usr/local/X11R4/include
13685 /usr/local/include/X11
13686 /usr/local/include/X11R7
13687 /usr/local/include/X11R6
13688 /usr/local/include/X11R5
13689 /usr/local/include/X11R4
13691 /usr/X386/include
13692 /usr/x386/include
13693 /usr/XFree86/include/X11
13695 /usr/include
13696 /usr/local/include
13697 /usr/unsupported/include
13698 /usr/athena/include
13699 /usr/local/x11r5/include
13700 /usr/lpp/Xamples/include
13702 /usr/openwin/include
13703 /usr/openwin/share/include'
13705 if test "$ac_x_includes" = no; then
13706 # Guess where to find include files, by looking for Xlib.h.
13707 # First, try using that file with no special directory specified.
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710 #include <X11/Xlib.h>
13711 _ACEOF
13712 if ac_fn_c_try_cpp "$LINENO"; then :
13713 # We can compile using X headers with no special include directory.
13714 ac_x_includes=
13715 else
13716 for ac_dir in $ac_x_header_dirs; do
13717 if test -r "$ac_dir/X11/Xlib.h"; then
13718 ac_x_includes=$ac_dir
13719 break
13721 done
13723 rm -f conftest.err conftest.i conftest.$ac_ext
13724 fi # $ac_x_includes = no
13726 if test "$ac_x_libraries" = no; then
13727 # Check for the libraries.
13728 # See if we find them without any special options.
13729 # Don't add to $LIBS permanently.
13730 ac_save_LIBS=$LIBS
13731 LIBS="-lX11 $LIBS"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 #include <X11/Xlib.h>
13736 main ()
13738 XrmInitialize ()
13740 return 0;
13742 _ACEOF
13743 if ac_fn_c_try_link "$LINENO"; then :
13744 LIBS=$ac_save_LIBS
13745 # We can link X programs with no special library path.
13746 ac_x_libraries=
13747 else
13748 LIBS=$ac_save_LIBS
13749 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13751 # Don't even attempt the hair of trying to link an X program!
13752 for ac_extension in a so sl dylib la dll; do
13753 if test -r "$ac_dir/libX11.$ac_extension"; then
13754 ac_x_libraries=$ac_dir
13755 break 2
13757 done
13758 done
13760 rm -f core conftest.err conftest.$ac_objext \
13761 conftest$ac_exeext conftest.$ac_ext
13762 fi # $ac_x_libraries = no
13764 case $ac_x_includes,$ac_x_libraries in #(
13765 no,* | *,no | *\'*)
13766 # Didn't find X, or a directory has "'" in its name.
13767 ac_cv_have_x="have_x=no";; #(
13769 # Record where we found X for the cache.
13770 ac_cv_have_x="have_x=yes\
13771 ac_x_includes='$ac_x_includes'\
13772 ac_x_libraries='$ac_x_libraries'"
13773 esac
13775 ;; #(
13776 *) have_x=yes;;
13777 esac
13778 eval "$ac_cv_have_x"
13779 fi # $with_x != no
13781 if test "$have_x" != yes; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13783 $as_echo "$have_x" >&6; }
13784 no_x=yes
13785 else
13786 # If each of the values was on the command line, it overrides each guess.
13787 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13788 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13789 # Update the cache value to reflect the command line values.
13790 ac_cv_have_x="have_x=yes\
13791 ac_x_includes='$x_includes'\
13792 ac_x_libraries='$x_libraries'"
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13794 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13798 x_cflags=
13799 for path in $x_libraries
13801 x_cflags="$x_cflags -L$path"
13802 done
13804 for path in $x_includes
13806 x_cflags="$x_cflags -I$path"
13807 done
13809 if test "x-$no_x" = "x-yes" ; then
13811 if test "x-$x11_hidd" != "x-auto" ; then
13812 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13815 else
13816 x11_hidd_target=kernel-x11gfx-kobj
13817 ENABLE_X11=1
13819 # Check whether --enable-x11_shm was given.
13820 if test "${enable_x11_shm+set}" = set; then :
13821 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13822 else
13823 x11_hidd_shm="auto"
13826 case "x-$x11_hidd_shm" in
13827 x-yes|x-no|x-auto) ;;
13828 *) x11_hidd_shm="auto" ;;
13829 esac
13831 have_xshm=no
13833 if test "x-$x11_hidd_shm" != "x-no" ; then
13835 for ac_header in sys/ipc.h
13836 do :
13837 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13838 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_SYS_IPC_H 1
13841 _ACEOF
13845 done
13847 for ac_header in sys/shm.h
13848 do :
13849 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13850 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_SYS_SHM_H 1
13853 _ACEOF
13857 done
13860 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13862 save_cflags="$CFLAGS"
13863 CFLAGS="$CFLAGS $x_cflags"
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13865 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13866 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 ac_check_lib_save_LIBS=$LIBS
13870 LIBS="-lXext $LIBS"
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13874 /* Override any GCC internal prototype to avoid an error.
13875 Use char because int might match the return type of a GCC
13876 builtin and then its argument prototype would still apply. */
13877 #ifdef __cplusplus
13878 extern "C"
13879 #endif
13880 char XShmQueryExtension ();
13882 main ()
13884 return XShmQueryExtension ();
13886 return 0;
13888 _ACEOF
13889 if ac_fn_c_try_link "$LINENO"; then :
13890 ac_cv_lib_Xext_XShmQueryExtension=yes
13891 else
13892 ac_cv_lib_Xext_XShmQueryExtension=no
13894 rm -f core conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
13896 LIBS=$ac_check_lib_save_LIBS
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13899 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13900 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13901 have_xshm=yes
13904 CFLAGS="$save_cflags"
13908 if test "x-$have_xshm" = "x-yes" ; then
13909 DO_XSHM_SUPPORT="1"
13910 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13911 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13912 else
13913 DO_XSHM_SUPPORT="0"
13917 # Check whether --enable-x11_vidmode was given.
13918 if test "${enable_x11_vidmode+set}" = set; then :
13919 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13920 else
13921 x11_hidd_vidmode="auto"
13924 case "x-$x11_hidd_vidmode" in
13925 x-yes|x-no|x-auto) ;;
13926 *) x11_hidd_vidmode="auto" ;;
13927 esac
13929 have_vidmode=no
13931 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13933 save_cflags="$CFLAGS"
13934 CFLAGS="$CFLAGS $x_cflags"
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13936 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13937 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13938 $as_echo_n "(cached) " >&6
13939 else
13940 ac_check_lib_save_LIBS=$LIBS
13941 LIBS="-lXxf86vm $LIBS"
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13945 /* Override any GCC internal prototype to avoid an error.
13946 Use char because int might match the return type of a GCC
13947 builtin and then its argument prototype would still apply. */
13948 #ifdef __cplusplus
13949 extern "C"
13950 #endif
13951 char XF86VidModeQueryExtension ();
13953 main ()
13955 return XF86VidModeQueryExtension ();
13957 return 0;
13959 _ACEOF
13960 if ac_fn_c_try_link "$LINENO"; then :
13961 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13962 else
13963 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13965 rm -f core conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13967 LIBS=$ac_check_lib_save_LIBS
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13970 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13971 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13972 have_vidmode=yes
13975 CFLAGS="$save_cflags"
13978 if test "x-$have_vidmode" = "x-yes" ; then
13979 DO_VIDMODE_SUPPORT="1"
13980 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13981 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13982 else
13983 DO_VIDMODE_SUPPORT="0"
13987 aros_host_x11_includes=$x_includes
13988 aros_host_x11_libdirs=$x_libraries
13992 # Check whether --enable-sdl_hidd was given.
13993 if test "${enable_sdl_hidd+set}" = set; then :
13994 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13995 else
13996 sdl_hidd="auto"
13999 case "x-$sdl_hidd" in
14000 x-yes|x-no|x-auto) ;;
14001 *) sdl_hidd="auto" ;;
14002 esac
14004 if test "x-$sdl_hidd" != "x-no" ; then
14007 # Check whether --with-sdl-prefix was given.
14008 if test "${with_sdl_prefix+set}" = set; then :
14009 withval=$with_sdl_prefix; sdl_prefix="$withval"
14010 else
14011 sdl_prefix=""
14015 # Check whether --with-sdl-exec-prefix was given.
14016 if test "${with_sdl_exec_prefix+set}" = set; then :
14017 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14018 else
14019 sdl_exec_prefix=""
14022 # Check whether --enable-sdltest was given.
14023 if test "${enable_sdltest+set}" = set; then :
14024 enableval=$enable_sdltest;
14025 else
14026 enable_sdltest=yes
14030 if test x$sdl_exec_prefix != x ; then
14031 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14032 if test x${SDL_CONFIG+set} != xset ; then
14033 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14036 if test x$sdl_prefix != x ; then
14037 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14038 if test x${SDL_CONFIG+set} != xset ; then
14039 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14043 as_save_PATH="$PATH"
14044 if test "x$prefix" != xNONE; then
14045 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14047 # Extract the first word of "sdl-config", so it can be a program name with args.
14048 set dummy sdl-config; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050 $as_echo_n "checking for $ac_word... " >&6; }
14051 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14052 $as_echo_n "(cached) " >&6
14053 else
14054 case $SDL_CONFIG in
14055 [\\/]* | ?:[\\/]*)
14056 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14062 IFS=$as_save_IFS
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068 break 2
14070 done
14071 done
14072 IFS=$as_save_IFS
14074 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14076 esac
14078 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14079 if test -n "$SDL_CONFIG"; then
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14081 $as_echo "$SDL_CONFIG" >&6; }
14082 else
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14088 PATH="$as_save_PATH"
14089 min_sdl_version=1.2.10
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14091 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14092 no_sdl=""
14093 if test "$SDL_CONFIG" = "no" ; then
14094 no_sdl=yes
14095 else
14096 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14097 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14099 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14100 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14101 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14102 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14103 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14104 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14105 if test "x$enable_sdltest" = "xyes" ; then
14106 ac_save_CFLAGS="$CFLAGS"
14107 ac_save_CXXFLAGS="$CXXFLAGS"
14108 ac_save_LIBS="$LIBS"
14109 CFLAGS="$CFLAGS $SDL_CFLAGS"
14110 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14111 LIBS="$LIBS $SDL_LIBS"
14112 rm -f conf.sdltest
14113 if test "$cross_compiling" = yes; then :
14114 echo $ac_n "cross compiling; assumed OK... $ac_c"
14115 else
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14119 #include <stdio.h>
14120 #include <stdlib.h>
14121 #include <string.h>
14122 #include "SDL.h"
14124 char*
14125 my_strdup (char *str)
14127 char *new_str;
14129 if (str)
14131 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14132 strcpy (new_str, str);
14134 else
14135 new_str = NULL;
14137 return new_str;
14140 int main (int argc, char *argv[])
14142 int major, minor, micro;
14143 char *tmp_version;
14145 /* This hangs on some systems (?)
14146 system ("touch conf.sdltest");
14148 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14150 /* HP/UX 9 (%@#!) writes to sscanf strings */
14151 tmp_version = my_strdup("$min_sdl_version");
14152 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14153 printf("%s, bad version string\n", "$min_sdl_version");
14154 exit(1);
14157 if (($sdl_major_version > major) ||
14158 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14159 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14161 return 0;
14163 else
14165 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14166 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14167 printf("*** best to upgrade to the required version.\n");
14168 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14169 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14170 printf("*** config.cache before re-running configure\n");
14171 return 1;
14176 _ACEOF
14177 if ac_fn_c_try_run "$LINENO"; then :
14179 else
14180 no_sdl=yes
14182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14183 conftest.$ac_objext conftest.beam conftest.$ac_ext
14186 CFLAGS="$ac_save_CFLAGS"
14187 CXXFLAGS="$ac_save_CXXFLAGS"
14188 LIBS="$ac_save_LIBS"
14191 if test "x$no_sdl" = x ; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14193 $as_echo "yes" >&6; }
14194 have_sdl="yes"
14195 else
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14198 if test "$SDL_CONFIG" = "no" ; then
14199 echo "*** The sdl-config script installed by SDL could not be found"
14200 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14201 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14202 echo "*** full path to sdl-config."
14203 else
14204 if test -f conf.sdltest ; then
14206 else
14207 echo "*** Could not run SDL test program, checking why..."
14208 CFLAGS="$CFLAGS $SDL_CFLAGS"
14209 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14210 LIBS="$LIBS $SDL_LIBS"
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14214 #include <stdio.h>
14215 #include "SDL.h"
14217 int main(int argc, char *argv[])
14218 { return 0; }
14219 #undef main
14220 #define main K_and_R_C_main
14223 main ()
14225 return 0;
14227 return 0;
14229 _ACEOF
14230 if ac_fn_c_try_link "$LINENO"; then :
14231 echo "*** The test program compiled, but did not run. This usually means"
14232 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14233 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14234 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14235 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14236 echo "*** is required on your system"
14237 echo "***"
14238 echo "*** If you have an old version installed, it is best to remove it, although"
14239 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14240 else
14241 echo "*** The test program failed to compile or link. See the file config.log for the"
14242 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14243 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14244 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14248 CFLAGS="$ac_save_CFLAGS"
14249 CXXFLAGS="$ac_save_CXXFLAGS"
14250 LIBS="$ac_save_LIBS"
14253 SDL_CFLAGS=""
14254 SDL_LIBS=""
14255 have_sdl="no"
14259 rm -f conf.sdltest
14262 if test "x-$have_sdl" != "x-yes" ; then
14264 if test "x-$sdl_hidd" != "x-auto" ; then
14265 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14268 else
14269 sdl_hidd_target=kernel-hidd-sdl
14270 aros_host_sdl_cflags=SDL_CFLAGS
14271 aros_host_sdl_libs=SDL_LIBS
14275 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14276 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14281 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14282 oss_library_target=workbench-libs-oss-unix
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14288 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14289 # Check whether --enable-dbus was given.
14290 if test "${enable_dbus+set}" = set; then :
14291 enableval=$enable_dbus; dbus="yes"
14292 else
14293 dbus="no"
14296 if test "$dbus" = "yes" ; then
14297 ENABLE_DBUS=1
14298 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14299 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14300 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14301 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14302 else
14303 ENABLE_DBUS=0
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14306 $as_echo "$dbus" >&6; }
14308 if test "$use_kernel_cc_wrapper" = "yes" ; then
14309 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14312 if test "${crosstools}" != "yes" ; then
14313 aros_target_toolchain=no
14314 else
14315 aros_target_toolchain=yes
14319 # Generic
14331 # Compatability with other Amiga-like operation systems
14334 # Host related
14362 # Target Related
14427 # Delinting target compiler flags
14434 # Graphics Related
14451 # Native version related
14454 # Palm native version related
14457 # Unix/Hosted version related
14460 # MMU related
14463 # Apple iOS related
14468 # ARM default GCC target related
14473 # Android related
14477 # DBUS related
14484 #X11 related
14487 # Debug related
14493 # Collect-aros stuff: "-ius" to ignore undefined symbols
14496 # C compiler related
14499 case "$aros_flavour" in
14500 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14501 aros_flavour="emulation" ;;
14502 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14503 aros_flavour="emulation" ;;
14504 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14505 aros_flavour="standalone";;
14506 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14507 aros_flavour="standalone";;
14508 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14509 aros_flavour="native" ;;
14510 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14511 aros_flavour="native" ;;
14512 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14513 aros_flavour="linklib" ;;
14514 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14515 aros_flavour="palmnative" ;;
14516 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14517 aros_flavour="mac68knative" ;;
14518 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14519 aros_flavour="ppcnative" ;;
14520 esac
14522 if test ! -d ${aros_inc_dir} ; then
14523 ${MKDIR} ${aros_inc_dir}
14525 if test ! -d ${aros_geninc_dir} ; then
14526 ${MKDIR} ${aros_geninc_dir}
14528 if test ! -d ${aros_hostcfg_dir} ; then
14529 ${MKDIR} ${aros_hostcfg_dir}
14531 if test ! -d ${aros_targetcfg_dir} ; then
14532 ${MKDIR} ${aros_targetcfg_dir}
14534 if test ! -d ${aros_tools_dir} ; then
14535 ${MKDIR} ${aros_tools_dir}
14537 if test ! -d ${aros_scripts_dir} ; then
14538 ${MKDIR} ${aros_scripts_dir}
14541 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14544 ac_config_commands="$ac_config_commands compiler_executable"
14546 ac_config_commands="$ac_config_commands genmf_executable"
14549 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14552 cat >confcache <<\_ACEOF
14553 # This file is a shell script that caches the results of configure
14554 # tests run on this system so they can be shared between configure
14555 # scripts and configure runs, see configure's option --config-cache.
14556 # It is not useful on other systems. If it contains results you don't
14557 # want to keep, you may remove or edit it.
14559 # config.status only pays attention to the cache file if you give it
14560 # the --recheck option to rerun configure.
14562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14564 # following values.
14566 _ACEOF
14568 # The following way of writing the cache mishandles newlines in values,
14569 # but we know of no workaround that is simple, portable, and efficient.
14570 # So, we kill variables containing newlines.
14571 # Ultrix sh set writes to stderr and can't be redirected directly,
14572 # and sets the high bit in the cache file unless we assign to the vars.
14574 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14575 eval ac_val=\$$ac_var
14576 case $ac_val in #(
14577 *${as_nl}*)
14578 case $ac_var in #(
14579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14581 esac
14582 case $ac_var in #(
14583 _ | IFS | as_nl) ;; #(
14584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14585 *) { eval $ac_var=; unset $ac_var;} ;;
14586 esac ;;
14587 esac
14588 done
14590 (set) 2>&1 |
14591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14592 *${as_nl}ac_space=\ *)
14593 # `set' does not quote correctly, so add quotes: double-quote
14594 # substitution turns \\\\ into \\, and sed turns \\ into \.
14595 sed -n \
14596 "s/'/'\\\\''/g;
14597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14598 ;; #(
14600 # `set' quotes correctly as required by POSIX, so do not add quotes.
14601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14603 esac |
14604 sort
14606 sed '
14607 /^ac_cv_env_/b end
14608 t clear
14609 :clear
14610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14611 t end
14612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14613 :end' >>confcache
14614 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14615 if test -w "$cache_file"; then
14616 if test "x$cache_file" != "x/dev/null"; then
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14618 $as_echo "$as_me: updating cache $cache_file" >&6;}
14619 if test ! -f "$cache_file" || test -h "$cache_file"; then
14620 cat confcache >"$cache_file"
14621 else
14622 case $cache_file in #(
14623 */* | ?:*)
14624 mv -f confcache "$cache_file"$$ &&
14625 mv -f "$cache_file"$$ "$cache_file" ;; #(
14627 mv -f confcache "$cache_file" ;;
14628 esac
14631 else
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14633 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14636 rm -f confcache
14638 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14639 # Let make expand exec_prefix.
14640 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14642 DEFS=-DHAVE_CONFIG_H
14644 ac_libobjs=
14645 ac_ltlibobjs=
14647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14648 # 1. Remove the extension, and $U if already installed.
14649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14650 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14652 # will be set to the directory where LIBOBJS objects are built.
14653 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14654 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14655 done
14656 LIBOBJS=$ac_libobjs
14658 LTLIBOBJS=$ac_ltlibobjs
14662 : "${CONFIG_STATUS=./config.status}"
14663 ac_write_fail=0
14664 ac_clean_files_save=$ac_clean_files
14665 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14667 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14668 as_write_fail=0
14669 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14670 #! $SHELL
14671 # Generated by $as_me.
14672 # Run this file to recreate the current configuration.
14673 # Compiler output produced by configure, useful for debugging
14674 # configure, is in config.log if it exists.
14676 debug=false
14677 ac_cs_recheck=false
14678 ac_cs_silent=false
14680 SHELL=\${CONFIG_SHELL-$SHELL}
14681 export SHELL
14682 _ASEOF
14683 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14684 ## -------------------- ##
14685 ## M4sh Initialization. ##
14686 ## -------------------- ##
14688 # Be more Bourne compatible
14689 DUALCASE=1; export DUALCASE # for MKS sh
14690 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14691 emulate sh
14692 NULLCMD=:
14693 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14694 # is contrary to our usage. Disable this feature.
14695 alias -g '${1+"$@"}'='"$@"'
14696 setopt NO_GLOB_SUBST
14697 else
14698 case `(set -o) 2>/dev/null` in #(
14699 *posix*) :
14700 set -o posix ;; #(
14701 *) :
14703 esac
14707 as_nl='
14709 export as_nl
14710 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14711 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14714 # Prefer a ksh shell builtin over an external printf program on Solaris,
14715 # but without wasting forks for bash or zsh.
14716 if test -z "$BASH_VERSION$ZSH_VERSION" \
14717 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14718 as_echo='print -r --'
14719 as_echo_n='print -rn --'
14720 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14721 as_echo='printf %s\n'
14722 as_echo_n='printf %s'
14723 else
14724 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14725 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14726 as_echo_n='/usr/ucb/echo -n'
14727 else
14728 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14729 as_echo_n_body='eval
14730 arg=$1;
14731 case $arg in #(
14732 *"$as_nl"*)
14733 expr "X$arg" : "X\\(.*\\)$as_nl";
14734 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14735 esac;
14736 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14738 export as_echo_n_body
14739 as_echo_n='sh -c $as_echo_n_body as_echo'
14741 export as_echo_body
14742 as_echo='sh -c $as_echo_body as_echo'
14745 # The user is always right.
14746 if test "${PATH_SEPARATOR+set}" != set; then
14747 PATH_SEPARATOR=:
14748 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14749 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14750 PATH_SEPARATOR=';'
14755 # IFS
14756 # We need space, tab and new line, in precisely that order. Quoting is
14757 # there to prevent editors from complaining about space-tab.
14758 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14759 # splitting by setting IFS to empty value.)
14760 IFS=" "" $as_nl"
14762 # Find who we are. Look in the path if we contain no directory separator.
14763 as_myself=
14764 case $0 in #((
14765 *[\\/]* ) as_myself=$0 ;;
14766 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14769 IFS=$as_save_IFS
14770 test -z "$as_dir" && as_dir=.
14771 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14772 done
14773 IFS=$as_save_IFS
14776 esac
14777 # We did not find ourselves, most probably we were run as `sh COMMAND'
14778 # in which case we are not to be found in the path.
14779 if test "x$as_myself" = x; then
14780 as_myself=$0
14782 if test ! -f "$as_myself"; then
14783 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14784 exit 1
14787 # Unset variables that we do not need and which cause bugs (e.g. in
14788 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14789 # suppresses any "Segmentation fault" message there. '((' could
14790 # trigger a bug in pdksh 5.2.14.
14791 for as_var in BASH_ENV ENV MAIL MAILPATH
14792 do eval test x\${$as_var+set} = xset \
14793 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14794 done
14795 PS1='$ '
14796 PS2='> '
14797 PS4='+ '
14799 # NLS nuisances.
14800 LC_ALL=C
14801 export LC_ALL
14802 LANGUAGE=C
14803 export LANGUAGE
14805 # CDPATH.
14806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14809 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14810 # ----------------------------------------
14811 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14812 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14813 # script with STATUS, using 1 if that was 0.
14814 as_fn_error ()
14816 as_status=$1; test $as_status -eq 0 && as_status=1
14817 if test "$4"; then
14818 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14819 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14821 $as_echo "$as_me: error: $2" >&2
14822 as_fn_exit $as_status
14823 } # as_fn_error
14826 # as_fn_set_status STATUS
14827 # -----------------------
14828 # Set $? to STATUS, without forking.
14829 as_fn_set_status ()
14831 return $1
14832 } # as_fn_set_status
14834 # as_fn_exit STATUS
14835 # -----------------
14836 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14837 as_fn_exit ()
14839 set +e
14840 as_fn_set_status $1
14841 exit $1
14842 } # as_fn_exit
14844 # as_fn_unset VAR
14845 # ---------------
14846 # Portably unset VAR.
14847 as_fn_unset ()
14849 { eval $1=; unset $1;}
14851 as_unset=as_fn_unset
14852 # as_fn_append VAR VALUE
14853 # ----------------------
14854 # Append the text in VALUE to the end of the definition contained in VAR. Take
14855 # advantage of any shell optimizations that allow amortized linear growth over
14856 # repeated appends, instead of the typical quadratic growth present in naive
14857 # implementations.
14858 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14859 eval 'as_fn_append ()
14861 eval $1+=\$2
14863 else
14864 as_fn_append ()
14866 eval $1=\$$1\$2
14868 fi # as_fn_append
14870 # as_fn_arith ARG...
14871 # ------------------
14872 # Perform arithmetic evaluation on the ARGs, and store the result in the
14873 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14874 # must be portable across $(()) and expr.
14875 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14876 eval 'as_fn_arith ()
14878 as_val=$(( $* ))
14880 else
14881 as_fn_arith ()
14883 as_val=`expr "$@" || test $? -eq 1`
14885 fi # as_fn_arith
14888 if expr a : '\(a\)' >/dev/null 2>&1 &&
14889 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14890 as_expr=expr
14891 else
14892 as_expr=false
14895 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14896 as_basename=basename
14897 else
14898 as_basename=false
14901 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14902 as_dirname=dirname
14903 else
14904 as_dirname=false
14907 as_me=`$as_basename -- "$0" ||
14908 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14909 X"$0" : 'X\(//\)$' \| \
14910 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14911 $as_echo X/"$0" |
14912 sed '/^.*\/\([^/][^/]*\)\/*$/{
14913 s//\1/
14916 /^X\/\(\/\/\)$/{
14917 s//\1/
14920 /^X\/\(\/\).*/{
14921 s//\1/
14924 s/.*/./; q'`
14926 # Avoid depending upon Character Ranges.
14927 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14928 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14929 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14930 as_cr_digits='0123456789'
14931 as_cr_alnum=$as_cr_Letters$as_cr_digits
14933 ECHO_C= ECHO_N= ECHO_T=
14934 case `echo -n x` in #(((((
14935 -n*)
14936 case `echo 'xy\c'` in
14937 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14938 xy) ECHO_C='\c';;
14939 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14940 ECHO_T=' ';;
14941 esac;;
14943 ECHO_N='-n';;
14944 esac
14946 rm -f conf$$ conf$$.exe conf$$.file
14947 if test -d conf$$.dir; then
14948 rm -f conf$$.dir/conf$$.file
14949 else
14950 rm -f conf$$.dir
14951 mkdir conf$$.dir 2>/dev/null
14953 if (echo >conf$$.file) 2>/dev/null; then
14954 if ln -s conf$$.file conf$$ 2>/dev/null; then
14955 as_ln_s='ln -s'
14956 # ... but there are two gotchas:
14957 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14958 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14959 # In both cases, we have to default to `cp -p'.
14960 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14961 as_ln_s='cp -p'
14962 elif ln conf$$.file conf$$ 2>/dev/null; then
14963 as_ln_s=ln
14964 else
14965 as_ln_s='cp -p'
14967 else
14968 as_ln_s='cp -p'
14970 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14971 rmdir conf$$.dir 2>/dev/null
14974 # as_fn_mkdir_p
14975 # -------------
14976 # Create "$as_dir" as a directory, including parents if necessary.
14977 as_fn_mkdir_p ()
14980 case $as_dir in #(
14981 -*) as_dir=./$as_dir;;
14982 esac
14983 test -d "$as_dir" || eval $as_mkdir_p || {
14984 as_dirs=
14985 while :; do
14986 case $as_dir in #(
14987 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14988 *) as_qdir=$as_dir;;
14989 esac
14990 as_dirs="'$as_qdir' $as_dirs"
14991 as_dir=`$as_dirname -- "$as_dir" ||
14992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14993 X"$as_dir" : 'X\(//\)[^/]' \| \
14994 X"$as_dir" : 'X\(//\)$' \| \
14995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14996 $as_echo X"$as_dir" |
14997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14998 s//\1/
15001 /^X\(\/\/\)[^/].*/{
15002 s//\1/
15005 /^X\(\/\/\)$/{
15006 s//\1/
15009 /^X\(\/\).*/{
15010 s//\1/
15013 s/.*/./; q'`
15014 test -d "$as_dir" && break
15015 done
15016 test -z "$as_dirs" || eval "mkdir $as_dirs"
15017 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15020 } # as_fn_mkdir_p
15021 if mkdir -p . 2>/dev/null; then
15022 as_mkdir_p='mkdir -p "$as_dir"'
15023 else
15024 test -d ./-p && rmdir ./-p
15025 as_mkdir_p=false
15028 if test -x / >/dev/null 2>&1; then
15029 as_test_x='test -x'
15030 else
15031 if ls -dL / >/dev/null 2>&1; then
15032 as_ls_L_option=L
15033 else
15034 as_ls_L_option=
15036 as_test_x='
15037 eval sh -c '\''
15038 if test -d "$1"; then
15039 test -d "$1/.";
15040 else
15041 case $1 in #(
15042 -*)set "./$1";;
15043 esac;
15044 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15045 ???[sx]*):;;*)false;;esac;fi
15046 '\'' sh
15049 as_executable_p=$as_test_x
15051 # Sed expression to map a string onto a valid CPP name.
15052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15054 # Sed expression to map a string onto a valid variable name.
15055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15058 exec 6>&1
15059 ## ----------------------------------- ##
15060 ## Main body of $CONFIG_STATUS script. ##
15061 ## ----------------------------------- ##
15062 _ASEOF
15063 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15066 # Save the log message, to keep $0 and so on meaningful, and to
15067 # report actual input values of CONFIG_FILES etc. instead of their
15068 # values after options handling.
15069 ac_log="
15070 This file was extended by $as_me, which was
15071 generated by GNU Autoconf 2.68. Invocation command line was
15073 CONFIG_FILES = $CONFIG_FILES
15074 CONFIG_HEADERS = $CONFIG_HEADERS
15075 CONFIG_LINKS = $CONFIG_LINKS
15076 CONFIG_COMMANDS = $CONFIG_COMMANDS
15077 $ $0 $@
15079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15082 _ACEOF
15084 case $ac_config_files in *"
15085 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15086 esac
15088 case $ac_config_headers in *"
15089 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15090 esac
15093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15094 # Files that config.status was made for.
15095 config_files="$ac_config_files"
15096 config_headers="$ac_config_headers"
15097 config_commands="$ac_config_commands"
15099 _ACEOF
15101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15102 ac_cs_usage="\
15103 \`$as_me' instantiates files and other configuration actions
15104 from templates according to the current configuration. Unless the files
15105 and actions are specified as TAGs, all are instantiated by default.
15107 Usage: $0 [OPTION]... [TAG]...
15109 -h, --help print this help, then exit
15110 -V, --version print version number and configuration settings, then exit
15111 --config print configuration, then exit
15112 -q, --quiet, --silent
15113 do not print progress messages
15114 -d, --debug don't remove temporary files
15115 --recheck update $as_me by reconfiguring in the same conditions
15116 --file=FILE[:TEMPLATE]
15117 instantiate the configuration file FILE
15118 --header=FILE[:TEMPLATE]
15119 instantiate the configuration header FILE
15121 Configuration files:
15122 $config_files
15124 Configuration headers:
15125 $config_headers
15127 Configuration commands:
15128 $config_commands
15130 Report bugs to the package provider."
15132 _ACEOF
15133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15134 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15135 ac_cs_version="\\
15136 config.status
15137 configured by $0, generated by GNU Autoconf 2.68,
15138 with options \\"\$ac_cs_config\\"
15140 Copyright (C) 2010 Free Software Foundation, Inc.
15141 This config.status script is free software; the Free Software Foundation
15142 gives unlimited permission to copy, distribute and modify it."
15144 ac_pwd='$ac_pwd'
15145 srcdir='$srcdir'
15146 test -n "\$AWK" || AWK=awk
15147 _ACEOF
15149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15150 # The default lists apply if the user does not specify any file.
15151 ac_need_defaults=:
15152 while test $# != 0
15154 case $1 in
15155 --*=?*)
15156 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15157 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15158 ac_shift=:
15160 --*=)
15161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15162 ac_optarg=
15163 ac_shift=:
15166 ac_option=$1
15167 ac_optarg=$2
15168 ac_shift=shift
15170 esac
15172 case $ac_option in
15173 # Handling of the options.
15174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15175 ac_cs_recheck=: ;;
15176 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15177 $as_echo "$ac_cs_version"; exit ;;
15178 --config | --confi | --conf | --con | --co | --c )
15179 $as_echo "$ac_cs_config"; exit ;;
15180 --debug | --debu | --deb | --de | --d | -d )
15181 debug=: ;;
15182 --file | --fil | --fi | --f )
15183 $ac_shift
15184 case $ac_optarg in
15185 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15186 '') as_fn_error $? "missing file argument" ;;
15187 esac
15188 as_fn_append CONFIG_FILES " '$ac_optarg'"
15189 ac_need_defaults=false;;
15190 --header | --heade | --head | --hea )
15191 $ac_shift
15192 case $ac_optarg in
15193 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15194 esac
15195 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15196 ac_need_defaults=false;;
15197 --he | --h)
15198 # Conflict between --help and --header
15199 as_fn_error $? "ambiguous option: \`$1'
15200 Try \`$0 --help' for more information.";;
15201 --help | --hel | -h )
15202 $as_echo "$ac_cs_usage"; exit ;;
15203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15204 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15205 ac_cs_silent=: ;;
15207 # This is an error.
15208 -*) as_fn_error $? "unrecognized option: \`$1'
15209 Try \`$0 --help' for more information." ;;
15211 *) as_fn_append ac_config_targets " $1"
15212 ac_need_defaults=false ;;
15214 esac
15215 shift
15216 done
15218 ac_configure_extra_args=
15220 if $ac_cs_silent; then
15221 exec 6>/dev/null
15222 ac_configure_extra_args="$ac_configure_extra_args --silent"
15225 _ACEOF
15226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227 if \$ac_cs_recheck; then
15228 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15229 shift
15230 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15231 CONFIG_SHELL='$SHELL'
15232 export CONFIG_SHELL
15233 exec "\$@"
15236 _ACEOF
15237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15238 exec 5>>config.log
15240 echo
15241 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15242 ## Running $as_me. ##
15243 _ASBOX
15244 $as_echo "$ac_log"
15245 } >&5
15247 _ACEOF
15248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15250 # INIT-COMMANDS
15253 aros_host_exe_suffix=${aros_host_exe_suffix}
15254 aros_tools_dir=${aros_tools_dir}
15255 aros_target_cpu=${aros_target_cpu}
15256 aros_target_arch=${aros_target_arch}
15257 aros_target_suffix=${aros_target_suffix}
15258 orig_target_nm=${orig_target_nm}
15259 orig_target_as=${orig_target_as}
15260 orig_target_ar=${orig_target_ar}
15261 orig_target_ranlib=${orig_target_ranlib}
15262 orig_target_objdump=${orig_target_objdump}
15263 orig_target_elfedit=${orig_target_elfedit}
15264 orig_target_objcopy=${orig_target_objcopy}
15265 orig_target_strip=${orig_target_strip}
15266 aros_kernel_ld=${aros_kernel_ld}
15269 aros_tools_dir=${aros_tools_dir}
15272 _ACEOF
15274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15276 # Handling of arguments.
15277 for ac_config_target in $ac_config_targets
15279 case $ac_config_target in
15280 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15281 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15282 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15283 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15284 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15285 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15286 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15287 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15288 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15289 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15290 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15291 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15292 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15293 "${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" ;;
15294 "${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" ;;
15295 "${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" ;;
15296 "${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" ;;
15297 "${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" ;;
15298 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15299 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15300 "${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" ;;
15302 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15303 esac
15304 done
15307 # If the user did not use the arguments to specify the items to instantiate,
15308 # then the envvar interface is used. Set only those that are not.
15309 # We use the long form for the default assignment because of an extremely
15310 # bizarre bug on SunOS 4.1.3.
15311 if $ac_need_defaults; then
15312 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15313 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15314 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15317 # Have a temporary directory for convenience. Make it in the build tree
15318 # simply because there is no reason against having it here, and in addition,
15319 # creating and moving files from /tmp can sometimes cause problems.
15320 # Hook for its removal unless debugging.
15321 # Note that there is a small window in which the directory will not be cleaned:
15322 # after its creation but before its name has been assigned to `$tmp'.
15323 $debug ||
15325 tmp= ac_tmp=
15326 trap 'exit_status=$?
15327 : "${ac_tmp:=$tmp}"
15328 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15330 trap 'as_fn_exit 1' 1 2 13 15
15332 # Create a (secure) tmp directory for tmp files.
15335 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15336 test -d "$tmp"
15337 } ||
15339 tmp=./conf$$-$RANDOM
15340 (umask 077 && mkdir "$tmp")
15341 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15342 ac_tmp=$tmp
15344 # Set up the scripts for CONFIG_FILES section.
15345 # No need to generate them if there are no CONFIG_FILES.
15346 # This happens for instance with `./config.status config.h'.
15347 if test -n "$CONFIG_FILES"; then
15350 ac_cr=`echo X | tr X '\015'`
15351 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15352 # But we know of no other shell where ac_cr would be empty at this
15353 # point, so we can use a bashism as a fallback.
15354 if test "x$ac_cr" = x; then
15355 eval ac_cr=\$\'\\r\'
15357 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15358 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15359 ac_cs_awk_cr='\\r'
15360 else
15361 ac_cs_awk_cr=$ac_cr
15364 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15365 _ACEOF
15369 echo "cat >conf$$subs.awk <<_ACEOF" &&
15370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15371 echo "_ACEOF"
15372 } >conf$$subs.sh ||
15373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15374 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15375 ac_delim='%!_!# '
15376 for ac_last_try in false false false false false :; do
15377 . ./conf$$subs.sh ||
15378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15380 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15381 if test $ac_delim_n = $ac_delim_num; then
15382 break
15383 elif $ac_last_try; then
15384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15385 else
15386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15388 done
15389 rm -f conf$$subs.sh
15391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15392 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15393 _ACEOF
15394 sed -n '
15396 s/^/S["/; s/!.*/"]=/
15399 s/^[^!]*!//
15400 :repl
15401 t repl
15402 s/'"$ac_delim"'$//
15403 t delim
15406 s/\(.\{148\}\)..*/\1/
15407 t more1
15408 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15411 b repl
15412 :more1
15413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15416 s/.\{148\}//
15417 t nl
15418 :delim
15420 s/\(.\{148\}\)..*/\1/
15421 t more2
15422 s/["\\]/\\&/g; s/^/"/; s/$/"/
15425 :more2
15426 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15429 s/.\{148\}//
15430 t delim
15431 ' <conf$$subs.awk | sed '
15432 /^[^""]/{
15434 s/\n//
15436 ' >>$CONFIG_STATUS || ac_write_fail=1
15437 rm -f conf$$subs.awk
15438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15439 _ACAWK
15440 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15441 for (key in S) S_is_set[key] = 1
15442 FS = "\a"
15446 line = $ 0
15447 nfields = split(line, field, "@")
15448 substed = 0
15449 len = length(field[1])
15450 for (i = 2; i < nfields; i++) {
15451 key = field[i]
15452 keylen = length(key)
15453 if (S_is_set[key]) {
15454 value = S[key]
15455 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15456 len += length(value) + length(field[++i])
15457 substed = 1
15458 } else
15459 len += 1 + keylen
15462 print line
15465 _ACAWK
15466 _ACEOF
15467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15468 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15469 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15470 else
15472 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15473 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15474 _ACEOF
15476 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15477 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15478 # trailing colons and then remove the whole line if VPATH becomes empty
15479 # (actually we leave an empty line to preserve line numbers).
15480 if test "x$srcdir" = x.; then
15481 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15483 s///
15484 s/^/:/
15485 s/[ ]*$/:/
15486 s/:\$(srcdir):/:/g
15487 s/:\${srcdir}:/:/g
15488 s/:@srcdir@:/:/g
15489 s/^:*//
15490 s/:*$//
15492 s/\(=[ ]*\).*/\1/
15494 s/\n//
15495 s/^[^=]*=[ ]*$//
15499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15500 fi # test -n "$CONFIG_FILES"
15502 # Set up the scripts for CONFIG_HEADERS section.
15503 # No need to generate them if there are no CONFIG_HEADERS.
15504 # This happens for instance with `./config.status Makefile'.
15505 if test -n "$CONFIG_HEADERS"; then
15506 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15507 BEGIN {
15508 _ACEOF
15510 # Transform confdefs.h into an awk script `defines.awk', embedded as
15511 # here-document in config.status, that substitutes the proper values into
15512 # config.h.in to produce config.h.
15514 # Create a delimiter string that does not exist in confdefs.h, to ease
15515 # handling of long lines.
15516 ac_delim='%!_!# '
15517 for ac_last_try in false false :; do
15518 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15519 if test -z "$ac_tt"; then
15520 break
15521 elif $ac_last_try; then
15522 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15523 else
15524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15526 done
15528 # For the awk script, D is an array of macro values keyed by name,
15529 # likewise P contains macro parameters if any. Preserve backslash
15530 # newline sequences.
15532 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15533 sed -n '
15534 s/.\{148\}/&'"$ac_delim"'/g
15535 t rset
15536 :rset
15537 s/^[ ]*#[ ]*define[ ][ ]*/ /
15538 t def
15540 :def
15541 s/\\$//
15542 t bsnl
15543 s/["\\]/\\&/g
15544 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15545 D["\1"]=" \3"/p
15546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15548 :bsnl
15549 s/["\\]/\\&/g
15550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15551 D["\1"]=" \3\\\\\\n"\\/p
15552 t cont
15553 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15554 t cont
15556 :cont
15558 s/.\{148\}/&'"$ac_delim"'/g
15559 t clear
15560 :clear
15561 s/\\$//
15562 t bsnlc
15563 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15565 :bsnlc
15566 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15567 b cont
15568 ' <confdefs.h | sed '
15569 s/'"$ac_delim"'/"\\\
15570 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15573 for (key in D) D_is_set[key] = 1
15574 FS = "\a"
15576 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15577 line = \$ 0
15578 split(line, arg, " ")
15579 if (arg[1] == "#") {
15580 defundef = arg[2]
15581 mac1 = arg[3]
15582 } else {
15583 defundef = substr(arg[1], 2)
15584 mac1 = arg[2]
15586 split(mac1, mac2, "(") #)
15587 macro = mac2[1]
15588 prefix = substr(line, 1, index(line, defundef) - 1)
15589 if (D_is_set[macro]) {
15590 # Preserve the white space surrounding the "#".
15591 print prefix "define", macro P[macro] D[macro]
15592 next
15593 } else {
15594 # Replace #undef with comments. This is necessary, for example,
15595 # in the case of _POSIX_SOURCE, which is predefined and required
15596 # on some systems where configure will not decide to define it.
15597 if (defundef == "undef") {
15598 print "/*", prefix defundef, macro, "*/"
15599 next
15603 { print }
15604 _ACAWK
15605 _ACEOF
15606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15607 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15608 fi # test -n "$CONFIG_HEADERS"
15611 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15612 shift
15613 for ac_tag
15615 case $ac_tag in
15616 :[FHLC]) ac_mode=$ac_tag; continue;;
15617 esac
15618 case $ac_mode$ac_tag in
15619 :[FHL]*:*);;
15620 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15621 :[FH]-) ac_tag=-:-;;
15622 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15623 esac
15624 ac_save_IFS=$IFS
15625 IFS=:
15626 set x $ac_tag
15627 IFS=$ac_save_IFS
15628 shift
15629 ac_file=$1
15630 shift
15632 case $ac_mode in
15633 :L) ac_source=$1;;
15634 :[FH])
15635 ac_file_inputs=
15636 for ac_f
15638 case $ac_f in
15639 -) ac_f="$ac_tmp/stdin";;
15640 *) # Look for the file first in the build tree, then in the source tree
15641 # (if the path is not absolute). The absolute path cannot be DOS-style,
15642 # because $ac_f cannot contain `:'.
15643 test -f "$ac_f" ||
15644 case $ac_f in
15645 [\\/$]*) false;;
15646 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15647 esac ||
15648 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15649 esac
15650 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15651 as_fn_append ac_file_inputs " '$ac_f'"
15652 done
15654 # Let's still pretend it is `configure' which instantiates (i.e., don't
15655 # use $as_me), people would be surprised to read:
15656 # /* config.h. Generated by config.status. */
15657 configure_input='Generated from '`
15658 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15659 `' by configure.'
15660 if test x"$ac_file" != x-; then
15661 configure_input="$ac_file. $configure_input"
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15663 $as_echo "$as_me: creating $ac_file" >&6;}
15665 # Neutralize special characters interpreted by sed in replacement strings.
15666 case $configure_input in #(
15667 *\&* | *\|* | *\\* )
15668 ac_sed_conf_input=`$as_echo "$configure_input" |
15669 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15670 *) ac_sed_conf_input=$configure_input;;
15671 esac
15673 case $ac_tag in
15674 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15676 esac
15678 esac
15680 ac_dir=`$as_dirname -- "$ac_file" ||
15681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15682 X"$ac_file" : 'X\(//\)[^/]' \| \
15683 X"$ac_file" : 'X\(//\)$' \| \
15684 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15685 $as_echo X"$ac_file" |
15686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15687 s//\1/
15690 /^X\(\/\/\)[^/].*/{
15691 s//\1/
15694 /^X\(\/\/\)$/{
15695 s//\1/
15698 /^X\(\/\).*/{
15699 s//\1/
15702 s/.*/./; q'`
15703 as_dir="$ac_dir"; as_fn_mkdir_p
15704 ac_builddir=.
15706 case "$ac_dir" in
15707 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15709 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15710 # A ".." for each directory in $ac_dir_suffix.
15711 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15712 case $ac_top_builddir_sub in
15713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15715 esac ;;
15716 esac
15717 ac_abs_top_builddir=$ac_pwd
15718 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15719 # for backward compatibility:
15720 ac_top_builddir=$ac_top_build_prefix
15722 case $srcdir in
15723 .) # We are building in place.
15724 ac_srcdir=.
15725 ac_top_srcdir=$ac_top_builddir_sub
15726 ac_abs_top_srcdir=$ac_pwd ;;
15727 [\\/]* | ?:[\\/]* ) # Absolute name.
15728 ac_srcdir=$srcdir$ac_dir_suffix;
15729 ac_top_srcdir=$srcdir
15730 ac_abs_top_srcdir=$srcdir ;;
15731 *) # Relative name.
15732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15733 ac_top_srcdir=$ac_top_build_prefix$srcdir
15734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15735 esac
15736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15739 case $ac_mode in
15742 # CONFIG_FILE
15745 _ACEOF
15747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748 # If the template does not know about datarootdir, expand it.
15749 # FIXME: This hack should be removed a few years after 2.60.
15750 ac_datarootdir_hack=; ac_datarootdir_seen=
15751 ac_sed_dataroot='
15752 /datarootdir/ {
15756 /@datadir@/p
15757 /@docdir@/p
15758 /@infodir@/p
15759 /@localedir@/p
15760 /@mandir@/p'
15761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15762 *datarootdir*) ac_datarootdir_seen=yes;;
15763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15766 _ACEOF
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768 ac_datarootdir_hack='
15769 s&@datadir@&$datadir&g
15770 s&@docdir@&$docdir&g
15771 s&@infodir@&$infodir&g
15772 s&@localedir@&$localedir&g
15773 s&@mandir@&$mandir&g
15774 s&\\\${datarootdir}&$datarootdir&g' ;;
15775 esac
15776 _ACEOF
15778 # Neutralize VPATH when `$srcdir' = `.'.
15779 # Shell code in configure.ac might set extrasub.
15780 # FIXME: do we really want to maintain this feature?
15781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15782 ac_sed_extra="$ac_vpsub
15783 $extrasub
15784 _ACEOF
15785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15788 s|@configure_input@|$ac_sed_conf_input|;t t
15789 s&@top_builddir@&$ac_top_builddir_sub&;t t
15790 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15791 s&@srcdir@&$ac_srcdir&;t t
15792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15793 s&@top_srcdir@&$ac_top_srcdir&;t t
15794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15795 s&@builddir@&$ac_builddir&;t t
15796 s&@abs_builddir@&$ac_abs_builddir&;t t
15797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15798 $ac_datarootdir_hack
15800 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15801 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15803 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15804 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15805 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15806 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15808 which seems to be undefined. Please make sure it is defined" >&5
15809 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15810 which seems to be undefined. Please make sure it is defined" >&2;}
15812 rm -f "$ac_tmp/stdin"
15813 case $ac_file in
15814 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15815 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15816 esac \
15817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15821 # CONFIG_HEADER
15823 if test x"$ac_file" != x-; then
15825 $as_echo "/* $configure_input */" \
15826 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15827 } >"$ac_tmp/config.h" \
15828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15829 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15831 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15832 else
15833 rm -f "$ac_file"
15834 mv "$ac_tmp/config.h" "$ac_file" \
15835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15837 else
15838 $as_echo "/* $configure_input */" \
15839 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15840 || as_fn_error $? "could not create -" "$LINENO" 5
15844 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15845 $as_echo "$as_me: executing $ac_file commands" >&6;}
15847 esac
15850 case $ac_file$ac_mode in
15851 "compiler_executable":C)
15852 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15853 mkdir -p $prefix
15854 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15855 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15857 echo ${prefix2}
15858 echo ${prefix3}
15859 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15861 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15862 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15863 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15864 ln -sf $orig_target_elfedit$aros_host_exe_suffix ${prefix2}-elfedit$aros_host_exe_suffix
15865 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15866 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15867 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15868 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15870 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15872 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15874 esac
15875 done # for ac_tag
15878 as_fn_exit 0
15879 _ACEOF
15880 ac_clean_files=$ac_clean_files_save
15882 test $ac_write_fail = 0 ||
15883 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15886 # configure is writing to config.log, and then calls config.status.
15887 # config.status does its own redirection, appending to config.log.
15888 # Unfortunately, on DOS this fails, as config.log is still kept open
15889 # by configure, so config.status won't be able to write to it; its
15890 # output is simply discarded. So we exec the FD to /dev/null,
15891 # effectively closing config.log, so it can be properly (re)opened and
15892 # appended to by config.status. When coming back to configure, we
15893 # need to make the FD available again.
15894 if test "$no_create" != yes; then
15895 ac_cs_success=:
15896 ac_config_status_args=
15897 test "$silent" = yes &&
15898 ac_config_status_args="$ac_config_status_args --quiet"
15899 exec 5>/dev/null
15900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15901 exec 5>>config.log
15902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15903 # would make configure fail if this is the last instruction.
15904 $ac_cs_success || as_fn_exit 1
15906 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15908 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15913 #XXX compatability...
15914 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15916 if test -n "$aros_shared_cflags" ; then
15917 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15918 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg