Fixed weird formatting.
[AROS.git] / configure
blobbb8937f1e68d5567a8241aa020990d8675f64a8b
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 # aros_tool_prefix ${target_cpu}-aros-
8670 # The output is
8671 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8672 # Where the 'kernel' binaries are located
8673 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8674 # Where the 'target' binaries are located
8675 # (not the symlink farm - that is aros_target_*!)
8677 # The rules are:
8678 # if crosstools then
8679 # if kernel_tools_prefix = "no-kernel-prefix-"
8680 # aros_kernel_* = crosstools cc paths
8681 # aros_kernel_cc = elf cc wrapper around crosstools cc
8682 # else
8683 # VALIDATE(${kernel_tools_prefix}*)
8684 # aros_kernel_* = ${kernel_tools_prefix}*
8685 # if ${kernel_tools_prefix}cc is an AROS gcc
8686 # aros_kernel_cc = ${kernel_tools_prefix}cc
8687 # else
8688 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8689 # fi
8690 # fi
8692 # orig_target_* = aros built crosstools
8693 # orig_target_cc = elf cc wrapper around crosstools cc
8694 # else
8695 # VALIDATE(${kernel_tools_prefix}*)
8697 # orig_target_* = aros_kernel_*
8698 # if aros_kernel_cc is an AROS gcc
8699 # orig_target_cc = aros_kernel_cc
8700 # else
8701 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8702 # fi
8703 # fi
8705 target_tool_prefix="${target_cpu}-aros-"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8708 $as_echo_n "checking which kernel tools... " >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8710 $as_echo "$kernel_tool_prefix" >&6; };
8712 if test "$kernel_tool_prefix" = "none" ; then
8713 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8714 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8716 else
8717 # Kernel tools required - find them
8718 # Note that 'normally', aros_kernel_* overrides will
8719 # empty, unless specified in the per-arch sections above.
8720 if test "x$aros_kernel_cpp" = "x"; then
8721 aros_kernel_cpp=${kernel_tool_prefix}cpp
8724 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8725 if test "$cross_compiling" = "yes" ; then
8726 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8727 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 case $aros_kernel_cpp in
8734 [\\/]* | ?:[\\/]*)
8735 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 break 2
8749 done
8750 done
8751 IFS=$as_save_IFS
8754 esac
8756 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8757 if test -n "$aros_kernel_cpp"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8759 $as_echo "$aros_kernel_cpp" >&6; }
8760 else
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8766 else
8767 if test "$GCC" = "yes"; then
8768 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8769 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8770 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 case $aros_kernel_cpp in
8777 [\\/]* | ?:[\\/]*)
8778 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 for as_dir in `dirname $aros_gcc_cpp`
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8788 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 break 2
8792 done
8793 done
8794 IFS=$as_save_IFS
8797 esac
8799 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8800 if test -n "$aros_kernel_cpp"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8802 $as_echo "$aros_kernel_cpp" >&6; }
8803 else
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8810 if test "$aros_kernel_cpp" = ""; then
8811 # Extract the first word of "cpp", so it can be a program name with args.
8812 set dummy cpp; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 case $aros_kernel_cpp in
8819 [\\/]* | ?:[\\/]*)
8820 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8830 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8834 done
8835 done
8836 IFS=$as_save_IFS
8839 esac
8841 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8842 if test -n "$aros_kernel_cpp"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8844 $as_echo "$aros_kernel_cpp" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8853 else
8854 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8855 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857 $as_echo_n "checking for $ac_word... " >&6; }
8858 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 case $aros_kernel_cpp in
8862 [\\/]* | ?:[\\/]*)
8863 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 for as_dir in $PATH
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8873 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8877 done
8878 done
8879 IFS=$as_save_IFS
8882 esac
8884 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8885 if test -n "$aros_kernel_cpp"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8887 $as_echo "$aros_kernel_cpp" >&6; }
8888 else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890 $as_echo "no" >&6; }
8896 if test "$aros_kernel_cpp" = ""; then
8897 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8899 if test "x$aros_kernel_cc" = "x"; then
8900 aros_kernel_cc=${kernel_tool_prefix}gcc
8903 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8904 if test "$cross_compiling" = "yes" ; then
8905 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8906 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 $as_echo_n "checking for $ac_word... " >&6; }
8909 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 case $aros_kernel_cc in
8913 [\\/]* | ?:[\\/]*)
8914 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 for as_dir in $PATH
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8924 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 break 2
8928 done
8929 done
8930 IFS=$as_save_IFS
8933 esac
8935 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8936 if test -n "$aros_kernel_cc"; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8938 $as_echo "$aros_kernel_cc" >&6; }
8939 else
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941 $as_echo "no" >&6; }
8945 else
8946 if test "$GCC" = "yes"; then
8947 aros_gcc_cc=`$CC -print-prog-name=cc`
8948 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8949 set dummy `basename $aros_gcc_cc`; ac_word=$2
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8951 $as_echo_n "checking for $ac_word... " >&6; }
8952 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 case $aros_kernel_cc in
8956 [\\/]* | ?:[\\/]*)
8957 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in `dirname $aros_gcc_cc`
8963 IFS=$as_save_IFS
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8969 break 2
8971 done
8972 done
8973 IFS=$as_save_IFS
8976 esac
8978 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8979 if test -n "$aros_kernel_cc"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8981 $as_echo "$aros_kernel_cc" >&6; }
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8989 if test "$aros_kernel_cc" = ""; then
8990 # Extract the first word of "cc", so it can be a program name with args.
8991 set dummy cc; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 case $aros_kernel_cc in
8998 [\\/]* | ?:[\\/]*)
8999 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003 for as_dir in $PATH
9005 IFS=$as_save_IFS
9006 test -z "$as_dir" && as_dir=.
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9009 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011 break 2
9013 done
9014 done
9015 IFS=$as_save_IFS
9018 esac
9020 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9021 if test -n "$aros_kernel_cc"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9023 $as_echo "$aros_kernel_cc" >&6; }
9024 else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9032 else
9033 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9034 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036 $as_echo_n "checking for $ac_word... " >&6; }
9037 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 case $aros_kernel_cc in
9041 [\\/]* | ?:[\\/]*)
9042 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9048 IFS=$as_save_IFS
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9052 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 break 2
9056 done
9057 done
9058 IFS=$as_save_IFS
9061 esac
9063 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9064 if test -n "$aros_kernel_cc"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9066 $as_echo "$aros_kernel_cc" >&6; }
9067 else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9075 if test "$aros_kernel_cc" = ""; then
9076 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9078 if test "x$aros_kernel_cxx" = "x"; then
9079 aros_kernel_cxx=${kernel_tool_prefix}g++
9082 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9083 if test "$cross_compiling" = "yes" ; then
9084 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9085 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087 $as_echo_n "checking for $ac_word... " >&6; }
9088 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 case $aros_kernel_cxx in
9092 [\\/]* | ?:[\\/]*)
9093 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9103 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9107 done
9108 done
9109 IFS=$as_save_IFS
9112 esac
9114 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9115 if test -n "$aros_kernel_cxx"; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9117 $as_echo "$aros_kernel_cxx" >&6; }
9118 else
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9124 else
9125 if test "$GCC" = "yes"; then
9126 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9127 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9128 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 case $aros_kernel_cxx in
9135 [\\/]* | ?:[\\/]*)
9136 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 for as_dir in `dirname $aros_gcc_cxx`
9142 IFS=$as_save_IFS
9143 test -z "$as_dir" && as_dir=.
9144 for ac_exec_ext in '' $ac_executable_extensions; do
9145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9146 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148 break 2
9150 done
9151 done
9152 IFS=$as_save_IFS
9155 esac
9157 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9158 if test -n "$aros_kernel_cxx"; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9160 $as_echo "$aros_kernel_cxx" >&6; }
9161 else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9168 if test "$aros_kernel_cxx" = ""; then
9169 # Extract the first word of "cxx", so it can be a program name with args.
9170 set dummy cxx; ac_word=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 case $aros_kernel_cxx in
9177 [\\/]* | ?:[\\/]*)
9178 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182 for as_dir in $PATH
9184 IFS=$as_save_IFS
9185 test -z "$as_dir" && as_dir=.
9186 for ac_exec_ext in '' $ac_executable_extensions; do
9187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9188 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190 break 2
9192 done
9193 done
9194 IFS=$as_save_IFS
9197 esac
9199 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9200 if test -n "$aros_kernel_cxx"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9202 $as_echo "$aros_kernel_cxx" >&6; }
9203 else
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9211 else
9212 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9213 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9215 $as_echo_n "checking for $ac_word... " >&6; }
9216 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 case $aros_kernel_cxx in
9220 [\\/]* | ?:[\\/]*)
9221 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225 for as_dir in $PATH
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9231 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 break 2
9235 done
9236 done
9237 IFS=$as_save_IFS
9240 esac
9242 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9243 if test -n "$aros_kernel_cxx"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9245 $as_echo "$aros_kernel_cxx" >&6; }
9246 else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 $as_echo "no" >&6; }
9254 # If it's set, make sure it's really there
9255 if test "x$aros_kernel_cxx" != "x" ; then
9256 if test "$aros_kernel_cxx" = ""; then
9257 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9261 if test "$aros_kernel_ld" = ""; then
9262 if test "$cross_compiling" = "yes" ; then
9263 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9264 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 case $aros_kernel_ld in
9271 [\\/]* | ?:[\\/]*)
9272 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276 for as_dir in $PATH
9278 IFS=$as_save_IFS
9279 test -z "$as_dir" && as_dir=.
9280 for ac_exec_ext in '' $ac_executable_extensions; do
9281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9282 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9284 break 2
9286 done
9287 done
9288 IFS=$as_save_IFS
9291 esac
9293 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9294 if test -n "$aros_kernel_ld"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9296 $as_echo "$aros_kernel_ld" >&6; }
9297 else
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9303 else
9304 if test "$GCC" = "yes"; then
9305 aros_gcc_ld=`$CC -print-prog-name=ld`
9306 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9307 set dummy `basename $aros_gcc_ld`; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 case $aros_kernel_ld in
9314 [\\/]* | ?:[\\/]*)
9315 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in `dirname $aros_gcc_ld`
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9325 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 break 2
9329 done
9330 done
9331 IFS=$as_save_IFS
9334 esac
9336 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9337 if test -n "$aros_kernel_ld"; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9339 $as_echo "$aros_kernel_ld" >&6; }
9340 else
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342 $as_echo "no" >&6; }
9347 if test "$aros_kernel_ld" = ""; then
9348 # Extract the first word of "ld", so it can be a program name with args.
9349 set dummy ld; ac_word=$2
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351 $as_echo_n "checking for $ac_word... " >&6; }
9352 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 case $aros_kernel_ld in
9356 [\\/]* | ?:[\\/]*)
9357 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361 for as_dir in $PATH
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9367 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9369 break 2
9371 done
9372 done
9373 IFS=$as_save_IFS
9376 esac
9378 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9379 if test -n "$aros_kernel_ld"; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9381 $as_echo "$aros_kernel_ld" >&6; }
9382 else
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9384 $as_echo "no" >&6; }
9390 else
9391 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9392 set dummy $aros_kernel_ld; ac_word=$2
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9394 $as_echo_n "checking for $ac_word... " >&6; }
9395 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 case $aros_kernel_ld in
9399 [\\/]* | ?:[\\/]*)
9400 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404 for as_dir in $PATH
9406 IFS=$as_save_IFS
9407 test -z "$as_dir" && as_dir=.
9408 for ac_exec_ext in '' $ac_executable_extensions; do
9409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9410 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9412 break 2
9414 done
9415 done
9416 IFS=$as_save_IFS
9419 esac
9421 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9422 if test -n "$aros_kernel_ld"; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9424 $as_echo "$aros_kernel_ld" >&6; }
9425 else
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 $as_echo "no" >&6; }
9433 if test "$aros_kernel_ld" = ""; then
9434 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9437 if test "$aros_kernel_as" = ""; then
9438 if test "$cross_compiling" = "yes" ; then
9439 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9440 set dummy ${kernel_tool_prefix}as; ac_word=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if ${ac_cv_path_aros_kernel_as+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 case $aros_kernel_as in
9447 [\\/]* | ?:[\\/]*)
9448 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452 for as_dir in $PATH
9454 IFS=$as_save_IFS
9455 test -z "$as_dir" && as_dir=.
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9458 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 break 2
9462 done
9463 done
9464 IFS=$as_save_IFS
9467 esac
9469 aros_kernel_as=$ac_cv_path_aros_kernel_as
9470 if test -n "$aros_kernel_as"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9472 $as_echo "$aros_kernel_as" >&6; }
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9479 else
9480 if test "$GCC" = "yes"; then
9481 aros_gcc_as=`$CC -print-prog-name=as`
9482 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9483 set dummy `basename $aros_gcc_as`; ac_word=$2
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485 $as_echo_n "checking for $ac_word... " >&6; }
9486 if ${ac_cv_path_aros_kernel_as+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 case $aros_kernel_as in
9490 [\\/]* | ?:[\\/]*)
9491 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in `dirname $aros_gcc_as`
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9501 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 break 2
9505 done
9506 done
9507 IFS=$as_save_IFS
9510 esac
9512 aros_kernel_as=$ac_cv_path_aros_kernel_as
9513 if test -n "$aros_kernel_as"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9515 $as_echo "$aros_kernel_as" >&6; }
9516 else
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9523 if test "$aros_kernel_as" = ""; then
9524 # Extract the first word of "as", so it can be a program name with args.
9525 set dummy as; ac_word=$2
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527 $as_echo_n "checking for $ac_word... " >&6; }
9528 if ${ac_cv_path_aros_kernel_as+:} false; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 case $aros_kernel_as in
9532 [\\/]* | ?:[\\/]*)
9533 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9543 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9545 break 2
9547 done
9548 done
9549 IFS=$as_save_IFS
9552 esac
9554 aros_kernel_as=$ac_cv_path_aros_kernel_as
9555 if test -n "$aros_kernel_as"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9557 $as_echo "$aros_kernel_as" >&6; }
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9566 else
9567 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9568 set dummy $aros_kernel_as; ac_word=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if ${ac_cv_path_aros_kernel_as+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 case $aros_kernel_as in
9575 [\\/]* | ?:[\\/]*)
9576 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 for as_dir in $PATH
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 break 2
9590 done
9591 done
9592 IFS=$as_save_IFS
9595 esac
9597 aros_kernel_as=$ac_cv_path_aros_kernel_as
9598 if test -n "$aros_kernel_as"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9600 $as_echo "$aros_kernel_as" >&6; }
9601 else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603 $as_echo "no" >&6; }
9609 if test "$aros_kernel_as" = ""; then
9610 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9613 if test "$aros_kernel_ar" = ""; then
9614 if test "$cross_compiling" = "yes" ; then
9615 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9616 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; }
9619 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 case $aros_kernel_ar in
9623 [\\/]* | ?:[\\/]*)
9624 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628 for as_dir in $PATH
9630 IFS=$as_save_IFS
9631 test -z "$as_dir" && as_dir=.
9632 for ac_exec_ext in '' $ac_executable_extensions; do
9633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9634 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 break 2
9638 done
9639 done
9640 IFS=$as_save_IFS
9643 esac
9645 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9646 if test -n "$aros_kernel_ar"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9648 $as_echo "$aros_kernel_ar" >&6; }
9649 else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9655 else
9656 if test "$GCC" = "yes"; then
9657 aros_gcc_ar=`$CC -print-prog-name=ar`
9658 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9659 set dummy `basename $aros_gcc_ar`; ac_word=$2
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9661 $as_echo_n "checking for $ac_word... " >&6; }
9662 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9663 $as_echo_n "(cached) " >&6
9664 else
9665 case $aros_kernel_ar in
9666 [\\/]* | ?:[\\/]*)
9667 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671 for as_dir in `dirname $aros_gcc_ar`
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9677 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9681 done
9682 done
9683 IFS=$as_save_IFS
9686 esac
9688 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9689 if test -n "$aros_kernel_ar"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9691 $as_echo "$aros_kernel_ar" >&6; }
9692 else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 $as_echo "no" >&6; }
9699 if test "$aros_kernel_ar" = ""; then
9700 # Extract the first word of "ar", so it can be a program name with args.
9701 set dummy ar; ac_word=$2
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9703 $as_echo_n "checking for $ac_word... " >&6; }
9704 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 case $aros_kernel_ar in
9708 [\\/]* | ?:[\\/]*)
9709 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9723 done
9724 done
9725 IFS=$as_save_IFS
9728 esac
9730 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9731 if test -n "$aros_kernel_ar"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9733 $as_echo "$aros_kernel_ar" >&6; }
9734 else
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9742 else
9743 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9744 set dummy $aros_kernel_ar; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 case $aros_kernel_ar in
9751 [\\/]* | ?:[\\/]*)
9752 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756 for as_dir in $PATH
9758 IFS=$as_save_IFS
9759 test -z "$as_dir" && as_dir=.
9760 for ac_exec_ext in '' $ac_executable_extensions; do
9761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9762 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9764 break 2
9766 done
9767 done
9768 IFS=$as_save_IFS
9771 esac
9773 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9774 if test -n "$aros_kernel_ar"; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9776 $as_echo "$aros_kernel_ar" >&6; }
9777 else
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9779 $as_echo "no" >&6; }
9785 if test "$aros_kernel_ar" = ""; then
9786 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9789 if test "$aros_kernel_ranlib" = ""; then
9790 if test "$cross_compiling" = "yes" ; then
9791 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9792 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 case $aros_kernel_ranlib in
9799 [\\/]* | ?:[\\/]*)
9800 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9814 done
9815 done
9816 IFS=$as_save_IFS
9819 esac
9821 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9822 if test -n "$aros_kernel_ranlib"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9824 $as_echo "$aros_kernel_ranlib" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9831 else
9832 if test "$GCC" = "yes"; then
9833 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9834 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9835 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 case $aros_kernel_ranlib in
9842 [\\/]* | ?:[\\/]*)
9843 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in `dirname $aros_gcc_ranlib`
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9853 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 break 2
9857 done
9858 done
9859 IFS=$as_save_IFS
9862 esac
9864 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9865 if test -n "$aros_kernel_ranlib"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9867 $as_echo "$aros_kernel_ranlib" >&6; }
9868 else
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9875 if test "$aros_kernel_ranlib" = ""; then
9876 # Extract the first word of "ranlib", so it can be a program name with args.
9877 set dummy ranlib; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 case $aros_kernel_ranlib in
9884 [\\/]* | ?:[\\/]*)
9885 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 for as_dir in $PATH
9891 IFS=$as_save_IFS
9892 test -z "$as_dir" && as_dir=.
9893 for ac_exec_ext in '' $ac_executable_extensions; do
9894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9895 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 break 2
9899 done
9900 done
9901 IFS=$as_save_IFS
9904 esac
9906 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9907 if test -n "$aros_kernel_ranlib"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9909 $as_echo "$aros_kernel_ranlib" >&6; }
9910 else
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9918 else
9919 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9920 set dummy $aros_kernel_ranlib; ac_word=$2
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 case $aros_kernel_ranlib in
9927 [\\/]* | ?:[\\/]*)
9928 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 for as_dir in $PATH
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9938 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9942 done
9943 done
9944 IFS=$as_save_IFS
9947 esac
9949 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9950 if test -n "$aros_kernel_ranlib"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9952 $as_echo "$aros_kernel_ranlib" >&6; }
9953 else
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9961 if test "$aros_kernel_ranlib" = ""; then
9962 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9965 if test "$aros_kernel_nm" = ""; then
9966 if test "$cross_compiling" = "yes" ; then
9967 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9968 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970 $as_echo_n "checking for $ac_word... " >&6; }
9971 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 case $aros_kernel_nm in
9975 [\\/]* | ?:[\\/]*)
9976 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 for as_dir in $PATH
9982 IFS=$as_save_IFS
9983 test -z "$as_dir" && as_dir=.
9984 for ac_exec_ext in '' $ac_executable_extensions; do
9985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9986 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 break 2
9990 done
9991 done
9992 IFS=$as_save_IFS
9995 esac
9997 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9998 if test -n "$aros_kernel_nm"; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10000 $as_echo "$aros_kernel_nm" >&6; }
10001 else
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10007 else
10008 if test "$GCC" = "yes"; then
10009 aros_gcc_nm=`$CC -print-prog-name=nm`
10010 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10011 set dummy `basename $aros_gcc_nm`; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10015 $as_echo_n "(cached) " >&6
10016 else
10017 case $aros_kernel_nm in
10018 [\\/]* | ?:[\\/]*)
10019 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10023 for as_dir in `dirname $aros_gcc_nm`
10025 IFS=$as_save_IFS
10026 test -z "$as_dir" && as_dir=.
10027 for ac_exec_ext in '' $ac_executable_extensions; do
10028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10029 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10031 break 2
10033 done
10034 done
10035 IFS=$as_save_IFS
10038 esac
10040 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10041 if test -n "$aros_kernel_nm"; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10043 $as_echo "$aros_kernel_nm" >&6; }
10044 else
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 $as_echo "no" >&6; }
10051 if test "$aros_kernel_nm" = ""; then
10052 # Extract the first word of "nm", so it can be a program name with args.
10053 set dummy nm; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 case $aros_kernel_nm in
10060 [\\/]* | ?:[\\/]*)
10061 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10075 done
10076 done
10077 IFS=$as_save_IFS
10080 esac
10082 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10083 if test -n "$aros_kernel_nm"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10085 $as_echo "$aros_kernel_nm" >&6; }
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10094 else
10095 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10096 set dummy $aros_kernel_nm; ac_word=$2
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098 $as_echo_n "checking for $ac_word... " >&6; }
10099 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102 case $aros_kernel_nm in
10103 [\\/]* | ?:[\\/]*)
10104 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108 for as_dir in $PATH
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10114 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10116 break 2
10118 done
10119 done
10120 IFS=$as_save_IFS
10123 esac
10125 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10126 if test -n "$aros_kernel_nm"; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10128 $as_echo "$aros_kernel_nm" >&6; }
10129 else
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10137 if test "$aros_kernel_nm" = ""; then
10138 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10141 if test "$aros_kernel_strip" = ""; then
10142 if test "$cross_compiling" = "yes" ; then
10143 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10144 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 case $aros_kernel_strip in
10151 [\\/]* | ?:[\\/]*)
10152 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10166 done
10167 done
10168 IFS=$as_save_IFS
10171 esac
10173 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10174 if test -n "$aros_kernel_strip"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10176 $as_echo "$aros_kernel_strip" >&6; }
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10183 else
10184 if test "$GCC" = "yes"; then
10185 aros_gcc_strip=`$CC -print-prog-name=strip`
10186 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10187 set dummy `basename $aros_gcc_strip`; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 case $aros_kernel_strip in
10194 [\\/]* | ?:[\\/]*)
10195 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in `dirname $aros_gcc_strip`
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10205 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 break 2
10209 done
10210 done
10211 IFS=$as_save_IFS
10214 esac
10216 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10217 if test -n "$aros_kernel_strip"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10219 $as_echo "$aros_kernel_strip" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10227 if test "$aros_kernel_strip" = ""; then
10228 # Extract the first word of "strip", so it can be a program name with args.
10229 set dummy strip; ac_word=$2
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231 $as_echo_n "checking for $ac_word... " >&6; }
10232 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 case $aros_kernel_strip in
10236 [\\/]* | ?:[\\/]*)
10237 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10247 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10251 done
10252 done
10253 IFS=$as_save_IFS
10256 esac
10258 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10259 if test -n "$aros_kernel_strip"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10261 $as_echo "$aros_kernel_strip" >&6; }
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 $as_echo "no" >&6; }
10270 else
10271 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10272 set dummy $aros_kernel_strip; ac_word=$2
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10274 $as_echo_n "checking for $ac_word... " >&6; }
10275 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 case $aros_kernel_strip in
10279 [\\/]* | ?:[\\/]*)
10280 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in $PATH
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10290 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10294 done
10295 done
10296 IFS=$as_save_IFS
10299 esac
10301 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10302 if test -n "$aros_kernel_strip"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10304 $as_echo "$aros_kernel_strip" >&6; }
10305 else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307 $as_echo "no" >&6; }
10313 if test "$aros_kernel_strip" = ""; then
10314 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10317 # Objcopy and objdump are not required for the kernel
10318 # toolchain on many architectures.
10319 # So we'll look for them, but not make them strictly required.
10321 if test "$aros_kernel_objcopy" = ""; then
10322 if test "$cross_compiling" = "yes" ; then
10323 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10324 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 case $aros_kernel_objcopy in
10331 [\\/]* | ?:[\\/]*)
10332 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10346 done
10347 done
10348 IFS=$as_save_IFS
10351 esac
10353 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10354 if test -n "$aros_kernel_objcopy"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10356 $as_echo "$aros_kernel_objcopy" >&6; }
10357 else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10363 else
10364 if test "$GCC" = "yes"; then
10365 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10366 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10367 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369 $as_echo_n "checking for $ac_word... " >&6; }
10370 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10371 $as_echo_n "(cached) " >&6
10372 else
10373 case $aros_kernel_objcopy in
10374 [\\/]* | ?:[\\/]*)
10375 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in `dirname $aros_gcc_objcopy`
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10385 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10389 done
10390 done
10391 IFS=$as_save_IFS
10394 esac
10396 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10397 if test -n "$aros_kernel_objcopy"; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10399 $as_echo "$aros_kernel_objcopy" >&6; }
10400 else
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 $as_echo "no" >&6; }
10407 if test "$aros_kernel_objcopy" = ""; then
10408 # Extract the first word of "objcopy", so it can be a program name with args.
10409 set dummy objcopy; ac_word=$2
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411 $as_echo_n "checking for $ac_word... " >&6; }
10412 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 case $aros_kernel_objcopy in
10416 [\\/]* | ?:[\\/]*)
10417 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10431 done
10432 done
10433 IFS=$as_save_IFS
10436 esac
10438 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10439 if test -n "$aros_kernel_objcopy"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10441 $as_echo "$aros_kernel_objcopy" >&6; }
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10450 else
10451 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10452 set dummy $aros_kernel_objcopy; ac_word=$2
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454 $as_echo_n "checking for $ac_word... " >&6; }
10455 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 case $aros_kernel_objcopy in
10459 [\\/]* | ?:[\\/]*)
10460 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10470 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472 break 2
10474 done
10475 done
10476 IFS=$as_save_IFS
10479 esac
10481 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10482 if test -n "$aros_kernel_objcopy"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10484 $as_echo "$aros_kernel_objcopy" >&6; }
10485 else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487 $as_echo "no" >&6; }
10494 if test "$aros_kernel_objdump" = ""; then
10495 if test "$cross_compiling" = "yes" ; then
10496 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10497 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 case $aros_kernel_objdump in
10504 [\\/]* | ?:[\\/]*)
10505 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10515 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10519 done
10520 done
10521 IFS=$as_save_IFS
10524 esac
10526 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10527 if test -n "$aros_kernel_objdump"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10529 $as_echo "$aros_kernel_objdump" >&6; }
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10536 else
10537 if test "$GCC" = "yes"; then
10538 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10539 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10540 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 case $aros_kernel_objdump in
10547 [\\/]* | ?:[\\/]*)
10548 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in `dirname $aros_gcc_objdump`
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10562 done
10563 done
10564 IFS=$as_save_IFS
10567 esac
10569 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10570 if test -n "$aros_kernel_objdump"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10572 $as_echo "$aros_kernel_objdump" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10580 if test "$aros_kernel_objdump" = ""; then
10581 # Extract the first word of "objdump", so it can be a program name with args.
10582 set dummy objdump; ac_word=$2
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584 $as_echo_n "checking for $ac_word... " >&6; }
10585 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 case $aros_kernel_objdump in
10589 [\\/]* | ?:[\\/]*)
10590 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594 for as_dir in $PATH
10596 IFS=$as_save_IFS
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
10599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10600 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 break 2
10604 done
10605 done
10606 IFS=$as_save_IFS
10609 esac
10611 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10612 if test -n "$aros_kernel_objdump"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10614 $as_echo "$aros_kernel_objdump" >&6; }
10615 else
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; }
10623 else
10624 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10625 set dummy $aros_kernel_objdump; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 case $aros_kernel_objdump in
10632 [\\/]* | ?:[\\/]*)
10633 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637 for as_dir in $PATH
10639 IFS=$as_save_IFS
10640 test -z "$as_dir" && as_dir=.
10641 for ac_exec_ext in '' $ac_executable_extensions; do
10642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10643 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10645 break 2
10647 done
10648 done
10649 IFS=$as_save_IFS
10652 esac
10654 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10655 if test -n "$aros_kernel_objdump"; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10657 $as_echo "$aros_kernel_objdump" >&6; }
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10666 if test "x${crosstools}" != "xyes" ; then
10667 if test "$aros_kernel_objcopy" = ""; then
10668 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10670 if test "$aros_kernel_objdump" = ""; then
10671 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10677 $as_echo_n "checking which target tools to use... " >&6; }
10678 if test "$crosstools" = "yes"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10680 $as_echo "$target_tool_prefix" >&6; }
10681 # We are are building AROS crosstools
10682 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10683 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10684 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10685 orig_target_cpp="${tmp_tool_prefix}cpp"
10686 orig_target_ld="${tmp_tool_prefix}ld"
10687 orig_target_as="${tmp_tool_prefix}as"
10688 orig_target_ar="${tmp_tool_prefix}ar"
10689 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10690 orig_target_nm="${tmp_tool_prefix}nm"
10691 orig_target_strip="${tmp_tool_prefix}strip"
10692 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10693 orig_target_objdump="${tmp_tool_prefix}objdump"
10694 else
10695 # Determine whether AROS or ELF tools should be used
10696 if test "$aros_tool_prefix" = "none"; then
10697 aros_tool_prefix="${elf_tool_prefix}"
10698 crosstools_cxx_target=tools-crosstools
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10702 $as_echo "$aros_tool_prefix" >&6; }
10703 # We are *not* building AROS crosstools - use the AROS or ELF tools
10705 if test "${aros_tool_prefix}cpp" = ""; then
10706 if test "$cross_compiling" = "yes" ; then
10707 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10708 set dummy ${target_tool_prefix}cpp; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710 $as_echo_n "checking for $ac_word... " >&6; }
10711 if ${ac_cv_path_orig_target_cpp+:} false; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 case $orig_target_cpp in
10715 [\\/]* | ?:[\\/]*)
10716 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10726 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10730 done
10731 done
10732 IFS=$as_save_IFS
10735 esac
10737 orig_target_cpp=$ac_cv_path_orig_target_cpp
10738 if test -n "$orig_target_cpp"; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10740 $as_echo "$orig_target_cpp" >&6; }
10741 else
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10747 else
10748 if test "$GCC" = "yes"; then
10749 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10750 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10751 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if ${ac_cv_path_orig_target_cpp+:} false; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 case $orig_target_cpp in
10758 [\\/]* | ?:[\\/]*)
10759 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in `dirname $aros_gcc_cpp`
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10769 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 break 2
10773 done
10774 done
10775 IFS=$as_save_IFS
10778 esac
10780 orig_target_cpp=$ac_cv_path_orig_target_cpp
10781 if test -n "$orig_target_cpp"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10783 $as_echo "$orig_target_cpp" >&6; }
10784 else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10791 if test "$orig_target_cpp" = ""; then
10792 # Extract the first word of "cpp", so it can be a program name with args.
10793 set dummy cpp; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if ${ac_cv_path_orig_target_cpp+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 case $orig_target_cpp in
10800 [\\/]* | ?:[\\/]*)
10801 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10811 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10815 done
10816 done
10817 IFS=$as_save_IFS
10820 esac
10822 orig_target_cpp=$ac_cv_path_orig_target_cpp
10823 if test -n "$orig_target_cpp"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10825 $as_echo "$orig_target_cpp" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10834 else
10835 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10836 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10838 $as_echo_n "checking for $ac_word... " >&6; }
10839 if ${ac_cv_path_orig_target_cpp+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 case $orig_target_cpp in
10843 [\\/]* | ?:[\\/]*)
10844 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848 for as_dir in $PATH
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10854 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10858 done
10859 done
10860 IFS=$as_save_IFS
10863 esac
10865 orig_target_cpp=$ac_cv_path_orig_target_cpp
10866 if test -n "$orig_target_cpp"; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10868 $as_echo "$orig_target_cpp" >&6; }
10869 else
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10877 if test "$orig_target_cpp" = ""; then
10878 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10881 if test "${aros_tool_prefix}gcc" = ""; then
10882 if test "$cross_compiling" = "yes" ; then
10883 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10884 set dummy ${target_tool_prefix}gcc; ac_word=$2
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886 $as_echo_n "checking for $ac_word... " >&6; }
10887 if ${ac_cv_path_orig_target_cc+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 case $orig_target_cc in
10891 [\\/]* | ?:[\\/]*)
10892 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10898 IFS=$as_save_IFS
10899 test -z "$as_dir" && as_dir=.
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10902 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10904 break 2
10906 done
10907 done
10908 IFS=$as_save_IFS
10911 esac
10913 orig_target_cc=$ac_cv_path_orig_target_cc
10914 if test -n "$orig_target_cc"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10916 $as_echo "$orig_target_cc" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10923 else
10924 if test "$GCC" = "yes"; then
10925 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10926 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10927 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929 $as_echo_n "checking for $ac_word... " >&6; }
10930 if ${ac_cv_path_orig_target_cc+:} false; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 case $orig_target_cc in
10934 [\\/]* | ?:[\\/]*)
10935 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in `dirname $aros_gcc_gcc`
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10945 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 break 2
10949 done
10950 done
10951 IFS=$as_save_IFS
10954 esac
10956 orig_target_cc=$ac_cv_path_orig_target_cc
10957 if test -n "$orig_target_cc"; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10959 $as_echo "$orig_target_cc" >&6; }
10960 else
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962 $as_echo "no" >&6; }
10967 if test "$orig_target_cc" = ""; then
10968 # Extract the first word of "gcc", so it can be a program name with args.
10969 set dummy gcc; ac_word=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_path_orig_target_cc+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 case $orig_target_cc in
10976 [\\/]* | ?:[\\/]*)
10977 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10991 done
10992 done
10993 IFS=$as_save_IFS
10996 esac
10998 orig_target_cc=$ac_cv_path_orig_target_cc
10999 if test -n "$orig_target_cc"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11001 $as_echo "$orig_target_cc" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11010 else
11011 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
11012 set dummy ${aros_tool_prefix}gcc; ac_word=$2
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014 $as_echo_n "checking for $ac_word... " >&6; }
11015 if ${ac_cv_path_orig_target_cc+:} false; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 case $orig_target_cc in
11019 [\\/]* | ?:[\\/]*)
11020 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11030 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11034 done
11035 done
11036 IFS=$as_save_IFS
11039 esac
11041 orig_target_cc=$ac_cv_path_orig_target_cc
11042 if test -n "$orig_target_cc"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11044 $as_echo "$orig_target_cc" >&6; }
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11053 if test "$orig_target_cc" = ""; then
11054 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11056 if test "x${crosstools_cxx_target}" = "x" ; then
11058 if test "${aros_tool_prefix}g++" = ""; then
11059 if test "$cross_compiling" = "yes" ; then
11060 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11061 set dummy ${target_tool_prefix}g++; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if ${ac_cv_path_orig_target_cxx+:} false; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 case $orig_target_cxx in
11068 [\\/]* | ?:[\\/]*)
11069 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11079 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11083 done
11084 done
11085 IFS=$as_save_IFS
11088 esac
11090 orig_target_cxx=$ac_cv_path_orig_target_cxx
11091 if test -n "$orig_target_cxx"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11093 $as_echo "$orig_target_cxx" >&6; }
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11100 else
11101 if test "$GCC" = "yes"; then
11102 aros_gcc_g++=`$CC -print-prog-name=g++`
11103 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11104 set dummy `basename $aros_gcc_g++`; ac_word=$2
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106 $as_echo_n "checking for $ac_word... " >&6; }
11107 if ${ac_cv_path_orig_target_cxx+:} false; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 case $orig_target_cxx in
11111 [\\/]* | ?:[\\/]*)
11112 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in `dirname $aros_gcc_g++`
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11126 done
11127 done
11128 IFS=$as_save_IFS
11131 esac
11133 orig_target_cxx=$ac_cv_path_orig_target_cxx
11134 if test -n "$orig_target_cxx"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11136 $as_echo "$orig_target_cxx" >&6; }
11137 else
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11144 if test "$orig_target_cxx" = ""; then
11145 # Extract the first word of "g++", so it can be a program name with args.
11146 set dummy g++; ac_word=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if ${ac_cv_path_orig_target_cxx+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 case $orig_target_cxx in
11153 [\\/]* | ?:[\\/]*)
11154 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11160 IFS=$as_save_IFS
11161 test -z "$as_dir" && as_dir=.
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11164 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166 break 2
11168 done
11169 done
11170 IFS=$as_save_IFS
11173 esac
11175 orig_target_cxx=$ac_cv_path_orig_target_cxx
11176 if test -n "$orig_target_cxx"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11178 $as_echo "$orig_target_cxx" >&6; }
11179 else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11187 else
11188 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11189 set dummy ${aros_tool_prefix}g++; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if ${ac_cv_path_orig_target_cxx+:} false; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 case $orig_target_cxx in
11196 [\\/]* | ?:[\\/]*)
11197 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 break 2
11211 done
11212 done
11213 IFS=$as_save_IFS
11216 esac
11218 orig_target_cxx=$ac_cv_path_orig_target_cxx
11219 if test -n "$orig_target_cxx"; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11221 $as_echo "$orig_target_cxx" >&6; }
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11230 if test "$orig_target_cxx" = ""; then
11231 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11235 if test "${aros_tool_prefix}ld" = ""; then
11236 if test "$cross_compiling" = "yes" ; then
11237 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11238 set dummy ${target_tool_prefix}gcc; ac_word=$2
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240 $as_echo_n "checking for $ac_word... " >&6; }
11241 if ${ac_cv_path_orig_target_ld+:} false; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 case $orig_target_ld in
11245 [\\/]* | ?:[\\/]*)
11246 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250 for as_dir in $PATH
11252 IFS=$as_save_IFS
11253 test -z "$as_dir" && as_dir=.
11254 for ac_exec_ext in '' $ac_executable_extensions; do
11255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11256 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258 break 2
11260 done
11261 done
11262 IFS=$as_save_IFS
11265 esac
11267 orig_target_ld=$ac_cv_path_orig_target_ld
11268 if test -n "$orig_target_ld"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11270 $as_echo "$orig_target_ld" >&6; }
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11277 else
11278 if test "$GCC" = "yes"; then
11279 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11280 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11281 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 $as_echo_n "checking for $ac_word... " >&6; }
11284 if ${ac_cv_path_orig_target_ld+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 case $orig_target_ld in
11288 [\\/]* | ?:[\\/]*)
11289 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in `dirname $aros_gcc_gcc`
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 break 2
11303 done
11304 done
11305 IFS=$as_save_IFS
11308 esac
11310 orig_target_ld=$ac_cv_path_orig_target_ld
11311 if test -n "$orig_target_ld"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11313 $as_echo "$orig_target_ld" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11321 if test "$orig_target_ld" = ""; then
11322 # Extract the first word of "gcc", so it can be a program name with args.
11323 set dummy gcc; ac_word=$2
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 $as_echo_n "checking for $ac_word... " >&6; }
11326 if ${ac_cv_path_orig_target_ld+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 case $orig_target_ld in
11330 [\\/]* | ?:[\\/]*)
11331 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11341 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 break 2
11345 done
11346 done
11347 IFS=$as_save_IFS
11350 esac
11352 orig_target_ld=$ac_cv_path_orig_target_ld
11353 if test -n "$orig_target_ld"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11355 $as_echo "$orig_target_ld" >&6; }
11356 else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11364 else
11365 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11366 set dummy ${aros_tool_prefix}ld; ac_word=$2
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11368 $as_echo_n "checking for $ac_word... " >&6; }
11369 if ${ac_cv_path_orig_target_ld+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 case $orig_target_ld in
11373 [\\/]* | ?:[\\/]*)
11374 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11380 IFS=$as_save_IFS
11381 test -z "$as_dir" && as_dir=.
11382 for ac_exec_ext in '' $ac_executable_extensions; do
11383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11384 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11386 break 2
11388 done
11389 done
11390 IFS=$as_save_IFS
11393 esac
11395 orig_target_ld=$ac_cv_path_orig_target_ld
11396 if test -n "$orig_target_ld"; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11398 $as_echo "$orig_target_ld" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11407 if test "$orig_target_ld" = ""; then
11408 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11411 if test "${aros_tool_prefix}as" = ""; then
11412 if test "$cross_compiling" = "yes" ; then
11413 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11414 set dummy ${target_tool_prefix}as; ac_word=$2
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416 $as_echo_n "checking for $ac_word... " >&6; }
11417 if ${ac_cv_path_orig_target_as+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 case $orig_target_as in
11421 [\\/]* | ?:[\\/]*)
11422 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426 for as_dir in $PATH
11428 IFS=$as_save_IFS
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11432 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 break 2
11436 done
11437 done
11438 IFS=$as_save_IFS
11441 esac
11443 orig_target_as=$ac_cv_path_orig_target_as
11444 if test -n "$orig_target_as"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11446 $as_echo "$orig_target_as" >&6; }
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11453 else
11454 if test "$GCC" = "yes"; then
11455 aros_gcc_as=`$CC -print-prog-name=as`
11456 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11457 set dummy `basename $aros_gcc_as`; ac_word=$2
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459 $as_echo_n "checking for $ac_word... " >&6; }
11460 if ${ac_cv_path_orig_target_as+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 case $orig_target_as in
11464 [\\/]* | ?:[\\/]*)
11465 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in `dirname $aros_gcc_as`
11471 IFS=$as_save_IFS
11472 test -z "$as_dir" && as_dir=.
11473 for ac_exec_ext in '' $ac_executable_extensions; do
11474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11475 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477 break 2
11479 done
11480 done
11481 IFS=$as_save_IFS
11484 esac
11486 orig_target_as=$ac_cv_path_orig_target_as
11487 if test -n "$orig_target_as"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11489 $as_echo "$orig_target_as" >&6; }
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11497 if test "$orig_target_as" = ""; then
11498 # Extract the first word of "as", so it can be a program name with args.
11499 set dummy as; ac_word=$2
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501 $as_echo_n "checking for $ac_word... " >&6; }
11502 if ${ac_cv_path_orig_target_as+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 case $orig_target_as in
11506 [\\/]* | ?:[\\/]*)
11507 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511 for as_dir in $PATH
11513 IFS=$as_save_IFS
11514 test -z "$as_dir" && as_dir=.
11515 for ac_exec_ext in '' $ac_executable_extensions; do
11516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11517 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11519 break 2
11521 done
11522 done
11523 IFS=$as_save_IFS
11526 esac
11528 orig_target_as=$ac_cv_path_orig_target_as
11529 if test -n "$orig_target_as"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11531 $as_echo "$orig_target_as" >&6; }
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11540 else
11541 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11542 set dummy ${aros_tool_prefix}as; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_path_orig_target_as+:} false; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 case $orig_target_as in
11549 [\\/]* | ?:[\\/]*)
11550 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11560 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11564 done
11565 done
11566 IFS=$as_save_IFS
11569 esac
11571 orig_target_as=$ac_cv_path_orig_target_as
11572 if test -n "$orig_target_as"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11574 $as_echo "$orig_target_as" >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11583 if test "$orig_target_as" = ""; then
11584 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11587 if test "${aros_tool_prefix}ar" = ""; then
11588 if test "$cross_compiling" = "yes" ; then
11589 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11590 set dummy ${target_tool_prefix}ar; ac_word=$2
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592 $as_echo_n "checking for $ac_word... " >&6; }
11593 if ${ac_cv_path_orig_target_ar+:} false; then :
11594 $as_echo_n "(cached) " >&6
11595 else
11596 case $orig_target_ar in
11597 [\\/]* | ?:[\\/]*)
11598 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602 for as_dir in $PATH
11604 IFS=$as_save_IFS
11605 test -z "$as_dir" && as_dir=.
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11608 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11610 break 2
11612 done
11613 done
11614 IFS=$as_save_IFS
11617 esac
11619 orig_target_ar=$ac_cv_path_orig_target_ar
11620 if test -n "$orig_target_ar"; then
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11622 $as_echo "$orig_target_ar" >&6; }
11623 else
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11625 $as_echo "no" >&6; }
11629 else
11630 if test "$GCC" = "yes"; then
11631 aros_gcc_ar=`$CC -print-prog-name=ar`
11632 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11633 set dummy `basename $aros_gcc_ar`; ac_word=$2
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if ${ac_cv_path_orig_target_ar+:} false; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 case $orig_target_ar in
11640 [\\/]* | ?:[\\/]*)
11641 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in `dirname $aros_gcc_ar`
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11651 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11655 done
11656 done
11657 IFS=$as_save_IFS
11660 esac
11662 orig_target_ar=$ac_cv_path_orig_target_ar
11663 if test -n "$orig_target_ar"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11665 $as_echo "$orig_target_ar" >&6; }
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11673 if test "$orig_target_ar" = ""; then
11674 # Extract the first word of "ar", so it can be a program name with args.
11675 set dummy ar; ac_word=$2
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677 $as_echo_n "checking for $ac_word... " >&6; }
11678 if ${ac_cv_path_orig_target_ar+:} false; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 case $orig_target_ar in
11682 [\\/]* | ?:[\\/]*)
11683 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11693 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 break 2
11697 done
11698 done
11699 IFS=$as_save_IFS
11702 esac
11704 orig_target_ar=$ac_cv_path_orig_target_ar
11705 if test -n "$orig_target_ar"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11707 $as_echo "$orig_target_ar" >&6; }
11708 else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11716 else
11717 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11718 set dummy ${aros_tool_prefix}ar; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_path_orig_target_ar+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 case $orig_target_ar in
11725 [\\/]* | ?:[\\/]*)
11726 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11736 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 break 2
11740 done
11741 done
11742 IFS=$as_save_IFS
11745 esac
11747 orig_target_ar=$ac_cv_path_orig_target_ar
11748 if test -n "$orig_target_ar"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11750 $as_echo "$orig_target_ar" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11759 if test "$orig_target_ar" = ""; then
11760 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11763 if test "${aros_tool_prefix}ranlib" = ""; then
11764 if test "$cross_compiling" = "yes" ; then
11765 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11766 set dummy ${target_tool_prefix}ar; ac_word=$2
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768 $as_echo_n "checking for $ac_word... " >&6; }
11769 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 case $orig_target_ranlib in
11773 [\\/]* | ?:[\\/]*)
11774 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11784 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11788 done
11789 done
11790 IFS=$as_save_IFS
11793 esac
11795 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11796 if test -n "$orig_target_ranlib"; then
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11798 $as_echo "$orig_target_ranlib" >&6; }
11799 else
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11805 else
11806 if test "$GCC" = "yes"; then
11807 aros_gcc_ar=`$CC -print-prog-name=ar`
11808 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11809 set dummy `basename $aros_gcc_ar`; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 case $orig_target_ranlib in
11816 [\\/]* | ?:[\\/]*)
11817 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in `dirname $aros_gcc_ar`
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11827 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 break 2
11831 done
11832 done
11833 IFS=$as_save_IFS
11836 esac
11838 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11839 if test -n "$orig_target_ranlib"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11841 $as_echo "$orig_target_ranlib" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11849 if test "$orig_target_ranlib" = ""; then
11850 # Extract the first word of "ar", so it can be a program name with args.
11851 set dummy ar; ac_word=$2
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853 $as_echo_n "checking for $ac_word... " >&6; }
11854 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 case $orig_target_ranlib in
11858 [\\/]* | ?:[\\/]*)
11859 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11869 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11873 done
11874 done
11875 IFS=$as_save_IFS
11878 esac
11880 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11881 if test -n "$orig_target_ranlib"; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11883 $as_echo "$orig_target_ranlib" >&6; }
11884 else
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11892 else
11893 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11894 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 case $orig_target_ranlib in
11901 [\\/]* | ?:[\\/]*)
11902 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11921 esac
11923 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11924 if test -n "$orig_target_ranlib"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11926 $as_echo "$orig_target_ranlib" >&6; }
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11935 if test "$orig_target_ranlib" = ""; then
11936 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11939 if test "${aros_tool_prefix}nm" = ""; then
11940 if test "$cross_compiling" = "yes" ; then
11941 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11942 set dummy ${target_tool_prefix}nm; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if ${ac_cv_path_orig_target_nm+:} false; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 case $orig_target_nm in
11949 [\\/]* | ?:[\\/]*)
11950 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11960 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11962 break 2
11964 done
11965 done
11966 IFS=$as_save_IFS
11969 esac
11971 orig_target_nm=$ac_cv_path_orig_target_nm
11972 if test -n "$orig_target_nm"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11974 $as_echo "$orig_target_nm" >&6; }
11975 else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11981 else
11982 if test "$GCC" = "yes"; then
11983 aros_gcc_nm=`$CC -print-prog-name=nm`
11984 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11985 set dummy `basename $aros_gcc_nm`; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_path_orig_target_nm+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 case $orig_target_nm in
11992 [\\/]* | ?:[\\/]*)
11993 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in `dirname $aros_gcc_nm`
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12007 done
12008 done
12009 IFS=$as_save_IFS
12012 esac
12014 orig_target_nm=$ac_cv_path_orig_target_nm
12015 if test -n "$orig_target_nm"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12017 $as_echo "$orig_target_nm" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12025 if test "$orig_target_nm" = ""; then
12026 # Extract the first word of "nm", so it can be a program name with args.
12027 set dummy nm; ac_word=$2
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029 $as_echo_n "checking for $ac_word... " >&6; }
12030 if ${ac_cv_path_orig_target_nm+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 case $orig_target_nm in
12034 [\\/]* | ?:[\\/]*)
12035 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039 for as_dir in $PATH
12041 IFS=$as_save_IFS
12042 test -z "$as_dir" && as_dir=.
12043 for ac_exec_ext in '' $ac_executable_extensions; do
12044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12045 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12047 break 2
12049 done
12050 done
12051 IFS=$as_save_IFS
12054 esac
12056 orig_target_nm=$ac_cv_path_orig_target_nm
12057 if test -n "$orig_target_nm"; then
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12059 $as_echo "$orig_target_nm" >&6; }
12060 else
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062 $as_echo "no" >&6; }
12068 else
12069 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12070 set dummy ${aros_tool_prefix}nm; ac_word=$2
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072 $as_echo_n "checking for $ac_word... " >&6; }
12073 if ${ac_cv_path_orig_target_nm+:} false; then :
12074 $as_echo_n "(cached) " >&6
12075 else
12076 case $orig_target_nm in
12077 [\\/]* | ?:[\\/]*)
12078 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12088 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12092 done
12093 done
12094 IFS=$as_save_IFS
12097 esac
12099 orig_target_nm=$ac_cv_path_orig_target_nm
12100 if test -n "$orig_target_nm"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12102 $as_echo "$orig_target_nm" >&6; }
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12111 if test "$orig_target_nm" = ""; then
12112 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12115 if test "${aros_tool_prefix}strip" = ""; then
12116 if test "$cross_compiling" = "yes" ; then
12117 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12118 set dummy ${target_tool_prefix}strip; ac_word=$2
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120 $as_echo_n "checking for $ac_word... " >&6; }
12121 if ${ac_cv_path_orig_target_strip+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 case $orig_target_strip in
12125 [\\/]* | ?:[\\/]*)
12126 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130 for as_dir in $PATH
12132 IFS=$as_save_IFS
12133 test -z "$as_dir" && as_dir=.
12134 for ac_exec_ext in '' $ac_executable_extensions; do
12135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12136 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138 break 2
12140 done
12141 done
12142 IFS=$as_save_IFS
12145 esac
12147 orig_target_strip=$ac_cv_path_orig_target_strip
12148 if test -n "$orig_target_strip"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12150 $as_echo "$orig_target_strip" >&6; }
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12157 else
12158 if test "$GCC" = "yes"; then
12159 aros_gcc_strip=`$CC -print-prog-name=strip`
12160 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12161 set dummy `basename $aros_gcc_strip`; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if ${ac_cv_path_orig_target_strip+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 case $orig_target_strip in
12168 [\\/]* | ?:[\\/]*)
12169 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in `dirname $aros_gcc_strip`
12175 IFS=$as_save_IFS
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12179 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 break 2
12183 done
12184 done
12185 IFS=$as_save_IFS
12188 esac
12190 orig_target_strip=$ac_cv_path_orig_target_strip
12191 if test -n "$orig_target_strip"; then
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12193 $as_echo "$orig_target_strip" >&6; }
12194 else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196 $as_echo "no" >&6; }
12201 if test "$orig_target_strip" = ""; then
12202 # Extract the first word of "strip", so it can be a program name with args.
12203 set dummy strip; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_path_orig_target_strip+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 case $orig_target_strip in
12210 [\\/]* | ?:[\\/]*)
12211 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215 for as_dir in $PATH
12217 IFS=$as_save_IFS
12218 test -z "$as_dir" && as_dir=.
12219 for ac_exec_ext in '' $ac_executable_extensions; do
12220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12221 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 break 2
12225 done
12226 done
12227 IFS=$as_save_IFS
12230 esac
12232 orig_target_strip=$ac_cv_path_orig_target_strip
12233 if test -n "$orig_target_strip"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12235 $as_echo "$orig_target_strip" >&6; }
12236 else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12244 else
12245 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12246 set dummy ${aros_tool_prefix}strip; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if ${ac_cv_path_orig_target_strip+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 case $orig_target_strip in
12253 [\\/]* | ?:[\\/]*)
12254 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in $PATH
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12264 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 break 2
12268 done
12269 done
12270 IFS=$as_save_IFS
12273 esac
12275 orig_target_strip=$ac_cv_path_orig_target_strip
12276 if test -n "$orig_target_strip"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12278 $as_echo "$orig_target_strip" >&6; }
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12287 if test "$orig_target_strip" = ""; then
12288 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12291 if test "${aros_tool_prefix}objcopy" = ""; then
12292 if test "$cross_compiling" = "yes" ; then
12293 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12294 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 case $orig_target_objcopy in
12301 [\\/]* | ?:[\\/]*)
12302 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12316 done
12317 done
12318 IFS=$as_save_IFS
12321 esac
12323 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12324 if test -n "$orig_target_objcopy"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12326 $as_echo "$orig_target_objcopy" >&6; }
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12333 else
12334 if test "$GCC" = "yes"; then
12335 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12336 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12337 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339 $as_echo_n "checking for $ac_word... " >&6; }
12340 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 case $orig_target_objcopy in
12344 [\\/]* | ?:[\\/]*)
12345 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349 for as_dir in `dirname $aros_gcc_objcopy`
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 for ac_exec_ext in '' $ac_executable_extensions; do
12354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12355 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 break 2
12359 done
12360 done
12361 IFS=$as_save_IFS
12364 esac
12366 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12367 if test -n "$orig_target_objcopy"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12369 $as_echo "$orig_target_objcopy" >&6; }
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12377 if test "$orig_target_objcopy" = ""; then
12378 # Extract the first word of "objcopy", so it can be a program name with args.
12379 set dummy objcopy; ac_word=$2
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381 $as_echo_n "checking for $ac_word... " >&6; }
12382 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 case $orig_target_objcopy in
12386 [\\/]* | ?:[\\/]*)
12387 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391 for as_dir in $PATH
12393 IFS=$as_save_IFS
12394 test -z "$as_dir" && as_dir=.
12395 for ac_exec_ext in '' $ac_executable_extensions; do
12396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12397 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 break 2
12401 done
12402 done
12403 IFS=$as_save_IFS
12406 esac
12408 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12409 if test -n "$orig_target_objcopy"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12411 $as_echo "$orig_target_objcopy" >&6; }
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12420 else
12421 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12422 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424 $as_echo_n "checking for $ac_word... " >&6; }
12425 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 case $orig_target_objcopy in
12429 [\\/]* | ?:[\\/]*)
12430 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12440 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12444 done
12445 done
12446 IFS=$as_save_IFS
12449 esac
12451 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12452 if test -n "$orig_target_objcopy"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12454 $as_echo "$orig_target_objcopy" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12463 if test "$orig_target_objcopy" = ""; then
12464 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12467 if test "${aros_tool_prefix}objdump" = ""; then
12468 if test "$cross_compiling" = "yes" ; then
12469 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12470 set dummy ${target_tool_prefix}objdump; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if ${ac_cv_path_orig_target_objdump+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 case $orig_target_objdump in
12477 [\\/]* | ?:[\\/]*)
12478 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12488 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 break 2
12492 done
12493 done
12494 IFS=$as_save_IFS
12497 esac
12499 orig_target_objdump=$ac_cv_path_orig_target_objdump
12500 if test -n "$orig_target_objdump"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12502 $as_echo "$orig_target_objdump" >&6; }
12503 else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12509 else
12510 if test "$GCC" = "yes"; then
12511 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12512 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12513 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_path_orig_target_objdump+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 case $orig_target_objdump in
12520 [\\/]* | ?:[\\/]*)
12521 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in `dirname $aros_gcc_objdump`
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12531 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 break 2
12535 done
12536 done
12537 IFS=$as_save_IFS
12540 esac
12542 orig_target_objdump=$ac_cv_path_orig_target_objdump
12543 if test -n "$orig_target_objdump"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12545 $as_echo "$orig_target_objdump" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12553 if test "$orig_target_objdump" = ""; then
12554 # Extract the first word of "objdump", so it can be a program name with args.
12555 set dummy objdump; ac_word=$2
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557 $as_echo_n "checking for $ac_word... " >&6; }
12558 if ${ac_cv_path_orig_target_objdump+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 case $orig_target_objdump in
12562 [\\/]* | ?:[\\/]*)
12563 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12573 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12577 done
12578 done
12579 IFS=$as_save_IFS
12582 esac
12584 orig_target_objdump=$ac_cv_path_orig_target_objdump
12585 if test -n "$orig_target_objdump"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12587 $as_echo "$orig_target_objdump" >&6; }
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12596 else
12597 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12598 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if ${ac_cv_path_orig_target_objdump+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 case $orig_target_objdump in
12605 [\\/]* | ?:[\\/]*)
12606 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12616 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12620 done
12621 done
12622 IFS=$as_save_IFS
12625 esac
12627 orig_target_objdump=$ac_cv_path_orig_target_objdump
12628 if test -n "$orig_target_objdump"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12630 $as_echo "$orig_target_objdump" >&6; }
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12639 if test "$orig_target_objdump" = ""; then
12640 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12644 if test "$kernel_tool_prefix" = "none" ; then
12645 # No kernel tools specified
12646 # Assume target tools == kernel tools with ELF wrapper
12647 aros_kernel_cc=$orig_target_cc
12648 aros_kernel_cxx=$orig_target_cxx
12649 aros_kernel_cpp=$orig_target_cpp
12650 aros_kernel_ld=$orig_target_ld
12651 aros_kernel_as=$orig_target_as
12652 aros_kernel_ar=$orig_target_ar
12653 aros_kernel_ranlib=$orig_target_ranlib
12654 aros_kernel_nm=$orig_target_nm
12655 aros_kernel_strip=$orig_target_strip
12656 aros_kernel_objcopy=$orig_target_objcopy
12657 aros_kernel_objdump=$orig_target_objdump
12658 use_kernel_cc_wrapper=yes
12661 # At this point, all aros_kernel_* and aros_target_*
12662 # tools should be set up correctly
12664 CC="$aros_kernel_cc $kernel_tool_flags"
12665 CPP="$aros_kernel_cpp"
12667 #-----------------------------------------------------------------------------
12669 # Disable pointer-signedness warnings if the compiler recognises the option
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12672 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12673 save_cflags="$CFLAGS"
12674 if test "$crosstools" != "yes" ; then
12675 CFLAGS="$CFLAGS -Wno-pointer-sign"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12680 main ()
12684 return 0;
12686 _ACEOF
12687 if ac_fn_c_try_compile "$LINENO"; then :
12688 use_no_sign_warning="yes"
12689 else
12690 use_no_sign_warning="no"
12692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693 else
12694 # we do know it is supported for the smallest version of gcc we are going to build
12695 # we assume it's also supported by later versions
12696 use_no_sign_warning=yes
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12699 $as_echo "$use_no_sign_warning" >&6; }
12700 if test "x-$use_no_sign_warning" = "x-yes" ; then
12701 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12703 CFLAGS="$save_cflags"
12705 #-----------------------------------------------------------------------------
12707 # Find all the tools we need to compile. This could be cross-compiling
12708 # though! If that is the case we use the GNU form of the target and
12709 # simply add this to the front of the binary name. This is rather simple,
12710 # but it should work under most circumstances.
12712 # The default tools are to use the same as the host, but only if the
12713 # host and target CPU are the same. With GCC this is normally enough.
12716 aros_cc_pre=""
12717 aros_shared_ld="$aros_host_ld"
12719 aros_target_mkdep="$aros_host_mkdep"
12721 # The default tools executables to be linked to.
12722 if test "$rescomp" != ""; then
12723 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12724 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726 $as_echo_n "checking for $ac_word... " >&6; }
12727 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 case $aros_kernel_rescomp in
12731 [\\/]* | ?:[\\/]*)
12732 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12742 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12746 done
12747 done
12748 IFS=$as_save_IFS
12751 esac
12753 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12754 if test -n "$aros_kernel_rescomp"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12756 $as_echo "$aros_kernel_rescomp" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12763 if test "$aros_kernel_rescomp" = ""; then
12764 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12768 # Set up the sources for the symlink farm
12769 if test "$crosstools" = "yes"; then
12770 crosstools_target=tools-crosstools
12773 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12774 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12777 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12778 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12779 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12780 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12781 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12782 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12783 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12785 # aros_cc_pre is a variable that is added to the front of the compiler name
12786 # in the generated aros-gcc shell script. We need this to enable the cache
12787 # to work across cleaned builds. Also, support DISTCC using the correct
12788 # environment variable.
12791 if test "x${DISTCC}" != "x" ; then
12792 if test "x${CCACHE}" != "x" ; then
12793 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12794 else
12795 aros_cc_pre="${DISTCC} "
12797 else
12798 if test "x${CCACHE}" != "x" ; then
12799 aros_cc_pre="${CCACHE} "
12803 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12805 aros_target_nostdinc_cflags=-nostdinc
12807 aros_target_nostartup_ldflags=-nostartfiles
12809 aros_target_nix_ldflags=-nix
12811 aros_target_detach_ldflags=-detach
12813 aros_target_nostdlib_ldflags=-nostdlib
12816 # Target tools
12817 if test "$crosstools" != "yes"; then
12818 if test "$GCC" = "yes"; then
12819 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12821 else
12822 # We do not know which gcc version we are going to build and what we need to know
12823 # here is different for different versions so this will be set later during the
12824 # build of crosstools.
12825 aros_target_cc_path=@aros_target_cc_path@
12827 aros_target_cpp="${prefix}cpp"
12828 aros_target_cc="${prefix}gcc"
12829 aros_target_cxx="${prefix}g++"
12830 aros_target_as="${prefix}as"
12831 aros_target_ld="${prefix}ld"
12832 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12833 aros_target_objcopy="${prefix}objcopy"
12834 aros_target_objdump="${prefix}objdump"
12835 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12836 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12837 aros_target_strip="${prefix}strip"
12838 aros_plain_nm="${prefix}nm"
12839 aros_plain_ar="${prefix}ar"
12841 # Check whether --enable-includes was given.
12842 if test "${enable_includes+set}" = set; then :
12843 enableval=$enable_includes; aros_target_incl=$enable_includes
12844 else
12845 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12849 if test "$aros_kernel_includes" = ""; then
12850 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12851 aros_kernel_includes="-isystem $aros_target_incl"
12855 if test "$aros_kernel_includes" != "" ; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12857 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12858 if test "$aros_kernel_cc_includes" = "" ; then
12859 # Try to guess where the directory is.
12860 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12861 if test -d $aros_kernel_cc_includes; then
12862 # Check if there is also an include-fixed directory and add it
12863 # to kernel compiler's include path as it may contain some of
12864 # the headers we need.
12865 if test -d "$aros_kernel_cc_includes"-fixed; then
12866 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12868 # Check for specific includes directory. Neede for Ubuntu 11.10
12869 if test -d "/usr/include/i386-linux-gnu"; then
12870 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12872 else
12873 # The directory doesn't exist, we need to do some more work.
12874 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12876 # These are the headers we're looking for.
12877 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12878 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12879 zutil.h stdint.h"
12881 dirs=
12882 for h in $headers; do
12883 # Which other headers are needed by each of the above?
12884 deps=$(echo "#include <$h>" | \
12885 $aros_kernel_cc -E -M - 2>/dev/null | \
12886 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12888 # Copy all the needed headers to a directory beneath gendir.
12889 for d in $deps; do
12890 h=$(basename $d)
12891 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12892 sed -n "s,^.*/include\(/.*\),\1,p")
12893 ! test -d $dir && mkdir -p $dir
12894 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12895 done
12896 done
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12900 $as_echo "$aros_kernel_cc_includes" >&6; }
12901 # Adding -nostdinc to kernel includes as they are always used together.
12902 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12905 if test "$crosstools" != "yes"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12907 $as_echo_n "checking for the target compiler's include path... " >&6; }
12908 if test "$aros_target_cc_includes" = "" ; then
12909 #try to guess where the directory is
12910 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12911 if ! test -d $aros_target_cc_includes; then
12912 #the directory doesn't exist, we need to do some more work
12913 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12915 #these are the headers we're looking for
12916 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12917 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12918 zutil.h"
12920 dirs=
12921 for h in $headers; do
12922 #which other headers each of the above headers needs?
12923 deps=$(echo "#include <$h>" | \
12924 $orig_target_cc -E -M - 2>/dev/null | \
12925 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12927 #copy all the needed headers to a directory beneath gendir
12928 for d in $deps; do
12929 h=$(basename $d)
12930 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12931 sed -n "s,^.*/include\(/.*\),\1,p")
12932 ! test -d $dir && mkdir -p $dir
12933 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12934 done
12935 done
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12939 $as_echo "$aros_target_cc_includes" >&6; }
12940 else
12941 # We do not know which gcc version we are going to build and what we need to know
12942 # here is different for different versions so this will be set later during the
12943 # build of crosstools.
12944 aros_target_cc_includes=@aros_target_cc_includes@
12948 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12949 # On GCC >= 4.0 -iquote should be used
12952 save_cc="$CC"
12953 save_cflags="$CFLAGS"
12954 CFLAGS="-iquote."
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12956 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12957 if test "x-$crosstools" != "x-yes"; then
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12962 main ()
12966 return 0;
12968 _ACEOF
12969 if ac_fn_c_try_compile "$LINENO"; then :
12970 has_iquote="yes"
12971 else
12972 has_iquote="no"
12974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12975 else
12976 # we do know it is supported for the smallest version of gcc we are going to build
12977 # we assume it's also supported by later versions
12978 has_iquote=yes
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12981 $as_echo "$has_iquote" >&6; }
12982 if test "x-$has_iquote" = "x-yes" ; then
12983 host_cflags_iquote=-iquote
12984 host_cflags_iquote_end=
12985 else
12986 host_cflags_iquote=-I
12987 host_cflags_iquote_end=-I-
12989 kernel_cflags_iquote=$host_cflags_iquote
12990 kernel_cflags_iquote_end=$host_cflags_iquote_end
12991 if test "x-$cross_compiling" = "x-yes"; then
12992 CC="$aros_kernel_cc"
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12994 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12995 if test "x-$crosstools" != "x-yes"; then
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
13000 main ()
13004 return 0;
13006 _ACEOF
13007 if ac_fn_c_try_compile "$LINENO"; then :
13008 use_no_stack_protector="yes"
13009 else
13010 use_no_stack_protector="no"
13012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013 else
13014 # we do know it is supported for the smallest version of gcc we are going to build
13015 # we assume it's also supported by later versions
13016 use_no_stack_protector=yes
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13019 $as_echo "$use_no_stack_protector" >&6; }
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13021 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13022 if test "x-$crosstools" != "x-yes"; then
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13027 main ()
13031 return 0;
13033 _ACEOF
13034 if ac_fn_c_try_compile "$LINENO"; then :
13035 has_iquote="yes"
13036 else
13037 has_iquote="no"
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13040 else
13041 # we do know it is supported for the smallest version of gcc we are going to build
13042 # we assume it's also supported by later versions
13043 has_iquote=yes
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13046 $as_echo "$has_iquote" >&6; }
13047 if test "x-$has_iquote" = "x-yes" ; then
13048 kernel_cflags_iquote=-iquote
13049 kernel_cflags_iquote_end=
13050 else
13051 kernel_cflags_iquote=-I
13052 kernel_cflags_iquote_end=-I-
13055 aros_cflags_iquote=$kernel_cflags_iquote
13056 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13057 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13058 CC="$orig_target_cc"
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13060 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13061 if test "x-$crosstools" != "x-yes"; then
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13066 main ()
13070 return 0;
13072 _ACEOF
13073 if ac_fn_c_try_compile "$LINENO"; then :
13074 has_iquote="yes"
13075 else
13076 has_iquote="no"
13078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079 else
13080 # we do know it is supported for the smallest version of gcc we are going to build
13081 # we assume it's also supported by later versions
13082 has_iquote=yes
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13085 $as_echo "$has_iquote" >&6; }
13086 if test "x-$has_iquote" = "x-yes" ; then
13087 aros_cflags_iquote=-iquote
13088 aros_cflags_iquote_end=
13089 else
13090 aros_cflags_iquote=-I
13091 aros_cflags_iquote_end=-I-
13094 if test "x-$use_no_stack_protector" = "x-yes" ; then
13095 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13099 #-----------------------------------------------------------------------------
13101 # Check if the target compiler supports some options used for delinting:
13102 # -Wunused-but-set-variable
13103 # -Warray-bounds
13104 # -Wenum-compare
13105 # -Wstrict-overflow
13106 # -Wformat-security
13108 if test "x-$crosstools" != "x-yes"; then
13109 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13110 CC="$orig_target_cc"
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13113 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13114 CFLAGS=-Wunused-but-set-variable
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13119 main ()
13123 return 0;
13125 _ACEOF
13126 if ac_fn_c_try_compile "$LINENO"; then :
13127 aros_unused_but_set_variable="yes"
13128 else
13129 aros_unused_but_set_variable="no"
13131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13133 $as_echo "$aros_unused_but_set_variable" >&6; }
13134 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13135 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13139 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13140 CFLAGS=-Warray-bounds
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13145 main ()
13149 return 0;
13151 _ACEOF
13152 if ac_fn_c_try_compile "$LINENO"; then :
13153 aros_array_bounds="yes"
13154 else
13155 aros_array_bounds="no"
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13159 $as_echo "$aros_array_bounds" >&6; }
13160 if test "x-$aros_array_bounds" = "x-yes" ; then
13161 aros_cflags_array_bounds=-Wno-array-bounds
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13165 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13166 CFLAGS=-Wenum-compare
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13171 main ()
13175 return 0;
13177 _ACEOF
13178 if ac_fn_c_try_compile "$LINENO"; then :
13179 aros_enum_compare="yes"
13180 else
13181 aros_enum_compare="no"
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13185 $as_echo "$aros_enum_compare" >&6; }
13186 if test "x-$aros_enum_compare" = "x-yes" ; then
13187 aros_cflags_enum_compare=-Wno-enum-compare
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13191 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13192 CFLAGS=-Wstrict-overflow
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13197 main ()
13201 return 0;
13203 _ACEOF
13204 if ac_fn_c_try_compile "$LINENO"; then :
13205 aros_strict_overflow="yes"
13206 else
13207 aros_strict_overflow="no"
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13211 $as_echo "$aros_strict_overflow" >&6; }
13212 if test "x-$aros_strict_overflow" = "x-yes" ; then
13213 aros_cflags_strict_overflow=-Wno-strict-overflow
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13217 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13218 CFLAGS=-Wformat-security
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13223 main ()
13227 return 0;
13229 _ACEOF
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231 aros_format_security="yes"
13232 else
13233 aros_format_security="no"
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13237 $as_echo "$aros_format_security" >&6; }
13238 if test "x-$aros_format_security" = "x-yes" ; then
13239 aros_cflags_format_security=-Wno-format-security
13241 else
13242 # We do not know which gcc version we are going to build and what we need to know
13243 # here is different for different versions so this will be set later during the
13244 # build of crosstools.
13245 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13246 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13247 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13248 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13249 aros_cflags_format_security=@aros_cflags_format_security@
13252 #-----------------------------------------------------------------------------
13254 # Check if we can explicitly choose older version of symbol hashing
13256 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13257 CC="$aros_kernel_cc"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13259 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13264 main ()
13268 return 0;
13270 _ACEOF
13271 if ac_fn_c_try_link "$LINENO"; then :
13272 use_hash_style="yes"
13273 else
13274 use_hash_style="no"
13276 rm -f core conftest.err conftest.$ac_objext \
13277 conftest$ac_exeext conftest.$ac_ext
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13279 $as_echo "$use_hash_style" >&6; }
13280 if test "x-$use_hash_style" = "x-yes" ; then
13281 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13283 CC="$save_cc"
13284 CFLAGS="$save_cflags"
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13295 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13297 # Check whether --with-resolution was given.
13298 if test "${with_resolution+set}" = set; then :
13299 withval=$with_resolution; resolution=$withval
13300 else
13301 resolution=none
13304 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13305 if test "$resolution" = "yes" ; then
13306 resolution="none"
13308 if test "$resolution" = "no" ; then
13309 resolution="none"
13311 if test "$resolution" != "none" ; then
13312 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13313 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13314 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13317 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13318 aros_cv_default_wbwidth=$aros_default_wbwidth
13319 aros_cv_default_wbheight=$aros_default_wbheight
13320 aros_cv_default_wbdepth=$aros_default_wbdepth
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13323 $as_echo_n "checking if serial debug is enabled... " >&6; }
13325 # Check whether --with-serial-debug was given.
13326 if test "${with_serial_debug+set}" = set; then :
13327 withval=$with_serial_debug; serial_debug=$withval
13328 else
13329 serial_debug=none
13332 if test "$aros_serial_debug" = 0 ; then
13333 serial_debug_forced=""
13334 if test "$serial_debug" = "yes" ; then
13335 serial_debug="1"
13337 if test "$serial_debug" = "no" ; then
13338 serial_debug="none"
13340 else
13341 serial_debug_forced="(forced)"
13342 serial_debug=$aros_serial_debug
13344 if test "$serial_debug" != "none" ; then
13345 aros_serial_debug=$serial_debug
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13347 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13348 else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13354 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13355 # Check whether --enable-palm_debug_hack was given.
13356 if test "${enable_palm_debug_hack+set}" = set; then :
13357 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13358 else
13359 palm_debug_hack="no"
13362 if test "$palm_debug_hack" = "yes" ; then
13363 aros_palm_debug_hack="1"
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13366 $as_echo "$palm_debug_hack" >&6; }
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13369 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13370 # Check whether --enable-nesting_supervisor was given.
13371 if test "${enable_nesting_supervisor+set}" = set; then :
13372 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13373 else
13374 nesting_supervisor="no"
13377 if test "$nesting_supervisor" = "yes" ; then
13378 aros_nesting_supervisor="1"
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13381 $as_echo "$nesting_supervisor" >&6; }
13383 if test "$aros_enable_mmu" = "" ; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13385 $as_echo_n "checking if MMU support is enabled... " >&6; }
13386 # Check whether --enable-mmu was given.
13387 if test "${enable_mmu+set}" = set; then :
13388 enableval=$enable_mmu; aros_enable_mmu=$enableval
13389 else
13390 aros_enable_mmu="yes"
13393 if test "$aros_enable_mmu" = "" ; then
13394 aros_enable_mmu="yes"
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13397 $as_echo "$aros_enable_mmu" >&6; }
13399 if test "$aros_enable_mmu" = "no" ; then
13400 aros_enable_mmu="0"
13401 else
13402 aros_enable_mmu="1"
13406 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13408 if test "x-$need_dlopen" != "x-no" ; then
13409 save_libs="$LIBS"
13410 LIBS=""
13411 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13412 if test "x$ac_cv_func_dlopen" = xyes; then :
13413 have_dl="yes"
13414 else
13415 have_dl="no"
13418 if test "x-$have_dl" = "x-no" ; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13420 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13421 if ${ac_cv_lib_dl_dlopen+:} false; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-ldl $LIBS"
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13429 /* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 char dlopen ();
13437 main ()
13439 return dlopen ();
13441 return 0;
13443 _ACEOF
13444 if ac_fn_c_try_link "$LINENO"; then :
13445 ac_cv_lib_dl_dlopen=yes
13446 else
13447 ac_cv_lib_dl_dlopen=no
13449 rm -f core conftest.err conftest.$ac_objext \
13450 conftest$ac_exeext conftest.$ac_ext
13451 LIBS=$ac_check_lib_save_LIBS
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13454 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13455 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13456 have_dl="yes"
13457 aros_host_ldflags="$aros_host_ldflags -ldl"
13458 else
13459 have_dl="no"
13463 if test "x-$have_dl" = "x-no" ; then
13464 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13466 LIBS="$save_libs"
13470 # Check whether --enable-x11_hidd was given.
13471 if test "${enable_x11_hidd+set}" = set; then :
13472 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13473 else
13474 x11_hidd="$need_x11"
13477 case "x-$x11_hidd" in
13478 x-yes|x-no|x-auto) ;;
13479 *) x11_hidd="$need_x11" ;;
13480 esac
13482 ENABLE_X11=0
13484 if test "x-$x11_hidd" != "x-no" ; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13487 $as_echo_n "checking for X... " >&6; }
13490 # Check whether --with-x was given.
13491 if test "${with_x+set}" = set; then :
13492 withval=$with_x;
13495 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13496 if test "x$with_x" = xno; then
13497 # The user explicitly disabled X.
13498 have_x=disabled
13499 else
13500 case $x_includes,$x_libraries in #(
13501 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13502 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 # One or both of the vars are not set, and there is no cached value.
13506 ac_x_includes=no ac_x_libraries=no
13507 rm -f -r conftest.dir
13508 if mkdir conftest.dir; then
13509 cd conftest.dir
13510 cat >Imakefile <<'_ACEOF'
13511 incroot:
13512 @echo incroot='${INCROOT}'
13513 usrlibdir:
13514 @echo usrlibdir='${USRLIBDIR}'
13515 libdir:
13516 @echo libdir='${LIBDIR}'
13517 _ACEOF
13518 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13520 for ac_var in incroot usrlibdir libdir; do
13521 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13522 done
13523 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13524 for ac_extension in a so sl dylib la dll; do
13525 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13526 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13527 ac_im_usrlibdir=$ac_im_libdir; break
13529 done
13530 # Screen out bogus values from the imake configuration. They are
13531 # bogus both because they are the default anyway, and because
13532 # using them would break gcc on systems where it needs fixed includes.
13533 case $ac_im_incroot in
13534 /usr/include) ac_x_includes= ;;
13535 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13536 esac
13537 case $ac_im_usrlibdir in
13538 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13539 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13540 esac
13542 cd ..
13543 rm -f -r conftest.dir
13546 # Standard set of common directories for X headers.
13547 # Check X11 before X11Rn because it is often a symlink to the current release.
13548 ac_x_header_dirs='
13549 /usr/X11/include
13550 /usr/X11R7/include
13551 /usr/X11R6/include
13552 /usr/X11R5/include
13553 /usr/X11R4/include
13555 /usr/include/X11
13556 /usr/include/X11R7
13557 /usr/include/X11R6
13558 /usr/include/X11R5
13559 /usr/include/X11R4
13561 /usr/local/X11/include
13562 /usr/local/X11R7/include
13563 /usr/local/X11R6/include
13564 /usr/local/X11R5/include
13565 /usr/local/X11R4/include
13567 /usr/local/include/X11
13568 /usr/local/include/X11R7
13569 /usr/local/include/X11R6
13570 /usr/local/include/X11R5
13571 /usr/local/include/X11R4
13573 /usr/X386/include
13574 /usr/x386/include
13575 /usr/XFree86/include/X11
13577 /usr/include
13578 /usr/local/include
13579 /usr/unsupported/include
13580 /usr/athena/include
13581 /usr/local/x11r5/include
13582 /usr/lpp/Xamples/include
13584 /usr/openwin/include
13585 /usr/openwin/share/include'
13587 if test "$ac_x_includes" = no; then
13588 # Guess where to find include files, by looking for Xlib.h.
13589 # First, try using that file with no special directory specified.
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592 #include <X11/Xlib.h>
13593 _ACEOF
13594 if ac_fn_c_try_cpp "$LINENO"; then :
13595 # We can compile using X headers with no special include directory.
13596 ac_x_includes=
13597 else
13598 for ac_dir in $ac_x_header_dirs; do
13599 if test -r "$ac_dir/X11/Xlib.h"; then
13600 ac_x_includes=$ac_dir
13601 break
13603 done
13605 rm -f conftest.err conftest.i conftest.$ac_ext
13606 fi # $ac_x_includes = no
13608 if test "$ac_x_libraries" = no; then
13609 # Check for the libraries.
13610 # See if we find them without any special options.
13611 # Don't add to $LIBS permanently.
13612 ac_save_LIBS=$LIBS
13613 LIBS="-lX11 $LIBS"
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616 #include <X11/Xlib.h>
13618 main ()
13620 XrmInitialize ()
13622 return 0;
13624 _ACEOF
13625 if ac_fn_c_try_link "$LINENO"; then :
13626 LIBS=$ac_save_LIBS
13627 # We can link X programs with no special library path.
13628 ac_x_libraries=
13629 else
13630 LIBS=$ac_save_LIBS
13631 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13633 # Don't even attempt the hair of trying to link an X program!
13634 for ac_extension in a so sl dylib la dll; do
13635 if test -r "$ac_dir/libX11.$ac_extension"; then
13636 ac_x_libraries=$ac_dir
13637 break 2
13639 done
13640 done
13642 rm -f core conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 fi # $ac_x_libraries = no
13646 case $ac_x_includes,$ac_x_libraries in #(
13647 no,* | *,no | *\'*)
13648 # Didn't find X, or a directory has "'" in its name.
13649 ac_cv_have_x="have_x=no";; #(
13651 # Record where we found X for the cache.
13652 ac_cv_have_x="have_x=yes\
13653 ac_x_includes='$ac_x_includes'\
13654 ac_x_libraries='$ac_x_libraries'"
13655 esac
13657 ;; #(
13658 *) have_x=yes;;
13659 esac
13660 eval "$ac_cv_have_x"
13661 fi # $with_x != no
13663 if test "$have_x" != yes; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13665 $as_echo "$have_x" >&6; }
13666 no_x=yes
13667 else
13668 # If each of the values was on the command line, it overrides each guess.
13669 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13670 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13671 # Update the cache value to reflect the command line values.
13672 ac_cv_have_x="have_x=yes\
13673 ac_x_includes='$x_includes'\
13674 ac_x_libraries='$x_libraries'"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13676 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13680 x_cflags=
13681 for path in $x_libraries
13683 x_cflags="$x_cflags -L$path"
13684 done
13686 for path in $x_includes
13688 x_cflags="$x_cflags -I$path"
13689 done
13691 if test "x-$no_x" = "x-yes" ; then
13693 if test "x-$x11_hidd" != "x-auto" ; then
13694 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13697 else
13698 x11_hidd_target=kernel-x11gfx-kobj
13699 ENABLE_X11=1
13701 # Check whether --enable-x11_shm was given.
13702 if test "${enable_x11_shm+set}" = set; then :
13703 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13704 else
13705 x11_hidd_shm="auto"
13708 case "x-$x11_hidd_shm" in
13709 x-yes|x-no|x-auto) ;;
13710 *) x11_hidd_shm="auto" ;;
13711 esac
13713 have_xshm=no
13715 if test "x-$x11_hidd_shm" != "x-no" ; then
13717 for ac_header in sys/ipc.h
13718 do :
13719 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13720 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13721 cat >>confdefs.h <<_ACEOF
13722 #define HAVE_SYS_IPC_H 1
13723 _ACEOF
13727 done
13729 for ac_header in sys/shm.h
13730 do :
13731 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13732 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13733 cat >>confdefs.h <<_ACEOF
13734 #define HAVE_SYS_SHM_H 1
13735 _ACEOF
13739 done
13742 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13744 save_cflags="$CFLAGS"
13745 CFLAGS="$CFLAGS $x_cflags"
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13747 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13748 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 ac_check_lib_save_LIBS=$LIBS
13752 LIBS="-lXext $LIBS"
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13756 /* Override any GCC internal prototype to avoid an error.
13757 Use char because int might match the return type of a GCC
13758 builtin and then its argument prototype would still apply. */
13759 #ifdef __cplusplus
13760 extern "C"
13761 #endif
13762 char XShmQueryExtension ();
13764 main ()
13766 return XShmQueryExtension ();
13768 return 0;
13770 _ACEOF
13771 if ac_fn_c_try_link "$LINENO"; then :
13772 ac_cv_lib_Xext_XShmQueryExtension=yes
13773 else
13774 ac_cv_lib_Xext_XShmQueryExtension=no
13776 rm -f core conftest.err conftest.$ac_objext \
13777 conftest$ac_exeext conftest.$ac_ext
13778 LIBS=$ac_check_lib_save_LIBS
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13781 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13782 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13783 have_xshm=yes
13786 CFLAGS="$save_cflags"
13790 if test "x-$have_xshm" = "x-yes" ; then
13791 DO_XSHM_SUPPORT="1"
13792 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13793 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13794 else
13795 DO_XSHM_SUPPORT="0"
13799 # Check whether --enable-x11_vidmode was given.
13800 if test "${enable_x11_vidmode+set}" = set; then :
13801 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13802 else
13803 x11_hidd_vidmode="auto"
13806 case "x-$x11_hidd_vidmode" in
13807 x-yes|x-no|x-auto) ;;
13808 *) x11_hidd_vidmode="auto" ;;
13809 esac
13811 have_vidmode=no
13813 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13815 save_cflags="$CFLAGS"
13816 CFLAGS="$CFLAGS $x_cflags"
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13818 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13819 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821 else
13822 ac_check_lib_save_LIBS=$LIBS
13823 LIBS="-lXxf86vm $LIBS"
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13827 /* Override any GCC internal prototype to avoid an error.
13828 Use char because int might match the return type of a GCC
13829 builtin and then its argument prototype would still apply. */
13830 #ifdef __cplusplus
13831 extern "C"
13832 #endif
13833 char XF86VidModeQueryExtension ();
13835 main ()
13837 return XF86VidModeQueryExtension ();
13839 return 0;
13841 _ACEOF
13842 if ac_fn_c_try_link "$LINENO"; then :
13843 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13844 else
13845 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13847 rm -f core conftest.err conftest.$ac_objext \
13848 conftest$ac_exeext conftest.$ac_ext
13849 LIBS=$ac_check_lib_save_LIBS
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13852 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13853 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13854 have_vidmode=yes
13857 CFLAGS="$save_cflags"
13860 if test "x-$have_vidmode" = "x-yes" ; then
13861 DO_VIDMODE_SUPPORT="1"
13862 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13863 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13864 else
13865 DO_VIDMODE_SUPPORT="0"
13869 aros_host_x11_includes=$x_includes
13870 aros_host_x11_libdirs=$x_libraries
13874 # Check whether --enable-sdl_hidd was given.
13875 if test "${enable_sdl_hidd+set}" = set; then :
13876 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13877 else
13878 sdl_hidd="auto"
13881 case "x-$sdl_hidd" in
13882 x-yes|x-no|x-auto) ;;
13883 *) sdl_hidd="auto" ;;
13884 esac
13886 if test "x-$sdl_hidd" != "x-no" ; then
13889 # Check whether --with-sdl-prefix was given.
13890 if test "${with_sdl_prefix+set}" = set; then :
13891 withval=$with_sdl_prefix; sdl_prefix="$withval"
13892 else
13893 sdl_prefix=""
13897 # Check whether --with-sdl-exec-prefix was given.
13898 if test "${with_sdl_exec_prefix+set}" = set; then :
13899 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13900 else
13901 sdl_exec_prefix=""
13904 # Check whether --enable-sdltest was given.
13905 if test "${enable_sdltest+set}" = set; then :
13906 enableval=$enable_sdltest;
13907 else
13908 enable_sdltest=yes
13912 if test x$sdl_exec_prefix != x ; then
13913 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13914 if test x${SDL_CONFIG+set} != xset ; then
13915 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13918 if test x$sdl_prefix != x ; then
13919 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13920 if test x${SDL_CONFIG+set} != xset ; then
13921 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13925 as_save_PATH="$PATH"
13926 if test "x$prefix" != xNONE; then
13927 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13929 # Extract the first word of "sdl-config", so it can be a program name with args.
13930 set dummy sdl-config; ac_word=$2
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932 $as_echo_n "checking for $ac_word... " >&6; }
13933 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 case $SDL_CONFIG in
13937 [\\/]* | ?:[\\/]*)
13938 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13948 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 break 2
13952 done
13953 done
13954 IFS=$as_save_IFS
13956 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13958 esac
13960 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13961 if test -n "$SDL_CONFIG"; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13963 $as_echo "$SDL_CONFIG" >&6; }
13964 else
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13970 PATH="$as_save_PATH"
13971 min_sdl_version=1.2.10
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13973 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13974 no_sdl=""
13975 if test "$SDL_CONFIG" = "no" ; then
13976 no_sdl=yes
13977 else
13978 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13979 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13981 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13983 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13985 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13986 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13987 if test "x$enable_sdltest" = "xyes" ; then
13988 ac_save_CFLAGS="$CFLAGS"
13989 ac_save_CXXFLAGS="$CXXFLAGS"
13990 ac_save_LIBS="$LIBS"
13991 CFLAGS="$CFLAGS $SDL_CFLAGS"
13992 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13993 LIBS="$LIBS $SDL_LIBS"
13994 rm -f conf.sdltest
13995 if test "$cross_compiling" = yes; then :
13996 echo $ac_n "cross compiling; assumed OK... $ac_c"
13997 else
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14001 #include <stdio.h>
14002 #include <stdlib.h>
14003 #include <string.h>
14004 #include "SDL.h"
14006 char*
14007 my_strdup (char *str)
14009 char *new_str;
14011 if (str)
14013 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14014 strcpy (new_str, str);
14016 else
14017 new_str = NULL;
14019 return new_str;
14022 int main (int argc, char *argv[])
14024 int major, minor, micro;
14025 char *tmp_version;
14027 /* This hangs on some systems (?)
14028 system ("touch conf.sdltest");
14030 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14032 /* HP/UX 9 (%@#!) writes to sscanf strings */
14033 tmp_version = my_strdup("$min_sdl_version");
14034 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14035 printf("%s, bad version string\n", "$min_sdl_version");
14036 exit(1);
14039 if (($sdl_major_version > major) ||
14040 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14041 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14043 return 0;
14045 else
14047 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14048 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14049 printf("*** best to upgrade to the required version.\n");
14050 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14051 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14052 printf("*** config.cache before re-running configure\n");
14053 return 1;
14058 _ACEOF
14059 if ac_fn_c_try_run "$LINENO"; then :
14061 else
14062 no_sdl=yes
14064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14065 conftest.$ac_objext conftest.beam conftest.$ac_ext
14068 CFLAGS="$ac_save_CFLAGS"
14069 CXXFLAGS="$ac_save_CXXFLAGS"
14070 LIBS="$ac_save_LIBS"
14073 if test "x$no_sdl" = x ; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075 $as_echo "yes" >&6; }
14076 have_sdl="yes"
14077 else
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14080 if test "$SDL_CONFIG" = "no" ; then
14081 echo "*** The sdl-config script installed by SDL could not be found"
14082 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14083 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14084 echo "*** full path to sdl-config."
14085 else
14086 if test -f conf.sdltest ; then
14088 else
14089 echo "*** Could not run SDL test program, checking why..."
14090 CFLAGS="$CFLAGS $SDL_CFLAGS"
14091 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14092 LIBS="$LIBS $SDL_LIBS"
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14096 #include <stdio.h>
14097 #include "SDL.h"
14099 int main(int argc, char *argv[])
14100 { return 0; }
14101 #undef main
14102 #define main K_and_R_C_main
14105 main ()
14107 return 0;
14109 return 0;
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113 echo "*** The test program compiled, but did not run. This usually means"
14114 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14115 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14116 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14117 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14118 echo "*** is required on your system"
14119 echo "***"
14120 echo "*** If you have an old version installed, it is best to remove it, although"
14121 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14122 else
14123 echo "*** The test program failed to compile or link. See the file config.log for the"
14124 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14125 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14126 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14128 rm -f core conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14130 CFLAGS="$ac_save_CFLAGS"
14131 CXXFLAGS="$ac_save_CXXFLAGS"
14132 LIBS="$ac_save_LIBS"
14135 SDL_CFLAGS=""
14136 SDL_LIBS=""
14137 have_sdl="no"
14141 rm -f conf.sdltest
14144 if test "x-$have_sdl" != "x-yes" ; then
14146 if test "x-$sdl_hidd" != "x-auto" ; then
14147 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14150 else
14151 sdl_hidd_target=kernel-hidd-sdl
14152 aros_host_sdl_cflags=SDL_CFLAGS
14153 aros_host_sdl_libs=SDL_LIBS
14157 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14158 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14163 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14164 oss_library_target=workbench-libs-oss-unix
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14170 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14171 # Check whether --enable-dbus was given.
14172 if test "${enable_dbus+set}" = set; then :
14173 enableval=$enable_dbus; dbus="yes"
14174 else
14175 dbus="no"
14178 if test "$dbus" = "yes" ; then
14179 ENABLE_DBUS=1
14180 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14181 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14182 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14183 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14184 else
14185 ENABLE_DBUS=0
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14188 $as_echo "$dbus" >&6; }
14190 if test "$use_kernel_cc_wrapper" = "yes" ; then
14191 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14194 if test "${crosstools}" != "yes" ; then
14195 aros_target_toolchain=no
14196 else
14197 aros_target_toolchain=yes
14201 # Generic
14213 # Compatability with other Amiga-like operation systems
14216 # Host related
14244 # Target Related
14308 # Delinting target compiler flags
14315 # Graphics Related
14332 # Native version related
14335 # Palm native version related
14338 # Unix/Hosted version related
14341 # MMU related
14344 # Apple iOS related
14349 # ARM default GCC target related
14354 # Android related
14358 # DBUS related
14365 #X11 related
14368 # Debug related
14374 # Collect-aros stuff: "-ius" to ignore undefined symbols
14377 # C compiler related
14380 case "$aros_flavour" in
14381 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14382 aros_flavour="emulation" ;;
14383 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14384 aros_flavour="emulation" ;;
14385 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14386 aros_flavour="standalone";;
14387 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14388 aros_flavour="standalone";;
14389 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14390 aros_flavour="native" ;;
14391 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14392 aros_flavour="native" ;;
14393 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14394 aros_flavour="linklib" ;;
14395 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14396 aros_flavour="palmnative" ;;
14397 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14398 aros_flavour="mac68knative" ;;
14399 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14400 aros_flavour="ppcnative" ;;
14401 esac
14403 if test ! -d ${aros_inc_dir} ; then
14404 ${MKDIR} ${aros_inc_dir}
14406 if test ! -d ${aros_geninc_dir} ; then
14407 ${MKDIR} ${aros_geninc_dir}
14409 if test ! -d ${aros_hostcfg_dir} ; then
14410 ${MKDIR} ${aros_hostcfg_dir}
14412 if test ! -d ${aros_targetcfg_dir} ; then
14413 ${MKDIR} ${aros_targetcfg_dir}
14415 if test ! -d ${aros_tools_dir} ; then
14416 ${MKDIR} ${aros_tools_dir}
14418 if test ! -d ${aros_scripts_dir} ; then
14419 ${MKDIR} ${aros_scripts_dir}
14422 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14425 ac_config_commands="$ac_config_commands compiler_executable"
14427 ac_config_commands="$ac_config_commands genmf_executable"
14430 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"
14433 cat >confcache <<\_ACEOF
14434 # This file is a shell script that caches the results of configure
14435 # tests run on this system so they can be shared between configure
14436 # scripts and configure runs, see configure's option --config-cache.
14437 # It is not useful on other systems. If it contains results you don't
14438 # want to keep, you may remove or edit it.
14440 # config.status only pays attention to the cache file if you give it
14441 # the --recheck option to rerun configure.
14443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14445 # following values.
14447 _ACEOF
14449 # The following way of writing the cache mishandles newlines in values,
14450 # but we know of no workaround that is simple, portable, and efficient.
14451 # So, we kill variables containing newlines.
14452 # Ultrix sh set writes to stderr and can't be redirected directly,
14453 # and sets the high bit in the cache file unless we assign to the vars.
14455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14456 eval ac_val=\$$ac_var
14457 case $ac_val in #(
14458 *${as_nl}*)
14459 case $ac_var in #(
14460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14462 esac
14463 case $ac_var in #(
14464 _ | IFS | as_nl) ;; #(
14465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14466 *) { eval $ac_var=; unset $ac_var;} ;;
14467 esac ;;
14468 esac
14469 done
14471 (set) 2>&1 |
14472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14473 *${as_nl}ac_space=\ *)
14474 # `set' does not quote correctly, so add quotes: double-quote
14475 # substitution turns \\\\ into \\, and sed turns \\ into \.
14476 sed -n \
14477 "s/'/'\\\\''/g;
14478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14479 ;; #(
14481 # `set' quotes correctly as required by POSIX, so do not add quotes.
14482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14484 esac |
14485 sort
14487 sed '
14488 /^ac_cv_env_/b end
14489 t clear
14490 :clear
14491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14492 t end
14493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14494 :end' >>confcache
14495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14496 if test -w "$cache_file"; then
14497 if test "x$cache_file" != "x/dev/null"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14499 $as_echo "$as_me: updating cache $cache_file" >&6;}
14500 if test ! -f "$cache_file" || test -h "$cache_file"; then
14501 cat confcache >"$cache_file"
14502 else
14503 case $cache_file in #(
14504 */* | ?:*)
14505 mv -f confcache "$cache_file"$$ &&
14506 mv -f "$cache_file"$$ "$cache_file" ;; #(
14508 mv -f confcache "$cache_file" ;;
14509 esac
14512 else
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14517 rm -f confcache
14519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14520 # Let make expand exec_prefix.
14521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14523 DEFS=-DHAVE_CONFIG_H
14525 ac_libobjs=
14526 ac_ltlibobjs=
14528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14529 # 1. Remove the extension, and $U if already installed.
14530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14533 # will be set to the directory where LIBOBJS objects are built.
14534 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14535 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14536 done
14537 LIBOBJS=$ac_libobjs
14539 LTLIBOBJS=$ac_ltlibobjs
14543 : "${CONFIG_STATUS=./config.status}"
14544 ac_write_fail=0
14545 ac_clean_files_save=$ac_clean_files
14546 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14548 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14549 as_write_fail=0
14550 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14551 #! $SHELL
14552 # Generated by $as_me.
14553 # Run this file to recreate the current configuration.
14554 # Compiler output produced by configure, useful for debugging
14555 # configure, is in config.log if it exists.
14557 debug=false
14558 ac_cs_recheck=false
14559 ac_cs_silent=false
14561 SHELL=\${CONFIG_SHELL-$SHELL}
14562 export SHELL
14563 _ASEOF
14564 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14565 ## -------------------- ##
14566 ## M4sh Initialization. ##
14567 ## -------------------- ##
14569 # Be more Bourne compatible
14570 DUALCASE=1; export DUALCASE # for MKS sh
14571 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14572 emulate sh
14573 NULLCMD=:
14574 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14575 # is contrary to our usage. Disable this feature.
14576 alias -g '${1+"$@"}'='"$@"'
14577 setopt NO_GLOB_SUBST
14578 else
14579 case `(set -o) 2>/dev/null` in #(
14580 *posix*) :
14581 set -o posix ;; #(
14582 *) :
14584 esac
14588 as_nl='
14590 export as_nl
14591 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14592 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14593 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14595 # Prefer a ksh shell builtin over an external printf program on Solaris,
14596 # but without wasting forks for bash or zsh.
14597 if test -z "$BASH_VERSION$ZSH_VERSION" \
14598 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14599 as_echo='print -r --'
14600 as_echo_n='print -rn --'
14601 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14602 as_echo='printf %s\n'
14603 as_echo_n='printf %s'
14604 else
14605 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14606 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14607 as_echo_n='/usr/ucb/echo -n'
14608 else
14609 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14610 as_echo_n_body='eval
14611 arg=$1;
14612 case $arg in #(
14613 *"$as_nl"*)
14614 expr "X$arg" : "X\\(.*\\)$as_nl";
14615 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14616 esac;
14617 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14619 export as_echo_n_body
14620 as_echo_n='sh -c $as_echo_n_body as_echo'
14622 export as_echo_body
14623 as_echo='sh -c $as_echo_body as_echo'
14626 # The user is always right.
14627 if test "${PATH_SEPARATOR+set}" != set; then
14628 PATH_SEPARATOR=:
14629 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14630 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14631 PATH_SEPARATOR=';'
14636 # IFS
14637 # We need space, tab and new line, in precisely that order. Quoting is
14638 # there to prevent editors from complaining about space-tab.
14639 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14640 # splitting by setting IFS to empty value.)
14641 IFS=" "" $as_nl"
14643 # Find who we are. Look in the path if we contain no directory separator.
14644 as_myself=
14645 case $0 in #((
14646 *[\\/]* ) as_myself=$0 ;;
14647 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14648 for as_dir in $PATH
14650 IFS=$as_save_IFS
14651 test -z "$as_dir" && as_dir=.
14652 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14653 done
14654 IFS=$as_save_IFS
14657 esac
14658 # We did not find ourselves, most probably we were run as `sh COMMAND'
14659 # in which case we are not to be found in the path.
14660 if test "x$as_myself" = x; then
14661 as_myself=$0
14663 if test ! -f "$as_myself"; then
14664 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14665 exit 1
14668 # Unset variables that we do not need and which cause bugs (e.g. in
14669 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14670 # suppresses any "Segmentation fault" message there. '((' could
14671 # trigger a bug in pdksh 5.2.14.
14672 for as_var in BASH_ENV ENV MAIL MAILPATH
14673 do eval test x\${$as_var+set} = xset \
14674 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14675 done
14676 PS1='$ '
14677 PS2='> '
14678 PS4='+ '
14680 # NLS nuisances.
14681 LC_ALL=C
14682 export LC_ALL
14683 LANGUAGE=C
14684 export LANGUAGE
14686 # CDPATH.
14687 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14690 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14691 # ----------------------------------------
14692 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14693 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14694 # script with STATUS, using 1 if that was 0.
14695 as_fn_error ()
14697 as_status=$1; test $as_status -eq 0 && as_status=1
14698 if test "$4"; then
14699 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14700 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14702 $as_echo "$as_me: error: $2" >&2
14703 as_fn_exit $as_status
14704 } # as_fn_error
14707 # as_fn_set_status STATUS
14708 # -----------------------
14709 # Set $? to STATUS, without forking.
14710 as_fn_set_status ()
14712 return $1
14713 } # as_fn_set_status
14715 # as_fn_exit STATUS
14716 # -----------------
14717 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14718 as_fn_exit ()
14720 set +e
14721 as_fn_set_status $1
14722 exit $1
14723 } # as_fn_exit
14725 # as_fn_unset VAR
14726 # ---------------
14727 # Portably unset VAR.
14728 as_fn_unset ()
14730 { eval $1=; unset $1;}
14732 as_unset=as_fn_unset
14733 # as_fn_append VAR VALUE
14734 # ----------------------
14735 # Append the text in VALUE to the end of the definition contained in VAR. Take
14736 # advantage of any shell optimizations that allow amortized linear growth over
14737 # repeated appends, instead of the typical quadratic growth present in naive
14738 # implementations.
14739 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14740 eval 'as_fn_append ()
14742 eval $1+=\$2
14744 else
14745 as_fn_append ()
14747 eval $1=\$$1\$2
14749 fi # as_fn_append
14751 # as_fn_arith ARG...
14752 # ------------------
14753 # Perform arithmetic evaluation on the ARGs, and store the result in the
14754 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14755 # must be portable across $(()) and expr.
14756 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14757 eval 'as_fn_arith ()
14759 as_val=$(( $* ))
14761 else
14762 as_fn_arith ()
14764 as_val=`expr "$@" || test $? -eq 1`
14766 fi # as_fn_arith
14769 if expr a : '\(a\)' >/dev/null 2>&1 &&
14770 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14771 as_expr=expr
14772 else
14773 as_expr=false
14776 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14777 as_basename=basename
14778 else
14779 as_basename=false
14782 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14783 as_dirname=dirname
14784 else
14785 as_dirname=false
14788 as_me=`$as_basename -- "$0" ||
14789 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14790 X"$0" : 'X\(//\)$' \| \
14791 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14792 $as_echo X/"$0" |
14793 sed '/^.*\/\([^/][^/]*\)\/*$/{
14794 s//\1/
14797 /^X\/\(\/\/\)$/{
14798 s//\1/
14801 /^X\/\(\/\).*/{
14802 s//\1/
14805 s/.*/./; q'`
14807 # Avoid depending upon Character Ranges.
14808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14811 as_cr_digits='0123456789'
14812 as_cr_alnum=$as_cr_Letters$as_cr_digits
14814 ECHO_C= ECHO_N= ECHO_T=
14815 case `echo -n x` in #(((((
14816 -n*)
14817 case `echo 'xy\c'` in
14818 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14819 xy) ECHO_C='\c';;
14820 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14821 ECHO_T=' ';;
14822 esac;;
14824 ECHO_N='-n';;
14825 esac
14827 rm -f conf$$ conf$$.exe conf$$.file
14828 if test -d conf$$.dir; then
14829 rm -f conf$$.dir/conf$$.file
14830 else
14831 rm -f conf$$.dir
14832 mkdir conf$$.dir 2>/dev/null
14834 if (echo >conf$$.file) 2>/dev/null; then
14835 if ln -s conf$$.file conf$$ 2>/dev/null; then
14836 as_ln_s='ln -s'
14837 # ... but there are two gotchas:
14838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14840 # In both cases, we have to default to `cp -p'.
14841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14842 as_ln_s='cp -p'
14843 elif ln conf$$.file conf$$ 2>/dev/null; then
14844 as_ln_s=ln
14845 else
14846 as_ln_s='cp -p'
14848 else
14849 as_ln_s='cp -p'
14851 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14852 rmdir conf$$.dir 2>/dev/null
14855 # as_fn_mkdir_p
14856 # -------------
14857 # Create "$as_dir" as a directory, including parents if necessary.
14858 as_fn_mkdir_p ()
14861 case $as_dir in #(
14862 -*) as_dir=./$as_dir;;
14863 esac
14864 test -d "$as_dir" || eval $as_mkdir_p || {
14865 as_dirs=
14866 while :; do
14867 case $as_dir in #(
14868 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14869 *) as_qdir=$as_dir;;
14870 esac
14871 as_dirs="'$as_qdir' $as_dirs"
14872 as_dir=`$as_dirname -- "$as_dir" ||
14873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14874 X"$as_dir" : 'X\(//\)[^/]' \| \
14875 X"$as_dir" : 'X\(//\)$' \| \
14876 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14877 $as_echo X"$as_dir" |
14878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14879 s//\1/
14882 /^X\(\/\/\)[^/].*/{
14883 s//\1/
14886 /^X\(\/\/\)$/{
14887 s//\1/
14890 /^X\(\/\).*/{
14891 s//\1/
14894 s/.*/./; q'`
14895 test -d "$as_dir" && break
14896 done
14897 test -z "$as_dirs" || eval "mkdir $as_dirs"
14898 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14901 } # as_fn_mkdir_p
14902 if mkdir -p . 2>/dev/null; then
14903 as_mkdir_p='mkdir -p "$as_dir"'
14904 else
14905 test -d ./-p && rmdir ./-p
14906 as_mkdir_p=false
14909 if test -x / >/dev/null 2>&1; then
14910 as_test_x='test -x'
14911 else
14912 if ls -dL / >/dev/null 2>&1; then
14913 as_ls_L_option=L
14914 else
14915 as_ls_L_option=
14917 as_test_x='
14918 eval sh -c '\''
14919 if test -d "$1"; then
14920 test -d "$1/.";
14921 else
14922 case $1 in #(
14923 -*)set "./$1";;
14924 esac;
14925 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14926 ???[sx]*):;;*)false;;esac;fi
14927 '\'' sh
14930 as_executable_p=$as_test_x
14932 # Sed expression to map a string onto a valid CPP name.
14933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14935 # Sed expression to map a string onto a valid variable name.
14936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14939 exec 6>&1
14940 ## ----------------------------------- ##
14941 ## Main body of $CONFIG_STATUS script. ##
14942 ## ----------------------------------- ##
14943 _ASEOF
14944 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14947 # Save the log message, to keep $0 and so on meaningful, and to
14948 # report actual input values of CONFIG_FILES etc. instead of their
14949 # values after options handling.
14950 ac_log="
14951 This file was extended by $as_me, which was
14952 generated by GNU Autoconf 2.68. Invocation command line was
14954 CONFIG_FILES = $CONFIG_FILES
14955 CONFIG_HEADERS = $CONFIG_HEADERS
14956 CONFIG_LINKS = $CONFIG_LINKS
14957 CONFIG_COMMANDS = $CONFIG_COMMANDS
14958 $ $0 $@
14960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14963 _ACEOF
14965 case $ac_config_files in *"
14966 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14967 esac
14969 case $ac_config_headers in *"
14970 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14971 esac
14974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14975 # Files that config.status was made for.
14976 config_files="$ac_config_files"
14977 config_headers="$ac_config_headers"
14978 config_commands="$ac_config_commands"
14980 _ACEOF
14982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14983 ac_cs_usage="\
14984 \`$as_me' instantiates files and other configuration actions
14985 from templates according to the current configuration. Unless the files
14986 and actions are specified as TAGs, all are instantiated by default.
14988 Usage: $0 [OPTION]... [TAG]...
14990 -h, --help print this help, then exit
14991 -V, --version print version number and configuration settings, then exit
14992 --config print configuration, then exit
14993 -q, --quiet, --silent
14994 do not print progress messages
14995 -d, --debug don't remove temporary files
14996 --recheck update $as_me by reconfiguring in the same conditions
14997 --file=FILE[:TEMPLATE]
14998 instantiate the configuration file FILE
14999 --header=FILE[:TEMPLATE]
15000 instantiate the configuration header FILE
15002 Configuration files:
15003 $config_files
15005 Configuration headers:
15006 $config_headers
15008 Configuration commands:
15009 $config_commands
15011 Report bugs to the package provider."
15013 _ACEOF
15014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15015 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15016 ac_cs_version="\\
15017 config.status
15018 configured by $0, generated by GNU Autoconf 2.68,
15019 with options \\"\$ac_cs_config\\"
15021 Copyright (C) 2010 Free Software Foundation, Inc.
15022 This config.status script is free software; the Free Software Foundation
15023 gives unlimited permission to copy, distribute and modify it."
15025 ac_pwd='$ac_pwd'
15026 srcdir='$srcdir'
15027 test -n "\$AWK" || AWK=awk
15028 _ACEOF
15030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15031 # The default lists apply if the user does not specify any file.
15032 ac_need_defaults=:
15033 while test $# != 0
15035 case $1 in
15036 --*=?*)
15037 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15038 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15039 ac_shift=:
15041 --*=)
15042 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15043 ac_optarg=
15044 ac_shift=:
15047 ac_option=$1
15048 ac_optarg=$2
15049 ac_shift=shift
15051 esac
15053 case $ac_option in
15054 # Handling of the options.
15055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15056 ac_cs_recheck=: ;;
15057 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15058 $as_echo "$ac_cs_version"; exit ;;
15059 --config | --confi | --conf | --con | --co | --c )
15060 $as_echo "$ac_cs_config"; exit ;;
15061 --debug | --debu | --deb | --de | --d | -d )
15062 debug=: ;;
15063 --file | --fil | --fi | --f )
15064 $ac_shift
15065 case $ac_optarg in
15066 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15067 '') as_fn_error $? "missing file argument" ;;
15068 esac
15069 as_fn_append CONFIG_FILES " '$ac_optarg'"
15070 ac_need_defaults=false;;
15071 --header | --heade | --head | --hea )
15072 $ac_shift
15073 case $ac_optarg in
15074 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15075 esac
15076 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15077 ac_need_defaults=false;;
15078 --he | --h)
15079 # Conflict between --help and --header
15080 as_fn_error $? "ambiguous option: \`$1'
15081 Try \`$0 --help' for more information.";;
15082 --help | --hel | -h )
15083 $as_echo "$ac_cs_usage"; exit ;;
15084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15085 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15086 ac_cs_silent=: ;;
15088 # This is an error.
15089 -*) as_fn_error $? "unrecognized option: \`$1'
15090 Try \`$0 --help' for more information." ;;
15092 *) as_fn_append ac_config_targets " $1"
15093 ac_need_defaults=false ;;
15095 esac
15096 shift
15097 done
15099 ac_configure_extra_args=
15101 if $ac_cs_silent; then
15102 exec 6>/dev/null
15103 ac_configure_extra_args="$ac_configure_extra_args --silent"
15106 _ACEOF
15107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15108 if \$ac_cs_recheck; then
15109 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15110 shift
15111 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15112 CONFIG_SHELL='$SHELL'
15113 export CONFIG_SHELL
15114 exec "\$@"
15117 _ACEOF
15118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15119 exec 5>>config.log
15121 echo
15122 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15123 ## Running $as_me. ##
15124 _ASBOX
15125 $as_echo "$ac_log"
15126 } >&5
15128 _ACEOF
15129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15131 # INIT-COMMANDS
15134 aros_host_exe_suffix=${aros_host_exe_suffix}
15135 aros_tools_dir=${aros_tools_dir}
15136 aros_target_cpu=${aros_target_cpu}
15137 aros_target_arch=${aros_target_arch}
15138 aros_target_suffix=${aros_target_suffix}
15139 orig_target_nm=${orig_target_nm}
15140 orig_target_as=${orig_target_as}
15141 orig_target_ar=${orig_target_ar}
15142 orig_target_ranlib=${orig_target_ranlib}
15143 orig_target_objdump=${orig_target_objdump}
15144 orig_target_objcopy=${orig_target_objcopy}
15145 orig_target_strip=${orig_target_strip}
15146 aros_kernel_ld=${aros_kernel_ld}
15149 aros_tools_dir=${aros_tools_dir}
15152 _ACEOF
15154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15156 # Handling of arguments.
15157 for ac_config_target in $ac_config_targets
15159 case $ac_config_target in
15160 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15161 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15162 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15163 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15164 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15165 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15166 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15167 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15168 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15169 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15170 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15171 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15172 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15173 "${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" ;;
15174 "${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" ;;
15175 "${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" ;;
15176 "${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" ;;
15177 "${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" ;;
15178 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15179 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15180 "${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" ;;
15182 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15183 esac
15184 done
15187 # If the user did not use the arguments to specify the items to instantiate,
15188 # then the envvar interface is used. Set only those that are not.
15189 # We use the long form for the default assignment because of an extremely
15190 # bizarre bug on SunOS 4.1.3.
15191 if $ac_need_defaults; then
15192 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15193 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15194 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15197 # Have a temporary directory for convenience. Make it in the build tree
15198 # simply because there is no reason against having it here, and in addition,
15199 # creating and moving files from /tmp can sometimes cause problems.
15200 # Hook for its removal unless debugging.
15201 # Note that there is a small window in which the directory will not be cleaned:
15202 # after its creation but before its name has been assigned to `$tmp'.
15203 $debug ||
15205 tmp= ac_tmp=
15206 trap 'exit_status=$?
15207 : "${ac_tmp:=$tmp}"
15208 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15210 trap 'as_fn_exit 1' 1 2 13 15
15212 # Create a (secure) tmp directory for tmp files.
15215 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15216 test -d "$tmp"
15217 } ||
15219 tmp=./conf$$-$RANDOM
15220 (umask 077 && mkdir "$tmp")
15221 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15222 ac_tmp=$tmp
15224 # Set up the scripts for CONFIG_FILES section.
15225 # No need to generate them if there are no CONFIG_FILES.
15226 # This happens for instance with `./config.status config.h'.
15227 if test -n "$CONFIG_FILES"; then
15230 ac_cr=`echo X | tr X '\015'`
15231 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15232 # But we know of no other shell where ac_cr would be empty at this
15233 # point, so we can use a bashism as a fallback.
15234 if test "x$ac_cr" = x; then
15235 eval ac_cr=\$\'\\r\'
15237 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15238 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15239 ac_cs_awk_cr='\\r'
15240 else
15241 ac_cs_awk_cr=$ac_cr
15244 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15245 _ACEOF
15249 echo "cat >conf$$subs.awk <<_ACEOF" &&
15250 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15251 echo "_ACEOF"
15252 } >conf$$subs.sh ||
15253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15254 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15255 ac_delim='%!_!# '
15256 for ac_last_try in false false false false false :; do
15257 . ./conf$$subs.sh ||
15258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15260 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15261 if test $ac_delim_n = $ac_delim_num; then
15262 break
15263 elif $ac_last_try; then
15264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15265 else
15266 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15268 done
15269 rm -f conf$$subs.sh
15271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15272 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15273 _ACEOF
15274 sed -n '
15276 s/^/S["/; s/!.*/"]=/
15279 s/^[^!]*!//
15280 :repl
15281 t repl
15282 s/'"$ac_delim"'$//
15283 t delim
15286 s/\(.\{148\}\)..*/\1/
15287 t more1
15288 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15291 b repl
15292 :more1
15293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15296 s/.\{148\}//
15297 t nl
15298 :delim
15300 s/\(.\{148\}\)..*/\1/
15301 t more2
15302 s/["\\]/\\&/g; s/^/"/; s/$/"/
15305 :more2
15306 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15309 s/.\{148\}//
15310 t delim
15311 ' <conf$$subs.awk | sed '
15312 /^[^""]/{
15314 s/\n//
15316 ' >>$CONFIG_STATUS || ac_write_fail=1
15317 rm -f conf$$subs.awk
15318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15319 _ACAWK
15320 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15321 for (key in S) S_is_set[key] = 1
15322 FS = "\a"
15326 line = $ 0
15327 nfields = split(line, field, "@")
15328 substed = 0
15329 len = length(field[1])
15330 for (i = 2; i < nfields; i++) {
15331 key = field[i]
15332 keylen = length(key)
15333 if (S_is_set[key]) {
15334 value = S[key]
15335 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15336 len += length(value) + length(field[++i])
15337 substed = 1
15338 } else
15339 len += 1 + keylen
15342 print line
15345 _ACAWK
15346 _ACEOF
15347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15348 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15349 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15350 else
15352 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15353 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15354 _ACEOF
15356 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15357 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15358 # trailing colons and then remove the whole line if VPATH becomes empty
15359 # (actually we leave an empty line to preserve line numbers).
15360 if test "x$srcdir" = x.; then
15361 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15363 s///
15364 s/^/:/
15365 s/[ ]*$/:/
15366 s/:\$(srcdir):/:/g
15367 s/:\${srcdir}:/:/g
15368 s/:@srcdir@:/:/g
15369 s/^:*//
15370 s/:*$//
15372 s/\(=[ ]*\).*/\1/
15374 s/\n//
15375 s/^[^=]*=[ ]*$//
15379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15380 fi # test -n "$CONFIG_FILES"
15382 # Set up the scripts for CONFIG_HEADERS section.
15383 # No need to generate them if there are no CONFIG_HEADERS.
15384 # This happens for instance with `./config.status Makefile'.
15385 if test -n "$CONFIG_HEADERS"; then
15386 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15387 BEGIN {
15388 _ACEOF
15390 # Transform confdefs.h into an awk script `defines.awk', embedded as
15391 # here-document in config.status, that substitutes the proper values into
15392 # config.h.in to produce config.h.
15394 # Create a delimiter string that does not exist in confdefs.h, to ease
15395 # handling of long lines.
15396 ac_delim='%!_!# '
15397 for ac_last_try in false false :; do
15398 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15399 if test -z "$ac_tt"; then
15400 break
15401 elif $ac_last_try; then
15402 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15403 else
15404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15406 done
15408 # For the awk script, D is an array of macro values keyed by name,
15409 # likewise P contains macro parameters if any. Preserve backslash
15410 # newline sequences.
15412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15413 sed -n '
15414 s/.\{148\}/&'"$ac_delim"'/g
15415 t rset
15416 :rset
15417 s/^[ ]*#[ ]*define[ ][ ]*/ /
15418 t def
15420 :def
15421 s/\\$//
15422 t bsnl
15423 s/["\\]/\\&/g
15424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15425 D["\1"]=" \3"/p
15426 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15428 :bsnl
15429 s/["\\]/\\&/g
15430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15431 D["\1"]=" \3\\\\\\n"\\/p
15432 t cont
15433 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15434 t cont
15436 :cont
15438 s/.\{148\}/&'"$ac_delim"'/g
15439 t clear
15440 :clear
15441 s/\\$//
15442 t bsnlc
15443 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15445 :bsnlc
15446 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15447 b cont
15448 ' <confdefs.h | sed '
15449 s/'"$ac_delim"'/"\\\
15450 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15453 for (key in D) D_is_set[key] = 1
15454 FS = "\a"
15456 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15457 line = \$ 0
15458 split(line, arg, " ")
15459 if (arg[1] == "#") {
15460 defundef = arg[2]
15461 mac1 = arg[3]
15462 } else {
15463 defundef = substr(arg[1], 2)
15464 mac1 = arg[2]
15466 split(mac1, mac2, "(") #)
15467 macro = mac2[1]
15468 prefix = substr(line, 1, index(line, defundef) - 1)
15469 if (D_is_set[macro]) {
15470 # Preserve the white space surrounding the "#".
15471 print prefix "define", macro P[macro] D[macro]
15472 next
15473 } else {
15474 # Replace #undef with comments. This is necessary, for example,
15475 # in the case of _POSIX_SOURCE, which is predefined and required
15476 # on some systems where configure will not decide to define it.
15477 if (defundef == "undef") {
15478 print "/*", prefix defundef, macro, "*/"
15479 next
15483 { print }
15484 _ACAWK
15485 _ACEOF
15486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15487 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15488 fi # test -n "$CONFIG_HEADERS"
15491 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15492 shift
15493 for ac_tag
15495 case $ac_tag in
15496 :[FHLC]) ac_mode=$ac_tag; continue;;
15497 esac
15498 case $ac_mode$ac_tag in
15499 :[FHL]*:*);;
15500 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15501 :[FH]-) ac_tag=-:-;;
15502 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15503 esac
15504 ac_save_IFS=$IFS
15505 IFS=:
15506 set x $ac_tag
15507 IFS=$ac_save_IFS
15508 shift
15509 ac_file=$1
15510 shift
15512 case $ac_mode in
15513 :L) ac_source=$1;;
15514 :[FH])
15515 ac_file_inputs=
15516 for ac_f
15518 case $ac_f in
15519 -) ac_f="$ac_tmp/stdin";;
15520 *) # Look for the file first in the build tree, then in the source tree
15521 # (if the path is not absolute). The absolute path cannot be DOS-style,
15522 # because $ac_f cannot contain `:'.
15523 test -f "$ac_f" ||
15524 case $ac_f in
15525 [\\/$]*) false;;
15526 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15527 esac ||
15528 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15529 esac
15530 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15531 as_fn_append ac_file_inputs " '$ac_f'"
15532 done
15534 # Let's still pretend it is `configure' which instantiates (i.e., don't
15535 # use $as_me), people would be surprised to read:
15536 # /* config.h. Generated by config.status. */
15537 configure_input='Generated from '`
15538 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15539 `' by configure.'
15540 if test x"$ac_file" != x-; then
15541 configure_input="$ac_file. $configure_input"
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15543 $as_echo "$as_me: creating $ac_file" >&6;}
15545 # Neutralize special characters interpreted by sed in replacement strings.
15546 case $configure_input in #(
15547 *\&* | *\|* | *\\* )
15548 ac_sed_conf_input=`$as_echo "$configure_input" |
15549 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15550 *) ac_sed_conf_input=$configure_input;;
15551 esac
15553 case $ac_tag in
15554 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15556 esac
15558 esac
15560 ac_dir=`$as_dirname -- "$ac_file" ||
15561 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15562 X"$ac_file" : 'X\(//\)[^/]' \| \
15563 X"$ac_file" : 'X\(//\)$' \| \
15564 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15565 $as_echo X"$ac_file" |
15566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15567 s//\1/
15570 /^X\(\/\/\)[^/].*/{
15571 s//\1/
15574 /^X\(\/\/\)$/{
15575 s//\1/
15578 /^X\(\/\).*/{
15579 s//\1/
15582 s/.*/./; q'`
15583 as_dir="$ac_dir"; as_fn_mkdir_p
15584 ac_builddir=.
15586 case "$ac_dir" in
15587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15590 # A ".." for each directory in $ac_dir_suffix.
15591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15592 case $ac_top_builddir_sub in
15593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15595 esac ;;
15596 esac
15597 ac_abs_top_builddir=$ac_pwd
15598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15599 # for backward compatibility:
15600 ac_top_builddir=$ac_top_build_prefix
15602 case $srcdir in
15603 .) # We are building in place.
15604 ac_srcdir=.
15605 ac_top_srcdir=$ac_top_builddir_sub
15606 ac_abs_top_srcdir=$ac_pwd ;;
15607 [\\/]* | ?:[\\/]* ) # Absolute name.
15608 ac_srcdir=$srcdir$ac_dir_suffix;
15609 ac_top_srcdir=$srcdir
15610 ac_abs_top_srcdir=$srcdir ;;
15611 *) # Relative name.
15612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15613 ac_top_srcdir=$ac_top_build_prefix$srcdir
15614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15615 esac
15616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15619 case $ac_mode in
15622 # CONFIG_FILE
15625 _ACEOF
15627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15628 # If the template does not know about datarootdir, expand it.
15629 # FIXME: This hack should be removed a few years after 2.60.
15630 ac_datarootdir_hack=; ac_datarootdir_seen=
15631 ac_sed_dataroot='
15632 /datarootdir/ {
15636 /@datadir@/p
15637 /@docdir@/p
15638 /@infodir@/p
15639 /@localedir@/p
15640 /@mandir@/p'
15641 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15642 *datarootdir*) ac_datarootdir_seen=yes;;
15643 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15645 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15646 _ACEOF
15647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15648 ac_datarootdir_hack='
15649 s&@datadir@&$datadir&g
15650 s&@docdir@&$docdir&g
15651 s&@infodir@&$infodir&g
15652 s&@localedir@&$localedir&g
15653 s&@mandir@&$mandir&g
15654 s&\\\${datarootdir}&$datarootdir&g' ;;
15655 esac
15656 _ACEOF
15658 # Neutralize VPATH when `$srcdir' = `.'.
15659 # Shell code in configure.ac might set extrasub.
15660 # FIXME: do we really want to maintain this feature?
15661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15662 ac_sed_extra="$ac_vpsub
15663 $extrasub
15664 _ACEOF
15665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15668 s|@configure_input@|$ac_sed_conf_input|;t t
15669 s&@top_builddir@&$ac_top_builddir_sub&;t t
15670 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15671 s&@srcdir@&$ac_srcdir&;t t
15672 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15673 s&@top_srcdir@&$ac_top_srcdir&;t t
15674 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15675 s&@builddir@&$ac_builddir&;t t
15676 s&@abs_builddir@&$ac_abs_builddir&;t t
15677 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15678 $ac_datarootdir_hack
15680 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15681 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15683 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15684 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15685 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15686 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15688 which seems to be undefined. Please make sure it is defined" >&5
15689 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15690 which seems to be undefined. Please make sure it is defined" >&2;}
15692 rm -f "$ac_tmp/stdin"
15693 case $ac_file in
15694 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15695 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15696 esac \
15697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15701 # CONFIG_HEADER
15703 if test x"$ac_file" != x-; then
15705 $as_echo "/* $configure_input */" \
15706 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15707 } >"$ac_tmp/config.h" \
15708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15709 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15711 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15712 else
15713 rm -f "$ac_file"
15714 mv "$ac_tmp/config.h" "$ac_file" \
15715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15717 else
15718 $as_echo "/* $configure_input */" \
15719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15720 || as_fn_error $? "could not create -" "$LINENO" 5
15724 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15725 $as_echo "$as_me: executing $ac_file commands" >&6;}
15727 esac
15730 case $ac_file$ac_mode in
15731 "compiler_executable":C)
15732 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15733 mkdir -p $prefix
15734 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15735 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15737 echo ${prefix2}
15738 echo ${prefix3}
15739 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15741 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15742 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15743 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15744 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15745 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15746 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15747 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15749 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15751 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15753 esac
15754 done # for ac_tag
15757 as_fn_exit 0
15758 _ACEOF
15759 ac_clean_files=$ac_clean_files_save
15761 test $ac_write_fail = 0 ||
15762 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15765 # configure is writing to config.log, and then calls config.status.
15766 # config.status does its own redirection, appending to config.log.
15767 # Unfortunately, on DOS this fails, as config.log is still kept open
15768 # by configure, so config.status won't be able to write to it; its
15769 # output is simply discarded. So we exec the FD to /dev/null,
15770 # effectively closing config.log, so it can be properly (re)opened and
15771 # appended to by config.status. When coming back to configure, we
15772 # need to make the FD available again.
15773 if test "$no_create" != yes; then
15774 ac_cs_success=:
15775 ac_config_status_args=
15776 test "$silent" = yes &&
15777 ac_config_status_args="$ac_config_status_args --quiet"
15778 exec 5>/dev/null
15779 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15780 exec 5>>config.log
15781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15782 # would make configure fail if this is the last instruction.
15783 $ac_cs_success || as_fn_exit 1
15785 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15787 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15792 #XXX compatability...
15793 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15795 if test -n "$aros_shared_cflags" ; then
15796 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15797 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg