ahci.device: Synchronize with Dragonfly BSD (where relevant)
[AROS.git] / configure
blob311214cfb7f40c8dad50f111da33313e5e91e4a0
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_cc_path
673 aros_target_cc_includes
674 aros_target_ld
675 aros_target_as
676 aros_target_cpp
677 aros_target_cxx
678 aros_target_cc
679 aros_plain_ar
680 aros_plain_nm
681 aros_target_ranlib
682 aros_target_ar
683 aros_target_suffix
684 aros_target_variant
685 aros_target_cpu
686 aros_target_family
687 aros_target_arch
688 aros_target_bootloader
689 aros_target_iconset
690 aros_target_guitheme
691 aros_tools_dir
692 aros_host_lib_suffix
693 aros_host_exe_suffix
694 aros_host_mkargs
695 aros_host_mkdep
696 aros_host_debug
697 aros_host_ldflags
698 gnu89_inline
699 aros_host_cxxflags
700 aros_host_cflags
701 aros_host_make
702 aros_host_cxx
703 aros_host_cc
704 aros_host_cpp
705 aros_host_cpu
706 aros_host_arch
707 aros_cc_pre
708 aros_amigaos_compliance
709 AROS_PORTSSRCDIR
710 AROS_CROSSTOOLSDIR
711 SRCDIR
712 AROS_BUILDDIR_UNIX
713 AROS_BUILDDIR
714 aros_target_toolchain
715 aros_flavour_uc
716 aros_flavour
717 aros_cpu
718 aros_arch
719 SDL_LIBS
720 SDL_CFLAGS
721 SDL_CONFIG
722 XMKMF
723 aros_cflags_iquote_end
724 aros_cflags_iquote
725 kernel_cflags_iquote_end
726 kernel_cflags_iquote
727 host_cflags_iquote_end
728 host_cflags_iquote
729 aros_target_nostdlib_ldflags
730 aros_target_detach_ldflags
731 aros_target_nix_ldflags
732 aros_target_nostartup_ldflags
733 aros_target_nostdinc_cflags
734 aros_kernel_rescomp
735 orig_target_objdump
736 orig_target_objcopy
737 orig_target_strip
738 orig_target_nm
739 orig_target_ranlib
740 orig_target_ar
741 orig_target_as
742 orig_target_ld
743 orig_target_cxx
744 orig_target_cc
745 orig_target_cpp
746 aros_kernel_objdump
747 aros_kernel_objcopy
748 aros_kernel_strip
749 aros_kernel_nm
750 aros_kernel_ranlib
751 aros_kernel_ar
752 aros_kernel_as
753 aros_kernel_ld
754 aros_kernel_cxx
755 aros_kernel_cc
756 aros_kernel_cpp
758 android_tool
759 CCACHE
760 DISTCC
761 LIBOBJS
762 EGREP
763 GREP
765 TEST
768 pkgpyexecdir
769 pyexecdir
770 pkgpythondir
771 pythondir
772 PYTHON_PLATFORM
773 PYTHON_EXEC_PREFIX
774 PYTHON_PREFIX
775 PYTHON_VERSION
776 PYTHON
777 PATCH
778 CHMOD
780 PPMTOILBM
781 PNGTOPNM
782 FLEX
783 BISON
786 UNIQ
787 SORT
788 TOUCH
789 MKDIR
790 ECHO
794 aros_host_strip
795 aros_host_ranlib
796 aros_host_ar
797 aros_host_automake
798 aros_host_autoheader
799 aros_host_autoconf
800 aros_host_aclocal
801 aros_host_ld
802 MMAKE
805 ac_ct_CC
806 CFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CXX
811 CPPFLAGS
812 LDFLAGS
813 CXXFLAGS
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files=''
862 ac_user_opts='
863 enable_option_checking
864 enable_build_type
865 enable_debug
866 enable_distcc
867 enable_ccache
868 with_kernel_gcc_version
869 with_gcc_version
870 with_optimization
871 with_paranoia
872 enable_target_variant
873 with_xcode
874 with_sdk_version
875 with_sdk
876 with_ndk
877 with_ndk_version
878 enable_amigaos_compliance
879 with_kernel_toolchain_prefix
880 with_elf_toolchain_prefix
881 with_aros_toolchain
882 enable_crosstools
883 with_aros_toolchain_install
884 with_cpu
885 with_fpu
886 with_float
887 with_aros_gcc
888 with_portssources
889 with_bootloader
890 with_iconset
891 with_theme
892 enable_includes
893 with_resolution
894 with_serial_debug
895 enable_palm_debug_hack
896 enable_nesting_supervisor
897 enable_mmu
898 enable_x11_hidd
899 with_x
900 enable_x11_shm
901 enable_x11_vidmode
902 enable_sdl_hidd
903 with_sdl_prefix
904 with_sdl_exec_prefix
905 enable_sdltest
906 enable_dbus
908 ac_precious_vars='build_alias
909 host_alias
910 target_alias
912 CXXFLAGS
913 LDFLAGS
914 LIBS
915 CPPFLAGS
918 CFLAGS
920 PYTHON
921 XMKMF'
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
972 ac_prev=
973 ac_dashdash=
974 for ac_option
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
983 case $ac_option in
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *=) ac_optarg= ;;
986 *) ac_optarg=yes ;;
987 esac
989 # Accept the important Cygnus configure options, so we can diagnose typos.
991 case $ac_dashdash$ac_option in
993 ac_dashdash=yes ;;
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 ac_prev=bindir ;;
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 bindir=$ac_optarg ;;
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1015 -datadir | --datadir | --datadi | --datad)
1016 ac_prev=datadir ;;
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1147 no_create=yes ;;
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 ac_prev=sbindir ;;
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 | --sbi=* | --sb=*)
1216 sbindir=$ac_optarg ;;
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1221 | --sha | --sh)
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 | --sha=* | --sh=*)
1227 sharedstatedir=$ac_optarg ;;
1229 -site | --site | --sit)
1230 ac_prev=site ;;
1231 -site=* | --site=* | --sit=*)
1232 site=$ac_optarg ;;
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 ac_prev=srcdir ;;
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 verbose=yes ;;
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1257 -with-* | --with-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=no ;;
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information"
1311 *=*)
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 case $ac_envvar in #(
1315 '' | [0-9]* | *[!_$as_cr_alnum]* )
1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1317 esac
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 esac
1330 done
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 as_fn_error $? "missing argument to $ac_option"
1337 if test -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1339 no) ;;
1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 esac
1345 # Check all directory arguments for consistency.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
1353 case $ac_val in
1354 */ )
1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
1357 esac
1358 # Be sure to have absolute directory names.
1359 case $ac_val in
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362 esac
1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1364 done
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1369 build=$build_alias
1370 host=$host_alias
1371 target=$target_alias
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1378 If a cross compiler is detected then cross compile mode will be used" >&2
1379 elif test "x$build_alias" != "x$host_alias"; then
1380 cross_compiling=yes
1384 ac_tool_prefix=
1385 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387 test "$silent" = yes && exec 6>/dev/null
1390 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391 ac_ls_di=`ls -di .` &&
1392 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393 as_fn_error $? "working directory cannot be determined"
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 as_fn_error $? "pwd does not report name of working directory"
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1416 /^X\(\/\/\)$/{
1417 s//\1/
1420 /^X\(\/\).*/{
1421 s//\1/
1424 s/.*/./; q'`
1425 srcdir=$ac_confdir
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 srcdir=..
1429 else
1430 ac_srcdir_defaulted=no
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1439 pwd)`
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1447 case $srcdir in
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 esac
1450 for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 done
1458 # Report the --help message.
1460 if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464 \`configure' configures this package to adapt to many kinds of systems.
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE. See below for descriptions of some of the useful variables.
1471 Defaults for the options are specified in brackets.
1473 Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking ...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1495 For better control, use the options below.
1497 Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1517 _ACEOF
1519 cat <<\_ACEOF
1521 X features:
1522 --x-includes=DIR X include files are in DIR
1523 --x-libraries=DIR X library files are in DIR
1525 System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 _ACEOF
1531 if test -n "$ac_init_help"; then
1533 cat <<\_ACEOF
1535 Optional Features:
1536 --disable-option-checking ignore unrecognized --enable/--with options
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-build-type=TYPE
1540 Select the build type. Available types are:
1541 personal, nightly, snapshot, milestone, release. Do
1542 NOT use this option unless you know what you are
1543 doing! (default=personal)
1544 --enable-debug=list Enable different types of debug. Commas or
1545 whitespaces can be used to separate the items in the
1546 list. Available types of debug are: all, none,
1547 messages, stack, mungwall, modules, symbols. If no
1548 list is provided then "all" is assumed.
1549 (default=none)
1550 --enable-distcc Use distcc as a front end to the compiler
1551 (default=no).
1552 --enable-ccache Use ccache as a front end to the compiler
1553 (default=no).
1554 --enable-target-variant=NAME
1555 Enable a specific target variant(default=none)
1556 --enable-amigaos-compliance=VERSION
1557 Enforce userspace AmigaOS compliance to a specific
1558 KickStart version (default=none).
1559 --disable-crosstools Do not build cross-compiler toolchain
1560 --enable-includes=dir Alternative system include directory
1561 --enable-palm-debug-hack
1562 Enable palm debug output hack in palm native
1563 (default=no)
1564 --enable-nesting-supervisor
1565 Enable nesting supervisor support in unix
1566 (default=no)
1567 --disable-mmu Disable MMU support (default=enabled)
1568 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1569 --enable-x11-shm use X11 shared memory (default=auto)
1570 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1571 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1572 --disable-sdltest Do not try to compile and run a test SDL program
1573 --enable-dbus Enable DBUS support via dbus.library (default=no)
1575 Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-kernel-gcc-version=VERSION
1579 Use host gcc-VERSION for building AROS
1580 --with-gcc-version=VERSION
1581 Use host gcc-VERSION for building AROS
1582 --with-optimization=FLAGS
1583 Use optimization flags FLAGS (default=-O2).
1584 --with-paranoia=FLAGS CC flags to enable paranoia
1585 --with-xcode=PATH Specify XCode path for iOS targets
1586 (default=/Developer).
1587 --with-sdk-version=VERSION
1588 Use iOS SDK version VERSION (default=4.1).
1589 --with-sdk=PATH Specify Android SDK path
1590 (default=$default_android_sdk).
1591 --with-ndk=PATH Specify Android NDK path (default=none).
1592 --with-sdk-version=LEVEL
1593 Use Android SDK for API LEVEL (default=12).
1594 --with-ndk-version=LEVEL
1595 Use Android NDK for API LEVEL (default=9).
1596 --with-kernel-toolchain-prefix=...
1597 Specify crosscompile toolchain prefix for kernel
1598 objects
1599 --with-elf-toolchain-prefix=...
1600 Specify crosscompile toolchain prefix to wrap for
1601 AROS objects
1602 --with-aros-toolchain=PREFIX
1603 Specify prebuilt AROS toolchain
1604 --with-aros-toolchain-install=DIR
1605 Where to install or search for cross tools binaries
1606 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1607 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1608 --with-float=<spec> Specify floating point ABI
1609 (default=$gcc_default_float_abi).
1610 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1611 --with-portssources=DIR Where to download sourcecode for external ports
1612 --with-bootloader=NAME Use a specific bootloader
1613 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1614 --with-theme=NAME Use a specific GUI Theme
1615 --with-resolution=XRESxYRESxDEPTH
1616 Default resolution of the initial WorkbenchScreen
1617 --with-serial-debug Enable serial debug output in native (default=no)
1618 --with-x use the X Window System
1619 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1620 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1622 Some influential environment variables:
1623 CXX C++ compiler command
1624 CXXFLAGS C++ compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 CPP C preprocessor
1633 PYTHON the Python interpreter
1634 XMKMF Path to xmkmf, Makefile generator for X Window System
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1639 Report bugs to the package provider.
1640 _ACEOF
1641 ac_status=$?
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.68
1705 Copyright (C) 2010 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709 exit
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1716 # ac_fn_cxx_try_compile LINENO
1717 # ----------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_cxx_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_cxx_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=1
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_cxx_try_compile
1754 # ac_fn_c_try_compile LINENO
1755 # --------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_compile
1792 # ac_fn_c_try_cpp LINENO
1793 # ----------------------
1794 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_cpp ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_cpp conftest.$ac_ext"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } > conftest.i && {
1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=1
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_cpp
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_link
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if eval \${$3+:} false; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1903 else
1904 ac_header_compiler=no
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1919 else
1920 ac_header_preproc=no
1922 rm -f conftest.err conftest.i conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 yes:no: )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934 no:yes:* )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 esac
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 eval "$3=\$ac_header_compiler"
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_mongrel
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1966 ac_fn_c_try_run ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_link"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>&5
1977 ac_status=$?
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980 { { case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_try") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; }; }; then :
1990 ac_retval=0
1991 else
1992 $as_echo "$as_me: program exited with status $ac_status" >&5
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 ac_retval=$ac_status
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_c_try_run
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$3=yes"
2023 else
2024 eval "$3=no"
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2036 # ----------------------------------------------------
2037 # Tries to find if the field MEMBER exists in type AGGR, after including
2038 # INCLUDES, setting cache variable VAR accordingly.
2039 ac_fn_c_check_member ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2043 $as_echo_n "checking for $2.$3... " >&6; }
2044 if eval \${$4+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static $2 ac_aggr;
2054 if (ac_aggr.$3)
2055 return 0;
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 eval "$4=yes"
2062 else
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2067 main ()
2069 static $2 ac_aggr;
2070 if (sizeof ac_aggr.$3)
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 eval "$4=yes"
2078 else
2079 eval "$4=no"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 eval ac_res=\$$4
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 } # ac_fn_c_check_member
2092 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2093 # ---------------------------------------------
2094 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2095 # accordingly.
2096 ac_fn_c_check_decl ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 as_decl_name=`echo $2|sed 's/ *(.*//'`
2100 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2102 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 #ifndef $as_decl_name
2113 #ifdef __cplusplus
2114 (void) $as_decl_use;
2115 #else
2116 (void) $as_decl_name;
2117 #endif
2118 #endif
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 eval "$3=yes"
2126 else
2127 eval "$3=no"
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 eval ac_res=\$$3
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 } # ac_fn_c_check_decl
2138 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2139 # -------------------------------------------
2140 # Tests whether TYPE exists after having included INCLUDES, setting cache
2141 # variable VAR accordingly.
2142 ac_fn_c_check_type ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 eval "$3=no"
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 if (sizeof ($2))
2158 return 0;
2160 return 0;
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 if (sizeof (($2)))
2171 return 0;
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2178 else
2179 eval "$3=yes"
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 eval ac_res=\$$3
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 } # ac_fn_c_check_type
2192 # ac_fn_c_check_func LINENO FUNC VAR
2193 # ----------------------------------
2194 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2195 ac_fn_c_check_func ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if eval \${$3+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2207 #define $2 innocuous_$2
2209 /* System header to define __stub macros and hopefully few prototypes,
2210 which can conflict with char $2 (); below.
2211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2212 <limits.h> exists even on freestanding compilers. */
2214 #ifdef __STDC__
2215 # include <limits.h>
2216 #else
2217 # include <assert.h>
2218 #endif
2220 #undef $2
2222 /* Override any GCC internal prototype to avoid an error.
2223 Use char because int might match the return type of a GCC
2224 builtin and then its argument prototype would still apply. */
2225 #ifdef __cplusplus
2226 extern "C"
2227 #endif
2228 char $2 ();
2229 /* The GNU C library defines this for functions which it implements
2230 to always fail with ENOSYS. Some functions are actually named
2231 something starting with __ and the normal name is an alias. */
2232 #if defined __stub_$2 || defined __stub___$2
2233 choke me
2234 #endif
2237 main ()
2239 return $2 ();
2241 return 0;
2243 _ACEOF
2244 if ac_fn_c_try_link "$LINENO"; then :
2245 eval "$3=yes"
2246 else
2247 eval "$3=no"
2249 rm -f core conftest.err conftest.$ac_objext \
2250 conftest$ac_exeext conftest.$ac_ext
2252 eval ac_res=\$$3
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 } # ac_fn_c_check_func
2258 cat >config.log <<_ACEOF
2259 This file contains any messages produced by compilers while
2260 running configure, to aid debugging if configure makes a mistake.
2262 It was created by $as_me, which was
2263 generated by GNU Autoconf 2.68. Invocation command line was
2265 $ $0 $@
2267 _ACEOF
2268 exec 5>>config.log
2270 cat <<_ASUNAME
2271 ## --------- ##
2272 ## Platform. ##
2273 ## --------- ##
2275 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2281 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2284 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2288 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2292 _ASUNAME
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2300 done
2301 IFS=$as_save_IFS
2303 } >&5
2305 cat >&5 <<_ACEOF
2308 ## ----------- ##
2309 ## Core tests. ##
2310 ## ----------- ##
2312 _ACEOF
2315 # Keep a trace of the command line.
2316 # Strip out --no-create and --no-recursion so they do not pile up.
2317 # Strip out --silent because we don't want to record it for future runs.
2318 # Also quote any args containing shell meta-characters.
2319 # Make two passes to allow for proper duplicate-argument suppression.
2320 ac_configure_args=
2321 ac_configure_args0=
2322 ac_configure_args1=
2323 ac_must_keep_next=false
2324 for ac_pass in 1 2
2326 for ac_arg
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
2333 *\'*)
2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 esac
2336 case $ac_pass in
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2355 as_fn_append ac_configure_args " '$ac_arg'"
2357 esac
2358 done
2359 done
2360 { ac_configure_args0=; unset ac_configure_args0;}
2361 { ac_configure_args1=; unset ac_configure_args1;}
2363 # When interrupted or exit'd, cleanup temporary files, and complete
2364 # config.log. We remove comments because anyway the quotes in there
2365 # would cause problems or look ugly.
2366 # WARNING: Use '\'' to represent an apostrophe within the trap.
2367 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368 trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2371 echo
2373 $as_echo "## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##"
2376 echo
2377 # The following way of writing the cache mishandles newlines in values,
2379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in #(
2382 *${as_nl}*)
2383 case $ac_var in #(
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 esac
2387 case $ac_var in #(
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2391 esac ;;
2392 esac
2393 done
2394 (set) 2>&1 |
2395 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
2397 sed -n \
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 ;; #(
2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 esac |
2405 sort
2407 echo
2409 $as_echo "## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##"
2412 echo
2413 for ac_var in $ac_subst_vars
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2423 if test -n "$ac_subst_files"; then
2424 $as_echo "## ------------------- ##
2425 ## File substitutions. ##
2426 ## ------------------- ##"
2427 echo
2428 for ac_var in $ac_subst_files
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
2435 done | sort
2436 echo
2439 if test -s confdefs.h; then
2440 $as_echo "## ----------- ##
2441 ## confdefs.h. ##
2442 ## ----------- ##"
2443 echo
2444 cat confdefs.h
2445 echo
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2455 for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 done
2458 ac_signal=0
2460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2461 rm -f -r conftest* confdefs.h
2463 $as_echo "/* confdefs.h */" > confdefs.h
2465 # Predefined preprocessor variables.
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_NAME "$PACKAGE_NAME"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_STRING "$PACKAGE_STRING"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_URL "$PACKAGE_URL"
2489 _ACEOF
2492 # Let the site file select an alternate cache file if it wants to.
2493 # Prefer an explicitly selected file to automatically selected ones.
2494 ac_site_file1=NONE
2495 ac_site_file2=NONE
2496 if test -n "$CONFIG_SITE"; then
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2502 esac
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file" \
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 as_fn_error $? "failed to load site script $ac_site_file
2521 See \`config.log' for more details" "$LINENO" 5; }
2523 done
2525 if test -r "$cache_file"; then
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530 $as_echo "$as_me: loading cache $cache_file" >&6;}
2531 case $cache_file in
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
2534 esac
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538 $as_echo "$as_me: creating cache $cache_file" >&6;}
2539 >$cache_file
2542 as_fn_append ac_header_list " stdlib.h"
2543 as_fn_append ac_header_list " unistd.h"
2544 as_fn_append ac_header_list " sys/param.h"
2545 # Check that the precious variables saved in the cache have kept the same
2546 # value.
2547 ac_cache_corrupted=false
2548 for ac_var in $ac_precious_vars; do
2549 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2550 eval ac_new_set=\$ac_env_${ac_var}_set
2551 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2552 eval ac_new_val=\$ac_env_${ac_var}_value
2553 case $ac_old_set,$ac_new_set in
2554 set,)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,set)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,);;
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
2565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w=`echo x $ac_old_val`
2567 ac_new_val_w=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted=:
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\$ac_old_val
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2581 fi;;
2582 esac
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2585 case $ac_new_val in
2586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2587 *) ac_arg=$ac_var=$ac_new_val ;;
2588 esac
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2591 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2592 esac
2594 done
2595 if $ac_cache_corrupted; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2600 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 ac_aux_dir=
2615 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2616 if test -f "$ac_dir/install-sh"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/install-sh -c"
2619 break
2620 elif test -f "$ac_dir/install.sh"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/install.sh -c"
2623 break
2624 elif test -f "$ac_dir/shtool"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/shtool install -c"
2627 break
2629 done
2630 if test -z "$ac_aux_dir"; then
2631 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2634 # These three variables are undocumented and unsupported,
2635 # and are intended to be withdrawn in a future Autoconf release.
2636 # They can cause serious problems if a builder's source tree is in a directory
2637 # whose full name contains unusual characters.
2638 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2639 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2640 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2644 # Check what host we are running on.
2645 # If a target is not suggested, we use this one.
2646 # Note that what we call a target, Autoconf calls a host.
2647 # Make sure we can run config.sub.
2648 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2649 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2652 $as_echo_n "checking build system type... " >&6; }
2653 if ${ac_cv_build+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 ac_build_alias=$build_alias
2657 test "x$ac_build_alias" = x &&
2658 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2659 test "x$ac_build_alias" = x &&
2660 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2661 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2662 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2666 $as_echo "$ac_cv_build" >&6; }
2667 case $ac_cv_build in
2668 *-*-*) ;;
2669 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2670 esac
2671 build=$ac_cv_build
2672 ac_save_IFS=$IFS; IFS='-'
2673 set x $ac_cv_build
2674 shift
2675 build_cpu=$1
2676 build_vendor=$2
2677 shift; shift
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2680 build_os=$*
2681 IFS=$ac_save_IFS
2682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2686 $as_echo_n "checking host system type... " >&6; }
2687 if ${ac_cv_host+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test "x$host_alias" = x; then
2691 ac_cv_host=$ac_cv_build
2692 else
2693 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2699 $as_echo "$ac_cv_host" >&6; }
2700 case $ac_cv_host in
2701 *-*-*) ;;
2702 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2703 esac
2704 host=$ac_cv_host
2705 ac_save_IFS=$IFS; IFS='-'
2706 set x $ac_cv_host
2707 shift
2708 host_cpu=$1
2709 host_vendor=$2
2710 shift; shift
2711 # Remember, the first character of IFS is used to create $*,
2712 # except with old shells:
2713 host_os=$*
2714 IFS=$ac_save_IFS
2715 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2719 # The AROS target is slightly different to the normal GNU style
2720 # format. We don't have the middle part, and we reverse the order
2721 # of the $(CPU) and $(OS) bits.
2723 # Don't strip the version of the target yet, it might be
2724 # useful on some systems.
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2727 $as_echo_n "checking for AROS style target... " >&6; }
2729 if test "$target" = "NONE" ; then
2730 target=$host_os-$host_cpu
2731 else
2732 if test "$target" = "" ; then
2733 target=$host_os-$host_cpu
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2737 $as_echo "$target" >&6; }
2739 if test "$host_os" = "mingw32" ; then
2740 PWDCMD="pwd -W"
2743 # Don't know where else to put this...
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2745 $as_echo_n "checking building AROS in... " >&6; }
2746 AROS_BUILDDIR=`${PWDCMD-pwd}`
2747 AROS_BUILDDIR_UNIX=${PWD}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2749 $as_echo "$AROS_BUILDDIR" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2752 $as_echo_n "checking AROS source in... " >&6; }
2753 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2754 SRCDIR=${srcpwd}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2756 $as_echo "$SRCDIR" >&6; }
2758 # Parse the target field into something useful.
2760 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2761 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2764 # Some debug output, to be removed again.
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2766 $as_echo_n "checking for target system (debug output)... " >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2768 $as_echo "$target_os" >&6; }
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2770 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2772 $as_echo "$target_cpu" >&6; }
2774 aros_default_wbwidth=800
2775 aros_default_wbheight=600
2776 aros_default_wbdepth=4
2779 # The first step is to find the host binaries.
2780 # Check for a compiler.
2781 # Due to a bug in autoconf check for c++ compiler first.
2782 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2783 ac_ext=cpp
2784 ac_cpp='$CXXCPP $CPPFLAGS'
2785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2788 if test -z "$CXX"; then
2789 if test -n "$CCC"; then
2790 CXX=$CCC
2791 else
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_CXX+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test -n "$CXX"; then
2803 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2818 IFS=$as_save_IFS
2822 CXX=$ac_cv_prog_CXX
2823 if test -n "$CXX"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2825 $as_echo "$CXX" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2832 test -n "$CXX" && break
2833 done
2835 if test -z "$CXX"; then
2836 ac_ct_CXX=$CXX
2837 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 if test -n "$ac_ct_CXX"; then
2847 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_ac_ct_CXX="$ac_prog"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2860 done
2861 done
2862 IFS=$as_save_IFS
2866 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2867 if test -n "$ac_ct_CXX"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2869 $as_echo "$ac_ct_CXX" >&6; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2876 test -n "$ac_ct_CXX" && break
2877 done
2879 if test "x$ac_ct_CXX" = x; then
2880 CXX="g++"
2881 else
2882 case $cross_compiling:$ac_tool_warned in
2883 yes:)
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888 CXX=$ac_ct_CXX
2894 # Provide some information about the compiler.
2895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2896 set X $ac_compile
2897 ac_compiler=$2
2898 for ac_option in --version -v -V -qversion; do
2899 { { ac_try="$ac_compiler $ac_option >&5"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2907 ac_status=$?
2908 if test -s conftest.err; then
2909 sed '10a\
2910 ... rest of stderr output deleted ...
2911 10q' conftest.err >conftest.er1
2912 cat conftest.er1 >&5
2914 rm -f conftest.er1 conftest.err
2915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2916 test $ac_status = 0; }
2917 done
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h. */
2923 main ()
2927 return 0;
2929 _ACEOF
2930 ac_clean_files_save=$ac_clean_files
2931 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2932 # Try to create an executable without -o first, disregard a.out.
2933 # It will help us diagnose broken compilers, and finding out an intuition
2934 # of exeext.
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2936 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2937 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2939 # The possible output files:
2940 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2942 ac_rmfiles=
2943 for ac_file in $ac_files
2945 case $ac_file in
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2947 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2948 esac
2949 done
2950 rm -f $ac_rmfiles
2952 if { { ac_try="$ac_link_default"
2953 case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956 esac
2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958 $as_echo "$ac_try_echo"; } >&5
2959 (eval "$ac_link_default") 2>&5
2960 ac_status=$?
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }; then :
2963 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2964 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2965 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2966 # so that the user can short-circuit this test for compilers unknown to
2967 # Autoconf.
2968 for ac_file in $ac_files ''
2970 test -f "$ac_file" || continue
2971 case $ac_file in
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2974 [ab].out )
2975 # We found the default executable, but exeext='' is most
2976 # certainly right.
2977 break;;
2978 *.* )
2979 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2980 then :; else
2981 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 # We set ac_cv_exeext here because the later test for it is not
2984 # safe: cross compilers may not add the suffix if given an `-o'
2985 # argument, so we may need to know it at that point already.
2986 # Even if this section looks crufty: it has the advantage of
2987 # actually working.
2988 break;;
2990 break;;
2991 esac
2992 done
2993 test "$ac_cv_exeext" = no && ac_cv_exeext=
2995 else
2996 ac_file=''
2998 if test -z "$ac_file"; then :
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 $as_echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 as_fn_error 77 "C++ compiler cannot create executables
3007 See \`config.log' for more details" "$LINENO" 5; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3010 $as_echo "yes" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3013 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3015 $as_echo "$ac_file" >&6; }
3016 ac_exeext=$ac_cv_exeext
3018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3019 ac_clean_files=$ac_clean_files_save
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3021 $as_echo_n "checking for suffix of executables... " >&6; }
3022 if { { ac_try="$ac_link"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_link") 2>&5
3030 ac_status=$?
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; then :
3033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3034 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3035 # work properly (i.e., refer to `conftest.exe'), while it won't with
3036 # `rm'.
3037 for ac_file in conftest.exe conftest conftest.*; do
3038 test -f "$ac_file" || continue
3039 case $ac_file in
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 break;;
3043 * ) break;;
3044 esac
3045 done
3046 else
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3050 See \`config.log' for more details" "$LINENO" 5; }
3052 rm -f conftest conftest$ac_cv_exeext
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3054 $as_echo "$ac_cv_exeext" >&6; }
3056 rm -f conftest.$ac_ext
3057 EXEEXT=$ac_cv_exeext
3058 ac_exeext=$EXEEXT
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3061 #include <stdio.h>
3063 main ()
3065 FILE *f = fopen ("conftest.out", "w");
3066 return ferror (f) || fclose (f) != 0;
3069 return 0;
3071 _ACEOF
3072 ac_clean_files="$ac_clean_files conftest.out"
3073 # Check that the compiler produces executables we can run. If not, either
3074 # the compiler is broken, or we cross compile.
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3076 $as_echo_n "checking whether we are cross compiling... " >&6; }
3077 if test "$cross_compiling" != yes; then
3078 { { ac_try="$ac_link"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_link") 2>&5
3086 ac_status=$?
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }
3089 if { ac_try='./conftest$ac_cv_exeext'
3090 { { case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }; }; then
3100 cross_compiling=no
3101 else
3102 if test "$cross_compiling" = maybe; then
3103 cross_compiling=yes
3104 else
3105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error $? "cannot run C++ compiled programs.
3108 If you meant to cross compile, use \`--host'.
3109 See \`config.log' for more details" "$LINENO" 5; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3114 $as_echo "$cross_compiling" >&6; }
3116 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3117 ac_clean_files=$ac_clean_files_save
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3119 $as_echo_n "checking for suffix of object files... " >&6; }
3120 if ${ac_cv_objext+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3127 main ()
3131 return 0;
3133 _ACEOF
3134 rm -f conftest.o conftest.obj
3135 if { { ac_try="$ac_compile"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_compile") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; then :
3146 for ac_file in conftest.o conftest.obj conftest.*; do
3147 test -f "$ac_file" || continue;
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3150 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3151 break;;
3152 esac
3153 done
3154 else
3155 $as_echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $? "cannot compute suffix of object files: cannot compile
3161 See \`config.log' for more details" "$LINENO" 5; }
3163 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3166 $as_echo "$ac_cv_objext" >&6; }
3167 OBJEXT=$ac_cv_objext
3168 ac_objext=$OBJEXT
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3170 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3171 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3178 main ()
3180 #ifndef __GNUC__
3181 choke me
3182 #endif
3185 return 0;
3187 _ACEOF
3188 if ac_fn_cxx_try_compile "$LINENO"; then :
3189 ac_compiler_gnu=yes
3190 else
3191 ac_compiler_gnu=no
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3198 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3199 if test $ac_compiler_gnu = yes; then
3200 GXX=yes
3201 else
3202 GXX=
3204 ac_test_CXXFLAGS=${CXXFLAGS+set}
3205 ac_save_CXXFLAGS=$CXXFLAGS
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3207 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3208 if ${ac_cv_prog_cxx_g+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3212 ac_cxx_werror_flag=yes
3213 ac_cv_prog_cxx_g=no
3214 CXXFLAGS="-g"
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3219 main ()
3223 return 0;
3225 _ACEOF
3226 if ac_fn_cxx_try_compile "$LINENO"; then :
3227 ac_cv_prog_cxx_g=yes
3228 else
3229 CXXFLAGS=""
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3234 main ()
3238 return 0;
3240 _ACEOF
3241 if ac_fn_cxx_try_compile "$LINENO"; then :
3243 else
3244 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3245 CXXFLAGS="-g"
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3250 main ()
3254 return 0;
3256 _ACEOF
3257 if ac_fn_cxx_try_compile "$LINENO"; then :
3258 ac_cv_prog_cxx_g=yes
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3268 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3269 if test "$ac_test_CXXFLAGS" = set; then
3270 CXXFLAGS=$ac_save_CXXFLAGS
3271 elif test $ac_cv_prog_cxx_g = yes; then
3272 if test "$GXX" = yes; then
3273 CXXFLAGS="-g -O2"
3274 else
3275 CXXFLAGS="-g"
3277 else
3278 if test "$GXX" = yes; then
3279 CXXFLAGS="-O2"
3280 else
3281 CXXFLAGS=
3284 ac_ext=c
3285 ac_cpp='$CPP $CPPFLAGS'
3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 if test -n "$ac_tool_prefix"; then
3296 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3297 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_CC+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3317 done
3318 done
3319 IFS=$as_save_IFS
3323 CC=$ac_cv_prog_CC
3324 if test -n "$CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3334 if test -z "$ac_cv_prog_CC"; then
3335 ac_ct_CC=$CC
3336 # Extract the first word of "gcc", so it can be a program name with args.
3337 set dummy gcc; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if test -n "$ac_ct_CC"; then
3344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353 ac_cv_prog_ac_ct_CC="gcc"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3357 done
3358 done
3359 IFS=$as_save_IFS
3363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364 if test -n "$ac_ct_CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3366 $as_echo "$ac_ct_CC" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3372 if test "x$ac_ct_CC" = x; then
3373 CC=""
3374 else
3375 case $cross_compiling:$ac_tool_warned in
3376 yes:)
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3379 ac_tool_warned=yes ;;
3380 esac
3381 CC=$ac_ct_CC
3383 else
3384 CC="$ac_cv_prog_CC"
3387 if test -z "$CC"; then
3388 if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3390 set dummy ${ac_tool_prefix}cc; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_CC+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_CC="${ac_tool_prefix}cc"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3410 done
3411 done
3412 IFS=$as_save_IFS
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419 $as_echo "$CC" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3428 if test -z "$CC"; then
3429 # Extract the first word of "cc", so it can be a program name with args.
3430 set dummy cc; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if ${ac_cv_prog_CC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438 else
3439 ac_prog_rejected=no
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3443 IFS=$as_save_IFS
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3448 ac_prog_rejected=yes
3449 continue
3451 ac_cv_prog_CC="cc"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3457 IFS=$as_save_IFS
3459 if test $ac_prog_rejected = yes; then
3460 # We found a bogon in the path, so make sure we never use it.
3461 set dummy $ac_cv_prog_CC
3462 shift
3463 if test $# != 0; then
3464 # We chose a different compiler from the bogus one.
3465 # However, it has the same basename, so the bogon will be chosen
3466 # first if we set CC to just the basename; use the full file name.
3467 shift
3468 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476 $as_echo "$CC" >&6; }
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog in cl.exe
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3509 done
3510 done
3511 IFS=$as_save_IFS
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3525 test -n "$CC" && break
3526 done
3528 if test -z "$CC"; then
3529 ac_ct_CC=$CC
3530 for ac_prog in cl.exe
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_CC="$ac_prog"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3553 done
3554 done
3555 IFS=$as_save_IFS
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 $as_echo "$ac_ct_CC" >&6; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3569 test -n "$ac_ct_CC" && break
3570 done
3572 if test "x$ac_ct_CC" = x; then
3573 CC=""
3574 else
3575 case $cross_compiling:$ac_tool_warned in
3576 yes:)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3580 esac
3581 CC=$ac_ct_CC
3588 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "no acceptable C compiler found in \$PATH
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 # Provide some information about the compiler.
3594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3595 set X $ac_compile
3596 ac_compiler=$2
3597 for ac_option in --version -v -V -qversion; do
3598 { { ac_try="$ac_compiler $ac_option >&5"
3599 case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3606 ac_status=$?
3607 if test -s conftest.err; then
3608 sed '10a\
3609 ... rest of stderr output deleted ...
3610 10q' conftest.err >conftest.er1
3611 cat conftest.er1 >&5
3613 rm -f conftest.er1 conftest.err
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }
3616 done
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620 if ${ac_cv_c_compiler_gnu+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3627 main ()
3629 #ifndef __GNUC__
3630 choke me
3631 #endif
3634 return 0;
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_compiler_gnu=yes
3639 else
3640 ac_compiler_gnu=no
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648 if test $ac_compiler_gnu = yes; then
3649 GCC=yes
3650 else
3651 GCC=
3653 ac_test_CFLAGS=${CFLAGS+set}
3654 ac_save_CFLAGS=$CFLAGS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657 if ${ac_cv_prog_cc_g+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 ac_save_c_werror_flag=$ac_c_werror_flag
3661 ac_c_werror_flag=yes
3662 ac_cv_prog_cc_g=no
3663 CFLAGS="-g"
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3668 main ()
3672 return 0;
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_prog_cc_g=yes
3677 else
3678 CFLAGS=""
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3683 main ()
3687 return 0;
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3692 else
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3694 CFLAGS="-g"
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3699 main ()
3703 return 0;
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_g=yes
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_c_werror_flag=$ac_save_c_werror_flag
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if ${ac_cv_prog_cc_c89+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 ac_cv_prog_cc_c89=no
3739 ac_save_CC=$CC
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #include <stdarg.h>
3743 #include <stdio.h>
3744 #include <sys/types.h>
3745 #include <sys/stat.h>
3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747 struct buf { int x; };
3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749 static char *e (p, i)
3750 char **p;
3751 int i;
3753 return p[i];
3755 static char *f (char * (*g) (char **, int), char **p, ...)
3757 char *s;
3758 va_list v;
3759 va_start (v,p);
3760 s = g (p, va_arg (v,int));
3761 va_end (v);
3762 return s;
3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std. */
3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3775 inside strings and character constants. */
3776 #define FOO(x) 'x'
3777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3779 int test (int i, double x);
3780 struct s1 {int (*f) (int a);};
3781 struct s2 {int (*f) (double a);};
3782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783 int argc;
3784 char **argv;
3786 main ()
3788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3790 return 0;
3792 _ACEOF
3793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796 CC="$ac_save_CC $ac_arg"
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_cv_prog_cc_c89=$ac_arg
3800 rm -f core conftest.err conftest.$ac_objext
3801 test "x$ac_cv_prog_cc_c89" != "xno" && break
3802 done
3803 rm -f conftest.$ac_ext
3804 CC=$ac_save_CC
3807 # AC_CACHE_VAL
3808 case "x$ac_cv_prog_cc_c89" in
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3811 $as_echo "none needed" >&6; } ;;
3812 xno)
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3814 $as_echo "unsupported" >&6; } ;;
3816 CC="$CC $ac_cv_prog_cc_c89"
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3818 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3819 esac
3820 if test "x$ac_cv_prog_cc_c89" != xno; then :
3824 ac_ext=c
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 case $ac_cv_prog_cc_stdc in #(
3831 no) :
3832 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3833 *) :
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3835 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3836 if ${ac_cv_prog_cc_c99+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 ac_cv_prog_cc_c99=no
3840 ac_save_CC=$CC
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843 #include <stdarg.h>
3844 #include <stdbool.h>
3845 #include <stdlib.h>
3846 #include <wchar.h>
3847 #include <stdio.h>
3849 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3850 #define debug(...) fprintf (stderr, __VA_ARGS__)
3851 #define showlist(...) puts (#__VA_ARGS__)
3852 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3853 static void
3854 test_varargs_macros (void)
3856 int x = 1234;
3857 int y = 5678;
3858 debug ("Flag");
3859 debug ("X = %d\n", x);
3860 showlist (The first, second, and third items.);
3861 report (x>y, "x is %d but y is %d", x, y);
3864 // Check long long types.
3865 #define BIG64 18446744073709551615ull
3866 #define BIG32 4294967295ul
3867 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3868 #if !BIG_OK
3869 your preprocessor is broken;
3870 #endif
3871 #if BIG_OK
3872 #else
3873 your preprocessor is broken;
3874 #endif
3875 static long long int bignum = -9223372036854775807LL;
3876 static unsigned long long int ubignum = BIG64;
3878 struct incomplete_array
3880 int datasize;
3881 double data[];
3884 struct named_init {
3885 int number;
3886 const wchar_t *name;
3887 double average;
3890 typedef const char *ccp;
3892 static inline int
3893 test_restrict (ccp restrict text)
3895 // See if C++-style comments work.
3896 // Iterate through items via the restricted pointer.
3897 // Also check for declarations in for loops.
3898 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3899 continue;
3900 return 0;
3903 // Check varargs and va_copy.
3904 static void
3905 test_varargs (const char *format, ...)
3907 va_list args;
3908 va_start (args, format);
3909 va_list args_copy;
3910 va_copy (args_copy, args);
3912 const char *str;
3913 int number;
3914 float fnumber;
3916 while (*format)
3918 switch (*format++)
3920 case 's': // string
3921 str = va_arg (args_copy, const char *);
3922 break;
3923 case 'd': // int
3924 number = va_arg (args_copy, int);
3925 break;
3926 case 'f': // float
3927 fnumber = va_arg (args_copy, double);
3928 break;
3929 default:
3930 break;
3933 va_end (args_copy);
3934 va_end (args);
3938 main ()
3941 // Check bool.
3942 _Bool success = false;
3944 // Check restrict.
3945 if (test_restrict ("String literal") == 0)
3946 success = true;
3947 char *restrict newvar = "Another string";
3949 // Check varargs.
3950 test_varargs ("s, d' f .", "string", 65, 34.234);
3951 test_varargs_macros ();
3953 // Check flexible array members.
3954 struct incomplete_array *ia =
3955 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3956 ia->datasize = 10;
3957 for (int i = 0; i < ia->datasize; ++i)
3958 ia->data[i] = i * 1.234;
3960 // Check named initializers.
3961 struct named_init ni = {
3962 .number = 34,
3963 .name = L"Test wide string",
3964 .average = 543.34343,
3967 ni.number = 58;
3969 int dynamic_array[ni.number];
3970 dynamic_array[ni.number - 1] = 543;
3972 // work around unused variable warnings
3973 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3974 || dynamic_array[ni.number - 1] != 543);
3977 return 0;
3979 _ACEOF
3980 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3982 CC="$ac_save_CC $ac_arg"
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 ac_cv_prog_cc_c99=$ac_arg
3986 rm -f core conftest.err conftest.$ac_objext
3987 test "x$ac_cv_prog_cc_c99" != "xno" && break
3988 done
3989 rm -f conftest.$ac_ext
3990 CC=$ac_save_CC
3993 # AC_CACHE_VAL
3994 case "x$ac_cv_prog_cc_c99" in
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997 $as_echo "none needed" >&6; } ;;
3998 xno)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000 $as_echo "unsupported" >&6; } ;;
4002 CC="$CC $ac_cv_prog_cc_c99"
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4004 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4005 esac
4006 if test "x$ac_cv_prog_cc_c99" != xno; then :
4007 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4010 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4011 if ${ac_cv_prog_cc_c89+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 ac_cv_prog_cc_c89=no
4015 ac_save_CC=$CC
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 #include <stdarg.h>
4019 #include <stdio.h>
4020 #include <sys/types.h>
4021 #include <sys/stat.h>
4022 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4023 struct buf { int x; };
4024 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4025 static char *e (p, i)
4026 char **p;
4027 int i;
4029 return p[i];
4031 static char *f (char * (*g) (char **, int), char **p, ...)
4033 char *s;
4034 va_list v;
4035 va_start (v,p);
4036 s = g (p, va_arg (v,int));
4037 va_end (v);
4038 return s;
4041 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4042 function prototypes and stuff, but not '\xHH' hex character constants.
4043 These don't provoke an error unfortunately, instead are silently treated
4044 as 'x'. The following induces an error, until -std is added to get
4045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4046 array size at least. It's necessary to write '\x00'==0 to get something
4047 that's true only with -std. */
4048 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4050 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4051 inside strings and character constants. */
4052 #define FOO(x) 'x'
4053 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4055 int test (int i, double x);
4056 struct s1 {int (*f) (int a);};
4057 struct s2 {int (*f) (double a);};
4058 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4059 int argc;
4060 char **argv;
4062 main ()
4064 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4066 return 0;
4068 _ACEOF
4069 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4070 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4072 CC="$ac_save_CC $ac_arg"
4073 if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_cv_prog_cc_c89=$ac_arg
4076 rm -f core conftest.err conftest.$ac_objext
4077 test "x$ac_cv_prog_cc_c89" != "xno" && break
4078 done
4079 rm -f conftest.$ac_ext
4080 CC=$ac_save_CC
4083 # AC_CACHE_VAL
4084 case "x$ac_cv_prog_cc_c89" in
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4087 $as_echo "none needed" >&6; } ;;
4088 xno)
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4090 $as_echo "unsupported" >&6; } ;;
4092 CC="$CC $ac_cv_prog_cc_c89"
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4094 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4095 esac
4096 if test "x$ac_cv_prog_cc_c89" != xno; then :
4097 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4098 else
4099 ac_cv_prog_cc_stdc=no
4104 esac
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4106 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4107 if ${ac_cv_prog_cc_stdc+:} false; then :
4108 $as_echo_n "(cached) " >&6
4111 case $ac_cv_prog_cc_stdc in #(
4112 no) :
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 $as_echo "unsupported" >&6; } ;; #(
4115 '') :
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4117 $as_echo "none needed" >&6; } ;; #(
4118 *) :
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4120 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4121 esac
4123 ac_ext=c
4124 ac_cpp='$CPP $CPPFLAGS'
4125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4129 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4130 # On Suns, sometimes $CPP names a directory.
4131 if test -n "$CPP" && test -d "$CPP"; then
4132 CPP=
4134 if test -z "$CPP"; then
4135 if ${ac_cv_prog_CPP+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 # Double quotes because CPP needs to be expanded
4139 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4141 ac_preproc_ok=false
4142 for ac_c_preproc_warn_flag in '' yes
4144 # Use a header file that comes with gcc, so configuring glibc
4145 # with a fresh cross-compiler works.
4146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147 # <limits.h> exists even on freestanding compilers.
4148 # On the NeXT, cc -E runs the code through the compiler's parser,
4149 # not just through cpp. "Syntax error" is here to catch this case.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #ifdef __STDC__
4153 # include <limits.h>
4154 #else
4155 # include <assert.h>
4156 #endif
4157 Syntax error
4158 _ACEOF
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4161 else
4162 # Broken: fails on valid input.
4163 continue
4165 rm -f conftest.err conftest.i conftest.$ac_ext
4167 # OK, works on sane cases. Now check whether nonexistent headers
4168 # can be detected and how.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #include <ac_nonexistent.h>
4172 _ACEOF
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4174 # Broken: success on invalid input.
4175 continue
4176 else
4177 # Passes both tests.
4178 ac_preproc_ok=:
4179 break
4181 rm -f conftest.err conftest.i conftest.$ac_ext
4183 done
4184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185 rm -f conftest.i conftest.err conftest.$ac_ext
4186 if $ac_preproc_ok; then :
4187 break
4190 done
4191 ac_cv_prog_CPP=$CPP
4194 CPP=$ac_cv_prog_CPP
4195 else
4196 ac_cv_prog_CPP=$CPP
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4199 $as_echo "$CPP" >&6; }
4200 ac_preproc_ok=false
4201 for ac_c_preproc_warn_flag in '' yes
4203 # Use a header file that comes with gcc, so configuring glibc
4204 # with a fresh cross-compiler works.
4205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4206 # <limits.h> exists even on freestanding compilers.
4207 # On the NeXT, cc -E runs the code through the compiler's parser,
4208 # not just through cpp. "Syntax error" is here to catch this case.
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #ifdef __STDC__
4212 # include <limits.h>
4213 #else
4214 # include <assert.h>
4215 #endif
4216 Syntax error
4217 _ACEOF
4218 if ac_fn_c_try_cpp "$LINENO"; then :
4220 else
4221 # Broken: fails on valid input.
4222 continue
4224 rm -f conftest.err conftest.i conftest.$ac_ext
4226 # OK, works on sane cases. Now check whether nonexistent headers
4227 # can be detected and how.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #include <ac_nonexistent.h>
4231 _ACEOF
4232 if ac_fn_c_try_cpp "$LINENO"; then :
4233 # Broken: success on invalid input.
4234 continue
4235 else
4236 # Passes both tests.
4237 ac_preproc_ok=:
4238 break
4240 rm -f conftest.err conftest.i conftest.$ac_ext
4242 done
4243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4244 rm -f conftest.i conftest.err conftest.$ac_ext
4245 if $ac_preproc_ok; then :
4247 else
4248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4250 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4251 See \`config.log' for more details" "$LINENO" 5; }
4254 ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 # Check for a compatible awk
4262 for ac_prog in gawk nawk
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if ${ac_cv_prog_AWK+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 if test -n "$AWK"; then
4272 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_AWK="$ac_prog"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4285 done
4286 done
4287 IFS=$as_save_IFS
4291 AWK=$ac_cv_prog_AWK
4292 if test -n "$AWK"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4294 $as_echo "$AWK" >&6; }
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4301 test -n "$AWK" && break
4302 done
4304 if test "$AWK" = ""; then
4305 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4307 # Extract the first word of "mmake", so it can be a program name with args.
4308 set dummy mmake; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_MMAKE+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$MMAKE"; then
4315 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_MMAKE="mmake "
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4334 MMAKE=$ac_cv_prog_MMAKE
4335 if test -n "$MMAKE"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4337 $as_echo "$MMAKE" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4345 # Perform some default variable assignments. Note all of these will be
4346 # Regenerated from the script, so there is no need to cache them.
4348 aros_host_cpp="$CPP"
4349 aros_host_cc="$CC"
4350 aros_host_cxx="$CXX"
4351 if test "$GCC" = "yes"; then
4352 aros_gcc_ld=`$CC -print-prog-name=ld`
4353 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4354 set dummy `basename $aros_gcc_ld`; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_path_aros_host_ld+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 case $aros_host_ld in
4361 [\\/]* | ?:[\\/]*)
4362 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in `dirname $aros_gcc_ld`
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4378 IFS=$as_save_IFS
4381 esac
4383 aros_host_ld=$ac_cv_path_aros_host_ld
4384 if test -n "$aros_host_ld"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4386 $as_echo "$aros_host_ld" >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4394 if test "$aros_host_ld" = ""; then
4395 # Extract the first word of "ld", so it can be a program name with args.
4396 set dummy ld; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if ${ac_cv_path_aros_host_ld+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 case $aros_host_ld in
4403 [\\/]* | ?:[\\/]*)
4404 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4418 done
4419 done
4420 IFS=$as_save_IFS
4423 esac
4425 aros_host_ld=$ac_cv_path_aros_host_ld
4426 if test -n "$aros_host_ld"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4428 $as_echo "$aros_host_ld" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4436 if test "$aros_host_ld" = ""; then
4437 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4439 aros_host_make="make"
4440 aros_host_cflags=$CFLAGS
4441 aros_host_cxxflags=$CXXFLAGS
4442 aros_host_ldflags=$LDFLAGS
4443 aros_host_debug="-g -O0"
4444 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4445 aros_host_mkargs="--no-print-directory"
4446 aros_host_exe_suffix="$EXEEXT"
4447 aros_host_lib_suffix=""
4449 # Ignore all compliance, AROS ROMs = 0
4450 # KickStart v1.0 = 30
4451 # KickStart v1.3 = 34
4452 # KickStart v2.0 = 37
4453 # KickStart v3.0 = 39
4454 # KickStart v3.1 = 40
4455 # AmigaOS v3.5 = 44
4456 aros_amigaos_compliance=0
4458 for ac_prog in aclocal aclocal19 aclocal-1.9
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -n "$aros_host_aclocal"; then
4468 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_prog_aros_host_aclocal="$ac_prog"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4481 done
4482 done
4483 IFS=$as_save_IFS
4487 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4488 if test -n "$aros_host_aclocal"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4490 $as_echo "$aros_host_aclocal" >&6; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4497 test -n "$aros_host_aclocal" && break
4498 done
4500 for ac_prog in autoconf autoconf259 autoconf253
4502 # Extract the first word of "$ac_prog", so it can be a program name with args.
4503 set dummy $ac_prog; ac_word=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 if test -n "$aros_host_autoconf"; then
4510 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_aros_host_autoconf="$ac_prog"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4523 done
4524 done
4525 IFS=$as_save_IFS
4529 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4530 if test -n "$aros_host_autoconf"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4532 $as_echo "$aros_host_autoconf" >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4539 test -n "$aros_host_autoconf" && break
4540 done
4542 for ac_prog in autoheader autoheader259 autoheader253
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$aros_host_autoheader"; then
4552 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_aros_host_autoheader="$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4571 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4572 if test -n "$aros_host_autoheader"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4574 $as_echo "$aros_host_autoheader" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4581 test -n "$aros_host_autoheader" && break
4582 done
4584 for ac_prog in automake automake19 automake-1.9
4586 # Extract the first word of "$ac_prog", so it can be a program name with args.
4587 set dummy $ac_prog; ac_word=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if ${ac_cv_prog_aros_host_automake+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test -n "$aros_host_automake"; then
4594 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 ac_cv_prog_aros_host_automake="$ac_prog"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4607 done
4608 done
4609 IFS=$as_save_IFS
4613 aros_host_automake=$ac_cv_prog_aros_host_automake
4614 if test -n "$aros_host_automake"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4616 $as_echo "$aros_host_automake" >&6; }
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4623 test -n "$aros_host_automake" && break
4624 done
4627 if test "$aros_host_aclocal" = ""; then
4628 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4630 if test "$aros_host_automake" = ""; then
4631 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4634 case "$aros_host_cc" in
4635 *gcc*)
4636 aros_host_cc_pipe="-pipe"
4638 icc)
4639 aros_host_cc_pipe=""
4642 aros_host_cc_pipe=""
4644 esac
4646 aros_kernel_cc_includes=""
4647 aros_target_cc_includes=""
4648 host_cc_elf=yes
4650 # ----------------------------------------------------------------------------------------
4651 # Host-specific defaults
4653 # This is the main host configuration section. It is where the host
4654 # can change the values of any variables it needs to change. We do
4655 # not look at anything that compiles to the target yet, we'll get
4656 # to that later.
4658 case "$host_os" in
4659 aros*)
4660 aros_host_arch="aros"
4661 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4662 case "$host_cpu" in
4663 *i?86*)
4664 aros_host_cpu="i386"
4666 *x86_64*)
4667 aros_host_cpu="x86_64"
4669 *powerpc*)
4670 aros_host_cpu="ppc"
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4674 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4675 aros_host_cpu="$host_cpu"
4677 esac
4680 linux*)
4681 aros_host_arch="linux"
4682 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4683 android_build_os="linux-x86"
4684 android_tool="android"
4685 default_android_sdk="/opt/android-sdk-linux_x86"
4686 case "$host_cpu" in
4687 *i?86*)
4688 aros_host_cpu="i386"
4690 *x86_64*)
4691 aros_host_cpu="x86_64"
4693 *m68k*)
4694 aros_host_cpu="m68k"
4696 *powerpc*)
4697 aros_host_cpu="ppc"
4699 *arm*)
4700 aros_host_cpu="arm"
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4704 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4705 aros_host_cpu="$host_cpu"
4707 esac
4710 freebsd*)
4711 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4712 aros_host_make="gmake"
4713 aros_host_arch="freebsd"
4714 aros_host_cpu="i386"
4716 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4718 case $host_os in
4719 freebsd[234]*)
4720 aros_object_format="elf_i386"
4724 aros_object_format="elf_i386_fbsd"
4726 esac
4730 darwin*)
4731 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4732 aros_host_arch="darwin"
4733 host_cc_elf=no
4734 android_build_os="darwin-x86"
4735 android_tool="android"
4736 default_android_sdk="/android-sdk-mac_x86"
4737 case "$host_cpu" in
4738 *i?86*)
4739 aros_host_cpu="i386"
4741 *x86_64*)
4742 aros_host_cpu="x86_64"
4744 *powerpc*)
4745 aros_host_cpu="ppc"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4749 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4750 aros_host_cpu="$host_cpu"
4752 esac
4754 aros_host_ldflags="$aros_host_ldflags -liconv"
4758 dragonfly*)
4759 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4760 aros_host_make="gmake"
4761 aros_host_arch="dragonfly"
4762 case $host_cpu in
4763 *i?86*)
4764 aros_host_cpu="i386"
4766 *amd64*)
4767 aros_host_cpu="x86_64"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4771 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4772 aros_host_cpu="$host_cpu"
4774 esac
4777 netbsd*)
4778 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4779 aros_host_make="gmake"
4780 aros_host_arch="netbsd"
4781 case "$host_cpu" in
4782 *i?86*)
4783 aros_host_cpu="i386"
4785 *m68k*)
4786 aros_host_cpu="m68k"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4790 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4791 aros_host_cpu="$host_cpu"
4793 esac
4794 aros_host_lib_suffix=".0.0"
4797 openbsd*)
4798 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4799 aros_host_make="gmake"
4800 aros_host_arch="openbsd"
4801 case "$host_cpu" in
4802 *i?86*)
4803 aros_host_cpu="i386"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4807 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4808 aros_host_cpu="$host_cpu"
4810 esac
4813 solaris*)
4814 aros_host_arch="solaris"
4815 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4816 case "$host_cpu" in
4817 *i?86*)
4818 aros_host_cpu="i386"
4820 *sparc*)
4821 aros_host_cpu="sparc"
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4825 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4826 aros_host_cpu="$host_cpu"
4828 esac
4831 morphos*)
4832 aros_host_arch="morphos"
4833 aros_host_cpu="ppc"
4834 host_cc_elf=no
4837 amiga*)
4838 aros_host_arch="amiga"
4839 host_cc_elf=no
4840 SORT="/gg/bin/sort"
4841 TEST="/gg/bin/test"
4842 UNIQ="/gg/bin/uniq"
4843 FOR="for"
4844 TOUCH="/gg/bin/touch"
4845 case "$host_cpu" in
4846 *m68k*)
4847 aros_host_cpu="m68k"
4849 *powerpc*)
4850 aros_host_cpu="ppc"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4854 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4855 aros_host_cpu="$host_cpu"
4857 esac
4860 cygwin*)
4861 aros_host_arch="cygwin"
4862 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4863 host_cc_elf=no
4864 android_build_os="windows"
4865 android_tool="android.bat"
4866 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4868 case "$host_cpu" in
4869 *i?86*)
4870 aros_host_cpu="i386"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4874 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4875 aros_host_cpu="$host_cpu"
4877 esac
4880 mingw32*)
4881 aros_host_arch="mingw32"
4882 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4883 host_cc_elf=no
4884 android_build_os="windows"
4885 android_tool="android.bat"
4886 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4888 case "$host_cpu" in
4889 *i?86*)
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4892 $as_echo_n "checking for Windows native gcc target... " >&6; }
4893 host_cpu=`gcc -dumpmachine`
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4895 $as_echo "$host_cpu" >&6; }
4898 esac
4900 case "$host_cpu" in
4901 *i?86*)
4902 aros_host_cpu="i386"
4905 mingw32*)
4906 aros_host_cpu="i386"
4909 *x86_64*)
4910 aros_host_cpu="x86_64"
4911 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4916 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4917 aros_host_cpu="$host_cpu"
4919 esac
4922 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4924 esac
4926 # Extract the first word of "ar", so it can be a program name with args.
4927 set dummy ar; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_aros_host_ar+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$aros_host_ar"; then
4934 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_aros_host_ar="ar cr"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4947 done
4948 done
4949 IFS=$as_save_IFS
4953 aros_host_ar=$ac_cv_prog_aros_host_ar
4954 if test -n "$aros_host_ar"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4956 $as_echo "$aros_host_ar" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4963 if test "$aros_host_ar" = ""; then
4964 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4966 # Extract the first word of "ranlib", so it can be a program name with args.
4967 set dummy ranlib; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$aros_host_ranlib"; then
4974 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_aros_host_ranlib="ranlib "
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4993 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4994 if test -n "$aros_host_ranlib"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4996 $as_echo "$aros_host_ranlib" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5003 if test "$aros_host_ranlib" = ""; then
5004 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5006 # Extract the first word of "strip", so it can be a program name with args.
5007 set dummy strip; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_aros_host_strip+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$aros_host_strip"; then
5014 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_aros_host_strip="strip "
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5027 done
5028 done
5029 IFS=$as_save_IFS
5033 aros_host_strip=$ac_cv_prog_aros_host_strip
5034 if test -n "$aros_host_strip"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5036 $as_echo "$aros_host_strip" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5043 if test "$aros_host_strip" = ""; then
5044 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5047 # Extract the first word of "rm", so it can be a program name with args.
5048 set dummy rm; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_RM+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$RM"; then
5055 ac_cv_prog_RM="$RM" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_RM="rm -rf"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5070 IFS=$as_save_IFS
5074 RM=$ac_cv_prog_RM
5075 if test -n "$RM"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5077 $as_echo "$RM" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5084 if test "$RM" = ""; then
5085 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5087 # Extract the first word of "cp", so it can be a program name with args.
5088 set dummy cp; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_CP+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$CP"; then
5095 ac_cv_prog_CP="$CP" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_CP="cp "
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5110 IFS=$as_save_IFS
5114 CP=$ac_cv_prog_CP
5115 if test -n "$CP"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5117 $as_echo "$CP" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5124 if test "$CP" = ""; then
5125 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5127 # Extract the first word of "mv", so it can be a program name with args.
5128 set dummy mv; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_MV+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$MV"; then
5135 ac_cv_prog_MV="$MV" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_MV="mv "
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5150 IFS=$as_save_IFS
5154 MV=$ac_cv_prog_MV
5155 if test -n "$MV"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5157 $as_echo "$MV" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5164 if test "$MV" = ""; then
5165 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5167 # Extract the first word of "echo", so it can be a program name with args.
5168 set dummy echo; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_ECHO+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if test -n "$ECHO"; then
5175 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_ECHO="echo "
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5188 done
5189 done
5190 IFS=$as_save_IFS
5194 ECHO=$ac_cv_prog_ECHO
5195 if test -n "$ECHO"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5197 $as_echo "$ECHO" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 if test "$ECHO" = ""; then
5205 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5207 # Extract the first word of "mkdir", so it can be a program name with args.
5208 set dummy mkdir; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_prog_MKDIR+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 if test -n "$MKDIR"; then
5215 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_prog_MKDIR="mkdir -p"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5228 done
5229 done
5230 IFS=$as_save_IFS
5234 MKDIR=$ac_cv_prog_MKDIR
5235 if test -n "$MKDIR"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5237 $as_echo "$MKDIR" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5244 if test "$MKDIR" = ""; then
5245 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5247 # Extract the first word of "touch", so it can be a program name with args.
5248 set dummy touch; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if ${ac_cv_prog_TOUCH+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 if test -n "$TOUCH"; then
5255 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_TOUCH="touch "
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5268 done
5269 done
5270 IFS=$as_save_IFS
5274 TOUCH=$ac_cv_prog_TOUCH
5275 if test -n "$TOUCH"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5277 $as_echo "$TOUCH" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5284 if test "$TOUCH" = ""; then
5285 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5287 # Extract the first word of "sort", so it can be a program name with args.
5288 set dummy sort; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_SORT+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$SORT"; then
5295 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_SORT="sort "
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5314 SORT=$ac_cv_prog_SORT
5315 if test -n "$SORT"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5317 $as_echo "$SORT" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5324 if test "$SORT" = ""; then
5325 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5327 # Extract the first word of "uniq", so it can be a program name with args.
5328 set dummy uniq; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_UNIQ+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$UNIQ"; then
5335 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_UNIQ="uniq "
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5354 UNIQ=$ac_cv_prog_UNIQ
5355 if test -n "$UNIQ"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5357 $as_echo "$UNIQ" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5364 if test "$UNIQ" = ""; then
5365 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5367 # Extract the first word of "true", so it can be a program name with args.
5368 set dummy true; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_NOP+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$NOP"; then
5375 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_prog_NOP="true "
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5394 NOP=$ac_cv_prog_NOP
5395 if test -n "$NOP"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5397 $as_echo "$NOP" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5404 if test "$NOP" = ""; then
5405 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5407 # Extract the first word of "cat", so it can be a program name with args.
5408 set dummy cat; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_CAT+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$CAT"; then
5415 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_CAT="cat "
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5434 CAT=$ac_cv_prog_CAT
5435 if test -n "$CAT"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5437 $as_echo "$CAT" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5444 if test "$CAT" = ""; then
5445 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5447 # Extract the first word of "bison", so it can be a program name with args.
5448 set dummy bison; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_BISON+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$BISON"; then
5455 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_BISON="bison "
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5468 done
5469 done
5470 IFS=$as_save_IFS
5474 BISON=$ac_cv_prog_BISON
5475 if test -n "$BISON"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5477 $as_echo "$BISON" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5484 if test "$BISON" = ""; then
5485 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5487 # Extract the first word of "flex", so it can be a program name with args.
5488 set dummy flex; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if ${ac_cv_prog_FLEX+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$FLEX"; then
5495 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_FLEX="flex "
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5508 done
5509 done
5510 IFS=$as_save_IFS
5514 FLEX=$ac_cv_prog_FLEX
5515 if test -n "$FLEX"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5517 $as_echo "$FLEX" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5524 if test "$FLEX" = ""; then
5525 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5527 # Extract the first word of "pngtopnm", so it can be a program name with args.
5528 set dummy pngtopnm; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$PNGTOPNM"; then
5535 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544 ac_cv_prog_PNGTOPNM="pngtopnm "
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5548 done
5549 done
5550 IFS=$as_save_IFS
5554 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5555 if test -n "$PNGTOPNM"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5557 $as_echo "$PNGTOPNM" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5564 if test "$PNGTOPNM" = ""; then
5565 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5567 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5568 set dummy ppmtoilbm; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$PPMTOILBM"; then
5575 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5588 done
5589 done
5590 IFS=$as_save_IFS
5594 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5595 if test -n "$PPMTOILBM"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5597 $as_echo "$PPMTOILBM" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5604 if test "$PPMTOILBM" = ""; then
5605 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5607 # Extract the first word of "sed", so it can be a program name with args.
5608 set dummy sed; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if ${ac_cv_prog_SED+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$SED"; then
5615 ac_cv_prog_SED="$SED" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_SED="sed "
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5628 done
5629 done
5630 IFS=$as_save_IFS
5634 SED=$ac_cv_prog_SED
5635 if test -n "$SED"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5637 $as_echo "$SED" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5644 if test "$SED" = ""; then
5645 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5647 # Extract the first word of "chmod", so it can be a program name with args.
5648 set dummy chmod; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if ${ac_cv_prog_CHMOD+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$CHMOD"; then
5655 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_CHMOD="chmod "
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5674 CHMOD=$ac_cv_prog_CHMOD
5675 if test -n "$CHMOD"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5677 $as_echo "$CHMOD" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5684 if test "$CHMOD" = ""; then
5685 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5687 # Extract the first word of "patch", so it can be a program name with args.
5688 set dummy patch; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_prog_PATCH+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 if test -n "$PATCH"; then
5695 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_prog_PATCH="patch "
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5708 done
5709 done
5710 IFS=$as_save_IFS
5714 PATCH=$ac_cv_prog_PATCH
5715 if test -n "$PATCH"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5717 $as_echo "$PATCH" >&6; }
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5724 if test "$PATCH" = ""; then
5725 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5734 if test -n "$PYTHON"; then
5735 # If the user set $PYTHON, use it and don't search something else.
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5737 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5738 prog="import sys
5739 # split strings by '.' and convert to numeric. Append some zeros
5740 # because we need at least 4 digits for the hex conversion.
5741 # map returns an iterator in Python 3.0 and a list in 2.x
5742 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5743 minverhex = 0
5744 # xrange is not present in Python 3.0 and range returns an iterator
5745 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5746 sys.exit(sys.hexversion < minverhex)"
5747 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5748 ($PYTHON -c "$prog") >&5 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; then :
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5753 $as_echo "yes" >&6; }
5754 else
5755 as_fn_error $? "too old" "$LINENO" 5
5757 am_display_PYTHON=$PYTHON
5758 else
5759 # Otherwise, try each interpreter until we find one that satisfies
5760 # VERSION.
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5762 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5763 if ${am_cv_pathless_PYTHON+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5767 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
5768 test "$am_cv_pathless_PYTHON" = none && break
5769 prog="import sys
5770 # split strings by '.' and convert to numeric. Append some zeros
5771 # because we need at least 4 digits for the hex conversion.
5772 # map returns an iterator in Python 3.0 and a list in 2.x
5773 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5774 minverhex = 0
5775 # xrange is not present in Python 3.0 and range returns an iterator
5776 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5777 sys.exit(sys.hexversion < minverhex)"
5778 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5779 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; then :
5783 break
5785 done
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5788 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5789 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5790 if test "$am_cv_pathless_PYTHON" = none; then
5791 PYTHON=:
5792 else
5793 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5794 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_path_PYTHON+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 case $PYTHON in
5801 [\\/]* | ?:[\\/]*)
5802 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5816 done
5817 done
5818 IFS=$as_save_IFS
5821 esac
5823 PYTHON=$ac_cv_path_PYTHON
5824 if test -n "$PYTHON"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5826 $as_echo "$PYTHON" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5834 am_display_PYTHON=$am_cv_pathless_PYTHON
5838 if test "$PYTHON" = :; then
5839 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5840 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5844 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5845 if ${am_cv_python_version+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5851 $as_echo "$am_cv_python_version" >&6; }
5852 PYTHON_VERSION=$am_cv_python_version
5856 PYTHON_PREFIX='${prefix}'
5858 PYTHON_EXEC_PREFIX='${exec_prefix}'
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5863 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5864 if ${am_cv_python_platform+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5870 $as_echo "$am_cv_python_platform" >&6; }
5871 PYTHON_PLATFORM=$am_cv_python_platform
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5877 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5878 if ${am_cv_python_pythondir+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test "x$prefix" = xNONE
5882 then
5883 am_py_prefix=$ac_default_prefix
5884 else
5885 am_py_prefix=$prefix
5887 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`
5888 case $am_cv_python_pythondir in
5889 $am_py_prefix*)
5890 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5891 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5894 case $am_py_prefix in
5895 /usr|/System*) ;;
5897 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5899 esac
5901 esac
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5905 $as_echo "$am_cv_python_pythondir" >&6; }
5906 pythondir=$am_cv_python_pythondir
5910 pkgpythondir=\${pythondir}/$PACKAGE
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5914 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5915 if ${am_cv_python_pyexecdir+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test "x$exec_prefix" = xNONE
5919 then
5920 am_py_exec_prefix=$am_py_prefix
5921 else
5922 am_py_exec_prefix=$exec_prefix
5924 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`
5925 case $am_cv_python_pyexecdir in
5926 $am_py_exec_prefix*)
5927 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5928 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5931 case $am_py_exec_prefix in
5932 /usr|/System*) ;;
5934 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5936 esac
5938 esac
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5942 $as_echo "$am_cv_python_pyexecdir" >&6; }
5943 pyexecdir=$am_cv_python_pyexecdir
5947 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5957 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5958 if ${ac_cv_lib_png_png_read_png+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 ac_check_lib_save_LIBS=$LIBS
5962 LIBS="-lpng $LIBS"
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5966 /* Override any GCC internal prototype to avoid an error.
5967 Use char because int might match the return type of a GCC
5968 builtin and then its argument prototype would still apply. */
5969 #ifdef __cplusplus
5970 extern "C"
5971 #endif
5972 char png_read_png ();
5974 main ()
5976 return png_read_png ();
5978 return 0;
5980 _ACEOF
5981 if ac_fn_c_try_link "$LINENO"; then :
5982 ac_cv_lib_png_png_read_png=yes
5983 else
5984 ac_cv_lib_png_png_read_png=no
5986 rm -f core conftest.err conftest.$ac_objext \
5987 conftest$ac_exeext conftest.$ac_ext
5988 LIBS=$ac_check_lib_save_LIBS
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
5991 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
5992 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
5993 cat >>confdefs.h <<_ACEOF
5994 #define HAVE_LIBPNG 1
5995 _ACEOF
5997 LIBS="-lpng $LIBS"
6001 if test "$ac_cv_lib_png_png_read_png" = ""; then
6002 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6005 FOR=for
6007 IF=if
6009 TEST=test
6011 CMP=cmp
6015 # Check for some includes for the X11 HIDD and the kernel
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6018 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6019 if ${ac_cv_path_GREP+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -z "$GREP"; then
6023 ac_path_GREP_found=false
6024 # Loop through the user's path and test for each of PROGNAME-LIST
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_prog in grep ggrep; do
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6033 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6034 # Check for GNU ac_path_GREP and select it if it is found.
6035 # Check for GNU $ac_path_GREP
6036 case `"$ac_path_GREP" --version 2>&1` in
6037 *GNU*)
6038 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6040 ac_count=0
6041 $as_echo_n 0123456789 >"conftest.in"
6042 while :
6044 cat "conftest.in" "conftest.in" >"conftest.tmp"
6045 mv "conftest.tmp" "conftest.in"
6046 cp "conftest.in" "conftest.nl"
6047 $as_echo 'GREP' >> "conftest.nl"
6048 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6050 as_fn_arith $ac_count + 1 && ac_count=$as_val
6051 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6052 # Best one so far, save it but keep looking for a better one
6053 ac_cv_path_GREP="$ac_path_GREP"
6054 ac_path_GREP_max=$ac_count
6056 # 10*(2^10) chars as input seems more than enough
6057 test $ac_count -gt 10 && break
6058 done
6059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6060 esac
6062 $ac_path_GREP_found && break 3
6063 done
6064 done
6065 done
6066 IFS=$as_save_IFS
6067 if test -z "$ac_cv_path_GREP"; then
6068 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6070 else
6071 ac_cv_path_GREP=$GREP
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6076 $as_echo "$ac_cv_path_GREP" >&6; }
6077 GREP="$ac_cv_path_GREP"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6081 $as_echo_n "checking for egrep... " >&6; }
6082 if ${ac_cv_path_EGREP+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6086 then ac_cv_path_EGREP="$GREP -E"
6087 else
6088 if test -z "$EGREP"; then
6089 ac_path_EGREP_found=false
6090 # Loop through the user's path and test for each of PROGNAME-LIST
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_prog in egrep; do
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6099 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6100 # Check for GNU ac_path_EGREP and select it if it is found.
6101 # Check for GNU $ac_path_EGREP
6102 case `"$ac_path_EGREP" --version 2>&1` in
6103 *GNU*)
6104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6106 ac_count=0
6107 $as_echo_n 0123456789 >"conftest.in"
6108 while :
6110 cat "conftest.in" "conftest.in" >"conftest.tmp"
6111 mv "conftest.tmp" "conftest.in"
6112 cp "conftest.in" "conftest.nl"
6113 $as_echo 'EGREP' >> "conftest.nl"
6114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6116 as_fn_arith $ac_count + 1 && ac_count=$as_val
6117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6118 # Best one so far, save it but keep looking for a better one
6119 ac_cv_path_EGREP="$ac_path_EGREP"
6120 ac_path_EGREP_max=$ac_count
6122 # 10*(2^10) chars as input seems more than enough
6123 test $ac_count -gt 10 && break
6124 done
6125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6126 esac
6128 $ac_path_EGREP_found && break 3
6129 done
6130 done
6131 done
6132 IFS=$as_save_IFS
6133 if test -z "$ac_cv_path_EGREP"; then
6134 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6136 else
6137 ac_cv_path_EGREP=$EGREP
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6143 $as_echo "$ac_cv_path_EGREP" >&6; }
6144 EGREP="$ac_cv_path_EGREP"
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6148 $as_echo_n "checking for ANSI C header files... " >&6; }
6149 if ${ac_cv_header_stdc+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 #include <stdlib.h>
6155 #include <stdarg.h>
6156 #include <string.h>
6157 #include <float.h>
6160 main ()
6164 return 0;
6166 _ACEOF
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168 ac_cv_header_stdc=yes
6169 else
6170 ac_cv_header_stdc=no
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 if test $ac_cv_header_stdc = yes; then
6175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 #include <string.h>
6180 _ACEOF
6181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182 $EGREP "memchr" >/dev/null 2>&1; then :
6184 else
6185 ac_cv_header_stdc=no
6187 rm -f conftest*
6191 if test $ac_cv_header_stdc = yes; then
6192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <stdlib.h>
6197 _ACEOF
6198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199 $EGREP "free" >/dev/null 2>&1; then :
6201 else
6202 ac_cv_header_stdc=no
6204 rm -f conftest*
6208 if test $ac_cv_header_stdc = yes; then
6209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6210 if test "$cross_compiling" = yes; then :
6212 else
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 #include <ctype.h>
6216 #include <stdlib.h>
6217 #if ((' ' & 0x0FF) == 0x020)
6218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6220 #else
6221 # define ISLOWER(c) \
6222 (('a' <= (c) && (c) <= 'i') \
6223 || ('j' <= (c) && (c) <= 'r') \
6224 || ('s' <= (c) && (c) <= 'z'))
6225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6226 #endif
6228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6230 main ()
6232 int i;
6233 for (i = 0; i < 256; i++)
6234 if (XOR (islower (i), ISLOWER (i))
6235 || toupper (i) != TOUPPER (i))
6236 return 2;
6237 return 0;
6239 _ACEOF
6240 if ac_fn_c_try_run "$LINENO"; then :
6242 else
6243 ac_cv_header_stdc=no
6245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6246 conftest.$ac_objext conftest.beam conftest.$ac_ext
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6252 $as_echo "$ac_cv_header_stdc" >&6; }
6253 if test $ac_cv_header_stdc = yes; then
6255 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6260 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6261 inttypes.h stdint.h unistd.h
6262 do :
6263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6264 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6266 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6267 cat >>confdefs.h <<_ACEOF
6268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269 _ACEOF
6273 done
6276 for ac_header in sys/ipc.h sys/shm.h \
6277 sys/mmap.h sys/mman.h sysexits.h \
6278 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6280 do :
6281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6282 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6284 cat >>confdefs.h <<_ACEOF
6285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6286 _ACEOF
6290 done
6293 for ac_header in sys/mount.h
6294 do :
6295 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6297 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6298 cat >>confdefs.h <<_ACEOF
6299 #define HAVE_SYS_MOUNT_H 1
6300 _ACEOF
6304 done
6307 ac_header_dirent=no
6308 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6309 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6311 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6312 if eval \${$as_ac_Header+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 #include <sys/types.h>
6318 #include <$ac_hdr>
6321 main ()
6323 if ((DIR *) 0)
6324 return 0;
6326 return 0;
6328 _ACEOF
6329 if ac_fn_c_try_compile "$LINENO"; then :
6330 eval "$as_ac_Header=yes"
6331 else
6332 eval "$as_ac_Header=no"
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 eval ac_res=\$$as_ac_Header
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6338 $as_echo "$ac_res" >&6; }
6339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6340 cat >>confdefs.h <<_ACEOF
6341 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6342 _ACEOF
6344 ac_header_dirent=$ac_hdr; break
6347 done
6348 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6349 if test $ac_header_dirent = dirent.h; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6351 $as_echo_n "checking for library containing opendir... " >&6; }
6352 if ${ac_cv_search_opendir+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 ac_func_search_save_LIBS=$LIBS
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6359 /* Override any GCC internal prototype to avoid an error.
6360 Use char because int might match the return type of a GCC
6361 builtin and then its argument prototype would still apply. */
6362 #ifdef __cplusplus
6363 extern "C"
6364 #endif
6365 char opendir ();
6367 main ()
6369 return opendir ();
6371 return 0;
6373 _ACEOF
6374 for ac_lib in '' dir; do
6375 if test -z "$ac_lib"; then
6376 ac_res="none required"
6377 else
6378 ac_res=-l$ac_lib
6379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6381 if ac_fn_c_try_link "$LINENO"; then :
6382 ac_cv_search_opendir=$ac_res
6384 rm -f core conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext
6386 if ${ac_cv_search_opendir+:} false; then :
6387 break
6389 done
6390 if ${ac_cv_search_opendir+:} false; then :
6392 else
6393 ac_cv_search_opendir=no
6395 rm conftest.$ac_ext
6396 LIBS=$ac_func_search_save_LIBS
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6399 $as_echo "$ac_cv_search_opendir" >&6; }
6400 ac_res=$ac_cv_search_opendir
6401 if test "$ac_res" != no; then :
6402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6408 $as_echo_n "checking for library containing opendir... " >&6; }
6409 if ${ac_cv_search_opendir+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 ac_func_search_save_LIBS=$LIBS
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6416 /* Override any GCC internal prototype to avoid an error.
6417 Use char because int might match the return type of a GCC
6418 builtin and then its argument prototype would still apply. */
6419 #ifdef __cplusplus
6420 extern "C"
6421 #endif
6422 char opendir ();
6424 main ()
6426 return opendir ();
6428 return 0;
6430 _ACEOF
6431 for ac_lib in '' x; do
6432 if test -z "$ac_lib"; then
6433 ac_res="none required"
6434 else
6435 ac_res=-l$ac_lib
6436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6438 if ac_fn_c_try_link "$LINENO"; then :
6439 ac_cv_search_opendir=$ac_res
6441 rm -f core conftest.err conftest.$ac_objext \
6442 conftest$ac_exeext
6443 if ${ac_cv_search_opendir+:} false; then :
6444 break
6446 done
6447 if ${ac_cv_search_opendir+:} false; then :
6449 else
6450 ac_cv_search_opendir=no
6452 rm conftest.$ac_ext
6453 LIBS=$ac_func_search_save_LIBS
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6456 $as_echo "$ac_cv_search_opendir" >&6; }
6457 ac_res=$ac_cv_search_opendir
6458 if test "$ac_res" != no; then :
6459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6466 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6467 if ${ac_cv_header_stat_broken+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6472 #include <sys/types.h>
6473 #include <sys/stat.h>
6475 #if defined S_ISBLK && defined S_IFDIR
6476 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6477 #endif
6479 #if defined S_ISBLK && defined S_IFCHR
6480 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6481 #endif
6483 #if defined S_ISLNK && defined S_IFREG
6484 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6485 #endif
6487 #if defined S_ISSOCK && defined S_IFREG
6488 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6489 #endif
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"; then :
6493 ac_cv_header_stat_broken=no
6494 else
6495 ac_cv_header_stat_broken=yes
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6500 $as_echo "$ac_cv_header_stat_broken" >&6; }
6501 if test $ac_cv_header_stat_broken = yes; then
6503 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6508 $as_echo_n "checking for ANSI C header files... " >&6; }
6509 if ${ac_cv_header_stdc+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <stdlib.h>
6515 #include <stdarg.h>
6516 #include <string.h>
6517 #include <float.h>
6520 main ()
6524 return 0;
6526 _ACEOF
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 ac_cv_header_stdc=yes
6529 else
6530 ac_cv_header_stdc=no
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 if test $ac_cv_header_stdc = yes; then
6535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #include <string.h>
6540 _ACEOF
6541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6542 $EGREP "memchr" >/dev/null 2>&1; then :
6544 else
6545 ac_cv_header_stdc=no
6547 rm -f conftest*
6551 if test $ac_cv_header_stdc = yes; then
6552 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555 #include <stdlib.h>
6557 _ACEOF
6558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6559 $EGREP "free" >/dev/null 2>&1; then :
6561 else
6562 ac_cv_header_stdc=no
6564 rm -f conftest*
6568 if test $ac_cv_header_stdc = yes; then
6569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6570 if test "$cross_compiling" = yes; then :
6572 else
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <ctype.h>
6576 #include <stdlib.h>
6577 #if ((' ' & 0x0FF) == 0x020)
6578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6580 #else
6581 # define ISLOWER(c) \
6582 (('a' <= (c) && (c) <= 'i') \
6583 || ('j' <= (c) && (c) <= 'r') \
6584 || ('s' <= (c) && (c) <= 'z'))
6585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6586 #endif
6588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6590 main ()
6592 int i;
6593 for (i = 0; i < 256; i++)
6594 if (XOR (islower (i), ISLOWER (i))
6595 || toupper (i) != TOUPPER (i))
6596 return 2;
6597 return 0;
6599 _ACEOF
6600 if ac_fn_c_try_run "$LINENO"; then :
6602 else
6603 ac_cv_header_stdc=no
6605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6606 conftest.$ac_objext conftest.beam conftest.$ac_ext
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6612 $as_echo "$ac_cv_header_stdc" >&6; }
6613 if test $ac_cv_header_stdc = yes; then
6615 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6620 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6621 if ${ac_cv_header_sys_wait_h+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626 #include <sys/types.h>
6627 #include <sys/wait.h>
6628 #ifndef WEXITSTATUS
6629 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6630 #endif
6631 #ifndef WIFEXITED
6632 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6633 #endif
6636 main ()
6638 int s;
6639 wait (&s);
6640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6642 return 0;
6644 _ACEOF
6645 if ac_fn_c_try_compile "$LINENO"; then :
6646 ac_cv_header_sys_wait_h=yes
6647 else
6648 ac_cv_header_sys_wait_h=no
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6653 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6654 if test $ac_cv_header_sys_wait_h = yes; then
6656 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6661 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6662 if ${ac_cv_header_time+:} false; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667 #include <sys/types.h>
6668 #include <sys/time.h>
6669 #include <time.h>
6672 main ()
6674 if ((struct tm *) 0)
6675 return 0;
6677 return 0;
6679 _ACEOF
6680 if ac_fn_c_try_compile "$LINENO"; then :
6681 ac_cv_header_time=yes
6682 else
6683 ac_cv_header_time=no
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6688 $as_echo "$ac_cv_header_time" >&6; }
6689 if test $ac_cv_header_time = yes; then
6691 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6695 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6696 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6698 cat >>confdefs.h <<_ACEOF
6699 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6700 _ACEOF
6703 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6708 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6709 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6711 cat >>confdefs.h <<_ACEOF
6712 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6713 _ACEOF
6716 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6718 else
6719 case " $LIBOBJS " in
6720 *" fileblocks.$ac_objext "* ) ;;
6721 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6723 esac
6728 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6729 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6731 cat >>confdefs.h <<_ACEOF
6732 #define HAVE_STRUCT_STAT_ST_RDEV 1
6733 _ACEOF
6736 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6742 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6743 if ${ac_cv_struct_tm+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748 #include <sys/types.h>
6749 #include <time.h>
6752 main ()
6754 struct tm tm;
6755 int *p = &tm.tm_sec;
6756 return !p;
6758 return 0;
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 ac_cv_struct_tm=time.h
6763 else
6764 ac_cv_struct_tm=sys/time.h
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6769 $as_echo "$ac_cv_struct_tm" >&6; }
6770 if test $ac_cv_struct_tm = sys/time.h; then
6772 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6776 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6777 #include <$ac_cv_struct_tm>
6780 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_STRUCT_TM_TM_ZONE 1
6784 _ACEOF
6789 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6791 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6793 else
6794 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6796 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6797 ac_have_decl=1
6798 else
6799 ac_have_decl=0
6802 cat >>confdefs.h <<_ACEOF
6803 #define HAVE_DECL_TZNAME $ac_have_decl
6804 _ACEOF
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6807 $as_echo_n "checking for tzname... " >&6; }
6808 if ${ac_cv_var_tzname+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 #include <time.h>
6814 #if !HAVE_DECL_TZNAME
6815 extern char *tzname[];
6816 #endif
6819 main ()
6821 return tzname[0][0];
6823 return 0;
6825 _ACEOF
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 ac_cv_var_tzname=yes
6828 else
6829 ac_cv_var_tzname=no
6831 rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6835 $as_echo "$ac_cv_var_tzname" >&6; }
6836 if test $ac_cv_var_tzname = yes; then
6838 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6843 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6844 if test "x$ac_cv_type_off_t" = xyes; then :
6846 else
6848 cat >>confdefs.h <<_ACEOF
6849 #define off_t long int
6850 _ACEOF
6854 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6855 if test "x$ac_cv_type_pid_t" = xyes; then :
6857 else
6859 cat >>confdefs.h <<_ACEOF
6860 #define pid_t int
6861 _ACEOF
6865 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6866 if test "x$ac_cv_type_size_t" = xyes; then :
6868 else
6870 cat >>confdefs.h <<_ACEOF
6871 #define size_t unsigned int
6872 _ACEOF
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6877 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6878 if ${ac_cv_type_uid_t+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 #include <sys/types.h>
6885 _ACEOF
6886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6887 $EGREP "uid_t" >/dev/null 2>&1; then :
6888 ac_cv_type_uid_t=yes
6889 else
6890 ac_cv_type_uid_t=no
6892 rm -f conftest*
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6896 $as_echo "$ac_cv_type_uid_t" >&6; }
6897 if test $ac_cv_type_uid_t = no; then
6899 $as_echo "#define uid_t int" >>confdefs.h
6902 $as_echo "#define gid_t int" >>confdefs.h
6907 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6908 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6912 _ACEOF
6918 # Look for some functions
6919 for ac_func in getpagesize kqueue statfs statvfs \
6920 clone kse_create rfork_thread thr_create sa_register \
6921 getcontext makecontext setcontext sigaltstack swapcontext
6922 do :
6923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6926 cat >>confdefs.h <<_ACEOF
6927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6928 _ACEOF
6931 done
6937 for ac_header in $ac_header_list
6938 do :
6939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6940 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6943 cat >>confdefs.h <<_ACEOF
6944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6945 _ACEOF
6949 done
6958 for ac_func in getpagesize
6959 do :
6960 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6961 if test "x$ac_cv_func_getpagesize" = xyes; then :
6962 cat >>confdefs.h <<_ACEOF
6963 #define HAVE_GETPAGESIZE 1
6964 _ACEOF
6967 done
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6970 $as_echo_n "checking for working mmap... " >&6; }
6971 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test "$cross_compiling" = yes; then :
6975 ac_cv_func_mmap_fixed_mapped=no
6976 else
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979 $ac_includes_default
6980 /* malloc might have been renamed as rpl_malloc. */
6981 #undef malloc
6983 /* Thanks to Mike Haertel and Jim Avera for this test.
6984 Here is a matrix of mmap possibilities:
6985 mmap private not fixed
6986 mmap private fixed at somewhere currently unmapped
6987 mmap private fixed at somewhere already mapped
6988 mmap shared not fixed
6989 mmap shared fixed at somewhere currently unmapped
6990 mmap shared fixed at somewhere already mapped
6991 For private mappings, we should verify that changes cannot be read()
6992 back from the file, nor mmap's back from the file at a different
6993 address. (There have been systems where private was not correctly
6994 implemented like the infamous i386 svr4.0, and systems where the
6995 VM page cache was not coherent with the file system buffer cache
6996 like early versions of FreeBSD and possibly contemporary NetBSD.)
6997 For shared mappings, we should conversely verify that changes get
6998 propagated back to all the places they're supposed to be.
7000 Grep wants private fixed already mapped.
7001 The main things grep needs to know about mmap are:
7002 * does it exist and is it safe to write into the mmap'd area
7003 * how to use it (BSD variants) */
7005 #include <fcntl.h>
7006 #include <sys/mman.h>
7008 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7009 char *malloc ();
7010 #endif
7012 /* This mess was copied from the GNU getpagesize.h. */
7013 #ifndef HAVE_GETPAGESIZE
7014 # ifdef _SC_PAGESIZE
7015 # define getpagesize() sysconf(_SC_PAGESIZE)
7016 # else /* no _SC_PAGESIZE */
7017 # ifdef HAVE_SYS_PARAM_H
7018 # include <sys/param.h>
7019 # ifdef EXEC_PAGESIZE
7020 # define getpagesize() EXEC_PAGESIZE
7021 # else /* no EXEC_PAGESIZE */
7022 # ifdef NBPG
7023 # define getpagesize() NBPG * CLSIZE
7024 # ifndef CLSIZE
7025 # define CLSIZE 1
7026 # endif /* no CLSIZE */
7027 # else /* no NBPG */
7028 # ifdef NBPC
7029 # define getpagesize() NBPC
7030 # else /* no NBPC */
7031 # ifdef PAGESIZE
7032 # define getpagesize() PAGESIZE
7033 # endif /* PAGESIZE */
7034 # endif /* no NBPC */
7035 # endif /* no NBPG */
7036 # endif /* no EXEC_PAGESIZE */
7037 # else /* no HAVE_SYS_PARAM_H */
7038 # define getpagesize() 8192 /* punt totally */
7039 # endif /* no HAVE_SYS_PARAM_H */
7040 # endif /* no _SC_PAGESIZE */
7042 #endif /* no HAVE_GETPAGESIZE */
7045 main ()
7047 char *data, *data2, *data3;
7048 const char *cdata2;
7049 int i, pagesize;
7050 int fd, fd2;
7052 pagesize = getpagesize ();
7054 /* First, make a file with some known garbage in it. */
7055 data = (char *) malloc (pagesize);
7056 if (!data)
7057 return 1;
7058 for (i = 0; i < pagesize; ++i)
7059 *(data + i) = rand ();
7060 umask (0);
7061 fd = creat ("conftest.mmap", 0600);
7062 if (fd < 0)
7063 return 2;
7064 if (write (fd, data, pagesize) != pagesize)
7065 return 3;
7066 close (fd);
7068 /* Next, check that the tail of a page is zero-filled. File must have
7069 non-zero length, otherwise we risk SIGBUS for entire page. */
7070 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7071 if (fd2 < 0)
7072 return 4;
7073 cdata2 = "";
7074 if (write (fd2, cdata2, 1) != 1)
7075 return 5;
7076 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7077 if (data2 == MAP_FAILED)
7078 return 6;
7079 for (i = 0; i < pagesize; ++i)
7080 if (*(data2 + i))
7081 return 7;
7082 close (fd2);
7083 if (munmap (data2, pagesize))
7084 return 8;
7086 /* Next, try to mmap the file at a fixed address which already has
7087 something else allocated at it. If we can, also make sure that
7088 we see the same garbage. */
7089 fd = open ("conftest.mmap", O_RDWR);
7090 if (fd < 0)
7091 return 9;
7092 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7093 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7094 return 10;
7095 for (i = 0; i < pagesize; ++i)
7096 if (*(data + i) != *(data2 + i))
7097 return 11;
7099 /* Finally, make sure that changes to the mapped area do not
7100 percolate back to the file as seen by read(). (This is a bug on
7101 some variants of i386 svr4.0.) */
7102 for (i = 0; i < pagesize; ++i)
7103 *(data2 + i) = *(data2 + i) + 1;
7104 data3 = (char *) malloc (pagesize);
7105 if (!data3)
7106 return 12;
7107 if (read (fd, data3, pagesize) != pagesize)
7108 return 13;
7109 for (i = 0; i < pagesize; ++i)
7110 if (*(data + i) != *(data3 + i))
7111 return 14;
7112 close (fd);
7113 return 0;
7115 _ACEOF
7116 if ac_fn_c_try_run "$LINENO"; then :
7117 ac_cv_func_mmap_fixed_mapped=yes
7118 else
7119 ac_cv_func_mmap_fixed_mapped=no
7121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7122 conftest.$ac_objext conftest.beam conftest.$ac_ext
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7127 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7128 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7130 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7133 rm -f conftest.mmap conftest.txt
7138 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7139 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7140 aros_config_ldflags=""
7142 aros_shared_default=yes
7144 aros_shared_cflags="-fPIC"
7145 aros_shared_aflags=""
7146 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7147 aros_kernel_ldflags="-Wl,-rpath,./lib"
7149 aros_kernel_ar_flags="cr"
7150 aros_target_ar_flags="cr"
7151 aros_target_nm_flags="-C -ul"
7152 aros_target_strip_flags="--strip-unneeded -R.comment"
7154 aros_compiler_libs=
7155 aros_arch_libs=
7157 aros_target_genmap="-Wl,-Map -Xlinker"
7159 # Native flavour stuff
7160 aros_serial_debug="0"
7162 # Palm native flavour stuff
7163 aros_palm_debug_hack="0"
7165 # Unix flavour stuff
7166 aros_nesting_supervisor="0"
7168 # Collect-aros stuff: "-ius" to ignore undefined symbols
7169 ignore_undefined_symbols=""
7171 # Check for X11 by default
7172 need_x11="auto"
7174 #-----------------------------------------------------------------------------
7177 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7178 # it switched on by default, and we use the host compiler, so it compiles AROS
7179 # code with this enabled resulting in link failures as we don't have support
7180 # for it.
7182 # We use two methods to disable it. For the host compiler (used to compile
7183 # some hosted modules), we test to see if the compiler supports stack
7184 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7185 # work on all platforms.
7187 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7188 # (this is done unconditionally, as it should have no effect on compilers
7189 # without the stack protection feature). This may be specific to the way that
7190 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7191 # strong enough to disable it in a generic way though, so we'll live with it
7192 # until another vendor ships GCC with it enabled in a different way, and deal
7193 # with it then.
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7197 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7198 save_cflags="$CFLAGS"
7199 CFLAGS="$CFLAGS -fno-stack-protector"
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7204 main ()
7208 return 0;
7210 _ACEOF
7211 if ac_fn_c_try_compile "$LINENO"; then :
7212 use_no_stack_protector="yes"
7213 else
7214 use_no_stack_protector="no"
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7218 $as_echo "$use_no_stack_protector" >&6; }
7219 if test "x-$use_no_stack_protector" = "x-yes" ; then
7220 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7222 CFLAGS="$save_cflags"
7224 #-----------------------------------------------------------------------------
7226 # Disable pointer-signedness warnings if the compiler recognises the option
7227 # (this only works for the host compiler at the moment)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7230 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7231 save_cflags="$CFLAGS"
7232 CFLAGS="$CFLAGS -Wno-pointer-sign"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7237 main ()
7241 return 0;
7243 _ACEOF
7244 if ac_fn_c_try_compile "$LINENO"; then :
7245 use_no_sign_warning="yes"
7246 else
7247 use_no_sign_warning="no"
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7251 $as_echo "$use_no_sign_warning" >&6; }
7252 if test "x-$use_no_sign_warning" = "x-yes" ; then
7253 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7255 CFLAGS="$save_cflags"
7257 #-----------------------------------------------------------------------------
7259 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7262 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7263 save_cflags="$CFLAGS"
7264 CFLAGS="$CFLAGS -fgnu89-inline"
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7269 main ()
7273 return 0;
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"; then :
7277 use_gnu89_inline="yes"
7278 else
7279 use_gnu89_inline="no"
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7283 $as_echo "$use_gnu89_inline" >&6; }
7284 if test "x-$use_gnu89_inline" = "x-yes" ; then
7285 gnu89_inline="-fgnu89-inline"
7287 CFLAGS="$save_cflags"
7289 #-----------------------------------------------------------------------------
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7292 $as_echo_n "checking for type of build... " >&6; }
7293 # Check whether --enable-build_type was given.
7294 if test "${enable_build_type+set}" = set; then :
7295 enableval=$enable_build_type; build_type=$enableval
7296 else
7297 build_type="personal"
7301 if test "$build_type" = "nightly"; then
7302 build_type_string="NIGHTLY"
7303 elif test "$build_type" = "snapshot"; then
7304 build_type_string="SNAPSHOT"
7305 elif test "$build_type" = "milestone"; then
7306 build_type_string="MILESTONE"
7307 elif test "$build_type" = "release"; then
7308 build_type_string="RELEASE"
7309 else
7310 build_type_string="PERSONAL"
7311 build_type="personal"
7314 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7317 $as_echo "$build_type" >&6; }
7319 #-----------------------------------------------------------------------------
7320 all_debug_types="messages stack modules mungwall symbols"
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7323 $as_echo_n "checking which debug types to enable... " >&6; }
7324 # Check whether --enable-debug was given.
7325 if test "${enable_debug+set}" = set; then :
7326 enableval=$enable_debug; debug="$enableval"
7327 else
7328 debug=""
7332 if test "$debug" = "" -o "$debug" = "no"; then
7333 debug="none"
7334 elif test "$debug" = "yes"; then
7335 debug="all"
7338 if test "$debug" = "all" ; then
7339 debug="messages stack modules symbols"
7340 for d in $all_debug_types; do
7341 export aros_${d}_debug="1"
7342 done
7343 else
7344 for d in $all_debug_types; do
7345 export aros_${d}_debug="0"
7346 done
7349 if test "$debug" != "none"; then
7350 debug=`echo $debug | sed s/,/\ /g`
7351 for d in $debug; do
7352 found="0"
7353 for d2 in $all_debug_types; do
7354 if test "$d2" = "$d"; then
7355 found="1"
7356 break
7358 done
7359 if test "$found" = "0"; then
7360 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7362 export aros_${d}_debug="1"
7363 done
7364 aros_debug="yes"
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7367 $as_echo "$debug" >&6; }
7369 if test "$aros_messages_debug" = "1"; then
7370 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7371 else
7372 aros_messages_debug=""
7374 if test "$aros_symbols_debug" = "1"; then
7375 aros_symbols_debug="-g"
7376 else
7377 aros_symbols_debug=""
7380 # These are the flags to pass when compiling debugged programs
7381 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7382 aros_debug_aflags=""
7383 aros_debug_ldflags="$aros_symbols_debug"
7385 #-----------------------------------------------------------------------------
7386 # Checking for distcc and ccache.
7388 # Always apply the transforms in this particular order. Basically you should
7389 # always run 'ccache distcc compiler' in that order for the best performance.
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7392 $as_echo_n "checking whether to enable distcc... " >&6; }
7393 # Check whether --enable-distcc was given.
7394 if test "${enable_distcc+set}" = set; then :
7395 enableval=$enable_distcc; distcc="$enableval"
7396 else
7397 distcc="no"
7400 if test "$distcc" != "" -a "$distcc" != "no"; then
7401 # AC_CHECK_PROG will print out the result in this case
7402 # Extract the first word of "distcc", so it can be a program name with args.
7403 set dummy distcc; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_path_DISTCC+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 case $DISTCC in
7410 [\\/]* | ?:[\\/]*)
7411 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7425 done
7426 done
7427 IFS=$as_save_IFS
7429 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7431 esac
7433 DISTCC=$ac_cv_path_DISTCC
7434 if test -n "$DISTCC"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7436 $as_echo "$DISTCC" >&6; }
7437 else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7449 $as_echo_n "checking whether to enable ccache... " >&6; }
7450 # Check whether --enable-ccache was given.
7451 if test "${enable_ccache+set}" = set; then :
7452 enableval=$enable_ccache; ccache="$enableval"
7453 else
7454 ccache="no"
7457 if test "$ccache" != "" -a "$ccache" != "no"; then
7458 # AC_CHECK_PROG will print out the result in this case
7459 # Extract the first word of "ccache", so it can be a program name with args.
7460 set dummy ccache; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_CCACHE+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$CCACHE"; then
7467 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_CCACHE="ccache"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7480 done
7481 done
7482 IFS=$as_save_IFS
7486 CCACHE=$ac_cv_prog_CCACHE
7487 if test -n "$CCACHE"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7489 $as_echo "$CCACHE" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7501 #-----------------------------------------------------------------------------
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7503 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7505 # Check whether --with-kernel-gcc-version was given.
7506 if test "${with_kernel_gcc_version+set}" = set; then :
7507 withval=$with_kernel_gcc_version; kernel_tool_version="-$withval"
7508 else
7509 kernel_tool_version=""
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7513 $as_echo "$kernel_tool_version" >&6; }
7515 #-----------------------------------------------------------------------------
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7517 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7519 # Check whether --with-gcc-version was given.
7520 if test "${with_gcc_version+set}" = set; then :
7521 withval=$with_gcc_version; target_tool_version="$withval"
7522 else
7523 target_tool_version="default"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7527 $as_echo "$target_tool_version" >&6; }
7529 #-----------------------------------------------------------------------------
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7531 $as_echo_n "checking what optimization flags to use... " >&6; }
7533 # Check whether --with-optimization was given.
7534 if test "${with_optimization+set}" = set; then :
7535 withval=$with_optimization; optimization="$withval"
7536 else
7537 optimization="unknown"
7540 if test "$optimization" = "unknown"; then
7541 if test "$debug" != "none"; then
7542 optimization="-O0"
7543 else
7544 optimization="-O2"
7547 aros_config_cflags="$aros_config_cflags $optimization"
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7549 $as_echo "$optimization" >&6; }
7551 #-----------------------------------------------------------------------------
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7553 $as_echo_n "checking what paranoia flags to use... " >&6; }
7555 # Check whether --with-paranoia was given.
7556 if test "${with_paranoia+set}" = set; then :
7557 withval=$with_paranoia; paranoia_flags="$withval"
7558 else
7559 paranoia_flags="default"
7562 if test "$paranoia_flags" = "default"; then
7563 paranoia_flags=""
7564 else if test "$paranoia_flags" = "yes"; then
7565 paranoia_flags="-Wall -Werror"
7566 fi fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7568 $as_echo "$paranoia_flags" >&6; }
7569 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7571 #-----------------------------------------------------------------------------
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7573 $as_echo_n "checking what target variant to enable... " >&6; }
7574 # Check whether --enable-target_variant was given.
7575 if test "${enable_target_variant+set}" = set; then :
7576 enableval=$enable_target_variant; target_variant=$enableval
7577 else
7578 target_variant=""
7581 if test "$target_variant" = ""; then
7582 aros_target_variant=""
7583 aros_target_suffix=""
7584 enableval="none"
7585 else
7586 aros_target_variant="$target_variant"
7587 aros_target_suffix="-$target_variant"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7590 $as_echo "$enableval" >&6; }
7592 #-----------------------------------------------------------------------------
7593 # Target-specific defaults. You can override then on a per-target basis.
7595 # Bootloader name. Currently used by PC target.
7596 target_bootloader="none"
7598 #-----------------------------------------------------------------------------
7599 # Additional options for some specific targets
7601 case "$aros_target_variant" in
7602 ios)
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7604 $as_echo_n "checking XCode path... " >&6; }
7606 # Check whether --with-xcode was given.
7607 if test "${with_xcode+set}" = set; then :
7608 withval=$with_xcode; aros_xcode_path="$withval"
7609 else
7610 aros_xcode_path="/Developer"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7614 $as_echo "$aros_xcode_path" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7617 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7619 # Check whether --with-sdk-version was given.
7620 if test "${with_sdk_version+set}" = set; then :
7621 withval=$with_sdk_version; aros_sdk_version="$withval"
7622 else
7623 aros_sdk_version="4.1"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7627 $as_echo "$aros_sdk_version" >&6; }
7631 "android")
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7633 $as_echo_n "checking Android SDK path... " >&6; }
7635 # Check whether --with-sdk was given.
7636 if test "${with_sdk+set}" = set; then :
7637 withval=$with_sdk; aros_android_sdk="$withval"
7638 else
7639 aros_android_sdk=$default_android_sdk
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7643 $as_echo "$aros_android_sdk" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7646 $as_echo_n "checking Android NDK path... " >&6; }
7648 # Check whether --with-ndk was given.
7649 if test "${with_ndk+set}" = set; then :
7650 withval=$with_ndk; aros_android_ndk="$withval"
7651 else
7652 aros_android_ndk="none"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7656 $as_echo "$aros_android_ndk" >&6; }
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7659 $as_echo_n "checking what Android SDK version to use... " >&6; }
7661 # Check whether --with-sdk-version was given.
7662 if test "${with_sdk_version+set}" = set; then :
7663 withval=$with_sdk_version; aros_sdk_version="$withval"
7664 else
7665 aros_sdk_version="12"
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7669 $as_echo "$aros_sdk_version" >&6; }
7671 if test "$aros_android_ndk" != "none"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7673 $as_echo_n "checking what Android NDK version to use... " >&6; }
7675 # Check whether --with-ndk-version was given.
7676 if test "${with_ndk_version+set}" = set; then :
7677 withval=$with_ndk_version; aros_ndk_version="$withval"
7678 else
7679 aros_ndk_version="9"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7683 $as_echo "$aros_ndk_version" >&6; }
7686 export PATH="$aros_android_sdk/tools:$PATH"
7687 # Extract the first word of "$android_tool", so it can be a program name with args.
7688 set dummy $android_tool; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if ${ac_cv_path_android_tool+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 case $android_tool in
7695 [\\/]* | ?:[\\/]*)
7696 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7710 done
7711 done
7712 IFS=$as_save_IFS
7715 esac
7717 android_tool=$ac_cv_path_android_tool
7718 if test -n "$android_tool"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7720 $as_echo "$android_tool" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7727 if test "$android_tool" = ""; then
7728 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7731 aros_android_level=android-$aros_sdk_version
7732 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7733 echo "Platform $aros_android_level is not installed in your SDK"
7734 echo "Use --with-sdk-version=<API level number> to select another platform version"
7735 echo "You can check what plaform versions are installed in your SDK"
7736 echo "by examining contents of $aros_android_sdk/platforms directory"
7737 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7740 # Extract the first word of "ant", so it can be a program name with args.
7741 set dummy ant; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if ${ac_cv_path_ant+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 case $ant in
7748 [\\/]* | ?:[\\/]*)
7749 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7763 done
7764 done
7765 IFS=$as_save_IFS
7768 esac
7770 ant=$ac_cv_path_ant
7771 if test -n "$ant"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7773 $as_echo "$ant" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7780 if test "$ant" = ""; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7782 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7785 if test "$host_os" = "mingw32"; then
7786 android_tool="cmd //c $android_tool"
7790 esac
7792 #-----------------------------------------------------------------------------
7793 # External toolchains
7794 kernel_tool_prefix="none"
7795 aros_tool_prefix="none"
7796 elf_tool_prefix="${target_cpu}-elf-"
7798 # This is the target configuration switch.
7799 case "$target_os" in
7800 linux*)
7801 aros_target_arch="linux"
7802 aros_target_family="unix"
7803 case "$target_cpu" in
7804 *m68k*)
7805 aros_target_cpu="m68k"
7806 aros_object_format="m68kelf"
7807 aros_flavour="emulcompat"
7808 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7809 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7810 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7811 gcc_target_cpu="mc68000"
7813 *i?86*)
7814 aros_target_cpu="i386"
7815 aros_object_format="elf_i386"
7816 aros_flavour="emulation"
7817 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7818 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7819 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7820 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7821 aros_config_ldflags="-m32 -march=i486"
7822 aros_kernel_ldflags="-melf_i386"
7823 aros_default_wbdepth=8
7824 gcc_target_cpu="i386"
7825 pci_hidd_target="hidd-pci-linux"
7826 android_tool_dir_prefix="x86"
7827 android_tool_prefix="i686-android-linux"
7828 android_ndk_arch="x86"
7830 *x86_64*)
7831 aros_target_cpu="x86_64"
7832 aros_object_format="elf_x86_64"
7833 aros_flavour="emulation"
7834 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7835 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7836 aros_default_wbdepth=8
7837 pci_hidd_target="hidd-pci-linux"
7839 *powerpc*)
7840 aros_target_cpu="ppc"
7841 aros_object_format="elf32ppc"
7842 aros_flavour="emulation"
7843 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7844 aros_default_wbdepth=8
7845 gcc_target_cpu="ppc"
7847 # TODO
7848 # Same as powerpc, but I need this for the nightly build to work again.
7849 # Actually, the nightly should be made working with powerpc target.
7850 # That just was too much work for the moment, another week or two.
7851 *ppc*)
7852 aros_target_cpu="ppc"
7853 aros_object_format="elf32ppc"
7854 aros_flavour="emulation"
7855 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7856 aros_default_wbdepth=8
7857 gcc_target_cpu="ppc"
7859 *armhf*)
7860 aros_target_cpu="arm"
7861 target_cpu="arm"
7862 aros_object_format="armelf_linux_eabi"
7863 aros_flavour="emulation"
7864 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7865 gcc_target_cpu="arm"
7866 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7867 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7868 aros_arch_libs="-laeabi"
7869 gcc_default_fpu="vfpv3-d16"
7870 gcc_default_float_abi="hard"
7871 android_tool_dir_prefix="arm-linux-androideabi"
7872 android_tool_prefix="arm-linux-androideabi"
7873 android_ndk_arch="arm"
7874 kernel_tool_prefix="arm-linux-gnueabihf-"
7876 *arm*)
7877 aros_target_cpu="arm"
7878 aros_object_format="armelf_linux_eabi"
7879 aros_flavour="emulation"
7880 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7881 gcc_target_cpu="arm"
7882 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7883 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7884 aros_arch_libs="-laeabi"
7885 android_tool_dir_prefix="arm-linux-androideabi"
7886 android_tool_prefix="arm-linux-androideabi"
7887 android_ndk_arch="arm"
7888 kernel_tool_prefix="arm-linux-gnueabi-"
7891 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7893 esac
7894 case "$aros_target_variant" in
7895 android)
7897 if test "$android_ndk_arch" = ""; then
7898 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7901 aros_default_wbwidth=320
7902 aros_default_wbheight=480
7903 if test "$aros_android_ndk" = "none"; then
7904 aros_kernel_cflags="-mandroid"
7905 aros_kernel_ldflags="-mandroid"
7906 CFLAGS="-mandroid"
7907 else
7908 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7909 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7910 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7911 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7912 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7913 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7915 need_x11=no
7916 x11_hidd_target=kernel-hidd-androidgfx-kobj
7917 # Disable implicit PIC mode
7918 aros_target_cflags="$aros_target_cflags -fno-pic"
7919 kernel_tool_prefix="$android_tool_prefix-"
7921 esac
7925 aros_target_arch="pc"
7926 aros_shared_default="no"
7927 target_bootloader="grub2"
7928 case "$target_cpu" in
7929 *i?86*)
7930 aros_target_cpu="i386"
7933 if test "$aros_object_format" = "" ; then
7934 aros_object_format="elf_i386"
7936 aros_flavour="standalone"
7937 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7938 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7939 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7940 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7941 aros_config_ldflags="-m32 -march=i486"
7942 aros_kernel_ldflags="-melf_i386"
7943 aros_default_wbwidth=640
7944 aros_default_wbheight=480
7945 gcc_target_cpu="i386"
7947 *x86_64*)
7948 aros_target_cpu="x86_64"
7949 aros_serial_debug=1
7950 if test "$aros_object_format" = "" ; then
7951 aros_object_format="elf_x86_64"
7953 aros_flavour="standalone"
7954 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7955 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7956 aros_kernel_ldflags=""
7957 aros_default_wbwidth=640
7958 aros_default_wbheight=480
7961 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7963 esac
7966 prep)
7967 aros_target_arch="prep"
7968 aros_shared_default="no"
7969 aros_target_cpu="ppc"
7970 aros_object_format="elf32ppc"
7971 aros_flavour="ppcnative"
7972 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7973 aros_kernel_ldflags=""
7974 aros_default_wbwidth=640
7975 aros_default_wbheight=480
7976 gcc_target_cpu="ppc"
7979 freebsd*)
7980 aros_target_arch="freebsd"
7981 aros_target_family="unix"
7982 aros_target_cpu="i386"
7983 aros_flavour="emulation"
7984 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7985 gcc_target_cpu="i386"
7987 aros_target_strip_flags="-x"
7990 darwin*)
7991 aros_target_arch="darwin"
7992 aros_target_family="unix"
7993 aros_flavour="emulation"
7994 case "$target_cpu" in
7995 *i?86*)
7996 aros_ios_platform="iPhoneSimulator"
7997 aros_target_cpu="i386"
7998 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7999 aros_kernel_ldflags=""
8000 aros_macosx_version="10.4"
8001 aros_default_wbdepth=8
8002 gcc_target_cpu="i386"
8003 aros_object_format="elf_i386"
8004 aros_kernel_ar_flags="-cr"
8005 aros_target_strip_flags="-x"
8006 kernel_tool_flags="-m32"
8008 *x86_64*)
8009 aros_target_cpu="x86_64"
8010 aros_object_format="elf_x86_64"
8011 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8012 aros_macosx_version="10.6"
8013 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8014 aros_kernel_cflags="-m64"
8015 aros_kernel_ldflags="-m64"
8016 aros_target_cflags="-mcmodel=large"
8017 aros_default_wbdepth=8
8018 aros_kernel_ar="ar"
8019 aros_kernel_ar_flags="-cr"
8020 aros_kernel_ld="ld"
8021 aros_kernel_ranlib="ranlib"
8023 *ppc*)
8024 aros_target_cpu="ppc"
8025 aros_object_format="elf32ppc"
8026 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8027 aros_kernel_ldflags=""
8028 aros_macosx_version="10.0"
8029 aros_default_wbdepth=8
8030 gcc_target_cpu="ppc"
8031 aros_kernel_ar="ar"
8032 aros_kernel_ar_flags="-cr"
8033 aros_kernel_ld="ld -arch ppc"
8034 aros_kernel_as="as -arch ppc"
8035 aros_kernel_ranlib="ranlib -arch ppc"
8036 aros_kernel_nm="nm -arch ppc"
8037 aros_kernel_strip="strip -arch ppc"
8038 kernel_tool_prefix="powerpc-apple-darwin10-"
8040 *arm*)
8041 aros_ios_platform="iPhoneOS"
8042 aros_target_cpu="arm"
8043 aros_object_format="armelf_linux_eabi"
8044 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8045 aros_arch_libs="-laeabi"
8046 aros_default_wbdepth=8
8047 gcc_target_cpu="arm"
8048 aros_kernel_ar="ar"
8049 aros_kernel_ar_flags="-cr"
8050 aros_kernel_ld="ld -arch arm"
8051 aros_kernel_ranlib="ranlib -arch arm"
8052 kernel_tool_prefix="arm-apple-darwin10-"
8053 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8056 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8058 esac
8059 case "$aros_target_variant" in
8060 ios)
8061 aros_ios_version="3.0"
8062 aros_default_wbwidth=320
8063 aros_default_wbheight=480
8064 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8065 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8066 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8067 need_x11=no
8068 # This is here because it may depend on iOS or SDK version
8069 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8070 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8071 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8074 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8075 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8077 esac
8080 dragonfly*)
8081 aros_target_arch="dragonfly"
8082 aros_target_family="unix"
8083 aros_flavour="emulation"
8084 case "$target_cpu" in
8085 *i?86*)
8086 aros_target_cpu="i386"
8087 aros_object_format="elf_i386"
8088 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8090 *x86_64*)
8091 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8092 aros_target_cpu="x86_64"
8093 aros_object_format="elf_x86_64"
8094 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8097 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8099 esac
8102 netbsd*)
8103 aros_target_arch="netbsd"
8104 aros_target_family="unix"
8105 case "$target_cpu" in
8106 *m68k*)
8107 aros_target_cpu="m68k"
8108 aros_object_format="m68kelf"
8109 aros_flavour="emulcompat"
8110 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8111 gcc_target_cpu="mc68000"
8113 *i?86*)
8114 aros_target_cpu="i386"
8115 aros_object_format="elf_i386"
8116 aros_flavour="emulation"
8117 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8118 aros_default_wbdepth=8
8119 gcc_target_cpu="i386"
8122 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8124 esac
8125 aros_target_genmap="-Wl,-M -Xlinker >"
8126 aros_flavour="emulation"
8127 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8130 openbsd*)
8131 aros_target_arch="openbsd"
8132 aros_target_family="unix"
8133 case "$target_cpu" in
8134 *i?86*)
8135 aros_target_cpu="i386"
8136 aros_object_format="elf_i386"
8137 aros_flavour="emulation"
8138 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8139 gcc_target_cpu="i386"
8142 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8144 esac
8145 aros_target_genmap="-Wl,-M -Xlinker >"
8146 aros_target_nm_flags="-u"
8147 aros_flavour="emulation"
8150 solaris*)
8151 aros_target_arch="solaris"
8152 aros_target_family="unix"
8153 case "$target_cpu" in
8154 *i?86*)
8155 aros_target_cpu="i386"
8156 aros_object_format="elf_i386"
8157 aros_flavour="emulation"
8158 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8159 aros_default_wbdepth=8
8160 gcc_target_cpu="i386"
8162 *sparc*)
8163 aros_target_cpu="sparc"
8164 aros_object_format="elf_sparc"
8165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8166 gcc_target_cpu="sparc"
8169 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8171 esac
8172 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8173 aros_flavour="emulation"
8176 morphos*)
8177 aros_target_arch="morphos"
8178 aros_shared_default="no"
8179 aros_target_cpu="ppc"
8180 aros_object_format="elf_ppc"
8181 aros_flavour="nativecompat"
8182 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8183 gcc_target_cpu="ppc"
8186 sam440)
8187 aros_target_arch="sam440"
8188 aros_shared_default="no"
8189 aros_target_cpu="ppc"
8190 aros_object_format="elf32ppc"
8191 aros_flavour="ppcnative"
8192 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8193 aros_kernel_ldflags=""
8194 aros_default_wbwidth=1024
8195 aros_default_wbheight=768
8196 aros_default_wbdepth=24
8197 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8198 gcc_target_cpu="powerpc"
8201 efika)
8202 aros_target_arch="efika"
8203 aros_shared_default="no"
8204 aros_target_cpu="arm"
8205 aros_object_format="armelf_linux_eabi"
8206 aros_flavour="standalone"
8207 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8208 aros_kernel_ldflags=""
8209 aros_default_wbwidth=1024
8210 aros_default_wbheight=600
8211 aros_arch_libs="-laeabi"
8212 gcc_default_cpu="armv7-a"
8213 gcc_default_fpu="vfpv3"
8214 gcc_default_float_abi="softfp"
8215 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8216 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8219 chrp)
8220 aros_target_arch="chrp"
8221 aros_shared_default="no"
8222 aros_target_cpu="ppc"
8223 aros_object_format="elf32ppc"
8224 aros_flavour="ppcnative"
8225 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8226 aros_kernel_ldflags=""
8227 aros_default_wbwidth=640
8228 aros_default_wbheight=480
8229 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8230 gcc_target_cpu="powerpc"
8231 case "$aros_target_variant" in
8232 efika)
8233 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8235 esac
8238 amiga*)
8239 aros_target_arch="amiga"
8240 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8241 aros_shared_default="no"
8243 case "$target_cpu" in
8244 *m68k*)
8245 # Check whether --enable-amigaos_compliance was given.
8246 if test "${enable_amigaos_compliance+set}" = set; then :
8247 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8250 aros_enable_mmu=no
8251 aros_target_cpu="m68k"
8252 aros_object_format="m68kelf"
8253 aros_flavour="standcompat"
8254 gcc_target_cpu="m68000"
8255 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8256 aros_config_aflags="$aros_config_aflags"
8257 aros_target_strip_flags="-R.comment --strip-debug"
8258 aros_default_wbwidth=640
8259 aros_default_wbheight=256
8260 aros_default_wbdepth=2
8262 *ppc*)
8263 aros_cpu="ppc"
8264 aros_flavour="native"
8265 gcc_target_cpu="ppc"
8268 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8270 esac
8273 mingw*)
8274 aros_target_arch="mingw32"
8275 aros_shared_default="no"
8276 aros_flavour="emulation"
8277 aros_shared_cflags=""
8278 need_crosstools="yes"
8279 need_dlopen="no"
8280 rescomp="windres"
8281 case "$target_cpu" in
8282 *i?86*)
8283 aros_target_cpu="i386"
8284 aros_object_format="elf_i386"
8285 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8286 aros_default_wbdepth=8
8287 gcc_target_cpu="i386"
8289 kernel_tool_prefix="i386-mingw32-"
8291 *x86_64*)
8292 aros_target_cpu="x86_64"
8293 aros_object_format="elf_x86_64"
8294 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8295 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8296 aros_default_wbdepth=8
8297 kernel_tool_prefix="x86_64-w64-mingw32-"
8299 *arm*)
8300 aros_target_cpu="arm"
8301 aros_object_format="armelf_linux_eabi"
8302 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8303 aros_arch_libs="-laeabi"
8304 aros_default_wbdepth=8
8305 gcc_target_cpu="arm"
8306 gcc_default_float_abi="soft"
8307 kernel_tool_prefix="arm-mingw32ce-"
8308 aros_default_wbwidth=160
8309 aros_default_wbheight=160
8312 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8314 esac
8315 if test $host_os = "cygwin"; then
8316 aros_kernel_cflags="-mno-cygwin"
8319 pp*)
8320 aros_target_arch="pp"
8321 aros_shared_default="no"
8322 case "$target_cpu" in
8323 *m68k*)
8324 aros_target_cpu="m68k"
8325 aros_object_format="m68kelf"
8326 aros_flavour="palmnative"
8327 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8328 aros_default_wbwidth=160
8329 aros_default_wbheight=160
8330 aros_default_wbdepth=1
8331 aros_target_ar_flags="cru"
8332 aros_compiler_libs="-lgcc1"
8333 aros_shared_default=no
8334 aros_shared_cflags="-fpic"
8335 aros_shared_aflags=""
8336 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8337 aros_kernel_ldflags="-Wl,-rpath,./lib"
8338 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8339 aros_debug_aflags=""
8340 aros_debug_ldflags="$aros_symbols_debug"
8341 aros_mungwall_debug="0"
8342 aros_modules_debug="0"
8343 gcc_target_cpu="mc68000"
8344 ignore_undefined_symbols="-ius"
8347 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8349 esac
8352 mac*)
8353 aros_target_arch="mac"
8354 aros_shared_default="no"
8355 case "$target_cpu" in
8356 *m68k*)
8357 aros_target_cpu="m68k"
8358 aros_object_format="m68kelf"
8359 aros_flavour="mac68knative"
8360 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8361 aros_default_wbwidth=512
8362 aros_default_wbheight=384
8363 aros_default_wbdepth=8
8364 aros_target_ar_flags="cru"
8365 aros_compiler_libs="-lgcc1"
8366 aros_shared_default=no
8367 aros_shared_cflags="-fpic"
8368 aros_shared_aflags=""
8369 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8370 aros_kernel_ldflags="-Wl,-rpath,./lib"
8371 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8372 aros_debug_aflags=""
8373 aros_debug_ldflags="$aros_symbols_debug"
8374 aros_mungwall_debug="0"
8375 aros_modules_debug="0"
8376 gcc_target_cpu="mc68000"
8377 ignore_undefined_symbols="-ius"
8380 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8382 esac
8386 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8388 esac
8390 #-----------------------------------------------------------------------------
8391 crosstools_guess=yes
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8394 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8396 # Check whether --with-kernel-toolchain-prefix was given.
8397 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8398 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8402 $as_echo "$kernel_tool_prefix" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8405 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8407 # Check whether --with-elf-toolchain-prefix was given.
8408 if test "${with_elf_toolchain_prefix+set}" = set; then :
8409 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8410 crosstools_guess=no
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8414 $as_echo "$elf_tool_prefix" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8417 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8419 # Check whether --with-aros-toolchain was given.
8420 if test "${with_aros_toolchain+set}" = set; then :
8421 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8422 crosstools_guess=no
8425 if test "$aros_tool_prefix" = "yes" ; then
8426 aros_tool_prefix=$aros_target_cpu-aros-
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8429 $as_echo "$aros_tool_prefix" >&6; }
8431 #-----------------------------------------------------------------------------
8432 # Checking if we should build crosstools..
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8434 $as_echo_n "checking whether to build crosstools... " >&6; }
8435 # Check whether --enable-crosstools was given.
8436 if test "${enable_crosstools+set}" = set; then :
8437 enableval=$enable_crosstools; crosstools="$enableval"
8438 else
8439 crosstools="$crosstools_guess"
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8443 $as_echo "$crosstools" >&6; }
8445 if test "${crosstools}" = "yes"; then
8446 if test "${crosstools_guess}" = "no"; then
8447 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8452 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8454 # Check whether --with-aros-toolchain-install was given.
8455 if test "${with_aros_toolchain_install+set}" = set; then :
8456 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8459 if test "x$aros_toolchain_install" = "x"; then
8460 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8461 else
8462 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8463 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8466 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8469 # Now process extra architecture-specific options.
8470 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8471 # as well as floating-point ABI.
8472 case "$aros_target_cpu" in
8473 arm)
8474 if test "$gcc_default_cpu" = ""; then
8475 gcc_default_cpu="armv6"
8477 if test "$gcc_default_fpu" = ""; then
8478 gcc_default_fpu="vfp"
8480 if test "$gcc_default_float_abi" = ""; then
8481 gcc_default_float_abi="softfp"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8485 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8487 # Check whether --with-cpu was given.
8488 if test "${with_cpu+set}" = set; then :
8489 withval=$with_cpu; aros_gcc_cpu="$withval"
8490 else
8491 aros_gcc_cpu=$gcc_default_cpu
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8495 $as_echo "$aros_gcc_cpu" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8498 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8500 # Check whether --with-fpu was given.
8501 if test "${with_fpu+set}" = set; then :
8502 withval=$with_fpu; aros_gcc_fpu="$withval"
8503 else
8504 aros_gcc_fpu=$gcc_default_fpu
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8508 $as_echo "$aros_gcc_fpu" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8511 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8513 # Check whether --with-float was given.
8514 if test "${with_float+set}" = set; then :
8515 withval=$with_float; aros_gcc_float_abi="$withval"
8516 else
8517 aros_gcc_float_abi=$gcc_default_float_abi
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8521 $as_echo "$aros_gcc_float_abi" >&6; }
8523 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"
8524 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"
8526 esac
8528 # Some formats need custom ELF specs.
8529 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8530 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8531 elf_specs_in=config/${aros_object_format}-specs.in
8532 else
8533 elf_specs_in=config/elf-specs.in
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8537 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8539 # Check whether --with-aros-gcc was given.
8540 if test "${with_aros_gcc+set}" = set; then :
8541 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8542 else
8543 aros_gcc_version=""
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8547 $as_echo "$aros_gcc_version" >&6; }
8549 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8550 # Since we override specs, we may need to put these defines there
8551 if test "$gcc_target_cpu" != ""; then
8552 gcc_target_cpu="-D__${gcc_target_cpu}__"
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8556 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8558 # Check whether --with-portssources was given.
8559 if test "${with_portssources+set}" = set; then :
8560 withval=$with_portssources; with_portssrcdir=$withval
8561 else
8562 with_portssrcdir="default"
8565 if test "$with_portssrcdir" = "default"; then
8566 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8567 else
8568 AROS_PORTSSRCDIR="$with_portssrcdir"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8571 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8574 $as_echo_n "checking which bootloader to use... " >&6; }
8576 # Check whether --with-bootloader was given.
8577 if test "${with_bootloader+set}" = set; then :
8578 withval=$with_bootloader; target_bootloader=$withval
8579 else
8580 target_bootloader=$target_bootloader
8583 if test "$target_bootloader" = "none"; then
8584 aros_target_bootloader=""
8585 else
8586 aros_target_bootloader="$target_bootloader"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8589 $as_echo "$target_bootloader" >&6; }
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8592 $as_echo_n "checking which icon-set to use... " >&6; }
8594 # Check whether --with-iconset was given.
8595 if test "${with_iconset+set}" = set; then :
8596 withval=$with_iconset; target_iconset=$withval
8597 else
8598 target_iconset="default"
8601 if test "$target_iconset" = "default"; then
8602 aros_target_iconset="Gorilla"
8603 target_iconset="default (Gorilla)"
8604 else
8605 aros_target_iconset="$target_iconset"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8608 $as_echo "$target_iconset" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8611 $as_echo_n "checking which GUI Theme to use... " >&6; }
8613 # Check whether --with-theme was given.
8614 if test "${with_theme+set}" = set; then :
8615 withval=$with_theme; target_guitheme=$withval
8616 else
8617 target_guitheme="default"
8620 if test "$target_guitheme" = "default"; then
8621 aros_target_guitheme="Ice"
8622 else
8623 aros_target_guitheme="$target_guitheme"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8626 $as_echo "$aros_target_guitheme" >&6; }
8628 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8629 # for target code)
8630 cross_compiling=no
8632 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8633 cross_compiling=yes
8636 if test "$aros_host_cpu" == "x86_64" ; then
8637 if test "$aros_target_cpu" == "i386" ; then
8638 cross_compiling=no
8642 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8643 if test "$aros_host_arch" != "$aros_target_arch" ; then
8644 cross_compiling=yes
8646 else
8647 if test "$host_cc_elf" = "no" ; then
8648 cross_compiling=yes
8652 if test "$cross_compiling" = "no" ; then
8653 kernel_tool_prefix=""
8654 if test "$host_cc_elf" = "yes" ; then
8655 elf_tool_prefix=""
8659 #######################################################################
8660 ## Compute what toolchains to use, and their paths ##
8661 #######################################################################
8663 # This takes, as input:
8664 # crosstools {yes,no}
8665 # kernel_tool_version {"",[version]}
8666 # aros_gcc_version {"",[version]}
8667 # kernel_tool_prefix {none,[some-arch-os-]}
8668 # target_tool_prefix ${aros_target_cpu}-aros-
8669 # aros_tool_prefix ${aros_target_cpu}-aros-
8671 # The output is
8672 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8673 # Where the 'kernel' binaries are located
8674 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8675 # Where the 'target' binaries are located
8676 # (not the symlink farm - that is aros_target_*!)
8678 # The rules are:
8679 # if crosstools then
8680 # if kernel_tools_prefix = "no-kernel-prefix-"
8681 # aros_kernel_* = crosstools cc paths
8682 # aros_kernel_cc = elf cc wrapper around crosstools cc
8683 # else
8684 # VALIDATE(${kernel_tools_prefix}*)
8685 # aros_kernel_* = ${kernel_tools_prefix}*
8686 # if ${kernel_tools_prefix}cc is an AROS gcc
8687 # aros_kernel_cc = ${kernel_tools_prefix}cc
8688 # else
8689 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8690 # fi
8691 # fi
8693 # orig_target_* = aros built crosstools
8694 # orig_target_cc = elf cc wrapper around crosstools cc
8695 # else
8696 # VALIDATE(${kernel_tools_prefix}*)
8698 # orig_target_* = aros_kernel_*
8699 # if aros_kernel_cc is an AROS gcc
8700 # orig_target_cc = aros_kernel_cc
8701 # else
8702 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8703 # fi
8704 # fi
8706 target_tool_prefix="${aros_target_cpu}-aros-"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8709 $as_echo_n "checking which kernel tools... " >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8711 $as_echo "$kernel_tool_prefix" >&6; };
8713 if test "$kernel_tool_prefix" = "none" ; then
8714 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8715 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8717 else
8718 # Kernel tools required - find them
8719 # Note that 'normally', aros_kernel_* overrides will be
8720 # empty, unless specified in the per-arch sections above.
8721 if test "x$aros_kernel_cpp" = "x"; then
8722 aros_kernel_cpp=${kernel_tool_prefix}cpp
8725 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8726 if test "$cross_compiling" = "yes" ; then
8727 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8728 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 case $aros_kernel_cpp in
8735 [\\/]* | ?:[\\/]*)
8736 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 break 2
8750 done
8751 done
8752 IFS=$as_save_IFS
8755 esac
8757 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8758 if test -n "$aros_kernel_cpp"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8760 $as_echo "$aros_kernel_cpp" >&6; }
8761 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8767 else
8768 if test "$GCC" = "yes"; then
8769 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8770 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8771 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 case $aros_kernel_cpp in
8778 [\\/]* | ?:[\\/]*)
8779 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in `dirname $aros_gcc_cpp`
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8793 done
8794 done
8795 IFS=$as_save_IFS
8798 esac
8800 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8801 if test -n "$aros_kernel_cpp"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8803 $as_echo "$aros_kernel_cpp" >&6; }
8804 else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8811 if test "$aros_kernel_cpp" = ""; then
8812 # Extract the first word of "cpp", so it can be a program name with args.
8813 set dummy cpp; ac_word=$2
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815 $as_echo_n "checking for $ac_word... " >&6; }
8816 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 case $aros_kernel_cpp in
8820 [\\/]* | ?:[\\/]*)
8821 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8835 done
8836 done
8837 IFS=$as_save_IFS
8840 esac
8842 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8843 if test -n "$aros_kernel_cpp"; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8845 $as_echo "$aros_kernel_cpp" >&6; }
8846 else
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8854 else
8855 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8856 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858 $as_echo_n "checking for $ac_word... " >&6; }
8859 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 case $aros_kernel_cpp in
8863 [\\/]* | ?:[\\/]*)
8864 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8874 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8878 done
8879 done
8880 IFS=$as_save_IFS
8883 esac
8885 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8886 if test -n "$aros_kernel_cpp"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8888 $as_echo "$aros_kernel_cpp" >&6; }
8889 else
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8897 if test "$aros_kernel_cpp" = ""; then
8898 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8900 if test "x$aros_kernel_cc" = "x"; then
8901 aros_kernel_cc=${kernel_tool_prefix}gcc
8904 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8905 if test "$cross_compiling" = "yes" ; then
8906 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8907 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 case $aros_kernel_cc in
8914 [\\/]* | ?:[\\/]*)
8915 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919 for as_dir in $PATH
8921 IFS=$as_save_IFS
8922 test -z "$as_dir" && as_dir=.
8923 for ac_exec_ext in '' $ac_executable_extensions; do
8924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8925 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 break 2
8929 done
8930 done
8931 IFS=$as_save_IFS
8934 esac
8936 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8937 if test -n "$aros_kernel_cc"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8939 $as_echo "$aros_kernel_cc" >&6; }
8940 else
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8946 else
8947 if test "$GCC" = "yes"; then
8948 aros_gcc_cc=`$CC -print-prog-name=cc`
8949 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8950 set dummy `basename $aros_gcc_cc`; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 case $aros_kernel_cc in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in `dirname $aros_gcc_cc`
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8972 done
8973 done
8974 IFS=$as_save_IFS
8977 esac
8979 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8980 if test -n "$aros_kernel_cc"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8982 $as_echo "$aros_kernel_cc" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8990 if test "$aros_kernel_cc" = ""; then
8991 # Extract the first word of "cc", so it can be a program name with args.
8992 set dummy cc; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 case $aros_kernel_cc in
8999 [\\/]* | ?:[\\/]*)
9000 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9010 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9014 done
9015 done
9016 IFS=$as_save_IFS
9019 esac
9021 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9022 if test -n "$aros_kernel_cc"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9024 $as_echo "$aros_kernel_cc" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9033 else
9034 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9035 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 case $aros_kernel_cc in
9042 [\\/]* | ?:[\\/]*)
9043 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047 for as_dir in $PATH
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9053 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 break 2
9057 done
9058 done
9059 IFS=$as_save_IFS
9062 esac
9064 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9065 if test -n "$aros_kernel_cc"; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9067 $as_echo "$aros_kernel_cc" >&6; }
9068 else
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9076 if test "$aros_kernel_cc" = ""; then
9077 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9079 if test "x$aros_kernel_cxx" = "x"; then
9080 aros_kernel_cxx=${kernel_tool_prefix}g++
9083 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9084 if test "$cross_compiling" = "yes" ; then
9085 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9086 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; }
9089 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 case $aros_kernel_cxx in
9093 [\\/]* | ?:[\\/]*)
9094 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 for as_dir in $PATH
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9104 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 break 2
9108 done
9109 done
9110 IFS=$as_save_IFS
9113 esac
9115 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9116 if test -n "$aros_kernel_cxx"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9118 $as_echo "$aros_kernel_cxx" >&6; }
9119 else
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 $as_echo "no" >&6; }
9125 else
9126 if test "$GCC" = "yes"; then
9127 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9128 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9129 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 $as_echo_n "checking for $ac_word... " >&6; }
9132 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 case $aros_kernel_cxx in
9136 [\\/]* | ?:[\\/]*)
9137 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 for as_dir in `dirname $aros_gcc_cxx`
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 break 2
9151 done
9152 done
9153 IFS=$as_save_IFS
9156 esac
9158 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9159 if test -n "$aros_kernel_cxx"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9161 $as_echo "$aros_kernel_cxx" >&6; }
9162 else
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9169 if test "$aros_kernel_cxx" = ""; then
9170 # Extract the first word of "cxx", so it can be a program name with args.
9171 set dummy cxx; ac_word=$2
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 case $aros_kernel_cxx in
9178 [\\/]* | ?:[\\/]*)
9179 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 for as_dir in $PATH
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9189 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 break 2
9193 done
9194 done
9195 IFS=$as_save_IFS
9198 esac
9200 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9201 if test -n "$aros_kernel_cxx"; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9203 $as_echo "$aros_kernel_cxx" >&6; }
9204 else
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9212 else
9213 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9214 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 case $aros_kernel_cxx in
9221 [\\/]* | ?:[\\/]*)
9222 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9232 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9236 done
9237 done
9238 IFS=$as_save_IFS
9241 esac
9243 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9244 if test -n "$aros_kernel_cxx"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9246 $as_echo "$aros_kernel_cxx" >&6; }
9247 else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9255 # If it's set, make sure it's really there
9256 if test "x$aros_kernel_cxx" != "x" ; then
9257 if test "$aros_kernel_cxx" = ""; then
9258 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9262 if test "$aros_kernel_ld" = ""; then
9263 if test "$cross_compiling" = "yes" ; then
9264 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9265 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9267 $as_echo_n "checking for $ac_word... " >&6; }
9268 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 case $aros_kernel_ld in
9272 [\\/]* | ?:[\\/]*)
9273 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9283 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285 break 2
9287 done
9288 done
9289 IFS=$as_save_IFS
9292 esac
9294 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9295 if test -n "$aros_kernel_ld"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9297 $as_echo "$aros_kernel_ld" >&6; }
9298 else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9304 else
9305 if test "$GCC" = "yes"; then
9306 aros_gcc_ld=`$CC -print-prog-name=ld`
9307 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9308 set dummy `basename $aros_gcc_ld`; ac_word=$2
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310 $as_echo_n "checking for $ac_word... " >&6; }
9311 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9312 $as_echo_n "(cached) " >&6
9313 else
9314 case $aros_kernel_ld in
9315 [\\/]* | ?:[\\/]*)
9316 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 for as_dir in `dirname $aros_gcc_ld`
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9326 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 break 2
9330 done
9331 done
9332 IFS=$as_save_IFS
9335 esac
9337 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9338 if test -n "$aros_kernel_ld"; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9340 $as_echo "$aros_kernel_ld" >&6; }
9341 else
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9348 if test "$aros_kernel_ld" = ""; then
9349 # Extract the first word of "ld", so it can be a program name with args.
9350 set dummy ld; ac_word=$2
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352 $as_echo_n "checking for $ac_word... " >&6; }
9353 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 case $aros_kernel_ld in
9357 [\\/]* | ?:[\\/]*)
9358 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9362 for as_dir in $PATH
9364 IFS=$as_save_IFS
9365 test -z "$as_dir" && as_dir=.
9366 for ac_exec_ext in '' $ac_executable_extensions; do
9367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9368 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9370 break 2
9372 done
9373 done
9374 IFS=$as_save_IFS
9377 esac
9379 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9380 if test -n "$aros_kernel_ld"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9382 $as_echo "$aros_kernel_ld" >&6; }
9383 else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385 $as_echo "no" >&6; }
9391 else
9392 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9393 set dummy $aros_kernel_ld; ac_word=$2
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 $as_echo_n "checking for $ac_word... " >&6; }
9396 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 case $aros_kernel_ld in
9400 [\\/]* | ?:[\\/]*)
9401 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405 for as_dir in $PATH
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9411 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9415 done
9416 done
9417 IFS=$as_save_IFS
9420 esac
9422 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9423 if test -n "$aros_kernel_ld"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9425 $as_echo "$aros_kernel_ld" >&6; }
9426 else
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9434 if test "$aros_kernel_ld" = ""; then
9435 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9438 if test "$aros_kernel_as" = ""; then
9439 if test "$cross_compiling" = "yes" ; then
9440 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9441 set dummy ${kernel_tool_prefix}as; ac_word=$2
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9443 $as_echo_n "checking for $ac_word... " >&6; }
9444 if ${ac_cv_path_aros_kernel_as+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 case $aros_kernel_as in
9448 [\\/]* | ?:[\\/]*)
9449 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 for as_dir in $PATH
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9459 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9463 done
9464 done
9465 IFS=$as_save_IFS
9468 esac
9470 aros_kernel_as=$ac_cv_path_aros_kernel_as
9471 if test -n "$aros_kernel_as"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9473 $as_echo "$aros_kernel_as" >&6; }
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9480 else
9481 if test "$GCC" = "yes"; then
9482 aros_gcc_as=`$CC -print-prog-name=as`
9483 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9484 set dummy `basename $aros_gcc_as`; ac_word=$2
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 $as_echo_n "checking for $ac_word... " >&6; }
9487 if ${ac_cv_path_aros_kernel_as+:} false; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 case $aros_kernel_as in
9491 [\\/]* | ?:[\\/]*)
9492 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 for as_dir in `dirname $aros_gcc_as`
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9502 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9504 break 2
9506 done
9507 done
9508 IFS=$as_save_IFS
9511 esac
9513 aros_kernel_as=$ac_cv_path_aros_kernel_as
9514 if test -n "$aros_kernel_as"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9516 $as_echo "$aros_kernel_as" >&6; }
9517 else
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9524 if test "$aros_kernel_as" = ""; then
9525 # Extract the first word of "as", so it can be a program name with args.
9526 set dummy as; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_path_aros_kernel_as+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 case $aros_kernel_as in
9533 [\\/]* | ?:[\\/]*)
9534 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9548 done
9549 done
9550 IFS=$as_save_IFS
9553 esac
9555 aros_kernel_as=$ac_cv_path_aros_kernel_as
9556 if test -n "$aros_kernel_as"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9558 $as_echo "$aros_kernel_as" >&6; }
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9567 else
9568 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9569 set dummy $aros_kernel_as; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if ${ac_cv_path_aros_kernel_as+:} false; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 case $aros_kernel_as in
9576 [\\/]* | ?:[\\/]*)
9577 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9587 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9591 done
9592 done
9593 IFS=$as_save_IFS
9596 esac
9598 aros_kernel_as=$ac_cv_path_aros_kernel_as
9599 if test -n "$aros_kernel_as"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9601 $as_echo "$aros_kernel_as" >&6; }
9602 else
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9610 if test "$aros_kernel_as" = ""; then
9611 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9614 if test "$aros_kernel_ar" = ""; then
9615 if test "$cross_compiling" = "yes" ; then
9616 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9617 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 case $aros_kernel_ar in
9624 [\\/]* | ?:[\\/]*)
9625 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 for as_dir in $PATH
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9635 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9639 done
9640 done
9641 IFS=$as_save_IFS
9644 esac
9646 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9647 if test -n "$aros_kernel_ar"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9649 $as_echo "$aros_kernel_ar" >&6; }
9650 else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652 $as_echo "no" >&6; }
9656 else
9657 if test "$GCC" = "yes"; then
9658 aros_gcc_ar=`$CC -print-prog-name=ar`
9659 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9660 set dummy `basename $aros_gcc_ar`; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 case $aros_kernel_ar in
9667 [\\/]* | ?:[\\/]*)
9668 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in `dirname $aros_gcc_ar`
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9678 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9682 done
9683 done
9684 IFS=$as_save_IFS
9687 esac
9689 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9690 if test -n "$aros_kernel_ar"; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9692 $as_echo "$aros_kernel_ar" >&6; }
9693 else
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9700 if test "$aros_kernel_ar" = ""; then
9701 # Extract the first word of "ar", so it can be a program name with args.
9702 set dummy ar; ac_word=$2
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704 $as_echo_n "checking for $ac_word... " >&6; }
9705 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 case $aros_kernel_ar in
9709 [\\/]* | ?:[\\/]*)
9710 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9724 done
9725 done
9726 IFS=$as_save_IFS
9729 esac
9731 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9732 if test -n "$aros_kernel_ar"; then
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9734 $as_echo "$aros_kernel_ar" >&6; }
9735 else
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; }
9743 else
9744 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9745 set dummy $aros_kernel_ar; ac_word=$2
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9747 $as_echo_n "checking for $ac_word... " >&6; }
9748 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 case $aros_kernel_ar in
9752 [\\/]* | ?:[\\/]*)
9753 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 for as_dir in $PATH
9759 IFS=$as_save_IFS
9760 test -z "$as_dir" && as_dir=.
9761 for ac_exec_ext in '' $ac_executable_extensions; do
9762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9763 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9765 break 2
9767 done
9768 done
9769 IFS=$as_save_IFS
9772 esac
9774 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9775 if test -n "$aros_kernel_ar"; then
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9777 $as_echo "$aros_kernel_ar" >&6; }
9778 else
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9786 if test "$aros_kernel_ar" = ""; then
9787 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9790 if test "$aros_kernel_ranlib" = ""; then
9791 if test "$cross_compiling" = "yes" ; then
9792 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9793 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9795 $as_echo_n "checking for $ac_word... " >&6; }
9796 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9797 $as_echo_n "(cached) " >&6
9798 else
9799 case $aros_kernel_ranlib in
9800 [\\/]* | ?:[\\/]*)
9801 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9820 esac
9822 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9823 if test -n "$aros_kernel_ranlib"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9825 $as_echo "$aros_kernel_ranlib" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9832 else
9833 if test "$GCC" = "yes"; then
9834 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9835 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9836 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 case $aros_kernel_ranlib in
9843 [\\/]* | ?:[\\/]*)
9844 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in `dirname $aros_gcc_ranlib`
9850 IFS=$as_save_IFS
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9854 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 break 2
9858 done
9859 done
9860 IFS=$as_save_IFS
9863 esac
9865 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9866 if test -n "$aros_kernel_ranlib"; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9868 $as_echo "$aros_kernel_ranlib" >&6; }
9869 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 $as_echo "no" >&6; }
9876 if test "$aros_kernel_ranlib" = ""; then
9877 # Extract the first word of "ranlib", so it can be a program name with args.
9878 set dummy ranlib; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 case $aros_kernel_ranlib in
9885 [\\/]* | ?:[\\/]*)
9886 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9896 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9900 done
9901 done
9902 IFS=$as_save_IFS
9905 esac
9907 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9908 if test -n "$aros_kernel_ranlib"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9910 $as_echo "$aros_kernel_ranlib" >&6; }
9911 else
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9919 else
9920 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9921 set dummy $aros_kernel_ranlib; ac_word=$2
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923 $as_echo_n "checking for $ac_word... " >&6; }
9924 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 case $aros_kernel_ranlib in
9928 [\\/]* | ?:[\\/]*)
9929 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 for as_dir in $PATH
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9943 done
9944 done
9945 IFS=$as_save_IFS
9948 esac
9950 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9951 if test -n "$aros_kernel_ranlib"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9953 $as_echo "$aros_kernel_ranlib" >&6; }
9954 else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9962 if test "$aros_kernel_ranlib" = ""; then
9963 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9966 if test "$aros_kernel_nm" = ""; then
9967 if test "$cross_compiling" = "yes" ; then
9968 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9969 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 case $aros_kernel_nm in
9976 [\\/]* | ?:[\\/]*)
9977 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in $PATH
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9991 done
9992 done
9993 IFS=$as_save_IFS
9996 esac
9998 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9999 if test -n "$aros_kernel_nm"; then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10001 $as_echo "$aros_kernel_nm" >&6; }
10002 else
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10008 else
10009 if test "$GCC" = "yes"; then
10010 aros_gcc_nm=`$CC -print-prog-name=nm`
10011 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10012 set dummy `basename $aros_gcc_nm`; ac_word=$2
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014 $as_echo_n "checking for $ac_word... " >&6; }
10015 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 case $aros_kernel_nm in
10019 [\\/]* | ?:[\\/]*)
10020 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024 for as_dir in `dirname $aros_gcc_nm`
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10030 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10034 done
10035 done
10036 IFS=$as_save_IFS
10039 esac
10041 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10042 if test -n "$aros_kernel_nm"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10044 $as_echo "$aros_kernel_nm" >&6; }
10045 else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10052 if test "$aros_kernel_nm" = ""; then
10053 # Extract the first word of "nm", so it can be a program name with args.
10054 set dummy nm; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 case $aros_kernel_nm in
10061 [\\/]* | ?:[\\/]*)
10062 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066 for as_dir in $PATH
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10072 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10076 done
10077 done
10078 IFS=$as_save_IFS
10081 esac
10083 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10084 if test -n "$aros_kernel_nm"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10086 $as_echo "$aros_kernel_nm" >&6; }
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 $as_echo "no" >&6; }
10095 else
10096 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10097 set dummy $aros_kernel_nm; ac_word=$2
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 case $aros_kernel_nm in
10104 [\\/]* | ?:[\\/]*)
10105 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10119 done
10120 done
10121 IFS=$as_save_IFS
10124 esac
10126 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10127 if test -n "$aros_kernel_nm"; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10129 $as_echo "$aros_kernel_nm" >&6; }
10130 else
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132 $as_echo "no" >&6; }
10138 if test "$aros_kernel_nm" = ""; then
10139 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10142 if test "$aros_kernel_strip" = ""; then
10143 if test "$cross_compiling" = "yes" ; then
10144 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10145 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 case $aros_kernel_strip in
10152 [\\/]* | ?:[\\/]*)
10153 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10163 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10167 done
10168 done
10169 IFS=$as_save_IFS
10172 esac
10174 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10175 if test -n "$aros_kernel_strip"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10177 $as_echo "$aros_kernel_strip" >&6; }
10178 else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10184 else
10185 if test "$GCC" = "yes"; then
10186 aros_gcc_strip=`$CC -print-prog-name=strip`
10187 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10188 set dummy `basename $aros_gcc_strip`; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 case $aros_kernel_strip in
10195 [\\/]* | ?:[\\/]*)
10196 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in `dirname $aros_gcc_strip`
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10206 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10210 done
10211 done
10212 IFS=$as_save_IFS
10215 esac
10217 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10218 if test -n "$aros_kernel_strip"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10220 $as_echo "$aros_kernel_strip" >&6; }
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10228 if test "$aros_kernel_strip" = ""; then
10229 # Extract the first word of "strip", so it can be a program name with args.
10230 set dummy strip; ac_word=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 case $aros_kernel_strip in
10237 [\\/]* | ?:[\\/]*)
10238 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10248 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10252 done
10253 done
10254 IFS=$as_save_IFS
10257 esac
10259 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10260 if test -n "$aros_kernel_strip"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10262 $as_echo "$aros_kernel_strip" >&6; }
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10271 else
10272 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10273 set dummy $aros_kernel_strip; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 case $aros_kernel_strip in
10280 [\\/]* | ?:[\\/]*)
10281 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285 for as_dir in $PATH
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10291 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10295 done
10296 done
10297 IFS=$as_save_IFS
10300 esac
10302 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10303 if test -n "$aros_kernel_strip"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10305 $as_echo "$aros_kernel_strip" >&6; }
10306 else
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10314 if test "$aros_kernel_strip" = ""; then
10315 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10318 # Objcopy and objdump are not required for the kernel
10319 # toolchain on many architectures.
10320 # So we'll look for them, but not make them strictly required.
10322 if test "$aros_kernel_objcopy" = ""; then
10323 if test "$cross_compiling" = "yes" ; then
10324 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10325 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 $as_echo_n "checking for $ac_word... " >&6; }
10328 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 case $aros_kernel_objcopy in
10332 [\\/]* | ?:[\\/]*)
10333 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337 for as_dir in $PATH
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10343 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10347 done
10348 done
10349 IFS=$as_save_IFS
10352 esac
10354 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10355 if test -n "$aros_kernel_objcopy"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10357 $as_echo "$aros_kernel_objcopy" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10364 else
10365 if test "$GCC" = "yes"; then
10366 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10367 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10368 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370 $as_echo_n "checking for $ac_word... " >&6; }
10371 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10372 $as_echo_n "(cached) " >&6
10373 else
10374 case $aros_kernel_objcopy in
10375 [\\/]* | ?:[\\/]*)
10376 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380 for as_dir in `dirname $aros_gcc_objcopy`
10382 IFS=$as_save_IFS
10383 test -z "$as_dir" && as_dir=.
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10386 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 break 2
10390 done
10391 done
10392 IFS=$as_save_IFS
10395 esac
10397 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10398 if test -n "$aros_kernel_objcopy"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10400 $as_echo "$aros_kernel_objcopy" >&6; }
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10408 if test "$aros_kernel_objcopy" = ""; then
10409 # Extract the first word of "objcopy", so it can be a program name with args.
10410 set dummy objcopy; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10416 case $aros_kernel_objcopy in
10417 [\\/]* | ?:[\\/]*)
10418 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in $PATH
10424 IFS=$as_save_IFS
10425 test -z "$as_dir" && as_dir=.
10426 for ac_exec_ext in '' $ac_executable_extensions; do
10427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10428 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10430 break 2
10432 done
10433 done
10434 IFS=$as_save_IFS
10437 esac
10439 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10440 if test -n "$aros_kernel_objcopy"; then
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10442 $as_echo "$aros_kernel_objcopy" >&6; }
10443 else
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 $as_echo "no" >&6; }
10451 else
10452 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10453 set dummy $aros_kernel_objcopy; ac_word=$2
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455 $as_echo_n "checking for $ac_word... " >&6; }
10456 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 case $aros_kernel_objcopy in
10460 [\\/]* | ?:[\\/]*)
10461 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465 for as_dir in $PATH
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10475 done
10476 done
10477 IFS=$as_save_IFS
10480 esac
10482 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10483 if test -n "$aros_kernel_objcopy"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10485 $as_echo "$aros_kernel_objcopy" >&6; }
10486 else
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488 $as_echo "no" >&6; }
10495 if test "$aros_kernel_objdump" = ""; then
10496 if test "$cross_compiling" = "yes" ; then
10497 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10498 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500 $as_echo_n "checking for $ac_word... " >&6; }
10501 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 case $aros_kernel_objdump in
10505 [\\/]* | ?:[\\/]*)
10506 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10512 IFS=$as_save_IFS
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10516 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10518 break 2
10520 done
10521 done
10522 IFS=$as_save_IFS
10525 esac
10527 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10528 if test -n "$aros_kernel_objdump"; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10530 $as_echo "$aros_kernel_objdump" >&6; }
10531 else
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533 $as_echo "no" >&6; }
10537 else
10538 if test "$GCC" = "yes"; then
10539 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10540 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10541 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543 $as_echo_n "checking for $ac_word... " >&6; }
10544 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 case $aros_kernel_objdump in
10548 [\\/]* | ?:[\\/]*)
10549 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in `dirname $aros_gcc_objdump`
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10559 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10563 done
10564 done
10565 IFS=$as_save_IFS
10568 esac
10570 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10571 if test -n "$aros_kernel_objdump"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10573 $as_echo "$aros_kernel_objdump" >&6; }
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10581 if test "$aros_kernel_objdump" = ""; then
10582 # Extract the first word of "objdump", so it can be a program name with args.
10583 set dummy objdump; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 case $aros_kernel_objdump in
10590 [\\/]* | ?:[\\/]*)
10591 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10601 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10605 done
10606 done
10607 IFS=$as_save_IFS
10610 esac
10612 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10613 if test -n "$aros_kernel_objdump"; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10615 $as_echo "$aros_kernel_objdump" >&6; }
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10624 else
10625 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10626 set dummy $aros_kernel_objdump; ac_word=$2
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10628 $as_echo_n "checking for $ac_word... " >&6; }
10629 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 case $aros_kernel_objdump in
10633 [\\/]* | ?:[\\/]*)
10634 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
10643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10644 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 break 2
10648 done
10649 done
10650 IFS=$as_save_IFS
10653 esac
10655 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10656 if test -n "$aros_kernel_objdump"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10658 $as_echo "$aros_kernel_objdump" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10667 if test "x${crosstools}" != "xyes" ; then
10668 if test "$aros_kernel_objcopy" = ""; then
10669 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10671 if test "$aros_kernel_objdump" = ""; then
10672 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10678 $as_echo_n "checking which target tools to use... " >&6; }
10679 if test "$crosstools" = "yes"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10681 $as_echo "$target_tool_prefix" >&6; }
10682 # We are are building AROS crosstools
10683 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10684 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10685 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10686 orig_target_cpp="${tmp_tool_prefix}cpp"
10687 orig_target_ld="${tmp_tool_prefix}ld"
10688 orig_target_as="${tmp_tool_prefix}as"
10689 orig_target_ar="${tmp_tool_prefix}ar"
10690 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10691 orig_target_nm="${tmp_tool_prefix}nm"
10692 orig_target_strip="${tmp_tool_prefix}strip"
10693 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10694 orig_target_objdump="${tmp_tool_prefix}objdump"
10695 else
10696 # Determine whether AROS or ELF tools should be used
10697 if test "$aros_tool_prefix" = "none"; then
10698 aros_tool_prefix="${elf_tool_prefix}"
10699 crosstools_cxx_target=tools-crosstools
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10703 $as_echo "$aros_tool_prefix" >&6; }
10704 # We are *not* building AROS crosstools - use the AROS or ELF tools
10706 if test "${aros_tool_prefix}cpp" = ""; then
10707 if test "$cross_compiling" = "yes" ; then
10708 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10709 set dummy ${target_tool_prefix}cpp; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if ${ac_cv_path_orig_target_cpp+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 case $orig_target_cpp in
10716 [\\/]* | ?:[\\/]*)
10717 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10727 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10731 done
10732 done
10733 IFS=$as_save_IFS
10736 esac
10738 orig_target_cpp=$ac_cv_path_orig_target_cpp
10739 if test -n "$orig_target_cpp"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10741 $as_echo "$orig_target_cpp" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10748 else
10749 if test "$GCC" = "yes"; then
10750 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10751 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10752 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if ${ac_cv_path_orig_target_cpp+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 case $orig_target_cpp in
10759 [\\/]* | ?:[\\/]*)
10760 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in `dirname $aros_gcc_cpp`
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 break 2
10774 done
10775 done
10776 IFS=$as_save_IFS
10779 esac
10781 orig_target_cpp=$ac_cv_path_orig_target_cpp
10782 if test -n "$orig_target_cpp"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10784 $as_echo "$orig_target_cpp" >&6; }
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10792 if test "$orig_target_cpp" = ""; then
10793 # Extract the first word of "cpp", so it can be a program name with args.
10794 set dummy cpp; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if ${ac_cv_path_orig_target_cpp+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 case $orig_target_cpp in
10801 [\\/]* | ?:[\\/]*)
10802 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10812 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10816 done
10817 done
10818 IFS=$as_save_IFS
10821 esac
10823 orig_target_cpp=$ac_cv_path_orig_target_cpp
10824 if test -n "$orig_target_cpp"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10826 $as_echo "$orig_target_cpp" >&6; }
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10835 else
10836 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10837 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10839 $as_echo_n "checking for $ac_word... " >&6; }
10840 if ${ac_cv_path_orig_target_cpp+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 case $orig_target_cpp in
10844 [\\/]* | ?:[\\/]*)
10845 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10849 for as_dir in $PATH
10851 IFS=$as_save_IFS
10852 test -z "$as_dir" && as_dir=.
10853 for ac_exec_ext in '' $ac_executable_extensions; do
10854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10855 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10857 break 2
10859 done
10860 done
10861 IFS=$as_save_IFS
10864 esac
10866 orig_target_cpp=$ac_cv_path_orig_target_cpp
10867 if test -n "$orig_target_cpp"; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10869 $as_echo "$orig_target_cpp" >&6; }
10870 else
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10878 if test "$orig_target_cpp" = ""; then
10879 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10882 if test "${aros_tool_prefix}gcc" = ""; then
10883 if test "$cross_compiling" = "yes" ; then
10884 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10885 set dummy ${target_tool_prefix}gcc; ac_word=$2
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887 $as_echo_n "checking for $ac_word... " >&6; }
10888 if ${ac_cv_path_orig_target_cc+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 case $orig_target_cc in
10892 [\\/]* | ?:[\\/]*)
10893 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10903 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10907 done
10908 done
10909 IFS=$as_save_IFS
10912 esac
10914 orig_target_cc=$ac_cv_path_orig_target_cc
10915 if test -n "$orig_target_cc"; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10917 $as_echo "$orig_target_cc" >&6; }
10918 else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; }
10924 else
10925 if test "$GCC" = "yes"; then
10926 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10927 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10928 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 $as_echo_n "checking for $ac_word... " >&6; }
10931 if ${ac_cv_path_orig_target_cc+:} false; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10934 case $orig_target_cc in
10935 [\\/]* | ?:[\\/]*)
10936 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in `dirname $aros_gcc_gcc`
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10950 done
10951 done
10952 IFS=$as_save_IFS
10955 esac
10957 orig_target_cc=$ac_cv_path_orig_target_cc
10958 if test -n "$orig_target_cc"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10960 $as_echo "$orig_target_cc" >&6; }
10961 else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10968 if test "$orig_target_cc" = ""; then
10969 # Extract the first word of "gcc", so it can be a program name with args.
10970 set dummy gcc; ac_word=$2
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972 $as_echo_n "checking for $ac_word... " >&6; }
10973 if ${ac_cv_path_orig_target_cc+:} false; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 case $orig_target_cc in
10977 [\\/]* | ?:[\\/]*)
10978 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10988 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10992 done
10993 done
10994 IFS=$as_save_IFS
10997 esac
10999 orig_target_cc=$ac_cv_path_orig_target_cc
11000 if test -n "$orig_target_cc"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11002 $as_echo "$orig_target_cc" >&6; }
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11011 else
11012 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
11013 set dummy ${aros_tool_prefix}gcc; ac_word=$2
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11015 $as_echo_n "checking for $ac_word... " >&6; }
11016 if ${ac_cv_path_orig_target_cc+:} false; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 case $orig_target_cc in
11020 [\\/]* | ?:[\\/]*)
11021 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 break 2
11035 done
11036 done
11037 IFS=$as_save_IFS
11040 esac
11042 orig_target_cc=$ac_cv_path_orig_target_cc
11043 if test -n "$orig_target_cc"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11045 $as_echo "$orig_target_cc" >&6; }
11046 else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11054 if test "$orig_target_cc" = ""; then
11055 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11057 if test "x${crosstools_cxx_target}" = "x" ; then
11059 if test "${aros_tool_prefix}g++" = ""; then
11060 if test "$cross_compiling" = "yes" ; then
11061 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11062 set dummy ${target_tool_prefix}g++; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064 $as_echo_n "checking for $ac_word... " >&6; }
11065 if ${ac_cv_path_orig_target_cxx+:} false; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 case $orig_target_cxx in
11069 [\\/]* | ?:[\\/]*)
11070 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11076 IFS=$as_save_IFS
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11080 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082 break 2
11084 done
11085 done
11086 IFS=$as_save_IFS
11089 esac
11091 orig_target_cxx=$ac_cv_path_orig_target_cxx
11092 if test -n "$orig_target_cxx"; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11094 $as_echo "$orig_target_cxx" >&6; }
11095 else
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11101 else
11102 if test "$GCC" = "yes"; then
11103 aros_gcc_g++=`$CC -print-prog-name=g++`
11104 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11105 set dummy `basename $aros_gcc_g++`; ac_word=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107 $as_echo_n "checking for $ac_word... " >&6; }
11108 if ${ac_cv_path_orig_target_cxx+:} false; then :
11109 $as_echo_n "(cached) " >&6
11110 else
11111 case $orig_target_cxx in
11112 [\\/]* | ?:[\\/]*)
11113 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in `dirname $aros_gcc_g++`
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11127 done
11128 done
11129 IFS=$as_save_IFS
11132 esac
11134 orig_target_cxx=$ac_cv_path_orig_target_cxx
11135 if test -n "$orig_target_cxx"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11137 $as_echo "$orig_target_cxx" >&6; }
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11145 if test "$orig_target_cxx" = ""; then
11146 # Extract the first word of "g++", so it can be a program name with args.
11147 set dummy g++; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_path_orig_target_cxx+:} false; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 case $orig_target_cxx in
11154 [\\/]* | ?:[\\/]*)
11155 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11161 IFS=$as_save_IFS
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
11164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167 break 2
11169 done
11170 done
11171 IFS=$as_save_IFS
11174 esac
11176 orig_target_cxx=$ac_cv_path_orig_target_cxx
11177 if test -n "$orig_target_cxx"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11179 $as_echo "$orig_target_cxx" >&6; }
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11188 else
11189 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11190 set dummy ${aros_tool_prefix}g++; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if ${ac_cv_path_orig_target_cxx+:} false; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 case $orig_target_cxx in
11197 [\\/]* | ?:[\\/]*)
11198 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11212 done
11213 done
11214 IFS=$as_save_IFS
11217 esac
11219 orig_target_cxx=$ac_cv_path_orig_target_cxx
11220 if test -n "$orig_target_cxx"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11222 $as_echo "$orig_target_cxx" >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11231 if test "$orig_target_cxx" = ""; then
11232 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11236 if test "${aros_tool_prefix}ld" = ""; then
11237 if test "$cross_compiling" = "yes" ; then
11238 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11239 set dummy ${target_tool_prefix}gcc; ac_word=$2
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241 $as_echo_n "checking for $ac_word... " >&6; }
11242 if ${ac_cv_path_orig_target_ld+:} false; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 case $orig_target_ld in
11246 [\\/]* | ?:[\\/]*)
11247 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 break 2
11261 done
11262 done
11263 IFS=$as_save_IFS
11266 esac
11268 orig_target_ld=$ac_cv_path_orig_target_ld
11269 if test -n "$orig_target_ld"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11271 $as_echo "$orig_target_ld" >&6; }
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11278 else
11279 if test "$GCC" = "yes"; then
11280 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11281 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11282 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if ${ac_cv_path_orig_target_ld+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 case $orig_target_ld in
11289 [\\/]* | ?:[\\/]*)
11290 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in `dirname $aros_gcc_gcc`
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11300 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11304 done
11305 done
11306 IFS=$as_save_IFS
11309 esac
11311 orig_target_ld=$ac_cv_path_orig_target_ld
11312 if test -n "$orig_target_ld"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11314 $as_echo "$orig_target_ld" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 $as_echo "no" >&6; }
11322 if test "$orig_target_ld" = ""; then
11323 # Extract the first word of "gcc", so it can be a program name with args.
11324 set dummy gcc; ac_word=$2
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11326 $as_echo_n "checking for $ac_word... " >&6; }
11327 if ${ac_cv_path_orig_target_ld+:} false; then :
11328 $as_echo_n "(cached) " >&6
11329 else
11330 case $orig_target_ld in
11331 [\\/]* | ?:[\\/]*)
11332 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in $PATH
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11342 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 break 2
11346 done
11347 done
11348 IFS=$as_save_IFS
11351 esac
11353 orig_target_ld=$ac_cv_path_orig_target_ld
11354 if test -n "$orig_target_ld"; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11356 $as_echo "$orig_target_ld" >&6; }
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11365 else
11366 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11367 set dummy ${aros_tool_prefix}ld; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if ${ac_cv_path_orig_target_ld+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 case $orig_target_ld in
11374 [\\/]* | ?:[\\/]*)
11375 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379 for as_dir in $PATH
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11385 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 break 2
11389 done
11390 done
11391 IFS=$as_save_IFS
11394 esac
11396 orig_target_ld=$ac_cv_path_orig_target_ld
11397 if test -n "$orig_target_ld"; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11399 $as_echo "$orig_target_ld" >&6; }
11400 else
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11408 if test "$orig_target_ld" = ""; then
11409 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11412 if test "${aros_tool_prefix}as" = ""; then
11413 if test "$cross_compiling" = "yes" ; then
11414 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11415 set dummy ${target_tool_prefix}as; ac_word=$2
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417 $as_echo_n "checking for $ac_word... " >&6; }
11418 if ${ac_cv_path_orig_target_as+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 case $orig_target_as in
11422 [\\/]* | ?:[\\/]*)
11423 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11433 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11437 done
11438 done
11439 IFS=$as_save_IFS
11442 esac
11444 orig_target_as=$ac_cv_path_orig_target_as
11445 if test -n "$orig_target_as"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11447 $as_echo "$orig_target_as" >&6; }
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11454 else
11455 if test "$GCC" = "yes"; then
11456 aros_gcc_as=`$CC -print-prog-name=as`
11457 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11458 set dummy `basename $aros_gcc_as`; ac_word=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if ${ac_cv_path_orig_target_as+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 case $orig_target_as in
11465 [\\/]* | ?:[\\/]*)
11466 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in `dirname $aros_gcc_as`
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11476 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 break 2
11480 done
11481 done
11482 IFS=$as_save_IFS
11485 esac
11487 orig_target_as=$ac_cv_path_orig_target_as
11488 if test -n "$orig_target_as"; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11490 $as_echo "$orig_target_as" >&6; }
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11498 if test "$orig_target_as" = ""; then
11499 # Extract the first word of "as", so it can be a program name with args.
11500 set dummy as; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if ${ac_cv_path_orig_target_as+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 case $orig_target_as in
11507 [\\/]* | ?:[\\/]*)
11508 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11518 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11522 done
11523 done
11524 IFS=$as_save_IFS
11527 esac
11529 orig_target_as=$ac_cv_path_orig_target_as
11530 if test -n "$orig_target_as"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11532 $as_echo "$orig_target_as" >&6; }
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11541 else
11542 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11543 set dummy ${aros_tool_prefix}as; ac_word=$2
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545 $as_echo_n "checking for $ac_word... " >&6; }
11546 if ${ac_cv_path_orig_target_as+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 case $orig_target_as in
11550 [\\/]* | ?:[\\/]*)
11551 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11561 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11565 done
11566 done
11567 IFS=$as_save_IFS
11570 esac
11572 orig_target_as=$ac_cv_path_orig_target_as
11573 if test -n "$orig_target_as"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11575 $as_echo "$orig_target_as" >&6; }
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11584 if test "$orig_target_as" = ""; then
11585 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11588 if test "${aros_tool_prefix}ar" = ""; then
11589 if test "$cross_compiling" = "yes" ; then
11590 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11591 set dummy ${target_tool_prefix}ar; ac_word=$2
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593 $as_echo_n "checking for $ac_word... " >&6; }
11594 if ${ac_cv_path_orig_target_ar+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 case $orig_target_ar in
11598 [\\/]* | ?:[\\/]*)
11599 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603 for as_dir in $PATH
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11609 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 break 2
11613 done
11614 done
11615 IFS=$as_save_IFS
11618 esac
11620 orig_target_ar=$ac_cv_path_orig_target_ar
11621 if test -n "$orig_target_ar"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11623 $as_echo "$orig_target_ar" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 $as_echo "no" >&6; }
11630 else
11631 if test "$GCC" = "yes"; then
11632 aros_gcc_ar=`$CC -print-prog-name=ar`
11633 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11634 set dummy `basename $aros_gcc_ar`; ac_word=$2
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636 $as_echo_n "checking for $ac_word... " >&6; }
11637 if ${ac_cv_path_orig_target_ar+:} false; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 case $orig_target_ar in
11641 [\\/]* | ?:[\\/]*)
11642 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in `dirname $aros_gcc_ar`
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11652 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11656 done
11657 done
11658 IFS=$as_save_IFS
11661 esac
11663 orig_target_ar=$ac_cv_path_orig_target_ar
11664 if test -n "$orig_target_ar"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11666 $as_echo "$orig_target_ar" >&6; }
11667 else
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11674 if test "$orig_target_ar" = ""; then
11675 # Extract the first word of "ar", so it can be a program name with args.
11676 set dummy ar; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_path_orig_target_ar+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 case $orig_target_ar in
11683 [\\/]* | ?:[\\/]*)
11684 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11694 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11698 done
11699 done
11700 IFS=$as_save_IFS
11703 esac
11705 orig_target_ar=$ac_cv_path_orig_target_ar
11706 if test -n "$orig_target_ar"; then
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11708 $as_echo "$orig_target_ar" >&6; }
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11717 else
11718 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11719 set dummy ${aros_tool_prefix}ar; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_path_orig_target_ar+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 case $orig_target_ar in
11726 [\\/]* | ?:[\\/]*)
11727 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11737 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11746 esac
11748 orig_target_ar=$ac_cv_path_orig_target_ar
11749 if test -n "$orig_target_ar"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11751 $as_echo "$orig_target_ar" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11760 if test "$orig_target_ar" = ""; then
11761 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11764 if test "${aros_tool_prefix}ranlib" = ""; then
11765 if test "$cross_compiling" = "yes" ; then
11766 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11767 set dummy ${target_tool_prefix}ar; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 case $orig_target_ranlib in
11774 [\\/]* | ?:[\\/]*)
11775 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
11783 for ac_exec_ext in '' $ac_executable_extensions; do
11784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11785 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11787 break 2
11789 done
11790 done
11791 IFS=$as_save_IFS
11794 esac
11796 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11797 if test -n "$orig_target_ranlib"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11799 $as_echo "$orig_target_ranlib" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11806 else
11807 if test "$GCC" = "yes"; then
11808 aros_gcc_ar=`$CC -print-prog-name=ar`
11809 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11810 set dummy `basename $aros_gcc_ar`; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 case $orig_target_ranlib in
11817 [\\/]* | ?:[\\/]*)
11818 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in `dirname $aros_gcc_ar`
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11828 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11832 done
11833 done
11834 IFS=$as_save_IFS
11837 esac
11839 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11840 if test -n "$orig_target_ranlib"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11842 $as_echo "$orig_target_ranlib" >&6; }
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11850 if test "$orig_target_ranlib" = ""; then
11851 # Extract the first word of "ar", so it can be a program name with args.
11852 set dummy ar; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 case $orig_target_ranlib in
11859 [\\/]* | ?:[\\/]*)
11860 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11870 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11874 done
11875 done
11876 IFS=$as_save_IFS
11879 esac
11881 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11882 if test -n "$orig_target_ranlib"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11884 $as_echo "$orig_target_ranlib" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11893 else
11894 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11895 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 case $orig_target_ranlib in
11902 [\\/]* | ?:[\\/]*)
11903 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11913 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11917 done
11918 done
11919 IFS=$as_save_IFS
11922 esac
11924 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11925 if test -n "$orig_target_ranlib"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11927 $as_echo "$orig_target_ranlib" >&6; }
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11936 if test "$orig_target_ranlib" = ""; then
11937 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11940 if test "${aros_tool_prefix}nm" = ""; then
11941 if test "$cross_compiling" = "yes" ; then
11942 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11943 set dummy ${target_tool_prefix}nm; ac_word=$2
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945 $as_echo_n "checking for $ac_word... " >&6; }
11946 if ${ac_cv_path_orig_target_nm+:} false; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 case $orig_target_nm in
11950 [\\/]* | ?:[\\/]*)
11951 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11961 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11965 done
11966 done
11967 IFS=$as_save_IFS
11970 esac
11972 orig_target_nm=$ac_cv_path_orig_target_nm
11973 if test -n "$orig_target_nm"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11975 $as_echo "$orig_target_nm" >&6; }
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11982 else
11983 if test "$GCC" = "yes"; then
11984 aros_gcc_nm=`$CC -print-prog-name=nm`
11985 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11986 set dummy `basename $aros_gcc_nm`; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if ${ac_cv_path_orig_target_nm+:} false; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 case $orig_target_nm in
11993 [\\/]* | ?:[\\/]*)
11994 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in `dirname $aros_gcc_nm`
12000 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12004 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 break 2
12008 done
12009 done
12010 IFS=$as_save_IFS
12013 esac
12015 orig_target_nm=$ac_cv_path_orig_target_nm
12016 if test -n "$orig_target_nm"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12018 $as_echo "$orig_target_nm" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12026 if test "$orig_target_nm" = ""; then
12027 # Extract the first word of "nm", so it can be a program name with args.
12028 set dummy nm; ac_word=$2
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if ${ac_cv_path_orig_target_nm+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 case $orig_target_nm in
12035 [\\/]* | ?:[\\/]*)
12036 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12046 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 break 2
12050 done
12051 done
12052 IFS=$as_save_IFS
12055 esac
12057 orig_target_nm=$ac_cv_path_orig_target_nm
12058 if test -n "$orig_target_nm"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12060 $as_echo "$orig_target_nm" >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12069 else
12070 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12071 set dummy ${aros_tool_prefix}nm; ac_word=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_path_orig_target_nm+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 case $orig_target_nm in
12078 [\\/]* | ?:[\\/]*)
12079 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083 for as_dir in $PATH
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12089 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091 break 2
12093 done
12094 done
12095 IFS=$as_save_IFS
12098 esac
12100 orig_target_nm=$ac_cv_path_orig_target_nm
12101 if test -n "$orig_target_nm"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12103 $as_echo "$orig_target_nm" >&6; }
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12112 if test "$orig_target_nm" = ""; then
12113 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12116 if test "${aros_tool_prefix}strip" = ""; then
12117 if test "$cross_compiling" = "yes" ; then
12118 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12119 set dummy ${target_tool_prefix}strip; ac_word=$2
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12121 $as_echo_n "checking for $ac_word... " >&6; }
12122 if ${ac_cv_path_orig_target_strip+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 case $orig_target_strip in
12126 [\\/]* | ?:[\\/]*)
12127 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12137 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 break 2
12141 done
12142 done
12143 IFS=$as_save_IFS
12146 esac
12148 orig_target_strip=$ac_cv_path_orig_target_strip
12149 if test -n "$orig_target_strip"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12151 $as_echo "$orig_target_strip" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12158 else
12159 if test "$GCC" = "yes"; then
12160 aros_gcc_strip=`$CC -print-prog-name=strip`
12161 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12162 set dummy `basename $aros_gcc_strip`; ac_word=$2
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if ${ac_cv_path_orig_target_strip+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 case $orig_target_strip in
12169 [\\/]* | ?:[\\/]*)
12170 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174 for as_dir in `dirname $aros_gcc_strip`
12176 IFS=$as_save_IFS
12177 test -z "$as_dir" && as_dir=.
12178 for ac_exec_ext in '' $ac_executable_extensions; do
12179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12180 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12182 break 2
12184 done
12185 done
12186 IFS=$as_save_IFS
12189 esac
12191 orig_target_strip=$ac_cv_path_orig_target_strip
12192 if test -n "$orig_target_strip"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12194 $as_echo "$orig_target_strip" >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12202 if test "$orig_target_strip" = ""; then
12203 # Extract the first word of "strip", so it can be a program name with args.
12204 set dummy strip; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if ${ac_cv_path_orig_target_strip+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 case $orig_target_strip in
12211 [\\/]* | ?:[\\/]*)
12212 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12226 done
12227 done
12228 IFS=$as_save_IFS
12231 esac
12233 orig_target_strip=$ac_cv_path_orig_target_strip
12234 if test -n "$orig_target_strip"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12236 $as_echo "$orig_target_strip" >&6; }
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12245 else
12246 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12247 set dummy ${aros_tool_prefix}strip; ac_word=$2
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 $as_echo_n "checking for $ac_word... " >&6; }
12250 if ${ac_cv_path_orig_target_strip+:} false; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 case $orig_target_strip in
12254 [\\/]* | ?:[\\/]*)
12255 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12265 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 break 2
12269 done
12270 done
12271 IFS=$as_save_IFS
12274 esac
12276 orig_target_strip=$ac_cv_path_orig_target_strip
12277 if test -n "$orig_target_strip"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12279 $as_echo "$orig_target_strip" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12288 if test "$orig_target_strip" = ""; then
12289 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12292 if test "${aros_tool_prefix}objcopy" = ""; then
12293 if test "$cross_compiling" = "yes" ; then
12294 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12295 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297 $as_echo_n "checking for $ac_word... " >&6; }
12298 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 case $orig_target_objcopy in
12302 [\\/]* | ?:[\\/]*)
12303 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $PATH
12309 IFS=$as_save_IFS
12310 test -z "$as_dir" && as_dir=.
12311 for ac_exec_ext in '' $ac_executable_extensions; do
12312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12315 break 2
12317 done
12318 done
12319 IFS=$as_save_IFS
12322 esac
12324 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12325 if test -n "$orig_target_objcopy"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12327 $as_echo "$orig_target_objcopy" >&6; }
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12334 else
12335 if test "$GCC" = "yes"; then
12336 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12337 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12338 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 case $orig_target_objcopy in
12345 [\\/]* | ?:[\\/]*)
12346 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in `dirname $aros_gcc_objcopy`
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 break 2
12360 done
12361 done
12362 IFS=$as_save_IFS
12365 esac
12367 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12368 if test -n "$orig_target_objcopy"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12370 $as_echo "$orig_target_objcopy" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12378 if test "$orig_target_objcopy" = ""; then
12379 # Extract the first word of "objcopy", so it can be a program name with args.
12380 set dummy objcopy; ac_word=$2
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382 $as_echo_n "checking for $ac_word... " >&6; }
12383 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 case $orig_target_objcopy in
12387 [\\/]* | ?:[\\/]*)
12388 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12394 IFS=$as_save_IFS
12395 test -z "$as_dir" && as_dir=.
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 break 2
12402 done
12403 done
12404 IFS=$as_save_IFS
12407 esac
12409 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12410 if test -n "$orig_target_objcopy"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12412 $as_echo "$orig_target_objcopy" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12421 else
12422 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12423 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425 $as_echo_n "checking for $ac_word... " >&6; }
12426 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 case $orig_target_objcopy in
12430 [\\/]* | ?:[\\/]*)
12431 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12445 done
12446 done
12447 IFS=$as_save_IFS
12450 esac
12452 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12453 if test -n "$orig_target_objcopy"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12455 $as_echo "$orig_target_objcopy" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12464 if test "$orig_target_objcopy" = ""; then
12465 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12468 if test "${aros_tool_prefix}objdump" = ""; then
12469 if test "$cross_compiling" = "yes" ; then
12470 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12471 set dummy ${target_tool_prefix}objdump; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_path_orig_target_objdump+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 case $orig_target_objdump in
12478 [\\/]* | ?:[\\/]*)
12479 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12493 done
12494 done
12495 IFS=$as_save_IFS
12498 esac
12500 orig_target_objdump=$ac_cv_path_orig_target_objdump
12501 if test -n "$orig_target_objdump"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12503 $as_echo "$orig_target_objdump" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12510 else
12511 if test "$GCC" = "yes"; then
12512 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12513 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12514 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if ${ac_cv_path_orig_target_objdump+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 case $orig_target_objdump in
12521 [\\/]* | ?:[\\/]*)
12522 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in `dirname $aros_gcc_objdump`
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12532 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 break 2
12536 done
12537 done
12538 IFS=$as_save_IFS
12541 esac
12543 orig_target_objdump=$ac_cv_path_orig_target_objdump
12544 if test -n "$orig_target_objdump"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12546 $as_echo "$orig_target_objdump" >&6; }
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12554 if test "$orig_target_objdump" = ""; then
12555 # Extract the first word of "objdump", so it can be a program name with args.
12556 set dummy objdump; ac_word=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if ${ac_cv_path_orig_target_objdump+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 case $orig_target_objdump in
12563 [\\/]* | ?:[\\/]*)
12564 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12574 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 break 2
12578 done
12579 done
12580 IFS=$as_save_IFS
12583 esac
12585 orig_target_objdump=$ac_cv_path_orig_target_objdump
12586 if test -n "$orig_target_objdump"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12588 $as_echo "$orig_target_objdump" >&6; }
12589 else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12597 else
12598 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12599 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if ${ac_cv_path_orig_target_objdump+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 case $orig_target_objdump in
12606 [\\/]* | ?:[\\/]*)
12607 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12617 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 break 2
12621 done
12622 done
12623 IFS=$as_save_IFS
12626 esac
12628 orig_target_objdump=$ac_cv_path_orig_target_objdump
12629 if test -n "$orig_target_objdump"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12631 $as_echo "$orig_target_objdump" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12640 if test "$orig_target_objdump" = ""; then
12641 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12645 if test "$kernel_tool_prefix" = "none" ; then
12646 # No kernel tools specified
12647 # Assume target tools == kernel tools with ELF wrapper
12648 aros_kernel_cc=$orig_target_cc
12649 aros_kernel_cxx=$orig_target_cxx
12650 aros_kernel_cpp=$orig_target_cpp
12651 aros_kernel_ld=$orig_target_ld
12652 aros_kernel_as=$orig_target_as
12653 aros_kernel_ar=$orig_target_ar
12654 aros_kernel_ranlib=$orig_target_ranlib
12655 aros_kernel_nm=$orig_target_nm
12656 aros_kernel_strip=$orig_target_strip
12657 aros_kernel_objcopy=$orig_target_objcopy
12658 aros_kernel_objdump=$orig_target_objdump
12659 use_kernel_cc_wrapper=yes
12662 # At this point, all aros_kernel_* and aros_target_*
12663 # tools should be set up correctly
12665 CC="$aros_kernel_cc $kernel_tool_flags"
12666 CPP="$aros_kernel_cpp"
12668 #-----------------------------------------------------------------------------
12670 # Disable pointer-signedness warnings if the compiler recognises the option
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12673 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12674 save_cflags="$CFLAGS"
12675 if test "$crosstools" != "yes" ; then
12676 CFLAGS="$CFLAGS -Wno-pointer-sign"
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12681 main ()
12685 return 0;
12687 _ACEOF
12688 if ac_fn_c_try_compile "$LINENO"; then :
12689 use_no_sign_warning="yes"
12690 else
12691 use_no_sign_warning="no"
12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694 else
12695 # we do know it is supported for the smallest version of gcc we are going to build
12696 # we assume it's also supported by later versions
12697 use_no_sign_warning=yes
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12700 $as_echo "$use_no_sign_warning" >&6; }
12701 if test "x-$use_no_sign_warning" = "x-yes" ; then
12702 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12704 CFLAGS="$save_cflags"
12706 #-----------------------------------------------------------------------------
12708 # Find all the tools we need to compile. This could be cross-compiling
12709 # though! If that is the case we use the GNU form of the target and
12710 # simply add this to the front of the binary name. This is rather simple,
12711 # but it should work under most circumstances.
12713 # The default tools are to use the same as the host, but only if the
12714 # host and target CPU are the same. With GCC this is normally enough.
12717 aros_cc_pre=""
12718 aros_shared_ld="$aros_host_ld"
12720 aros_target_mkdep="$aros_host_mkdep"
12722 # The default tools executables to be linked to.
12723 if test "$rescomp" != ""; then
12724 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12725 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 case $aros_kernel_rescomp in
12732 [\\/]* | ?:[\\/]*)
12733 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12743 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12747 done
12748 done
12749 IFS=$as_save_IFS
12752 esac
12754 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12755 if test -n "$aros_kernel_rescomp"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12757 $as_echo "$aros_kernel_rescomp" >&6; }
12758 else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12764 if test "$aros_kernel_rescomp" = ""; then
12765 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12769 # Set up the sources for the symlink farm
12770 if test "$crosstools" = "yes"; then
12771 crosstools_target=tools-crosstools
12774 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12775 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12778 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12779 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12780 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12781 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12782 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12783 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12784 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12786 # aros_cc_pre is a variable that is added to the front of the compiler name
12787 # in the generated aros-gcc shell script. We need this to enable the cache
12788 # to work across cleaned builds. Also, support DISTCC using the correct
12789 # environment variable.
12792 if test "x${DISTCC}" != "x" ; then
12793 if test "x${CCACHE}" != "x" ; then
12794 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12795 else
12796 aros_cc_pre="${DISTCC} "
12798 else
12799 if test "x${CCACHE}" != "x" ; then
12800 aros_cc_pre="${CCACHE} "
12804 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12806 aros_target_nostdinc_cflags=-nostdinc
12808 aros_target_nostartup_ldflags=-nostartfiles
12810 aros_target_nix_ldflags=-nix
12812 aros_target_detach_ldflags=-detach
12814 aros_target_nostdlib_ldflags=-nostdlib
12817 # Target tools
12818 if test "$crosstools" != "yes"; then
12819 if test "$GCC" = "yes"; then
12820 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12822 else
12823 # We do not know which gcc version we are going to build and what we need to know
12824 # here is different for different versions so this will be set later during the
12825 # build of crosstools.
12826 aros_target_cc_path=@aros_target_cc_path@
12828 aros_target_cpp="${prefix}cpp"
12829 aros_target_cc="${prefix}gcc"
12830 aros_target_cxx="${prefix}g++"
12831 aros_target_as="${prefix}as"
12832 aros_target_ld="${prefix}ld"
12833 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12834 aros_target_objcopy="${prefix}objcopy"
12835 aros_target_objdump="${prefix}objdump"
12836 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12837 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12838 aros_target_strip="${prefix}strip"
12839 aros_plain_nm="${prefix}nm"
12840 aros_plain_ar="${prefix}ar"
12842 # Check whether --enable-includes was given.
12843 if test "${enable_includes+set}" = set; then :
12844 enableval=$enable_includes; aros_target_incl=$enable_includes
12845 else
12846 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12850 if test "$aros_kernel_includes" = ""; then
12851 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12852 aros_kernel_includes="-isystem $aros_target_incl"
12856 if test "$aros_kernel_includes" != "" ; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12858 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12859 if test "$aros_kernel_cc_includes" = "" ; then
12860 # Try to guess where the directory is.
12861 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12862 if test -d $aros_kernel_cc_includes; then
12863 # Check if there is also an include-fixed directory and add it
12864 # to kernel compiler's include path as it may contain some of
12865 # the headers we need.
12866 if test -d "$aros_kernel_cc_includes"-fixed; then
12867 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12869 # Check for specific includes directory. Neede for Ubuntu 11.10
12870 if test -d "/usr/include/i386-linux-gnu"; then
12871 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12873 else
12874 # The directory doesn't exist, we need to do some more work.
12875 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12877 # These are the headers we're looking for.
12878 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12879 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12880 zutil.h stdint.h"
12882 dirs=
12883 for h in $headers; do
12884 # Which other headers are needed by each of the above?
12885 deps=$(echo "#include <$h>" | \
12886 $aros_kernel_cc -E -M - 2>/dev/null | \
12887 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12889 # Copy all the needed headers to a directory beneath gendir.
12890 for d in $deps; do
12891 h=$(basename $d)
12892 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12893 sed -n "s,^.*/include\(/.*\),\1,p")
12894 ! test -d $dir && mkdir -p $dir
12895 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12896 done
12897 done
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12901 $as_echo "$aros_kernel_cc_includes" >&6; }
12902 # Adding -nostdinc to kernel includes as they are always used together.
12903 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12906 if test "$crosstools" != "yes"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12908 $as_echo_n "checking for the target compiler's include path... " >&6; }
12909 if test "$aros_target_cc_includes" = "" ; then
12910 #try to guess where the directory is
12911 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12912 if ! test -d $aros_target_cc_includes; then
12913 #the directory doesn't exist, we need to do some more work
12914 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12916 #these are the headers we're looking for
12917 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12918 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12919 zutil.h"
12921 dirs=
12922 for h in $headers; do
12923 #which other headers each of the above headers needs?
12924 deps=$(echo "#include <$h>" | \
12925 $orig_target_cc -E -M - 2>/dev/null | \
12926 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12928 #copy all the needed headers to a directory beneath gendir
12929 for d in $deps; do
12930 h=$(basename $d)
12931 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12932 sed -n "s,^.*/include\(/.*\),\1,p")
12933 ! test -d $dir && mkdir -p $dir
12934 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12935 done
12936 done
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12940 $as_echo "$aros_target_cc_includes" >&6; }
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_includes=@aros_target_cc_includes@
12949 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12950 # On GCC >= 4.0 -iquote should be used
12953 save_cc="$CC"
12954 save_cflags="$CFLAGS"
12955 CFLAGS="-iquote."
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12957 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12958 if test "x-$crosstools" != "x-yes"; then
12959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960 /* end confdefs.h. */
12963 main ()
12967 return 0;
12969 _ACEOF
12970 if ac_fn_c_try_compile "$LINENO"; then :
12971 has_iquote="yes"
12972 else
12973 has_iquote="no"
12975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12976 else
12977 # we do know it is supported for the smallest version of gcc we are going to build
12978 # we assume it's also supported by later versions
12979 has_iquote=yes
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12982 $as_echo "$has_iquote" >&6; }
12983 if test "x-$has_iquote" = "x-yes" ; then
12984 host_cflags_iquote=-iquote
12985 host_cflags_iquote_end=
12986 else
12987 host_cflags_iquote=-I
12988 host_cflags_iquote_end=-I-
12990 kernel_cflags_iquote=$host_cflags_iquote
12991 kernel_cflags_iquote_end=$host_cflags_iquote_end
12992 if test "x-$cross_compiling" = "x-yes"; then
12993 CC="$aros_kernel_cc"
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12995 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12996 if test "x-$crosstools" != "x-yes"; then
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13001 main ()
13005 return 0;
13007 _ACEOF
13008 if ac_fn_c_try_compile "$LINENO"; then :
13009 use_no_stack_protector="yes"
13010 else
13011 use_no_stack_protector="no"
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014 else
13015 # we do know it is supported for the smallest version of gcc we are going to build
13016 # we assume it's also supported by later versions
13017 use_no_stack_protector=yes
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13020 $as_echo "$use_no_stack_protector" >&6; }
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13022 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13023 if test "x-$crosstools" != "x-yes"; then
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13028 main ()
13032 return 0;
13034 _ACEOF
13035 if ac_fn_c_try_compile "$LINENO"; then :
13036 has_iquote="yes"
13037 else
13038 has_iquote="no"
13040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041 else
13042 # we do know it is supported for the smallest version of gcc we are going to build
13043 # we assume it's also supported by later versions
13044 has_iquote=yes
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13047 $as_echo "$has_iquote" >&6; }
13048 if test "x-$has_iquote" = "x-yes" ; then
13049 kernel_cflags_iquote=-iquote
13050 kernel_cflags_iquote_end=
13051 else
13052 kernel_cflags_iquote=-I
13053 kernel_cflags_iquote_end=-I-
13056 aros_cflags_iquote=$kernel_cflags_iquote
13057 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13058 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13059 CC="$orig_target_cc"
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13061 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13062 if test "x-$crosstools" != "x-yes"; then
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13067 main ()
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_compile "$LINENO"; then :
13075 has_iquote="yes"
13076 else
13077 has_iquote="no"
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 else
13081 # we do know it is supported for the smallest version of gcc we are going to build
13082 # we assume it's also supported by later versions
13083 has_iquote=yes
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13086 $as_echo "$has_iquote" >&6; }
13087 if test "x-$has_iquote" = "x-yes" ; then
13088 aros_cflags_iquote=-iquote
13089 aros_cflags_iquote_end=
13090 else
13091 aros_cflags_iquote=-I
13092 aros_cflags_iquote_end=-I-
13095 if test "x-$use_no_stack_protector" = "x-yes" ; then
13096 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13100 #-----------------------------------------------------------------------------
13102 # Check if the target compiler supports some options used for delinting:
13103 # -Wunused-but-set-variable
13104 # -Warray-bounds
13105 # -Wenum-compare
13106 # -Wstrict-overflow
13107 # -Wformat-security
13109 if test "x-$crosstools" != "x-yes"; then
13110 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13111 CC="$orig_target_cc"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13114 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13115 CFLAGS=-Wunused-but-set-variable
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13120 main ()
13124 return 0;
13126 _ACEOF
13127 if ac_fn_c_try_compile "$LINENO"; then :
13128 aros_unused_but_set_variable="yes"
13129 else
13130 aros_unused_but_set_variable="no"
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13134 $as_echo "$aros_unused_but_set_variable" >&6; }
13135 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13136 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13140 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13141 CFLAGS=-Warray-bounds
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13146 main ()
13150 return 0;
13152 _ACEOF
13153 if ac_fn_c_try_compile "$LINENO"; then :
13154 aros_array_bounds="yes"
13155 else
13156 aros_array_bounds="no"
13158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13160 $as_echo "$aros_array_bounds" >&6; }
13161 if test "x-$aros_array_bounds" = "x-yes" ; then
13162 aros_cflags_array_bounds=-Wno-array-bounds
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13166 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13167 CFLAGS=-Wenum-compare
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13172 main ()
13176 return 0;
13178 _ACEOF
13179 if ac_fn_c_try_compile "$LINENO"; then :
13180 aros_enum_compare="yes"
13181 else
13182 aros_enum_compare="no"
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13186 $as_echo "$aros_enum_compare" >&6; }
13187 if test "x-$aros_enum_compare" = "x-yes" ; then
13188 aros_cflags_enum_compare=-Wno-enum-compare
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13192 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13193 CFLAGS=-Wstrict-overflow
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13198 main ()
13202 return 0;
13204 _ACEOF
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206 aros_strict_overflow="yes"
13207 else
13208 aros_strict_overflow="no"
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13212 $as_echo "$aros_strict_overflow" >&6; }
13213 if test "x-$aros_strict_overflow" = "x-yes" ; then
13214 aros_cflags_strict_overflow=-Wno-strict-overflow
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13218 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13219 CFLAGS=-Wformat-security
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13224 main ()
13228 return 0;
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 aros_format_security="yes"
13233 else
13234 aros_format_security="no"
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13238 $as_echo "$aros_format_security" >&6; }
13239 if test "x-$aros_format_security" = "x-yes" ; then
13240 aros_cflags_format_security=-Wno-format-security
13242 else
13243 # We do not know which gcc version we are going to build and what we need to know
13244 # here is different for different versions so this will be set later during the
13245 # build of crosstools.
13246 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13247 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13248 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13249 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13250 aros_cflags_format_security=@aros_cflags_format_security@
13253 #-----------------------------------------------------------------------------
13255 # Check if we can explicitly choose older version of symbol hashing
13257 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13258 CC="$aros_kernel_cc"
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13260 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13265 main ()
13269 return 0;
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 use_hash_style="yes"
13274 else
13275 use_hash_style="no"
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13280 $as_echo "$use_hash_style" >&6; }
13281 if test "x-$use_hash_style" = "x-yes" ; then
13282 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13284 CC="$save_cc"
13285 CFLAGS="$save_cflags"
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13296 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13298 # Check whether --with-resolution was given.
13299 if test "${with_resolution+set}" = set; then :
13300 withval=$with_resolution; resolution=$withval
13301 else
13302 resolution=none
13305 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13306 if test "$resolution" = "yes" ; then
13307 resolution="none"
13309 if test "$resolution" = "no" ; then
13310 resolution="none"
13312 if test "$resolution" != "none" ; then
13313 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13314 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13315 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13318 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13319 aros_cv_default_wbwidth=$aros_default_wbwidth
13320 aros_cv_default_wbheight=$aros_default_wbheight
13321 aros_cv_default_wbdepth=$aros_default_wbdepth
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13324 $as_echo_n "checking if serial debug is enabled... " >&6; }
13326 # Check whether --with-serial-debug was given.
13327 if test "${with_serial_debug+set}" = set; then :
13328 withval=$with_serial_debug; serial_debug=$withval
13329 else
13330 serial_debug=none
13333 if test "$aros_serial_debug" = 0 ; then
13334 serial_debug_forced=""
13335 if test "$serial_debug" = "yes" ; then
13336 serial_debug="1"
13338 if test "$serial_debug" = "no" ; then
13339 serial_debug="none"
13341 else
13342 serial_debug_forced="(forced)"
13343 serial_debug=$aros_serial_debug
13345 if test "$serial_debug" != "none" ; then
13346 aros_serial_debug=$serial_debug
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13348 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13349 else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13355 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13356 # Check whether --enable-palm_debug_hack was given.
13357 if test "${enable_palm_debug_hack+set}" = set; then :
13358 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13359 else
13360 palm_debug_hack="no"
13363 if test "$palm_debug_hack" = "yes" ; then
13364 aros_palm_debug_hack="1"
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13367 $as_echo "$palm_debug_hack" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13370 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13371 # Check whether --enable-nesting_supervisor was given.
13372 if test "${enable_nesting_supervisor+set}" = set; then :
13373 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13374 else
13375 nesting_supervisor="no"
13378 if test "$nesting_supervisor" = "yes" ; then
13379 aros_nesting_supervisor="1"
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13382 $as_echo "$nesting_supervisor" >&6; }
13384 if test "$aros_enable_mmu" = "" ; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13386 $as_echo_n "checking if MMU support is enabled... " >&6; }
13387 # Check whether --enable-mmu was given.
13388 if test "${enable_mmu+set}" = set; then :
13389 enableval=$enable_mmu; aros_enable_mmu=$enableval
13390 else
13391 aros_enable_mmu="yes"
13394 if test "$aros_enable_mmu" = "" ; then
13395 aros_enable_mmu="yes"
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13398 $as_echo "$aros_enable_mmu" >&6; }
13400 if test "$aros_enable_mmu" = "no" ; then
13401 aros_enable_mmu="0"
13402 else
13403 aros_enable_mmu="1"
13407 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13409 if test "x-$need_dlopen" != "x-no" ; then
13410 save_libs="$LIBS"
13411 LIBS=""
13412 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13413 if test "x$ac_cv_func_dlopen" = xyes; then :
13414 have_dl="yes"
13415 else
13416 have_dl="no"
13419 if test "x-$have_dl" = "x-no" ; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13421 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13422 if ${ac_cv_lib_dl_dlopen+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-ldl $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char dlopen ();
13438 main ()
13440 return dlopen ();
13442 return 0;
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_lib_dl_dlopen=yes
13447 else
13448 ac_cv_lib_dl_dlopen=no
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13455 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13456 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13457 have_dl="yes"
13458 aros_host_ldflags="$aros_host_ldflags -ldl"
13459 else
13460 have_dl="no"
13464 if test "x-$have_dl" = "x-no" ; then
13465 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13467 LIBS="$save_libs"
13471 # Check whether --enable-x11_hidd was given.
13472 if test "${enable_x11_hidd+set}" = set; then :
13473 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13474 else
13475 x11_hidd="$need_x11"
13478 case "x-$x11_hidd" in
13479 x-yes|x-no|x-auto) ;;
13480 *) x11_hidd="$need_x11" ;;
13481 esac
13483 ENABLE_X11=0
13485 if test "x-$x11_hidd" != "x-no" ; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13488 $as_echo_n "checking for X... " >&6; }
13491 # Check whether --with-x was given.
13492 if test "${with_x+set}" = set; then :
13493 withval=$with_x;
13496 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13497 if test "x$with_x" = xno; then
13498 # The user explicitly disabled X.
13499 have_x=disabled
13500 else
13501 case $x_includes,$x_libraries in #(
13502 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13503 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 # One or both of the vars are not set, and there is no cached value.
13507 ac_x_includes=no ac_x_libraries=no
13508 rm -f -r conftest.dir
13509 if mkdir conftest.dir; then
13510 cd conftest.dir
13511 cat >Imakefile <<'_ACEOF'
13512 incroot:
13513 @echo incroot='${INCROOT}'
13514 usrlibdir:
13515 @echo usrlibdir='${USRLIBDIR}'
13516 libdir:
13517 @echo libdir='${LIBDIR}'
13518 _ACEOF
13519 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13520 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13521 for ac_var in incroot usrlibdir libdir; do
13522 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13523 done
13524 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13525 for ac_extension in a so sl dylib la dll; do
13526 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13527 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13528 ac_im_usrlibdir=$ac_im_libdir; break
13530 done
13531 # Screen out bogus values from the imake configuration. They are
13532 # bogus both because they are the default anyway, and because
13533 # using them would break gcc on systems where it needs fixed includes.
13534 case $ac_im_incroot in
13535 /usr/include) ac_x_includes= ;;
13536 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13537 esac
13538 case $ac_im_usrlibdir in
13539 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13540 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13541 esac
13543 cd ..
13544 rm -f -r conftest.dir
13547 # Standard set of common directories for X headers.
13548 # Check X11 before X11Rn because it is often a symlink to the current release.
13549 ac_x_header_dirs='
13550 /usr/X11/include
13551 /usr/X11R7/include
13552 /usr/X11R6/include
13553 /usr/X11R5/include
13554 /usr/X11R4/include
13556 /usr/include/X11
13557 /usr/include/X11R7
13558 /usr/include/X11R6
13559 /usr/include/X11R5
13560 /usr/include/X11R4
13562 /usr/local/X11/include
13563 /usr/local/X11R7/include
13564 /usr/local/X11R6/include
13565 /usr/local/X11R5/include
13566 /usr/local/X11R4/include
13568 /usr/local/include/X11
13569 /usr/local/include/X11R7
13570 /usr/local/include/X11R6
13571 /usr/local/include/X11R5
13572 /usr/local/include/X11R4
13574 /usr/X386/include
13575 /usr/x386/include
13576 /usr/XFree86/include/X11
13578 /usr/include
13579 /usr/local/include
13580 /usr/unsupported/include
13581 /usr/athena/include
13582 /usr/local/x11r5/include
13583 /usr/lpp/Xamples/include
13585 /usr/openwin/include
13586 /usr/openwin/share/include'
13588 if test "$ac_x_includes" = no; then
13589 # Guess where to find include files, by looking for Xlib.h.
13590 # First, try using that file with no special directory specified.
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #include <X11/Xlib.h>
13594 _ACEOF
13595 if ac_fn_c_try_cpp "$LINENO"; then :
13596 # We can compile using X headers with no special include directory.
13597 ac_x_includes=
13598 else
13599 for ac_dir in $ac_x_header_dirs; do
13600 if test -r "$ac_dir/X11/Xlib.h"; then
13601 ac_x_includes=$ac_dir
13602 break
13604 done
13606 rm -f conftest.err conftest.i conftest.$ac_ext
13607 fi # $ac_x_includes = no
13609 if test "$ac_x_libraries" = no; then
13610 # Check for the libraries.
13611 # See if we find them without any special options.
13612 # Don't add to $LIBS permanently.
13613 ac_save_LIBS=$LIBS
13614 LIBS="-lX11 $LIBS"
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13617 #include <X11/Xlib.h>
13619 main ()
13621 XrmInitialize ()
13623 return 0;
13625 _ACEOF
13626 if ac_fn_c_try_link "$LINENO"; then :
13627 LIBS=$ac_save_LIBS
13628 # We can link X programs with no special library path.
13629 ac_x_libraries=
13630 else
13631 LIBS=$ac_save_LIBS
13632 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13634 # Don't even attempt the hair of trying to link an X program!
13635 for ac_extension in a so sl dylib la dll; do
13636 if test -r "$ac_dir/libX11.$ac_extension"; then
13637 ac_x_libraries=$ac_dir
13638 break 2
13640 done
13641 done
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 fi # $ac_x_libraries = no
13647 case $ac_x_includes,$ac_x_libraries in #(
13648 no,* | *,no | *\'*)
13649 # Didn't find X, or a directory has "'" in its name.
13650 ac_cv_have_x="have_x=no";; #(
13652 # Record where we found X for the cache.
13653 ac_cv_have_x="have_x=yes\
13654 ac_x_includes='$ac_x_includes'\
13655 ac_x_libraries='$ac_x_libraries'"
13656 esac
13658 ;; #(
13659 *) have_x=yes;;
13660 esac
13661 eval "$ac_cv_have_x"
13662 fi # $with_x != no
13664 if test "$have_x" != yes; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13666 $as_echo "$have_x" >&6; }
13667 no_x=yes
13668 else
13669 # If each of the values was on the command line, it overrides each guess.
13670 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13671 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13672 # Update the cache value to reflect the command line values.
13673 ac_cv_have_x="have_x=yes\
13674 ac_x_includes='$x_includes'\
13675 ac_x_libraries='$x_libraries'"
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13677 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13681 x_cflags=
13682 for path in $x_libraries
13684 x_cflags="$x_cflags -L$path"
13685 done
13687 for path in $x_includes
13689 x_cflags="$x_cflags -I$path"
13690 done
13692 if test "x-$no_x" = "x-yes" ; then
13694 if test "x-$x11_hidd" != "x-auto" ; then
13695 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13698 else
13699 x11_hidd_target=kernel-x11gfx-kobj
13700 ENABLE_X11=1
13702 # Check whether --enable-x11_shm was given.
13703 if test "${enable_x11_shm+set}" = set; then :
13704 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13705 else
13706 x11_hidd_shm="auto"
13709 case "x-$x11_hidd_shm" in
13710 x-yes|x-no|x-auto) ;;
13711 *) x11_hidd_shm="auto" ;;
13712 esac
13714 have_xshm=no
13716 if test "x-$x11_hidd_shm" != "x-no" ; then
13718 for ac_header in sys/ipc.h
13719 do :
13720 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13721 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13722 cat >>confdefs.h <<_ACEOF
13723 #define HAVE_SYS_IPC_H 1
13724 _ACEOF
13728 done
13730 for ac_header in sys/shm.h
13731 do :
13732 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13733 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13734 cat >>confdefs.h <<_ACEOF
13735 #define HAVE_SYS_SHM_H 1
13736 _ACEOF
13740 done
13743 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13745 save_cflags="$CFLAGS"
13746 CFLAGS="$CFLAGS $x_cflags"
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13748 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13749 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 ac_check_lib_save_LIBS=$LIBS
13753 LIBS="-lXext $LIBS"
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13757 /* Override any GCC internal prototype to avoid an error.
13758 Use char because int might match the return type of a GCC
13759 builtin and then its argument prototype would still apply. */
13760 #ifdef __cplusplus
13761 extern "C"
13762 #endif
13763 char XShmQueryExtension ();
13765 main ()
13767 return XShmQueryExtension ();
13769 return 0;
13771 _ACEOF
13772 if ac_fn_c_try_link "$LINENO"; then :
13773 ac_cv_lib_Xext_XShmQueryExtension=yes
13774 else
13775 ac_cv_lib_Xext_XShmQueryExtension=no
13777 rm -f core conftest.err conftest.$ac_objext \
13778 conftest$ac_exeext conftest.$ac_ext
13779 LIBS=$ac_check_lib_save_LIBS
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13782 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13783 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13784 have_xshm=yes
13787 CFLAGS="$save_cflags"
13791 if test "x-$have_xshm" = "x-yes" ; then
13792 DO_XSHM_SUPPORT="1"
13793 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13794 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13795 else
13796 DO_XSHM_SUPPORT="0"
13800 # Check whether --enable-x11_vidmode was given.
13801 if test "${enable_x11_vidmode+set}" = set; then :
13802 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13803 else
13804 x11_hidd_vidmode="auto"
13807 case "x-$x11_hidd_vidmode" in
13808 x-yes|x-no|x-auto) ;;
13809 *) x11_hidd_vidmode="auto" ;;
13810 esac
13812 have_vidmode=no
13814 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13816 save_cflags="$CFLAGS"
13817 CFLAGS="$CFLAGS $x_cflags"
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13819 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13820 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13821 $as_echo_n "(cached) " >&6
13822 else
13823 ac_check_lib_save_LIBS=$LIBS
13824 LIBS="-lXxf86vm $LIBS"
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13828 /* Override any GCC internal prototype to avoid an error.
13829 Use char because int might match the return type of a GCC
13830 builtin and then its argument prototype would still apply. */
13831 #ifdef __cplusplus
13832 extern "C"
13833 #endif
13834 char XF86VidModeQueryExtension ();
13836 main ()
13838 return XF86VidModeQueryExtension ();
13840 return 0;
13842 _ACEOF
13843 if ac_fn_c_try_link "$LINENO"; then :
13844 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13845 else
13846 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13848 rm -f core conftest.err conftest.$ac_objext \
13849 conftest$ac_exeext conftest.$ac_ext
13850 LIBS=$ac_check_lib_save_LIBS
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13853 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13854 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13855 have_vidmode=yes
13858 CFLAGS="$save_cflags"
13861 if test "x-$have_vidmode" = "x-yes" ; then
13862 DO_VIDMODE_SUPPORT="1"
13863 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13864 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13865 else
13866 DO_VIDMODE_SUPPORT="0"
13870 aros_host_x11_includes=$x_includes
13871 aros_host_x11_libdirs=$x_libraries
13875 # Check whether --enable-sdl_hidd was given.
13876 if test "${enable_sdl_hidd+set}" = set; then :
13877 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13878 else
13879 sdl_hidd="auto"
13882 case "x-$sdl_hidd" in
13883 x-yes|x-no|x-auto) ;;
13884 *) sdl_hidd="auto" ;;
13885 esac
13887 if test "x-$sdl_hidd" != "x-no" ; then
13890 # Check whether --with-sdl-prefix was given.
13891 if test "${with_sdl_prefix+set}" = set; then :
13892 withval=$with_sdl_prefix; sdl_prefix="$withval"
13893 else
13894 sdl_prefix=""
13898 # Check whether --with-sdl-exec-prefix was given.
13899 if test "${with_sdl_exec_prefix+set}" = set; then :
13900 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13901 else
13902 sdl_exec_prefix=""
13905 # Check whether --enable-sdltest was given.
13906 if test "${enable_sdltest+set}" = set; then :
13907 enableval=$enable_sdltest;
13908 else
13909 enable_sdltest=yes
13913 if test x$sdl_exec_prefix != x ; then
13914 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13915 if test x${SDL_CONFIG+set} != xset ; then
13916 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13919 if test x$sdl_prefix != x ; then
13920 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13921 if test x${SDL_CONFIG+set} != xset ; then
13922 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13926 as_save_PATH="$PATH"
13927 if test "x$prefix" != xNONE; then
13928 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13930 # Extract the first word of "sdl-config", so it can be a program name with args.
13931 set dummy sdl-config; ac_word=$2
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13933 $as_echo_n "checking for $ac_word... " >&6; }
13934 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 case $SDL_CONFIG in
13938 [\\/]* | ?:[\\/]*)
13939 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13943 for as_dir in $PATH
13945 IFS=$as_save_IFS
13946 test -z "$as_dir" && as_dir=.
13947 for ac_exec_ext in '' $ac_executable_extensions; do
13948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13949 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13951 break 2
13953 done
13954 done
13955 IFS=$as_save_IFS
13957 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13959 esac
13961 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13962 if test -n "$SDL_CONFIG"; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13964 $as_echo "$SDL_CONFIG" >&6; }
13965 else
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967 $as_echo "no" >&6; }
13971 PATH="$as_save_PATH"
13972 min_sdl_version=1.2.10
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13974 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13975 no_sdl=""
13976 if test "$SDL_CONFIG" = "no" ; then
13977 no_sdl=yes
13978 else
13979 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13980 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13982 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13984 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13985 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13986 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13988 if test "x$enable_sdltest" = "xyes" ; then
13989 ac_save_CFLAGS="$CFLAGS"
13990 ac_save_CXXFLAGS="$CXXFLAGS"
13991 ac_save_LIBS="$LIBS"
13992 CFLAGS="$CFLAGS $SDL_CFLAGS"
13993 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13994 LIBS="$LIBS $SDL_LIBS"
13995 rm -f conf.sdltest
13996 if test "$cross_compiling" = yes; then :
13997 echo $ac_n "cross compiling; assumed OK... $ac_c"
13998 else
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14002 #include <stdio.h>
14003 #include <stdlib.h>
14004 #include <string.h>
14005 #include "SDL.h"
14007 char*
14008 my_strdup (char *str)
14010 char *new_str;
14012 if (str)
14014 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14015 strcpy (new_str, str);
14017 else
14018 new_str = NULL;
14020 return new_str;
14023 int main (int argc, char *argv[])
14025 int major, minor, micro;
14026 char *tmp_version;
14028 /* This hangs on some systems (?)
14029 system ("touch conf.sdltest");
14031 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14033 /* HP/UX 9 (%@#!) writes to sscanf strings */
14034 tmp_version = my_strdup("$min_sdl_version");
14035 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14036 printf("%s, bad version string\n", "$min_sdl_version");
14037 exit(1);
14040 if (($sdl_major_version > major) ||
14041 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14042 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14044 return 0;
14046 else
14048 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14049 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14050 printf("*** best to upgrade to the required version.\n");
14051 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14052 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14053 printf("*** config.cache before re-running configure\n");
14054 return 1;
14059 _ACEOF
14060 if ac_fn_c_try_run "$LINENO"; then :
14062 else
14063 no_sdl=yes
14065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14066 conftest.$ac_objext conftest.beam conftest.$ac_ext
14069 CFLAGS="$ac_save_CFLAGS"
14070 CXXFLAGS="$ac_save_CXXFLAGS"
14071 LIBS="$ac_save_LIBS"
14074 if test "x$no_sdl" = x ; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14076 $as_echo "yes" >&6; }
14077 have_sdl="yes"
14078 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14081 if test "$SDL_CONFIG" = "no" ; then
14082 echo "*** The sdl-config script installed by SDL could not be found"
14083 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14084 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14085 echo "*** full path to sdl-config."
14086 else
14087 if test -f conf.sdltest ; then
14089 else
14090 echo "*** Could not run SDL test program, checking why..."
14091 CFLAGS="$CFLAGS $SDL_CFLAGS"
14092 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14093 LIBS="$LIBS $SDL_LIBS"
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14097 #include <stdio.h>
14098 #include "SDL.h"
14100 int main(int argc, char *argv[])
14101 { return 0; }
14102 #undef main
14103 #define main K_and_R_C_main
14106 main ()
14108 return 0;
14110 return 0;
14112 _ACEOF
14113 if ac_fn_c_try_link "$LINENO"; then :
14114 echo "*** The test program compiled, but did not run. This usually means"
14115 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14116 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14117 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14118 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14119 echo "*** is required on your system"
14120 echo "***"
14121 echo "*** If you have an old version installed, it is best to remove it, although"
14122 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14123 else
14124 echo "*** The test program failed to compile or link. See the file config.log for the"
14125 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14126 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14127 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14129 rm -f core conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14131 CFLAGS="$ac_save_CFLAGS"
14132 CXXFLAGS="$ac_save_CXXFLAGS"
14133 LIBS="$ac_save_LIBS"
14136 SDL_CFLAGS=""
14137 SDL_LIBS=""
14138 have_sdl="no"
14142 rm -f conf.sdltest
14145 if test "x-$have_sdl" != "x-yes" ; then
14147 if test "x-$sdl_hidd" != "x-auto" ; then
14148 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14151 else
14152 sdl_hidd_target=kernel-hidd-sdl
14153 aros_host_sdl_cflags=SDL_CFLAGS
14154 aros_host_sdl_libs=SDL_LIBS
14158 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14159 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14164 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14165 oss_library_target=workbench-libs-oss-unix
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14171 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14172 # Check whether --enable-dbus was given.
14173 if test "${enable_dbus+set}" = set; then :
14174 enableval=$enable_dbus; dbus="yes"
14175 else
14176 dbus="no"
14179 if test "$dbus" = "yes" ; then
14180 ENABLE_DBUS=1
14181 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14182 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14183 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14184 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14185 else
14186 ENABLE_DBUS=0
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14189 $as_echo "$dbus" >&6; }
14191 if test "$use_kernel_cc_wrapper" = "yes" ; then
14192 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14195 if test "${crosstools}" != "yes" ; then
14196 aros_target_toolchain=no
14197 else
14198 aros_target_toolchain=yes
14202 # Generic
14214 # Compatability with other Amiga-like operation systems
14217 # Host related
14245 # Target Related
14309 # Delinting target compiler flags
14316 # Graphics Related
14333 # Native version related
14336 # Palm native version related
14339 # Unix/Hosted version related
14342 # MMU related
14345 # Apple iOS related
14350 # ARM default GCC target related
14355 # Android related
14359 # DBUS related
14366 #X11 related
14369 # Debug related
14375 # Collect-aros stuff: "-ius" to ignore undefined symbols
14378 # C compiler related
14381 case "$aros_flavour" in
14382 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14383 aros_flavour="emulation" ;;
14384 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14385 aros_flavour="emulation" ;;
14386 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14387 aros_flavour="standalone";;
14388 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14389 aros_flavour="standalone";;
14390 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14391 aros_flavour="native" ;;
14392 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14393 aros_flavour="native" ;;
14394 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14395 aros_flavour="linklib" ;;
14396 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14397 aros_flavour="palmnative" ;;
14398 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14399 aros_flavour="mac68knative" ;;
14400 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14401 aros_flavour="ppcnative" ;;
14402 esac
14404 if test ! -d ${aros_inc_dir} ; then
14405 ${MKDIR} ${aros_inc_dir}
14407 if test ! -d ${aros_geninc_dir} ; then
14408 ${MKDIR} ${aros_geninc_dir}
14410 if test ! -d ${aros_hostcfg_dir} ; then
14411 ${MKDIR} ${aros_hostcfg_dir}
14413 if test ! -d ${aros_targetcfg_dir} ; then
14414 ${MKDIR} ${aros_targetcfg_dir}
14416 if test ! -d ${aros_tools_dir} ; then
14417 ${MKDIR} ${aros_tools_dir}
14419 if test ! -d ${aros_scripts_dir} ; then
14420 ${MKDIR} ${aros_scripts_dir}
14423 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14426 ac_config_commands="$ac_config_commands compiler_executable"
14428 ac_config_commands="$ac_config_commands genmf_executable"
14431 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"
14434 cat >confcache <<\_ACEOF
14435 # This file is a shell script that caches the results of configure
14436 # tests run on this system so they can be shared between configure
14437 # scripts and configure runs, see configure's option --config-cache.
14438 # It is not useful on other systems. If it contains results you don't
14439 # want to keep, you may remove or edit it.
14441 # config.status only pays attention to the cache file if you give it
14442 # the --recheck option to rerun configure.
14444 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14446 # following values.
14448 _ACEOF
14450 # The following way of writing the cache mishandles newlines in values,
14451 # but we know of no workaround that is simple, portable, and efficient.
14452 # So, we kill variables containing newlines.
14453 # Ultrix sh set writes to stderr and can't be redirected directly,
14454 # and sets the high bit in the cache file unless we assign to the vars.
14456 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14457 eval ac_val=\$$ac_var
14458 case $ac_val in #(
14459 *${as_nl}*)
14460 case $ac_var in #(
14461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14463 esac
14464 case $ac_var in #(
14465 _ | IFS | as_nl) ;; #(
14466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14467 *) { eval $ac_var=; unset $ac_var;} ;;
14468 esac ;;
14469 esac
14470 done
14472 (set) 2>&1 |
14473 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14474 *${as_nl}ac_space=\ *)
14475 # `set' does not quote correctly, so add quotes: double-quote
14476 # substitution turns \\\\ into \\, and sed turns \\ into \.
14477 sed -n \
14478 "s/'/'\\\\''/g;
14479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14480 ;; #(
14482 # `set' quotes correctly as required by POSIX, so do not add quotes.
14483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14485 esac |
14486 sort
14488 sed '
14489 /^ac_cv_env_/b end
14490 t clear
14491 :clear
14492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14493 t end
14494 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14495 :end' >>confcache
14496 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14497 if test -w "$cache_file"; then
14498 if test "x$cache_file" != "x/dev/null"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14500 $as_echo "$as_me: updating cache $cache_file" >&6;}
14501 if test ! -f "$cache_file" || test -h "$cache_file"; then
14502 cat confcache >"$cache_file"
14503 else
14504 case $cache_file in #(
14505 */* | ?:*)
14506 mv -f confcache "$cache_file"$$ &&
14507 mv -f "$cache_file"$$ "$cache_file" ;; #(
14509 mv -f confcache "$cache_file" ;;
14510 esac
14513 else
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14515 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14518 rm -f confcache
14520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14521 # Let make expand exec_prefix.
14522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14524 DEFS=-DHAVE_CONFIG_H
14526 ac_libobjs=
14527 ac_ltlibobjs=
14529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14530 # 1. Remove the extension, and $U if already installed.
14531 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14532 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14533 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14534 # will be set to the directory where LIBOBJS objects are built.
14535 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14536 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14537 done
14538 LIBOBJS=$ac_libobjs
14540 LTLIBOBJS=$ac_ltlibobjs
14544 : "${CONFIG_STATUS=./config.status}"
14545 ac_write_fail=0
14546 ac_clean_files_save=$ac_clean_files
14547 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14549 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14550 as_write_fail=0
14551 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14552 #! $SHELL
14553 # Generated by $as_me.
14554 # Run this file to recreate the current configuration.
14555 # Compiler output produced by configure, useful for debugging
14556 # configure, is in config.log if it exists.
14558 debug=false
14559 ac_cs_recheck=false
14560 ac_cs_silent=false
14562 SHELL=\${CONFIG_SHELL-$SHELL}
14563 export SHELL
14564 _ASEOF
14565 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14566 ## -------------------- ##
14567 ## M4sh Initialization. ##
14568 ## -------------------- ##
14570 # Be more Bourne compatible
14571 DUALCASE=1; export DUALCASE # for MKS sh
14572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14573 emulate sh
14574 NULLCMD=:
14575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14576 # is contrary to our usage. Disable this feature.
14577 alias -g '${1+"$@"}'='"$@"'
14578 setopt NO_GLOB_SUBST
14579 else
14580 case `(set -o) 2>/dev/null` in #(
14581 *posix*) :
14582 set -o posix ;; #(
14583 *) :
14585 esac
14589 as_nl='
14591 export as_nl
14592 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14593 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14596 # Prefer a ksh shell builtin over an external printf program on Solaris,
14597 # but without wasting forks for bash or zsh.
14598 if test -z "$BASH_VERSION$ZSH_VERSION" \
14599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14600 as_echo='print -r --'
14601 as_echo_n='print -rn --'
14602 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14603 as_echo='printf %s\n'
14604 as_echo_n='printf %s'
14605 else
14606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14608 as_echo_n='/usr/ucb/echo -n'
14609 else
14610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14611 as_echo_n_body='eval
14612 arg=$1;
14613 case $arg in #(
14614 *"$as_nl"*)
14615 expr "X$arg" : "X\\(.*\\)$as_nl";
14616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14617 esac;
14618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14620 export as_echo_n_body
14621 as_echo_n='sh -c $as_echo_n_body as_echo'
14623 export as_echo_body
14624 as_echo='sh -c $as_echo_body as_echo'
14627 # The user is always right.
14628 if test "${PATH_SEPARATOR+set}" != set; then
14629 PATH_SEPARATOR=:
14630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14632 PATH_SEPARATOR=';'
14637 # IFS
14638 # We need space, tab and new line, in precisely that order. Quoting is
14639 # there to prevent editors from complaining about space-tab.
14640 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14641 # splitting by setting IFS to empty value.)
14642 IFS=" "" $as_nl"
14644 # Find who we are. Look in the path if we contain no directory separator.
14645 as_myself=
14646 case $0 in #((
14647 *[\\/]* ) as_myself=$0 ;;
14648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14649 for as_dir in $PATH
14651 IFS=$as_save_IFS
14652 test -z "$as_dir" && as_dir=.
14653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14654 done
14655 IFS=$as_save_IFS
14658 esac
14659 # We did not find ourselves, most probably we were run as `sh COMMAND'
14660 # in which case we are not to be found in the path.
14661 if test "x$as_myself" = x; then
14662 as_myself=$0
14664 if test ! -f "$as_myself"; then
14665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14666 exit 1
14669 # Unset variables that we do not need and which cause bugs (e.g. in
14670 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14671 # suppresses any "Segmentation fault" message there. '((' could
14672 # trigger a bug in pdksh 5.2.14.
14673 for as_var in BASH_ENV ENV MAIL MAILPATH
14674 do eval test x\${$as_var+set} = xset \
14675 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14676 done
14677 PS1='$ '
14678 PS2='> '
14679 PS4='+ '
14681 # NLS nuisances.
14682 LC_ALL=C
14683 export LC_ALL
14684 LANGUAGE=C
14685 export LANGUAGE
14687 # CDPATH.
14688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14691 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14692 # ----------------------------------------
14693 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14694 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14695 # script with STATUS, using 1 if that was 0.
14696 as_fn_error ()
14698 as_status=$1; test $as_status -eq 0 && as_status=1
14699 if test "$4"; then
14700 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14703 $as_echo "$as_me: error: $2" >&2
14704 as_fn_exit $as_status
14705 } # as_fn_error
14708 # as_fn_set_status STATUS
14709 # -----------------------
14710 # Set $? to STATUS, without forking.
14711 as_fn_set_status ()
14713 return $1
14714 } # as_fn_set_status
14716 # as_fn_exit STATUS
14717 # -----------------
14718 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14719 as_fn_exit ()
14721 set +e
14722 as_fn_set_status $1
14723 exit $1
14724 } # as_fn_exit
14726 # as_fn_unset VAR
14727 # ---------------
14728 # Portably unset VAR.
14729 as_fn_unset ()
14731 { eval $1=; unset $1;}
14733 as_unset=as_fn_unset
14734 # as_fn_append VAR VALUE
14735 # ----------------------
14736 # Append the text in VALUE to the end of the definition contained in VAR. Take
14737 # advantage of any shell optimizations that allow amortized linear growth over
14738 # repeated appends, instead of the typical quadratic growth present in naive
14739 # implementations.
14740 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14741 eval 'as_fn_append ()
14743 eval $1+=\$2
14745 else
14746 as_fn_append ()
14748 eval $1=\$$1\$2
14750 fi # as_fn_append
14752 # as_fn_arith ARG...
14753 # ------------------
14754 # Perform arithmetic evaluation on the ARGs, and store the result in the
14755 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14756 # must be portable across $(()) and expr.
14757 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14758 eval 'as_fn_arith ()
14760 as_val=$(( $* ))
14762 else
14763 as_fn_arith ()
14765 as_val=`expr "$@" || test $? -eq 1`
14767 fi # as_fn_arith
14770 if expr a : '\(a\)' >/dev/null 2>&1 &&
14771 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14772 as_expr=expr
14773 else
14774 as_expr=false
14777 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14778 as_basename=basename
14779 else
14780 as_basename=false
14783 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14784 as_dirname=dirname
14785 else
14786 as_dirname=false
14789 as_me=`$as_basename -- "$0" ||
14790 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14791 X"$0" : 'X\(//\)$' \| \
14792 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14793 $as_echo X/"$0" |
14794 sed '/^.*\/\([^/][^/]*\)\/*$/{
14795 s//\1/
14798 /^X\/\(\/\/\)$/{
14799 s//\1/
14802 /^X\/\(\/\).*/{
14803 s//\1/
14806 s/.*/./; q'`
14808 # Avoid depending upon Character Ranges.
14809 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14810 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14811 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14812 as_cr_digits='0123456789'
14813 as_cr_alnum=$as_cr_Letters$as_cr_digits
14815 ECHO_C= ECHO_N= ECHO_T=
14816 case `echo -n x` in #(((((
14817 -n*)
14818 case `echo 'xy\c'` in
14819 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14820 xy) ECHO_C='\c';;
14821 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14822 ECHO_T=' ';;
14823 esac;;
14825 ECHO_N='-n';;
14826 esac
14828 rm -f conf$$ conf$$.exe conf$$.file
14829 if test -d conf$$.dir; then
14830 rm -f conf$$.dir/conf$$.file
14831 else
14832 rm -f conf$$.dir
14833 mkdir conf$$.dir 2>/dev/null
14835 if (echo >conf$$.file) 2>/dev/null; then
14836 if ln -s conf$$.file conf$$ 2>/dev/null; then
14837 as_ln_s='ln -s'
14838 # ... but there are two gotchas:
14839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14841 # In both cases, we have to default to `cp -p'.
14842 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14843 as_ln_s='cp -p'
14844 elif ln conf$$.file conf$$ 2>/dev/null; then
14845 as_ln_s=ln
14846 else
14847 as_ln_s='cp -p'
14849 else
14850 as_ln_s='cp -p'
14852 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14853 rmdir conf$$.dir 2>/dev/null
14856 # as_fn_mkdir_p
14857 # -------------
14858 # Create "$as_dir" as a directory, including parents if necessary.
14859 as_fn_mkdir_p ()
14862 case $as_dir in #(
14863 -*) as_dir=./$as_dir;;
14864 esac
14865 test -d "$as_dir" || eval $as_mkdir_p || {
14866 as_dirs=
14867 while :; do
14868 case $as_dir in #(
14869 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14870 *) as_qdir=$as_dir;;
14871 esac
14872 as_dirs="'$as_qdir' $as_dirs"
14873 as_dir=`$as_dirname -- "$as_dir" ||
14874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14875 X"$as_dir" : 'X\(//\)[^/]' \| \
14876 X"$as_dir" : 'X\(//\)$' \| \
14877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14878 $as_echo X"$as_dir" |
14879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14880 s//\1/
14883 /^X\(\/\/\)[^/].*/{
14884 s//\1/
14887 /^X\(\/\/\)$/{
14888 s//\1/
14891 /^X\(\/\).*/{
14892 s//\1/
14895 s/.*/./; q'`
14896 test -d "$as_dir" && break
14897 done
14898 test -z "$as_dirs" || eval "mkdir $as_dirs"
14899 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14902 } # as_fn_mkdir_p
14903 if mkdir -p . 2>/dev/null; then
14904 as_mkdir_p='mkdir -p "$as_dir"'
14905 else
14906 test -d ./-p && rmdir ./-p
14907 as_mkdir_p=false
14910 if test -x / >/dev/null 2>&1; then
14911 as_test_x='test -x'
14912 else
14913 if ls -dL / >/dev/null 2>&1; then
14914 as_ls_L_option=L
14915 else
14916 as_ls_L_option=
14918 as_test_x='
14919 eval sh -c '\''
14920 if test -d "$1"; then
14921 test -d "$1/.";
14922 else
14923 case $1 in #(
14924 -*)set "./$1";;
14925 esac;
14926 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14927 ???[sx]*):;;*)false;;esac;fi
14928 '\'' sh
14931 as_executable_p=$as_test_x
14933 # Sed expression to map a string onto a valid CPP name.
14934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14936 # Sed expression to map a string onto a valid variable name.
14937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14940 exec 6>&1
14941 ## ----------------------------------- ##
14942 ## Main body of $CONFIG_STATUS script. ##
14943 ## ----------------------------------- ##
14944 _ASEOF
14945 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14948 # Save the log message, to keep $0 and so on meaningful, and to
14949 # report actual input values of CONFIG_FILES etc. instead of their
14950 # values after options handling.
14951 ac_log="
14952 This file was extended by $as_me, which was
14953 generated by GNU Autoconf 2.68. Invocation command line was
14955 CONFIG_FILES = $CONFIG_FILES
14956 CONFIG_HEADERS = $CONFIG_HEADERS
14957 CONFIG_LINKS = $CONFIG_LINKS
14958 CONFIG_COMMANDS = $CONFIG_COMMANDS
14959 $ $0 $@
14961 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14964 _ACEOF
14966 case $ac_config_files in *"
14967 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14968 esac
14970 case $ac_config_headers in *"
14971 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14972 esac
14975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14976 # Files that config.status was made for.
14977 config_files="$ac_config_files"
14978 config_headers="$ac_config_headers"
14979 config_commands="$ac_config_commands"
14981 _ACEOF
14983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14984 ac_cs_usage="\
14985 \`$as_me' instantiates files and other configuration actions
14986 from templates according to the current configuration. Unless the files
14987 and actions are specified as TAGs, all are instantiated by default.
14989 Usage: $0 [OPTION]... [TAG]...
14991 -h, --help print this help, then exit
14992 -V, --version print version number and configuration settings, then exit
14993 --config print configuration, then exit
14994 -q, --quiet, --silent
14995 do not print progress messages
14996 -d, --debug don't remove temporary files
14997 --recheck update $as_me by reconfiguring in the same conditions
14998 --file=FILE[:TEMPLATE]
14999 instantiate the configuration file FILE
15000 --header=FILE[:TEMPLATE]
15001 instantiate the configuration header FILE
15003 Configuration files:
15004 $config_files
15006 Configuration headers:
15007 $config_headers
15009 Configuration commands:
15010 $config_commands
15012 Report bugs to the package provider."
15014 _ACEOF
15015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15016 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15017 ac_cs_version="\\
15018 config.status
15019 configured by $0, generated by GNU Autoconf 2.68,
15020 with options \\"\$ac_cs_config\\"
15022 Copyright (C) 2010 Free Software Foundation, Inc.
15023 This config.status script is free software; the Free Software Foundation
15024 gives unlimited permission to copy, distribute and modify it."
15026 ac_pwd='$ac_pwd'
15027 srcdir='$srcdir'
15028 test -n "\$AWK" || AWK=awk
15029 _ACEOF
15031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15032 # The default lists apply if the user does not specify any file.
15033 ac_need_defaults=:
15034 while test $# != 0
15036 case $1 in
15037 --*=?*)
15038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15039 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15040 ac_shift=:
15042 --*=)
15043 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15044 ac_optarg=
15045 ac_shift=:
15048 ac_option=$1
15049 ac_optarg=$2
15050 ac_shift=shift
15052 esac
15054 case $ac_option in
15055 # Handling of the options.
15056 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15057 ac_cs_recheck=: ;;
15058 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15059 $as_echo "$ac_cs_version"; exit ;;
15060 --config | --confi | --conf | --con | --co | --c )
15061 $as_echo "$ac_cs_config"; exit ;;
15062 --debug | --debu | --deb | --de | --d | -d )
15063 debug=: ;;
15064 --file | --fil | --fi | --f )
15065 $ac_shift
15066 case $ac_optarg in
15067 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15068 '') as_fn_error $? "missing file argument" ;;
15069 esac
15070 as_fn_append CONFIG_FILES " '$ac_optarg'"
15071 ac_need_defaults=false;;
15072 --header | --heade | --head | --hea )
15073 $ac_shift
15074 case $ac_optarg in
15075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15076 esac
15077 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15078 ac_need_defaults=false;;
15079 --he | --h)
15080 # Conflict between --help and --header
15081 as_fn_error $? "ambiguous option: \`$1'
15082 Try \`$0 --help' for more information.";;
15083 --help | --hel | -h )
15084 $as_echo "$ac_cs_usage"; exit ;;
15085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15086 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15087 ac_cs_silent=: ;;
15089 # This is an error.
15090 -*) as_fn_error $? "unrecognized option: \`$1'
15091 Try \`$0 --help' for more information." ;;
15093 *) as_fn_append ac_config_targets " $1"
15094 ac_need_defaults=false ;;
15096 esac
15097 shift
15098 done
15100 ac_configure_extra_args=
15102 if $ac_cs_silent; then
15103 exec 6>/dev/null
15104 ac_configure_extra_args="$ac_configure_extra_args --silent"
15107 _ACEOF
15108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109 if \$ac_cs_recheck; then
15110 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15111 shift
15112 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15113 CONFIG_SHELL='$SHELL'
15114 export CONFIG_SHELL
15115 exec "\$@"
15118 _ACEOF
15119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15120 exec 5>>config.log
15122 echo
15123 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15124 ## Running $as_me. ##
15125 _ASBOX
15126 $as_echo "$ac_log"
15127 } >&5
15129 _ACEOF
15130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15132 # INIT-COMMANDS
15135 aros_host_exe_suffix=${aros_host_exe_suffix}
15136 aros_tools_dir=${aros_tools_dir}
15137 aros_target_cpu=${aros_target_cpu}
15138 aros_target_arch=${aros_target_arch}
15139 aros_target_suffix=${aros_target_suffix}
15140 orig_target_nm=${orig_target_nm}
15141 orig_target_as=${orig_target_as}
15142 orig_target_ar=${orig_target_ar}
15143 orig_target_ranlib=${orig_target_ranlib}
15144 orig_target_objdump=${orig_target_objdump}
15145 orig_target_objcopy=${orig_target_objcopy}
15146 orig_target_strip=${orig_target_strip}
15147 aros_kernel_ld=${aros_kernel_ld}
15150 aros_tools_dir=${aros_tools_dir}
15153 _ACEOF
15155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15157 # Handling of arguments.
15158 for ac_config_target in $ac_config_targets
15160 case $ac_config_target in
15161 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15162 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15163 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15164 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15165 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15166 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15167 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15168 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15169 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15170 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15171 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15172 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15173 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15174 "${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" ;;
15175 "${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" ;;
15176 "${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" ;;
15177 "${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" ;;
15178 "${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" ;;
15179 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15180 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15181 "${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" ;;
15183 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15184 esac
15185 done
15188 # If the user did not use the arguments to specify the items to instantiate,
15189 # then the envvar interface is used. Set only those that are not.
15190 # We use the long form for the default assignment because of an extremely
15191 # bizarre bug on SunOS 4.1.3.
15192 if $ac_need_defaults; then
15193 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15194 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15195 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15198 # Have a temporary directory for convenience. Make it in the build tree
15199 # simply because there is no reason against having it here, and in addition,
15200 # creating and moving files from /tmp can sometimes cause problems.
15201 # Hook for its removal unless debugging.
15202 # Note that there is a small window in which the directory will not be cleaned:
15203 # after its creation but before its name has been assigned to `$tmp'.
15204 $debug ||
15206 tmp= ac_tmp=
15207 trap 'exit_status=$?
15208 : "${ac_tmp:=$tmp}"
15209 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15211 trap 'as_fn_exit 1' 1 2 13 15
15213 # Create a (secure) tmp directory for tmp files.
15216 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15217 test -d "$tmp"
15218 } ||
15220 tmp=./conf$$-$RANDOM
15221 (umask 077 && mkdir "$tmp")
15222 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15223 ac_tmp=$tmp
15225 # Set up the scripts for CONFIG_FILES section.
15226 # No need to generate them if there are no CONFIG_FILES.
15227 # This happens for instance with `./config.status config.h'.
15228 if test -n "$CONFIG_FILES"; then
15231 ac_cr=`echo X | tr X '\015'`
15232 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15233 # But we know of no other shell where ac_cr would be empty at this
15234 # point, so we can use a bashism as a fallback.
15235 if test "x$ac_cr" = x; then
15236 eval ac_cr=\$\'\\r\'
15238 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15239 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15240 ac_cs_awk_cr='\\r'
15241 else
15242 ac_cs_awk_cr=$ac_cr
15245 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15246 _ACEOF
15250 echo "cat >conf$$subs.awk <<_ACEOF" &&
15251 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15252 echo "_ACEOF"
15253 } >conf$$subs.sh ||
15254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15255 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15256 ac_delim='%!_!# '
15257 for ac_last_try in false false false false false :; do
15258 . ./conf$$subs.sh ||
15259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15261 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15262 if test $ac_delim_n = $ac_delim_num; then
15263 break
15264 elif $ac_last_try; then
15265 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15266 else
15267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15269 done
15270 rm -f conf$$subs.sh
15272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15273 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15274 _ACEOF
15275 sed -n '
15277 s/^/S["/; s/!.*/"]=/
15280 s/^[^!]*!//
15281 :repl
15282 t repl
15283 s/'"$ac_delim"'$//
15284 t delim
15287 s/\(.\{148\}\)..*/\1/
15288 t more1
15289 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15292 b repl
15293 :more1
15294 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15297 s/.\{148\}//
15298 t nl
15299 :delim
15301 s/\(.\{148\}\)..*/\1/
15302 t more2
15303 s/["\\]/\\&/g; s/^/"/; s/$/"/
15306 :more2
15307 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15310 s/.\{148\}//
15311 t delim
15312 ' <conf$$subs.awk | sed '
15313 /^[^""]/{
15315 s/\n//
15317 ' >>$CONFIG_STATUS || ac_write_fail=1
15318 rm -f conf$$subs.awk
15319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15320 _ACAWK
15321 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15322 for (key in S) S_is_set[key] = 1
15323 FS = "\a"
15327 line = $ 0
15328 nfields = split(line, field, "@")
15329 substed = 0
15330 len = length(field[1])
15331 for (i = 2; i < nfields; i++) {
15332 key = field[i]
15333 keylen = length(key)
15334 if (S_is_set[key]) {
15335 value = S[key]
15336 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15337 len += length(value) + length(field[++i])
15338 substed = 1
15339 } else
15340 len += 1 + keylen
15343 print line
15346 _ACAWK
15347 _ACEOF
15348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15349 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15350 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15351 else
15353 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15354 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15355 _ACEOF
15357 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15358 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15359 # trailing colons and then remove the whole line if VPATH becomes empty
15360 # (actually we leave an empty line to preserve line numbers).
15361 if test "x$srcdir" = x.; then
15362 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15364 s///
15365 s/^/:/
15366 s/[ ]*$/:/
15367 s/:\$(srcdir):/:/g
15368 s/:\${srcdir}:/:/g
15369 s/:@srcdir@:/:/g
15370 s/^:*//
15371 s/:*$//
15373 s/\(=[ ]*\).*/\1/
15375 s/\n//
15376 s/^[^=]*=[ ]*$//
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381 fi # test -n "$CONFIG_FILES"
15383 # Set up the scripts for CONFIG_HEADERS section.
15384 # No need to generate them if there are no CONFIG_HEADERS.
15385 # This happens for instance with `./config.status Makefile'.
15386 if test -n "$CONFIG_HEADERS"; then
15387 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15388 BEGIN {
15389 _ACEOF
15391 # Transform confdefs.h into an awk script `defines.awk', embedded as
15392 # here-document in config.status, that substitutes the proper values into
15393 # config.h.in to produce config.h.
15395 # Create a delimiter string that does not exist in confdefs.h, to ease
15396 # handling of long lines.
15397 ac_delim='%!_!# '
15398 for ac_last_try in false false :; do
15399 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15400 if test -z "$ac_tt"; then
15401 break
15402 elif $ac_last_try; then
15403 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15404 else
15405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15407 done
15409 # For the awk script, D is an array of macro values keyed by name,
15410 # likewise P contains macro parameters if any. Preserve backslash
15411 # newline sequences.
15413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15414 sed -n '
15415 s/.\{148\}/&'"$ac_delim"'/g
15416 t rset
15417 :rset
15418 s/^[ ]*#[ ]*define[ ][ ]*/ /
15419 t def
15421 :def
15422 s/\\$//
15423 t bsnl
15424 s/["\\]/\\&/g
15425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15426 D["\1"]=" \3"/p
15427 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15429 :bsnl
15430 s/["\\]/\\&/g
15431 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15432 D["\1"]=" \3\\\\\\n"\\/p
15433 t cont
15434 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15435 t cont
15437 :cont
15439 s/.\{148\}/&'"$ac_delim"'/g
15440 t clear
15441 :clear
15442 s/\\$//
15443 t bsnlc
15444 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15446 :bsnlc
15447 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15448 b cont
15449 ' <confdefs.h | sed '
15450 s/'"$ac_delim"'/"\\\
15451 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454 for (key in D) D_is_set[key] = 1
15455 FS = "\a"
15457 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15458 line = \$ 0
15459 split(line, arg, " ")
15460 if (arg[1] == "#") {
15461 defundef = arg[2]
15462 mac1 = arg[3]
15463 } else {
15464 defundef = substr(arg[1], 2)
15465 mac1 = arg[2]
15467 split(mac1, mac2, "(") #)
15468 macro = mac2[1]
15469 prefix = substr(line, 1, index(line, defundef) - 1)
15470 if (D_is_set[macro]) {
15471 # Preserve the white space surrounding the "#".
15472 print prefix "define", macro P[macro] D[macro]
15473 next
15474 } else {
15475 # Replace #undef with comments. This is necessary, for example,
15476 # in the case of _POSIX_SOURCE, which is predefined and required
15477 # on some systems where configure will not decide to define it.
15478 if (defundef == "undef") {
15479 print "/*", prefix defundef, macro, "*/"
15480 next
15484 { print }
15485 _ACAWK
15486 _ACEOF
15487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15488 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15489 fi # test -n "$CONFIG_HEADERS"
15492 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15493 shift
15494 for ac_tag
15496 case $ac_tag in
15497 :[FHLC]) ac_mode=$ac_tag; continue;;
15498 esac
15499 case $ac_mode$ac_tag in
15500 :[FHL]*:*);;
15501 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15502 :[FH]-) ac_tag=-:-;;
15503 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15504 esac
15505 ac_save_IFS=$IFS
15506 IFS=:
15507 set x $ac_tag
15508 IFS=$ac_save_IFS
15509 shift
15510 ac_file=$1
15511 shift
15513 case $ac_mode in
15514 :L) ac_source=$1;;
15515 :[FH])
15516 ac_file_inputs=
15517 for ac_f
15519 case $ac_f in
15520 -) ac_f="$ac_tmp/stdin";;
15521 *) # Look for the file first in the build tree, then in the source tree
15522 # (if the path is not absolute). The absolute path cannot be DOS-style,
15523 # because $ac_f cannot contain `:'.
15524 test -f "$ac_f" ||
15525 case $ac_f in
15526 [\\/$]*) false;;
15527 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15528 esac ||
15529 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15530 esac
15531 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15532 as_fn_append ac_file_inputs " '$ac_f'"
15533 done
15535 # Let's still pretend it is `configure' which instantiates (i.e., don't
15536 # use $as_me), people would be surprised to read:
15537 # /* config.h. Generated by config.status. */
15538 configure_input='Generated from '`
15539 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15540 `' by configure.'
15541 if test x"$ac_file" != x-; then
15542 configure_input="$ac_file. $configure_input"
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15544 $as_echo "$as_me: creating $ac_file" >&6;}
15546 # Neutralize special characters interpreted by sed in replacement strings.
15547 case $configure_input in #(
15548 *\&* | *\|* | *\\* )
15549 ac_sed_conf_input=`$as_echo "$configure_input" |
15550 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15551 *) ac_sed_conf_input=$configure_input;;
15552 esac
15554 case $ac_tag in
15555 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15557 esac
15559 esac
15561 ac_dir=`$as_dirname -- "$ac_file" ||
15562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15563 X"$ac_file" : 'X\(//\)[^/]' \| \
15564 X"$ac_file" : 'X\(//\)$' \| \
15565 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15566 $as_echo X"$ac_file" |
15567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15568 s//\1/
15571 /^X\(\/\/\)[^/].*/{
15572 s//\1/
15575 /^X\(\/\/\)$/{
15576 s//\1/
15579 /^X\(\/\).*/{
15580 s//\1/
15583 s/.*/./; q'`
15584 as_dir="$ac_dir"; as_fn_mkdir_p
15585 ac_builddir=.
15587 case "$ac_dir" in
15588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15591 # A ".." for each directory in $ac_dir_suffix.
15592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15593 case $ac_top_builddir_sub in
15594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15596 esac ;;
15597 esac
15598 ac_abs_top_builddir=$ac_pwd
15599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15600 # for backward compatibility:
15601 ac_top_builddir=$ac_top_build_prefix
15603 case $srcdir in
15604 .) # We are building in place.
15605 ac_srcdir=.
15606 ac_top_srcdir=$ac_top_builddir_sub
15607 ac_abs_top_srcdir=$ac_pwd ;;
15608 [\\/]* | ?:[\\/]* ) # Absolute name.
15609 ac_srcdir=$srcdir$ac_dir_suffix;
15610 ac_top_srcdir=$srcdir
15611 ac_abs_top_srcdir=$srcdir ;;
15612 *) # Relative name.
15613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15614 ac_top_srcdir=$ac_top_build_prefix$srcdir
15615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15616 esac
15617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15620 case $ac_mode in
15623 # CONFIG_FILE
15626 _ACEOF
15628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15629 # If the template does not know about datarootdir, expand it.
15630 # FIXME: This hack should be removed a few years after 2.60.
15631 ac_datarootdir_hack=; ac_datarootdir_seen=
15632 ac_sed_dataroot='
15633 /datarootdir/ {
15637 /@datadir@/p
15638 /@docdir@/p
15639 /@infodir@/p
15640 /@localedir@/p
15641 /@mandir@/p'
15642 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15643 *datarootdir*) ac_datarootdir_seen=yes;;
15644 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15646 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15647 _ACEOF
15648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15649 ac_datarootdir_hack='
15650 s&@datadir@&$datadir&g
15651 s&@docdir@&$docdir&g
15652 s&@infodir@&$infodir&g
15653 s&@localedir@&$localedir&g
15654 s&@mandir@&$mandir&g
15655 s&\\\${datarootdir}&$datarootdir&g' ;;
15656 esac
15657 _ACEOF
15659 # Neutralize VPATH when `$srcdir' = `.'.
15660 # Shell code in configure.ac might set extrasub.
15661 # FIXME: do we really want to maintain this feature?
15662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15663 ac_sed_extra="$ac_vpsub
15664 $extrasub
15665 _ACEOF
15666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15669 s|@configure_input@|$ac_sed_conf_input|;t t
15670 s&@top_builddir@&$ac_top_builddir_sub&;t t
15671 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15672 s&@srcdir@&$ac_srcdir&;t t
15673 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15674 s&@top_srcdir@&$ac_top_srcdir&;t t
15675 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15676 s&@builddir@&$ac_builddir&;t t
15677 s&@abs_builddir@&$ac_abs_builddir&;t t
15678 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15679 $ac_datarootdir_hack
15681 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15682 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15685 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15686 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15687 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15689 which seems to be undefined. Please make sure it is defined" >&5
15690 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15691 which seems to be undefined. Please make sure it is defined" >&2;}
15693 rm -f "$ac_tmp/stdin"
15694 case $ac_file in
15695 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15696 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15697 esac \
15698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15702 # CONFIG_HEADER
15704 if test x"$ac_file" != x-; then
15706 $as_echo "/* $configure_input */" \
15707 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15708 } >"$ac_tmp/config.h" \
15709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15710 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15712 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15713 else
15714 rm -f "$ac_file"
15715 mv "$ac_tmp/config.h" "$ac_file" \
15716 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15718 else
15719 $as_echo "/* $configure_input */" \
15720 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15721 || as_fn_error $? "could not create -" "$LINENO" 5
15725 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15726 $as_echo "$as_me: executing $ac_file commands" >&6;}
15728 esac
15731 case $ac_file$ac_mode in
15732 "compiler_executable":C)
15733 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15734 mkdir -p $prefix
15735 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15736 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15738 echo ${prefix2}
15739 echo ${prefix3}
15740 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15742 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15743 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15744 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15745 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15746 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15747 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15748 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15750 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15752 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15754 esac
15755 done # for ac_tag
15758 as_fn_exit 0
15759 _ACEOF
15760 ac_clean_files=$ac_clean_files_save
15762 test $ac_write_fail = 0 ||
15763 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15766 # configure is writing to config.log, and then calls config.status.
15767 # config.status does its own redirection, appending to config.log.
15768 # Unfortunately, on DOS this fails, as config.log is still kept open
15769 # by configure, so config.status won't be able to write to it; its
15770 # output is simply discarded. So we exec the FD to /dev/null,
15771 # effectively closing config.log, so it can be properly (re)opened and
15772 # appended to by config.status. When coming back to configure, we
15773 # need to make the FD available again.
15774 if test "$no_create" != yes; then
15775 ac_cs_success=:
15776 ac_config_status_args=
15777 test "$silent" = yes &&
15778 ac_config_status_args="$ac_config_status_args --quiet"
15779 exec 5>/dev/null
15780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15781 exec 5>>config.log
15782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15783 # would make configure fail if this is the last instruction.
15784 $ac_cs_success || as_fn_exit 1
15786 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15788 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15793 #XXX compatability...
15794 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15796 if test -n "$aros_shared_cflags" ; then
15797 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15798 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg