Fix create_patch macro.
[AROS.git] / configure
blob2f7a2555481672a223480f54a3e10e941fda5cc9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_android_level
609 gcc_default_float_abi
610 gcc_default_fpu
611 gcc_default_cpu
612 aros_ios_sdk
613 aros_ios_version
614 aros_ios_platform
615 aros_enable_mmu
616 aros_nesting_supervisor
617 aros_palm_debug_hack
618 aros_serial_debug
619 aros_host_sdl_libs
620 aros_host_sdl_cflags
621 aros_host_x11_libdirs
622 aros_host_x11_includes
623 DO_VIDMODE_SUPPORT
624 DO_XSHM_SUPPORT
625 aros_default_wbdepth
626 aros_default_wbheight
627 aros_default_wbwidth
628 oss_library_target
629 pci_hidd_target
630 sdl_hidd_target
631 x11_hidd_target
632 aros_cflags_format_security
633 aros_cflags_strict_overflow
634 aros_cflags_enum_compare
635 aros_cflags_array_bounds
636 aros_cflags_unused_but_set_variable
637 crosstools_cxx_target
638 crosstools_target
639 aros_target_strip_flags
640 aros_target_genmap
641 aros_debug_ldflags
642 aros_debug_aflags
643 aros_debug_cflags
644 aros_target_cflags
645 aros_kernel_ldflags
646 aros_kernel_objcflags
647 aros_kernel_includes
648 aros_kernel_cflags
649 aros_shared_ldflags
650 aros_shared_aflags
651 aros_shared_cflags
652 aros_config_ldflags
653 aros_config_aflags
654 aros_config_cflags
655 aros_arch_libs
656 aros_compiler_libs
657 aros_object_format
658 aros_shared_ld
659 aros_shared_default
660 aros_target_nm
661 aros_target_strip
662 aros_target_objcopy
663 aros_target_objdump
664 aros_target_cc_path
665 aros_target_cc_includes
666 aros_target_ld
667 aros_target_as
668 aros_target_cpp
669 aros_target_cxx
670 aros_target_cc
671 aros_plain_ar
672 aros_plain_nm
673 aros_target_ranlib
674 aros_target_ar
675 aros_target_suffix
676 aros_target_variant
677 aros_target_cpu
678 aros_target_family
679 aros_target_arch
680 aros_target_bootloader
681 aros_target_iconset
682 aros_target_guitheme
683 aros_tools_dir
684 aros_host_lib_suffix
685 aros_host_exe_suffix
686 aros_host_mkargs
687 aros_host_mkdep
688 aros_host_debug
689 aros_host_ldflags
690 gnu89_inline
691 aros_host_cxxflags
692 aros_host_cflags
693 aros_host_make
694 aros_host_cxx
695 aros_host_cc
696 aros_host_cpp
697 aros_host_cpu
698 aros_host_arch
699 aros_cc_pre
700 aros_amigaos_compliance
701 AROS_PORTSSRCDIR
702 AROS_CROSSTOOLSDIR
703 SRCDIR
704 AROS_BUILDDIR_UNIX
705 AROS_BUILDDIR
706 aros_target_toolchain
707 aros_flavour_uc
708 aros_flavour
709 aros_cpu
710 aros_arch
711 SDL_LIBS
712 SDL_CFLAGS
713 SDL_CONFIG
714 XMKMF
715 aros_cflags_iquote_end
716 aros_cflags_iquote
717 kernel_cflags_iquote_end
718 kernel_cflags_iquote
719 host_cflags_iquote_end
720 host_cflags_iquote
721 aros_target_nostdlib_ldflags
722 aros_target_detach_ldflags
723 aros_target_nix_ldflags
724 aros_target_nostartup_ldflags
725 aros_target_nostdinc_cflags
726 aros_kernel_rescomp
727 orig_target_objdump
728 orig_target_objcopy
729 orig_target_strip
730 orig_target_nm
731 orig_target_ranlib
732 orig_target_ar
733 orig_target_as
734 orig_target_ld
735 orig_target_cxx
736 orig_target_cc
737 orig_target_cpp
738 aros_kernel_objdump
739 aros_kernel_objcopy
740 aros_kernel_strip
741 aros_kernel_nm
742 aros_kernel_ranlib
743 aros_kernel_ar
744 aros_kernel_as
745 aros_kernel_ld
746 aros_kernel_cxx
747 aros_kernel_cc
748 aros_kernel_cpp
750 android_tool
751 CCACHE
752 DISTCC
753 LIBOBJS
754 EGREP
755 GREP
757 TEST
760 pkgpyexecdir
761 pyexecdir
762 pkgpythondir
763 pythondir
764 PYTHON_PLATFORM
765 PYTHON_EXEC_PREFIX
766 PYTHON_PREFIX
767 PYTHON_VERSION
768 PYTHON
769 PATCH
770 CHMOD
772 PPMTOILBM
773 PNGTOPNM
774 FLEX
775 BISON
778 UNIQ
779 SORT
780 TOUCH
781 MKDIR
782 ECHO
786 aros_host_strip
787 aros_host_ranlib
788 aros_host_ar
789 aros_host_automake
790 aros_host_autoheader
791 aros_host_autoconf
792 aros_host_aclocal
793 aros_host_ld
794 MMAKE
797 ac_ct_CC
798 CFLAGS
800 OBJEXT
801 EXEEXT
802 ac_ct_CXX
803 CPPFLAGS
804 LDFLAGS
805 CXXFLAGS
807 host_os
808 host_vendor
809 host_cpu
810 host
811 build_os
812 build_vendor
813 build_cpu
814 build
815 target_alias
816 host_alias
817 build_alias
818 LIBS
819 ECHO_T
820 ECHO_N
821 ECHO_C
822 DEFS
823 mandir
824 localedir
825 libdir
826 psdir
827 pdfdir
828 dvidir
829 htmldir
830 infodir
831 docdir
832 oldincludedir
833 includedir
834 localstatedir
835 sharedstatedir
836 sysconfdir
837 datadir
838 datarootdir
839 libexecdir
840 sbindir
841 bindir
842 program_transform_name
843 prefix
844 exec_prefix
845 PACKAGE_URL
846 PACKAGE_BUGREPORT
847 PACKAGE_STRING
848 PACKAGE_VERSION
849 PACKAGE_TARNAME
850 PACKAGE_NAME
851 PATH_SEPARATOR
852 SHELL'
853 ac_subst_files=''
854 ac_user_opts='
855 enable_option_checking
856 enable_build_type
857 enable_debug
858 enable_distcc
859 enable_ccache
860 with_kernel_gcc_version
861 with_gcc_version
862 with_optimization
863 with_paranoia
864 enable_target_variant
865 with_xcode
866 with_sdk_version
867 with_sdk
868 with_ndk
869 with_ndk_version
870 enable_amigaos_compliance
871 with_kernel_toolchain_prefix
872 with_elf_toolchain_prefix
873 with_aros_toolchain
874 enable_crosstools
875 with_aros_toolchain_install
876 with_cpu
877 with_fpu
878 with_float
879 with_aros_gcc
880 with_portssources
881 with_bootloader
882 with_iconset
883 with_theme
884 enable_includes
885 with_resolution
886 with_serial_debug
887 enable_palm_debug_hack
888 enable_nesting_supervisor
889 enable_mmu
890 enable_x11_hidd
891 with_x
892 enable_x11_shm
893 enable_x11_vidmode
894 enable_sdl_hidd
895 with_sdl_prefix
896 with_sdl_exec_prefix
897 enable_sdltest
898 enable_dbus
900 ac_precious_vars='build_alias
901 host_alias
902 target_alias
904 CXXFLAGS
905 LDFLAGS
906 LIBS
907 CPPFLAGS
910 CFLAGS
912 PYTHON
913 XMKMF'
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
964 ac_prev=
965 ac_dashdash=
966 for ac_option
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
975 case $ac_option in
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *) ac_optarg=yes ;;
978 esac
980 # Accept the important Cygnus configure options, so we can diagnose typos.
982 case $ac_dashdash$ac_option in
984 ac_dashdash=yes ;;
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1018 -disable-* | --disable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=no ;;
1034 -docdir | --docdir | --docdi | --doc | --do)
1035 ac_prev=docdir ;;
1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037 docdir=$ac_optarg ;;
1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 ac_prev=dvidir ;;
1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042 dvidir=$ac_optarg ;;
1044 -enable-* | --enable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=\$ac_optarg ;;
1264 -without-* | --without-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error "invalid package name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=no ;;
1280 --x)
1281 # Obsolete; use --with-x.
1282 with_x=yes ;;
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1298 -*) as_fn_error "unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information."
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' | [0-9]* | *[!_$as_cr_alnum]* )
1307 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1308 esac
1309 eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1313 # FIXME: should be removed in autoconf 3.0.
1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320 esac
1321 done
1323 if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error "missing argument to $ac_option"
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 esac
1336 # Check all directory arguments for consistency.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1342 eval ac_val=\$$ac_var
1343 # Remove trailing slashes.
1344 case $ac_val in
1345 */ )
1346 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\$ac_val;;
1348 esac
1349 # Be sure to have absolute directory names.
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1355 done
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369 If a cross compiler is detected then cross compile mode will be used." >&2
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378 test "$silent" = yes && exec 6>/dev/null
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error "pwd does not report name of working directory"
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1407 /^X\(\/\/\)$/{
1408 s//\1/
1411 /^X\(\/\).*/{
1412 s//\1/
1415 s/.*/./; q'`
1416 srcdir=$ac_confdir
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 srcdir=..
1420 else
1421 ac_srcdir_defaulted=no
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1430 pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
1455 \`configure' configures this package to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1464 Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1508 _ACEOF
1510 cat <<\_ACEOF
1512 X features:
1513 --x-includes=DIR X include files are in DIR
1514 --x-libraries=DIR X library files are in DIR
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 _ACEOF
1522 if test -n "$ac_init_help"; then
1524 cat <<\_ACEOF
1526 Optional Features:
1527 --disable-option-checking ignore unrecognized --enable/--with options
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1530 --enable-build-type=TYPE
1531 Select the build type. Available types are:
1532 personal, nightly, snapshot, milestone, release. Do
1533 NOT use this option unless you know what you are
1534 doing! (default=personal)
1535 --enable-debug=list Enable different types of debug. Commas or
1536 whitespaces can be used to separate the items in the
1537 list. Available types of debug are: all, none,
1538 messages, stack, mungwall, modules, symbols. If no
1539 list is provided then "all" is assumed.
1540 (default=none)
1541 --enable-distcc Use distcc as a front end to the compiler
1542 (default=no).
1543 --enable-ccache Use ccache as a front end to the compiler
1544 (default=no).
1545 --enable-target-variant=NAME
1546 Enable a specific target variant(default=none)
1547 --enable-amigaos-compliance=VERSION
1548 Enforce userspace AmigaOS compliance to a specific
1549 KickStart version (default=none).
1550 --disable-crosstools Do not build cross-compiler toolchain
1551 --enable-includes=dir Alternative system include directory
1552 --enable-palm-debug-hack
1553 Enable palm debug output hack in palm native
1554 (default=no)
1555 --enable-nesting-supervisor
1556 Enable nesting supervisor support in unix
1557 (default=no)
1558 --disable-mmu Disable MMU support (default=enabled)
1559 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1560 --enable-x11-shm use X11 shared memory (default=auto)
1561 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1562 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1563 --disable-sdltest Do not try to compile and run a test SDL program
1564 --enable-dbus Enable DBUS support via dbus.library (default=no)
1566 Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-kernel-gcc-version=VERSION
1570 Use host gcc-VERSION for building AROS
1571 --with-gcc-version=VERSION
1572 Use host gcc-VERSION for building AROS
1573 --with-optimization=FLAGS
1574 Use optimization flags FLAGS (default=-O2).
1575 --with-paranoia=FLAGS CC flags to enable paranoia
1576 --with-xcode=PATH Specify XCode path for iOS targets
1577 (default=/Developer).
1578 --with-sdk-version=VERSION
1579 Use iOS SDK version VERSION (default=4.1).
1580 --with-sdk=PATH Specify Android SDK path
1581 (default=$default_android_sdk).
1582 --with-ndk=PATH Specify Android NDK path (default=none).
1583 --with-sdk-version=LEVEL
1584 Use Android SDK for API LEVEL (default=12).
1585 --with-ndk-version=LEVEL
1586 Use Android NDK for API LEVEL (default=9).
1587 --with-kernel-toolchain-prefix=...
1588 Specify crosscompile toolchain prefix for kernel
1589 objects
1590 --with-elf-toolchain-prefix=...
1591 Specify crosscompile toolchain prefix to wrap for
1592 AROS objects
1593 --with-aros-toolchain=PREFIX
1594 Specify prebuilt AROS toolchain
1595 --with-aros-toolchain-install=DIR
1596 Where to install or search for cross tools binaries
1597 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1598 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1599 --with-float=<spec> Specify floating point ABI
1600 (default=$gcc_default_float_abi).
1601 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1602 --with-portssources=DIR Where to download sourcecode for external ports
1603 --with-bootloader=NAME Use a specific bootloader
1604 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1605 --with-theme=NAME Use a specific GUI Theme
1606 --with-resolution=XRESxYRESxDEPTH
1607 Default resolution of the initial WorkbenchScreen
1608 --with-serial-debug Enable serial debug output in native (default=no)
1609 --with-x use the X Window System
1610 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1611 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1613 Some influential environment variables:
1614 CXX C++ compiler command
1615 CXXFLAGS C++ compiler flags
1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1617 nonstandard directory <lib dir>
1618 LIBS libraries to pass to the linker, e.g. -l<library>
1619 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1620 you have headers in a nonstandard directory <include dir>
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 CPP C preprocessor
1624 PYTHON the Python interpreter
1625 XMKMF Path to xmkmf, Makefile generator for X Window System
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1630 Report bugs to the package provider.
1631 _ACEOF
1632 ac_status=$?
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1641 ac_builddir=.
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1659 case $srcdir in
1660 .) # We are building in place.
1661 ac_srcdir=.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1683 else
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1687 done
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692 cat <<\_ACEOF
1693 configure
1694 generated by GNU Autoconf 2.65
1696 Copyright (C) 2009 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1707 # ac_fn_cxx_try_compile LINENO
1708 # ----------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_cxx_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_cxx_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=1
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 as_fn_set_status $ac_retval
1743 } # ac_fn_cxx_try_compile
1745 # ac_fn_c_try_compile LINENO
1746 # --------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 as_fn_set_status $ac_retval
1781 } # ac_fn_c_try_compile
1783 # ac_fn_c_try_cpp LINENO
1784 # ----------------------
1785 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_cpp ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_cpp conftest.$ac_ext"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } >/dev/null && {
1805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 as_fn_set_status $ac_retval
1818 } # ac_fn_c_try_cpp
1820 # ac_fn_c_try_link LINENO
1821 # -----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_link ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext conftest$ac_exeext
1827 if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest$ac_exeext && {
1846 test "$cross_compiling" = yes ||
1847 $as_test_x conftest$ac_exeext
1848 }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858 # interfere with the next link command; also delete a directory that is
1859 # left behind by Apple's compiler. We do this before executing the actions.
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_c_try_link
1866 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869 # the include files in INCLUDES and setting the cache variable VAR
1870 # accordingly.
1871 ac_fn_c_check_header_mongrel ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 else
1884 # Is the header compilable?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886 $as_echo_n "checking $2 usability... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 ac_header_compiler=yes
1894 else
1895 ac_header_compiler=no
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899 $as_echo "$ac_header_compiler" >&6; }
1901 # Is the header present?
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903 $as_echo_n "checking $2 presence... " >&6; }
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_cpp "$LINENO"; then :
1909 ac_header_preproc=yes
1910 else
1911 ac_header_preproc=no
1913 rm -f conftest.err conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915 $as_echo "$ac_header_preproc" >&6; }
1917 # So? What about this header?
1918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1919 yes:no: )
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 no:yes:* )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1929 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1933 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 esac
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 eval "$3=\$ac_header_compiler"
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_c_check_header_mongrel
1953 # ac_fn_c_try_run LINENO
1954 # ----------------------
1955 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1956 # that executables *can* be run.
1957 ac_fn_c_try_run ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { { ac_try="$ac_link"
1961 case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_link") 2>&5
1968 ac_status=$?
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1971 { { case "(($ac_try" in
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_try") 2>&5
1978 ac_status=$?
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; }; }; then :
1981 ac_retval=0
1982 else
1983 $as_echo "$as_me: program exited with status $ac_status" >&5
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1987 ac_retval=$ac_status
1989 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 as_fn_set_status $ac_retval
1993 } # ac_fn_c_try_run
1995 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1996 # -------------------------------------------------------
1997 # Tests whether HEADER exists and can be compiled using the include files in
1998 # INCLUDES, setting the cache variable VAR accordingly.
1999 ac_fn_c_check_header_compile ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2010 #include <$2>
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 eval "$3=yes"
2014 else
2015 eval "$3=no"
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024 } # ac_fn_c_check_header_compile
2026 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2027 # ----------------------------------------------------
2028 # Tries to find if the field MEMBER exists in type AGGR, after including
2029 # INCLUDES, setting cache variable VAR accordingly.
2030 ac_fn_c_check_member ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2034 $as_echo_n "checking for $2.$3... " >&6; }
2035 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2042 main ()
2044 static $2 ac_aggr;
2045 if (ac_aggr.$3)
2046 return 0;
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 eval "$4=yes"
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2058 main ()
2060 static $2 ac_aggr;
2061 if (sizeof ac_aggr.$3)
2062 return 0;
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 eval "$4=yes"
2069 else
2070 eval "$4=no"
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 eval ac_res=\$$4
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081 } # ac_fn_c_check_member
2083 # ac_fn_c_check_decl LINENO SYMBOL VAR
2084 # ------------------------------------
2085 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2086 ac_fn_c_check_decl ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2090 $as_echo_n "checking whether $2 is declared... " >&6; }
2091 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 main ()
2100 #ifndef $2
2101 (void) $2;
2102 #endif
2105 return 0;
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 eval "$3=yes"
2110 else
2111 eval "$3=no"
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120 } # ac_fn_c_check_decl
2122 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2123 # -------------------------------------------
2124 # Tests whether TYPE exists after having included INCLUDES, setting cache
2125 # variable VAR accordingly.
2126 ac_fn_c_check_type ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2132 $as_echo_n "(cached) " >&6
2133 else
2134 eval "$3=no"
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 if (sizeof ($2))
2142 return 0;
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 if (sizeof (($2)))
2155 return 0;
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2162 else
2163 eval "$3=yes"
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 } # ac_fn_c_check_type
2176 # ac_fn_c_check_func LINENO FUNC VAR
2177 # ----------------------------------
2178 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2179 ac_fn_c_check_func ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185 $as_echo_n "(cached) " >&6
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2189 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2191 #define $2 innocuous_$2
2193 /* System header to define __stub macros and hopefully few prototypes,
2194 which can conflict with char $2 (); below.
2195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2196 <limits.h> exists even on freestanding compilers. */
2198 #ifdef __STDC__
2199 # include <limits.h>
2200 #else
2201 # include <assert.h>
2202 #endif
2204 #undef $2
2206 /* Override any GCC internal prototype to avoid an error.
2207 Use char because int might match the return type of a GCC
2208 builtin and then its argument prototype would still apply. */
2209 #ifdef __cplusplus
2210 extern "C"
2211 #endif
2212 char $2 ();
2213 /* The GNU C library defines this for functions which it implements
2214 to always fail with ENOSYS. Some functions are actually named
2215 something starting with __ and the normal name is an alias. */
2216 #if defined __stub_$2 || defined __stub___$2
2217 choke me
2218 #endif
2221 main ()
2223 return $2 ();
2225 return 0;
2227 _ACEOF
2228 if ac_fn_c_try_link "$LINENO"; then :
2229 eval "$3=yes"
2230 else
2231 eval "$3=no"
2233 rm -f core conftest.err conftest.$ac_objext \
2234 conftest$ac_exeext conftest.$ac_ext
2236 eval ac_res=\$$3
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2241 } # ac_fn_c_check_func
2242 cat >config.log <<_ACEOF
2243 This file contains any messages produced by compilers while
2244 running configure, to aid debugging if configure makes a mistake.
2246 It was created by $as_me, which was
2247 generated by GNU Autoconf 2.65. Invocation command line was
2249 $ $0 $@
2251 _ACEOF
2252 exec 5>>config.log
2254 cat <<_ASUNAME
2255 ## --------- ##
2256 ## Platform. ##
2257 ## --------- ##
2259 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2260 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2261 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2262 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2263 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2265 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2266 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2268 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2269 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2270 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2271 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2272 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2273 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2274 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2276 _ASUNAME
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 $as_echo "PATH: $as_dir"
2284 done
2285 IFS=$as_save_IFS
2287 } >&5
2289 cat >&5 <<_ACEOF
2292 ## ----------- ##
2293 ## Core tests. ##
2294 ## ----------- ##
2296 _ACEOF
2299 # Keep a trace of the command line.
2300 # Strip out --no-create and --no-recursion so they do not pile up.
2301 # Strip out --silent because we don't want to record it for future runs.
2302 # Also quote any args containing shell meta-characters.
2303 # Make two passes to allow for proper duplicate-argument suppression.
2304 ac_configure_args=
2305 ac_configure_args0=
2306 ac_configure_args1=
2307 ac_must_keep_next=false
2308 for ac_pass in 1 2
2310 for ac_arg
2312 case $ac_arg in
2313 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2315 | -silent | --silent | --silen | --sile | --sil)
2316 continue ;;
2317 *\'*)
2318 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2319 esac
2320 case $ac_pass in
2321 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2323 as_fn_append ac_configure_args1 " '$ac_arg'"
2324 if test $ac_must_keep_next = true; then
2325 ac_must_keep_next=false # Got value, back to normal.
2326 else
2327 case $ac_arg in
2328 *=* | --config-cache | -C | -disable-* | --disable-* \
2329 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2330 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2331 | -with-* | --with-* | -without-* | --without-* | --x)
2332 case "$ac_configure_args0 " in
2333 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2334 esac
2336 -* ) ac_must_keep_next=true ;;
2337 esac
2339 as_fn_append ac_configure_args " '$ac_arg'"
2341 esac
2342 done
2343 done
2344 { ac_configure_args0=; unset ac_configure_args0;}
2345 { ac_configure_args1=; unset ac_configure_args1;}
2347 # When interrupted or exit'd, cleanup temporary files, and complete
2348 # config.log. We remove comments because anyway the quotes in there
2349 # would cause problems or look ugly.
2350 # WARNING: Use '\'' to represent an apostrophe within the trap.
2351 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2352 trap 'exit_status=$?
2353 # Save into config.log some information that might help in debugging.
2355 echo
2357 cat <<\_ASBOX
2358 ## ---------------- ##
2359 ## Cache variables. ##
2360 ## ---------------- ##
2361 _ASBOX
2362 echo
2363 # The following way of writing the cache mishandles newlines in values,
2365 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2366 eval ac_val=\$$ac_var
2367 case $ac_val in #(
2368 *${as_nl}*)
2369 case $ac_var in #(
2370 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2371 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2372 esac
2373 case $ac_var in #(
2374 _ | IFS | as_nl) ;; #(
2375 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2376 *) { eval $ac_var=; unset $ac_var;} ;;
2377 esac ;;
2378 esac
2379 done
2380 (set) 2>&1 |
2381 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2382 *${as_nl}ac_space=\ *)
2383 sed -n \
2384 "s/'\''/'\''\\\\'\'''\''/g;
2385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2386 ;; #(
2388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2390 esac |
2391 sort
2393 echo
2395 cat <<\_ASBOX
2396 ## ----------------- ##
2397 ## Output variables. ##
2398 ## ----------------- ##
2399 _ASBOX
2400 echo
2401 for ac_var in $ac_subst_vars
2403 eval ac_val=\$$ac_var
2404 case $ac_val in
2405 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2406 esac
2407 $as_echo "$ac_var='\''$ac_val'\''"
2408 done | sort
2409 echo
2411 if test -n "$ac_subst_files"; then
2412 cat <<\_ASBOX
2413 ## ------------------- ##
2414 ## File substitutions. ##
2415 ## ------------------- ##
2416 _ASBOX
2417 echo
2418 for ac_var in $ac_subst_files
2420 eval ac_val=\$$ac_var
2421 case $ac_val in
2422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423 esac
2424 $as_echo "$ac_var='\''$ac_val'\''"
2425 done | sort
2426 echo
2429 if test -s confdefs.h; then
2430 cat <<\_ASBOX
2431 ## ----------- ##
2432 ## confdefs.h. ##
2433 ## ----------- ##
2434 _ASBOX
2435 echo
2436 cat confdefs.h
2437 echo
2439 test "$ac_signal" != 0 &&
2440 $as_echo "$as_me: caught signal $ac_signal"
2441 $as_echo "$as_me: exit $exit_status"
2442 } >&5
2443 rm -f core *.core core.conftest.* &&
2444 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445 exit $exit_status
2447 for ac_signal in 1 2 13 15; do
2448 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449 done
2450 ac_signal=0
2452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2453 rm -f -r conftest* confdefs.h
2455 $as_echo "/* confdefs.h */" > confdefs.h
2457 # Predefined preprocessor variables.
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_NAME "$PACKAGE_NAME"
2461 _ACEOF
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2465 _ACEOF
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_STRING "$PACKAGE_STRING"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_URL "$PACKAGE_URL"
2481 _ACEOF
2484 # Let the site file select an alternate cache file if it wants to.
2485 # Prefer an explicitly selected file to automatically selected ones.
2486 ac_site_file1=NONE
2487 ac_site_file2=NONE
2488 if test -n "$CONFIG_SITE"; then
2489 ac_site_file1=$CONFIG_SITE
2490 elif test "x$prefix" != xNONE; then
2491 ac_site_file1=$prefix/share/config.site
2492 ac_site_file2=$prefix/etc/config.site
2493 else
2494 ac_site_file1=$ac_default_prefix/share/config.site
2495 ac_site_file2=$ac_default_prefix/etc/config.site
2497 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2499 test "x$ac_site_file" = xNONE && continue
2500 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2502 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2503 sed 's/^/| /' "$ac_site_file" >&5
2504 . "$ac_site_file"
2506 done
2508 if test -r "$cache_file"; then
2509 # Some versions of bash will fail to source /dev/null (special files
2510 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2511 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2513 $as_echo "$as_me: loading cache $cache_file" >&6;}
2514 case $cache_file in
2515 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2516 *) . "./$cache_file";;
2517 esac
2519 else
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2521 $as_echo "$as_me: creating cache $cache_file" >&6;}
2522 >$cache_file
2525 as_fn_append ac_header_list " stdlib.h"
2526 as_fn_append ac_header_list " unistd.h"
2527 as_fn_append ac_header_list " sys/param.h"
2528 # Check that the precious variables saved in the cache have kept the same
2529 # value.
2530 ac_cache_corrupted=false
2531 for ac_var in $ac_precious_vars; do
2532 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2533 eval ac_new_set=\$ac_env_${ac_var}_set
2534 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2535 eval ac_new_val=\$ac_env_${ac_var}_value
2536 case $ac_old_set,$ac_new_set in
2537 set,)
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2541 ,set)
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2545 ,);;
2547 if test "x$ac_old_val" != "x$ac_new_val"; then
2548 # differences in whitespace do not lead to failure.
2549 ac_old_val_w=`echo x $ac_old_val`
2550 ac_new_val_w=`echo x $ac_new_val`
2551 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2553 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2554 ac_cache_corrupted=:
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2557 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2558 eval $ac_var=\$ac_old_val
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2561 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2563 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2564 fi;;
2565 esac
2566 # Pass precious variables to config.status.
2567 if test "$ac_new_set" = set; then
2568 case $ac_new_val in
2569 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2570 *) ac_arg=$ac_var=$ac_new_val ;;
2571 esac
2572 case " $ac_configure_args " in
2573 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2574 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2575 esac
2577 done
2578 if $ac_cache_corrupted; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2582 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2583 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2585 ## -------------------- ##
2586 ## Main body of script. ##
2587 ## -------------------- ##
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597 ac_aux_dir=
2598 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2599 for ac_t in install-sh install.sh shtool; do
2600 if test -f "$ac_dir/$ac_t"; then
2601 ac_aux_dir=$ac_dir
2602 ac_install_sh="$ac_aux_dir/$ac_t -c"
2603 break 2
2605 done
2606 done
2607 if test -z "$ac_aux_dir"; then
2608 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2611 # These three variables are undocumented and unsupported,
2612 # and are intended to be withdrawn in a future Autoconf release.
2613 # They can cause serious problems if a builder's source tree is in a directory
2614 # whose full name contains unusual characters.
2615 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2616 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2617 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2621 # Check what host we are running on.
2622 # If a target is not suggested, we use this one.
2623 # Note that what we call a target, Autoconf calls a host.
2624 # Make sure we can run config.sub.
2625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2626 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629 $as_echo_n "checking build system type... " >&6; }
2630 if test "${ac_cv_build+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 ac_build_alias=$build_alias
2634 test "x$ac_build_alias" = x &&
2635 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636 test "x$ac_build_alias" = x &&
2637 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2638 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2639 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643 $as_echo "$ac_cv_build" >&6; }
2644 case $ac_cv_build in
2645 *-*-*) ;;
2646 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2647 esac
2648 build=$ac_cv_build
2649 ac_save_IFS=$IFS; IFS='-'
2650 set x $ac_cv_build
2651 shift
2652 build_cpu=$1
2653 build_vendor=$2
2654 shift; shift
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2657 build_os=$*
2658 IFS=$ac_save_IFS
2659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663 $as_echo_n "checking host system type... " >&6; }
2664 if test "${ac_cv_host+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test "x$host_alias" = x; then
2668 ac_cv_host=$ac_cv_build
2669 else
2670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2671 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676 $as_echo "$ac_cv_host" >&6; }
2677 case $ac_cv_host in
2678 *-*-*) ;;
2679 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2680 esac
2681 host=$ac_cv_host
2682 ac_save_IFS=$IFS; IFS='-'
2683 set x $ac_cv_host
2684 shift
2685 host_cpu=$1
2686 host_vendor=$2
2687 shift; shift
2688 # Remember, the first character of IFS is used to create $*,
2689 # except with old shells:
2690 host_os=$*
2691 IFS=$ac_save_IFS
2692 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2696 # The AROS target is slightly different to the normal GNU style
2697 # format. We don't have the middle part, and we reverse the order
2698 # of the $(CPU) and $(OS) bits.
2700 # Don't strip the version of the target yet, it might be
2701 # useful on some systems.
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2704 $as_echo_n "checking for AROS style target... " >&6; }
2706 if test "$target" = "NONE" ; then
2707 target=$host_os-$host_cpu
2708 else
2709 if test "$target" = "" ; then
2710 target=$host_os-$host_cpu
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2714 $as_echo "$target" >&6; }
2716 if test "$host_os" = "mingw32" ; then
2717 PWDCMD="pwd -W"
2720 # Don't know where else to put this...
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2722 $as_echo_n "checking building AROS in... " >&6; }
2723 AROS_BUILDDIR=`${PWDCMD-pwd}`
2724 AROS_BUILDDIR_UNIX=${PWD}
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2726 $as_echo "$AROS_BUILDDIR" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2729 $as_echo_n "checking AROS source in... " >&6; }
2730 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2731 SRCDIR=${srcpwd}
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2733 $as_echo "$SRCDIR" >&6; }
2735 # Parse the target field into something useful.
2737 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2738 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2741 # Some debug output, to be removed again.
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2743 $as_echo_n "checking for target system (debug output)... " >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2745 $as_echo "$target_os" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2747 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2749 $as_echo "$target_cpu" >&6; }
2751 aros_default_wbwidth=800
2752 aros_default_wbheight=600
2753 aros_default_wbdepth=4
2756 # The first step is to find the host binaries.
2757 # Check for a compiler.
2758 # Due to a bug in autoconf check for c++ compiler first.
2759 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2760 ac_ext=cpp
2761 ac_cpp='$CXXCPP $CPPFLAGS'
2762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2765 if test -z "$CXX"; then
2766 if test -n "$CCC"; then
2767 CXX=$CCC
2768 else
2769 if test -n "$ac_tool_prefix"; then
2770 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if test "${ac_cv_prog_CXX+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$CXX"; then
2780 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2793 done
2794 done
2795 IFS=$as_save_IFS
2799 CXX=$ac_cv_prog_CXX
2800 if test -n "$CXX"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2802 $as_echo "$CXX" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2809 test -n "$CXX" && break
2810 done
2812 if test -z "$CXX"; then
2813 ac_ct_CXX=$CXX
2814 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2816 # Extract the first word of "$ac_prog", so it can be a program name with args.
2817 set dummy $ac_prog; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$ac_ct_CXX"; then
2824 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_ac_ct_CXX="$ac_prog"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2837 done
2838 done
2839 IFS=$as_save_IFS
2843 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2844 if test -n "$ac_ct_CXX"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2846 $as_echo "$ac_ct_CXX" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2853 test -n "$ac_ct_CXX" && break
2854 done
2856 if test "x$ac_ct_CXX" = x; then
2857 CXX="g++"
2858 else
2859 case $cross_compiling:$ac_tool_warned in
2860 yes:)
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2863 ac_tool_warned=yes ;;
2864 esac
2865 CXX=$ac_ct_CXX
2871 # Provide some information about the compiler.
2872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2873 set X $ac_compile
2874 ac_compiler=$2
2875 for ac_option in --version -v -V -qversion; do
2876 { { ac_try="$ac_compiler $ac_option >&5"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882 $as_echo "$ac_try_echo"; } >&5
2883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2884 ac_status=$?
2885 if test -s conftest.err; then
2886 sed '10a\
2887 ... rest of stderr output deleted ...
2888 10q' conftest.err >conftest.er1
2889 cat conftest.er1 >&5
2891 rm -f conftest.er1 conftest.err
2892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893 test $ac_status = 0; }
2894 done
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2900 main ()
2904 return 0;
2906 _ACEOF
2907 ac_clean_files_save=$ac_clean_files
2908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2909 # Try to create an executable without -o first, disregard a.out.
2910 # It will help us diagnose broken compilers, and finding out an intuition
2911 # of exeext.
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2913 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2914 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2916 # The possible output files:
2917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2919 ac_rmfiles=
2920 for ac_file in $ac_files
2922 case $ac_file in
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2925 esac
2926 done
2927 rm -f $ac_rmfiles
2929 if { { ac_try="$ac_link_default"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2935 $as_echo "$ac_try_echo"; } >&5
2936 (eval "$ac_link_default") 2>&5
2937 ac_status=$?
2938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939 test $ac_status = 0; }; then :
2940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2942 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2943 # so that the user can short-circuit this test for compilers unknown to
2944 # Autoconf.
2945 for ac_file in $ac_files ''
2947 test -f "$ac_file" || continue
2948 case $ac_file in
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2951 [ab].out )
2952 # We found the default executable, but exeext='' is most
2953 # certainly right.
2954 break;;
2955 *.* )
2956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2957 then :; else
2958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2960 # We set ac_cv_exeext here because the later test for it is not
2961 # safe: cross compilers may not add the suffix if given an `-o'
2962 # argument, so we may need to know it at that point already.
2963 # Even if this section looks crufty: it has the advantage of
2964 # actually working.
2965 break;;
2967 break;;
2968 esac
2969 done
2970 test "$ac_cv_exeext" = no && ac_cv_exeext=
2972 else
2973 ac_file=''
2975 if test -z "$ac_file"; then :
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 $as_echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983 { as_fn_set_status 77
2984 as_fn_error "C++ compiler cannot create executables
2985 See \`config.log' for more details." "$LINENO" 5; }; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988 $as_echo "yes" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2991 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2993 $as_echo "$ac_file" >&6; }
2994 ac_exeext=$ac_cv_exeext
2996 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2997 ac_clean_files=$ac_clean_files_save
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2999 $as_echo_n "checking for suffix of executables... " >&6; }
3000 if { { ac_try="$ac_link"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link") 2>&5
3008 ac_status=$?
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013 # work properly (i.e., refer to `conftest.exe'), while it won't with
3014 # `rm'.
3015 for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020 break;;
3021 * ) break;;
3022 esac
3023 done
3024 else
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 as_fn_error "cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details." "$LINENO" 5; }
3030 rm -f conftest conftest$ac_cv_exeext
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3032 $as_echo "$ac_cv_exeext" >&6; }
3034 rm -f conftest.$ac_ext
3035 EXEEXT=$ac_cv_exeext
3036 ac_exeext=$EXEEXT
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3039 #include <stdio.h>
3041 main ()
3043 FILE *f = fopen ("conftest.out", "w");
3044 return ferror (f) || fclose (f) != 0;
3047 return 0;
3049 _ACEOF
3050 ac_clean_files="$ac_clean_files conftest.out"
3051 # Check that the compiler produces executables we can run. If not, either
3052 # the compiler is broken, or we cross compile.
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3054 $as_echo_n "checking whether we are cross compiling... " >&6; }
3055 if test "$cross_compiling" != yes; then
3056 { { ac_try="$ac_link"
3057 case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link") 2>&5
3064 ac_status=$?
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }
3067 if { ac_try='./conftest$ac_cv_exeext'
3068 { { case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_try") 2>&5
3075 ac_status=$?
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }; }; then
3078 cross_compiling=no
3079 else
3080 if test "$cross_compiling" = maybe; then
3081 cross_compiling=yes
3082 else
3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error "cannot run C++ compiled programs.
3086 If you meant to cross compile, use \`--host'.
3087 See \`config.log' for more details." "$LINENO" 5; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3092 $as_echo "$cross_compiling" >&6; }
3094 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3095 ac_clean_files=$ac_clean_files_save
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3097 $as_echo_n "checking for suffix of object files... " >&6; }
3098 if test "${ac_cv_objext+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3105 main ()
3109 return 0;
3111 _ACEOF
3112 rm -f conftest.o conftest.obj
3113 if { { ac_try="$ac_compile"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_compile") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
3124 for ac_file in conftest.o conftest.obj conftest.*; do
3125 test -f "$ac_file" || continue;
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3129 break;;
3130 esac
3131 done
3132 else
3133 $as_echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error "cannot compute suffix of object files: cannot compile
3139 See \`config.log' for more details." "$LINENO" 5; }
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3144 $as_echo "$ac_cv_objext" >&6; }
3145 OBJEXT=$ac_cv_objext
3146 ac_objext=$OBJEXT
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3148 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3149 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3156 main ()
3158 #ifndef __GNUC__
3159 choke me
3160 #endif
3163 return 0;
3165 _ACEOF
3166 if ac_fn_cxx_try_compile "$LINENO"; then :
3167 ac_compiler_gnu=yes
3168 else
3169 ac_compiler_gnu=no
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3176 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3177 if test $ac_compiler_gnu = yes; then
3178 GXX=yes
3179 else
3180 GXX=
3182 ac_test_CXXFLAGS=${CXXFLAGS+set}
3183 ac_save_CXXFLAGS=$CXXFLAGS
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3185 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3186 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3190 ac_cxx_werror_flag=yes
3191 ac_cv_prog_cxx_g=no
3192 CXXFLAGS="-g"
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3197 main ()
3201 return 0;
3203 _ACEOF
3204 if ac_fn_cxx_try_compile "$LINENO"; then :
3205 ac_cv_prog_cxx_g=yes
3206 else
3207 CXXFLAGS=""
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3212 main ()
3216 return 0;
3218 _ACEOF
3219 if ac_fn_cxx_try_compile "$LINENO"; then :
3221 else
3222 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3223 CXXFLAGS="-g"
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3228 main ()
3232 return 0;
3234 _ACEOF
3235 if ac_fn_cxx_try_compile "$LINENO"; then :
3236 ac_cv_prog_cxx_g=yes
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3246 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3247 if test "$ac_test_CXXFLAGS" = set; then
3248 CXXFLAGS=$ac_save_CXXFLAGS
3249 elif test $ac_cv_prog_cxx_g = yes; then
3250 if test "$GXX" = yes; then
3251 CXXFLAGS="-g -O2"
3252 else
3253 CXXFLAGS="-g"
3255 else
3256 if test "$GXX" = yes; then
3257 CXXFLAGS="-O2"
3258 else
3259 CXXFLAGS=
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3297 IFS=$as_save_IFS
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3312 if test -z "$ac_cv_prog_CC"; then
3313 ac_ct_CC=$CC
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_ac_ct_CC="gcc"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3337 IFS=$as_save_IFS
3341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344 $as_echo "$ac_ct_CC" >&6; }
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3350 if test "x$ac_ct_CC" = x; then
3351 CC=""
3352 else
3353 case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359 CC=$ac_ct_CC
3361 else
3362 CC="$ac_cv_prog_CC"
3365 if test -z "$CC"; then
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}cc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_CC+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_CC="${ac_tool_prefix}cc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3394 CC=$ac_cv_prog_CC
3395 if test -n "$CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397 $as_echo "$CC" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3406 if test -z "$CC"; then
3407 # Extract the first word of "cc", so it can be a program name with args.
3408 set dummy cc; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if test "${ac_cv_prog_CC+set}" = set; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417 ac_prog_rejected=no
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3426 ac_prog_rejected=yes
3427 continue
3429 ac_cv_prog_CC="cc"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3433 done
3434 done
3435 IFS=$as_save_IFS
3437 if test $ac_prog_rejected = yes; then
3438 # We found a bogon in the path, so make sure we never use it.
3439 set dummy $ac_cv_prog_CC
3440 shift
3441 if test $# != 0; then
3442 # We chose a different compiler from the bogus one.
3443 # However, it has the same basename, so the bogon will be chosen
3444 # first if we set CC to just the basename; use the full file name.
3445 shift
3446 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3451 CC=$ac_cv_prog_CC
3452 if test -n "$CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454 $as_echo "$CC" >&6; }
3455 else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3462 if test -z "$CC"; then
3463 if test -n "$ac_tool_prefix"; then
3464 for ac_prog in cl.exe
3466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if test "${ac_cv_prog_CC+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3487 done
3488 done
3489 IFS=$as_save_IFS
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496 $as_echo "$CC" >&6; }
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3503 test -n "$CC" && break
3504 done
3506 if test -z "$CC"; then
3507 ac_ct_CC=$CC
3508 for ac_prog in cl.exe
3510 # Extract the first word of "$ac_prog", so it can be a program name with args.
3511 set dummy $ac_prog; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 if test -n "$ac_ct_CC"; then
3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 ac_cv_prog_ac_ct_CC="$ac_prog"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3531 done
3532 done
3533 IFS=$as_save_IFS
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3540 $as_echo "$ac_ct_CC" >&6; }
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3547 test -n "$ac_ct_CC" && break
3548 done
3550 if test "x$ac_ct_CC" = x; then
3551 CC=""
3552 else
3553 case $cross_compiling:$ac_tool_warned in
3554 yes:)
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3557 ac_tool_warned=yes ;;
3558 esac
3559 CC=$ac_ct_CC
3566 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error "no acceptable C compiler found in \$PATH
3569 See \`config.log' for more details." "$LINENO" 5; }
3571 # Provide some information about the compiler.
3572 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3573 set X $ac_compile
3574 ac_compiler=$2
3575 for ac_option in --version -v -V -qversion; do
3576 { { ac_try="$ac_compiler $ac_option >&5"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3584 ac_status=$?
3585 if test -s conftest.err; then
3586 sed '10a\
3587 ... rest of stderr output deleted ...
3588 10q' conftest.err >conftest.er1
3589 cat conftest.er1 >&5
3591 rm -f conftest.er1 conftest.err
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }
3594 done
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3597 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3598 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3605 main ()
3607 #ifndef __GNUC__
3608 choke me
3609 #endif
3612 return 0;
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_compiler_gnu=yes
3617 else
3618 ac_compiler_gnu=no
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3625 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3626 if test $ac_compiler_gnu = yes; then
3627 GCC=yes
3628 else
3629 GCC=
3631 ac_test_CFLAGS=${CFLAGS+set}
3632 ac_save_CFLAGS=$CFLAGS
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3634 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3635 if test "${ac_cv_prog_cc_g+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 ac_save_c_werror_flag=$ac_c_werror_flag
3639 ac_c_werror_flag=yes
3640 ac_cv_prog_cc_g=no
3641 CFLAGS="-g"
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3646 main ()
3650 return 0;
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_g=yes
3655 else
3656 CFLAGS=""
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3661 main ()
3665 return 0;
3667 _ACEOF
3668 if ac_fn_c_try_compile "$LINENO"; then :
3670 else
3671 ac_c_werror_flag=$ac_save_c_werror_flag
3672 CFLAGS="-g"
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3677 main ()
3681 return 0;
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"; then :
3685 ac_cv_prog_cc_g=yes
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3695 $as_echo "$ac_cv_prog_cc_g" >&6; }
3696 if test "$ac_test_CFLAGS" = set; then
3697 CFLAGS=$ac_save_CFLAGS
3698 elif test $ac_cv_prog_cc_g = yes; then
3699 if test "$GCC" = yes; then
3700 CFLAGS="-g -O2"
3701 else
3702 CFLAGS="-g"
3704 else
3705 if test "$GCC" = yes; then
3706 CFLAGS="-O2"
3707 else
3708 CFLAGS=
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3712 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3713 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 ac_cv_prog_cc_c89=no
3717 ac_save_CC=$CC
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720 #include <stdarg.h>
3721 #include <stdio.h>
3722 #include <sys/types.h>
3723 #include <sys/stat.h>
3724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3725 struct buf { int x; };
3726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3727 static char *e (p, i)
3728 char **p;
3729 int i;
3731 return p[i];
3733 static char *f (char * (*g) (char **, int), char **p, ...)
3735 char *s;
3736 va_list v;
3737 va_start (v,p);
3738 s = g (p, va_arg (v,int));
3739 va_end (v);
3740 return s;
3743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3744 function prototypes and stuff, but not '\xHH' hex character constants.
3745 These don't provoke an error unfortunately, instead are silently treated
3746 as 'x'. The following induces an error, until -std is added to get
3747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3748 array size at least. It's necessary to write '\x00'==0 to get something
3749 that's true only with -std. */
3750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3753 inside strings and character constants. */
3754 #define FOO(x) 'x'
3755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3757 int test (int i, double x);
3758 struct s1 {int (*f) (int a);};
3759 struct s2 {int (*f) (double a);};
3760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3761 int argc;
3762 char **argv;
3764 main ()
3766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3768 return 0;
3770 _ACEOF
3771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3772 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3774 CC="$ac_save_CC $ac_arg"
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_c89=$ac_arg
3778 rm -f core conftest.err conftest.$ac_objext
3779 test "x$ac_cv_prog_cc_c89" != "xno" && break
3780 done
3781 rm -f conftest.$ac_ext
3782 CC=$ac_save_CC
3785 # AC_CACHE_VAL
3786 case "x$ac_cv_prog_cc_c89" in
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3789 $as_echo "none needed" >&6; } ;;
3790 xno)
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3792 $as_echo "unsupported" >&6; } ;;
3794 CC="$CC $ac_cv_prog_cc_c89"
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3796 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3797 esac
3798 if test "x$ac_cv_prog_cc_c89" != xno; then :
3802 ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808 case $ac_cv_prog_cc_stdc in #(
3809 no) :
3810 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3811 *) :
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3813 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3814 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 ac_cv_prog_cc_c99=no
3818 ac_save_CC=$CC
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821 #include <stdarg.h>
3822 #include <stdbool.h>
3823 #include <stdlib.h>
3824 #include <wchar.h>
3825 #include <stdio.h>
3827 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3828 #define debug(...) fprintf (stderr, __VA_ARGS__)
3829 #define showlist(...) puts (#__VA_ARGS__)
3830 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3831 static void
3832 test_varargs_macros (void)
3834 int x = 1234;
3835 int y = 5678;
3836 debug ("Flag");
3837 debug ("X = %d\n", x);
3838 showlist (The first, second, and third items.);
3839 report (x>y, "x is %d but y is %d", x, y);
3842 // Check long long types.
3843 #define BIG64 18446744073709551615ull
3844 #define BIG32 4294967295ul
3845 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3846 #if !BIG_OK
3847 your preprocessor is broken;
3848 #endif
3849 #if BIG_OK
3850 #else
3851 your preprocessor is broken;
3852 #endif
3853 static long long int bignum = -9223372036854775807LL;
3854 static unsigned long long int ubignum = BIG64;
3856 struct incomplete_array
3858 int datasize;
3859 double data[];
3862 struct named_init {
3863 int number;
3864 const wchar_t *name;
3865 double average;
3868 typedef const char *ccp;
3870 static inline int
3871 test_restrict (ccp restrict text)
3873 // See if C++-style comments work.
3874 // Iterate through items via the restricted pointer.
3875 // Also check for declarations in for loops.
3876 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3877 continue;
3878 return 0;
3881 // Check varargs and va_copy.
3882 static void
3883 test_varargs (const char *format, ...)
3885 va_list args;
3886 va_start (args, format);
3887 va_list args_copy;
3888 va_copy (args_copy, args);
3890 const char *str;
3891 int number;
3892 float fnumber;
3894 while (*format)
3896 switch (*format++)
3898 case 's': // string
3899 str = va_arg (args_copy, const char *);
3900 break;
3901 case 'd': // int
3902 number = va_arg (args_copy, int);
3903 break;
3904 case 'f': // float
3905 fnumber = va_arg (args_copy, double);
3906 break;
3907 default:
3908 break;
3911 va_end (args_copy);
3912 va_end (args);
3916 main ()
3919 // Check bool.
3920 _Bool success = false;
3922 // Check restrict.
3923 if (test_restrict ("String literal") == 0)
3924 success = true;
3925 char *restrict newvar = "Another string";
3927 // Check varargs.
3928 test_varargs ("s, d' f .", "string", 65, 34.234);
3929 test_varargs_macros ();
3931 // Check flexible array members.
3932 struct incomplete_array *ia =
3933 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3934 ia->datasize = 10;
3935 for (int i = 0; i < ia->datasize; ++i)
3936 ia->data[i] = i * 1.234;
3938 // Check named initializers.
3939 struct named_init ni = {
3940 .number = 34,
3941 .name = L"Test wide string",
3942 .average = 543.34343,
3945 ni.number = 58;
3947 int dynamic_array[ni.number];
3948 dynamic_array[ni.number - 1] = 543;
3950 // work around unused variable warnings
3951 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3952 || dynamic_array[ni.number - 1] != 543);
3955 return 0;
3957 _ACEOF
3958 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3960 CC="$ac_save_CC $ac_arg"
3961 if ac_fn_c_try_compile "$LINENO"; then :
3962 ac_cv_prog_cc_c99=$ac_arg
3964 rm -f core conftest.err conftest.$ac_objext
3965 test "x$ac_cv_prog_cc_c99" != "xno" && break
3966 done
3967 rm -f conftest.$ac_ext
3968 CC=$ac_save_CC
3971 # AC_CACHE_VAL
3972 case "x$ac_cv_prog_cc_c99" in
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3975 $as_echo "none needed" >&6; } ;;
3976 xno)
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3978 $as_echo "unsupported" >&6; } ;;
3980 CC="$CC $ac_cv_prog_cc_c99"
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3982 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3983 esac
3984 if test "x$ac_cv_prog_cc_c99" != xno; then :
3985 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3986 else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3988 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3989 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 ac_cv_prog_cc_c89=no
3993 ac_save_CC=$CC
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <stdarg.h>
3997 #include <stdio.h>
3998 #include <sys/types.h>
3999 #include <sys/stat.h>
4000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4001 struct buf { int x; };
4002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4003 static char *e (p, i)
4004 char **p;
4005 int i;
4007 return p[i];
4009 static char *f (char * (*g) (char **, int), char **p, ...)
4011 char *s;
4012 va_list v;
4013 va_start (v,p);
4014 s = g (p, va_arg (v,int));
4015 va_end (v);
4016 return s;
4019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4020 function prototypes and stuff, but not '\xHH' hex character constants.
4021 These don't provoke an error unfortunately, instead are silently treated
4022 as 'x'. The following induces an error, until -std is added to get
4023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4024 array size at least. It's necessary to write '\x00'==0 to get something
4025 that's true only with -std. */
4026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4029 inside strings and character constants. */
4030 #define FOO(x) 'x'
4031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4033 int test (int i, double x);
4034 struct s1 {int (*f) (int a);};
4035 struct s2 {int (*f) (double a);};
4036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4037 int argc;
4038 char **argv;
4040 main ()
4042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4044 return 0;
4046 _ACEOF
4047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4050 CC="$ac_save_CC $ac_arg"
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_cv_prog_cc_c89=$ac_arg
4054 rm -f core conftest.err conftest.$ac_objext
4055 test "x$ac_cv_prog_cc_c89" != "xno" && break
4056 done
4057 rm -f conftest.$ac_ext
4058 CC=$ac_save_CC
4061 # AC_CACHE_VAL
4062 case "x$ac_cv_prog_cc_c89" in
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4065 $as_echo "none needed" >&6; } ;;
4066 xno)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4068 $as_echo "unsupported" >&6; } ;;
4070 CC="$CC $ac_cv_prog_cc_c89"
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4072 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4073 esac
4074 if test "x$ac_cv_prog_cc_c89" != xno; then :
4075 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4076 else
4077 ac_cv_prog_cc_stdc=no
4082 esac
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4084 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4085 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4089 case $ac_cv_prog_cc_stdc in #(
4090 no) :
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4092 $as_echo "unsupported" >&6; } ;; #(
4093 '') :
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4095 $as_echo "none needed" >&6; } ;; #(
4096 *) :
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4098 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4099 esac
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4107 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4108 # On Suns, sometimes $CPP names a directory.
4109 if test -n "$CPP" && test -d "$CPP"; then
4110 CPP=
4112 if test -z "$CPP"; then
4113 if test "${ac_cv_prog_CPP+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 # Double quotes because CPP needs to be expanded
4117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4119 ac_preproc_ok=false
4120 for ac_c_preproc_warn_flag in '' yes
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error" is here to catch this case.
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #ifdef __STDC__
4131 # include <limits.h>
4132 #else
4133 # include <assert.h>
4134 #endif
4135 Syntax error
4136 _ACEOF
4137 if ac_fn_c_try_cpp "$LINENO"; then :
4139 else
4140 # Broken: fails on valid input.
4141 continue
4143 rm -f conftest.err conftest.$ac_ext
4145 # OK, works on sane cases. Now check whether nonexistent headers
4146 # can be detected and how.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #include <ac_nonexistent.h>
4150 _ACEOF
4151 if ac_fn_c_try_cpp "$LINENO"; then :
4152 # Broken: success on invalid input.
4153 continue
4154 else
4155 # Passes both tests.
4156 ac_preproc_ok=:
4157 break
4159 rm -f conftest.err conftest.$ac_ext
4161 done
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then :
4165 break
4168 done
4169 ac_cv_prog_CPP=$CPP
4172 CPP=$ac_cv_prog_CPP
4173 else
4174 ac_cv_prog_CPP=$CPP
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4177 $as_echo "$CPP" >&6; }
4178 ac_preproc_ok=false
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error" is here to catch this case.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #ifdef __STDC__
4190 # include <limits.h>
4191 #else
4192 # include <assert.h>
4193 #endif
4194 Syntax error
4195 _ACEOF
4196 if ac_fn_c_try_cpp "$LINENO"; then :
4198 else
4199 # Broken: fails on valid input.
4200 continue
4202 rm -f conftest.err conftest.$ac_ext
4204 # OK, works on sane cases. Now check whether nonexistent headers
4205 # can be detected and how.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <ac_nonexistent.h>
4209 _ACEOF
4210 if ac_fn_c_try_cpp "$LINENO"; then :
4211 # Broken: success on invalid input.
4212 continue
4213 else
4214 # Passes both tests.
4215 ac_preproc_ok=:
4216 break
4218 rm -f conftest.err conftest.$ac_ext
4220 done
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then :
4225 else
4226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4229 See \`config.log' for more details." "$LINENO" 5; }
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 # Check for a compatible awk
4240 for ac_prog in gawk nawk
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if test "${ac_cv_prog_AWK+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$AWK"; then
4250 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_AWK="$ac_prog"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 AWK=$ac_cv_prog_AWK
4270 if test -n "$AWK"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4272 $as_echo "$AWK" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4279 test -n "$AWK" && break
4280 done
4282 if test "$AWK" = ""; then
4283 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4285 # Extract the first word of "mmake", so it can be a program name with args.
4286 set dummy mmake; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if test "${ac_cv_prog_MMAKE+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$MMAKE"; then
4293 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_MMAKE="mmake "
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4308 IFS=$as_save_IFS
4312 MMAKE=$ac_cv_prog_MMAKE
4313 if test -n "$MMAKE"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4315 $as_echo "$MMAKE" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4323 # Perform some default variable assignments. Note all of these will be
4324 # Regenerated from the script, so there is no need to cache them.
4326 aros_host_cpp="$CPP"
4327 aros_host_cc="$CC"
4328 aros_host_cxx="$CXX"
4329 if test "$GCC" = "yes"; then
4330 aros_gcc_ld=`$CC -print-prog-name=ld`
4331 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4332 set dummy `basename $aros_gcc_ld`; ac_word=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 case $aros_host_ld in
4339 [\\/]* | ?:[\\/]*)
4340 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in `dirname $aros_gcc_ld`
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4354 done
4355 done
4356 IFS=$as_save_IFS
4359 esac
4361 aros_host_ld=$ac_cv_path_aros_host_ld
4362 if test -n "$aros_host_ld"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4364 $as_echo "$aros_host_ld" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4372 if test "$aros_host_ld" = ""; then
4373 # Extract the first word of "ld", so it can be a program name with args.
4374 set dummy ld; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 case $aros_host_ld in
4381 [\\/]* | ?:[\\/]*)
4382 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4396 done
4397 done
4398 IFS=$as_save_IFS
4401 esac
4403 aros_host_ld=$ac_cv_path_aros_host_ld
4404 if test -n "$aros_host_ld"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4406 $as_echo "$aros_host_ld" >&6; }
4407 else
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4414 if test "$aros_host_ld" = ""; then
4415 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4417 aros_host_make="make"
4418 aros_host_cflags=$CFLAGS
4419 aros_host_cxxflags=$CXXFLAGS
4420 aros_host_ldflags=$LDFLAGS
4421 aros_host_debug="-g -O0"
4422 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4423 aros_host_mkargs="--no-print-directory"
4424 aros_host_exe_suffix="$EXEEXT"
4425 aros_host_lib_suffix=""
4427 # Ignore all compliance, AROS ROMs = 0
4428 # KickStart v1.0 = 30
4429 # KickStart v1.3 = 34
4430 # KickStart v2.0 = 37
4431 # KickStart v3.0 = 39
4432 # KickStart v3.1 = 40
4433 # AmigaOS v3.5 = 44
4434 aros_amigaos_compliance=0
4436 for ac_prog in aclocal aclocal19 aclocal-1.9
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$aros_host_aclocal"; then
4446 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_aros_host_aclocal="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4461 IFS=$as_save_IFS
4465 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4466 if test -n "$aros_host_aclocal"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4468 $as_echo "$aros_host_aclocal" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$aros_host_aclocal" && break
4476 done
4478 for ac_prog in autoconf autoconf259 autoconf253
4480 # Extract the first word of "$ac_prog", so it can be a program name with args.
4481 set dummy $ac_prog; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$aros_host_autoconf"; then
4488 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_aros_host_autoconf="$ac_prog"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4503 IFS=$as_save_IFS
4507 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4508 if test -n "$aros_host_autoconf"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4510 $as_echo "$aros_host_autoconf" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4517 test -n "$aros_host_autoconf" && break
4518 done
4520 for ac_prog in autoheader autoheader259 autoheader253
4522 # Extract the first word of "$ac_prog", so it can be a program name with args.
4523 set dummy $ac_prog; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 if test -n "$aros_host_autoheader"; then
4530 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_aros_host_autoheader="$ac_prog"
4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4543 done
4544 done
4545 IFS=$as_save_IFS
4549 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4550 if test -n "$aros_host_autoheader"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4552 $as_echo "$aros_host_autoheader" >&6; }
4553 else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4559 test -n "$aros_host_autoheader" && break
4560 done
4562 for ac_prog in automake automake19 automake-1.9
4564 # Extract the first word of "$ac_prog", so it can be a program name with args.
4565 set dummy $ac_prog; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$aros_host_automake"; then
4572 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_aros_host_automake="$ac_prog"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4585 done
4586 done
4587 IFS=$as_save_IFS
4591 aros_host_automake=$ac_cv_prog_aros_host_automake
4592 if test -n "$aros_host_automake"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4594 $as_echo "$aros_host_automake" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4601 test -n "$aros_host_automake" && break
4602 done
4605 if test "$aros_host_aclocal" = ""; then
4606 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4608 if test "$aros_host_automake" = ""; then
4609 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4612 case "$aros_host_cc" in
4613 *gcc*)
4614 aros_host_cc_pipe="-pipe"
4616 icc)
4617 aros_host_cc_pipe=""
4620 aros_host_cc_pipe=""
4622 esac
4624 aros_kernel_cc_includes=""
4625 aros_target_cc_includes=""
4626 host_cc_elf=yes
4628 # ----------------------------------------------------------------------------------------
4629 # Host-specific defaults
4631 # This is the main host configuration section. It is where the host
4632 # can change the values of any variables it needs to change. We do
4633 # not look at anything that compiles to the target yet, we'll get
4634 # to that later.
4636 case "$host_os" in
4637 aros*)
4638 aros_host_arch="aros"
4639 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4640 case "$host_cpu" in
4641 *i?86*)
4642 aros_host_cpu="i386"
4644 *x86_64*)
4645 aros_host_cpu="x86_64"
4647 *powerpc*)
4648 aros_host_cpu="ppc"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4652 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4653 aros_host_cpu="$host_cpu"
4655 esac
4658 linux*)
4659 aros_host_arch="linux"
4660 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4661 android_build_os="linux-x86"
4662 android_tool="android"
4663 default_android_sdk="/opt/android-sdk-linux_x86"
4664 case "$host_cpu" in
4665 *i?86*)
4666 aros_host_cpu="i386"
4668 *x86_64*)
4669 aros_host_cpu="x86_64"
4671 *m68k*)
4672 aros_host_cpu="m68k"
4674 *powerpc*)
4675 aros_host_cpu="ppc"
4677 *arm*)
4678 aros_host_cpu="arm"
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4682 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4683 aros_host_cpu="$host_cpu"
4685 esac
4688 freebsd*)
4689 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4690 aros_host_make="gmake"
4691 aros_host_arch="freebsd"
4692 aros_host_cpu="i386"
4694 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4696 case $host_os in
4697 freebsd[234]*)
4698 aros_object_format="elf_i386"
4702 aros_object_format="elf_i386_fbsd"
4704 esac
4708 darwin*)
4709 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4710 aros_host_arch="darwin"
4711 host_cc_elf=no
4712 android_build_os="darwin-x86"
4713 android_tool="android"
4714 default_android_sdk="/android-sdk-mac_x86"
4715 case "$host_cpu" in
4716 *i?86*)
4717 aros_host_cpu="i386"
4719 *x86_64*)
4720 aros_host_cpu="x86_64"
4722 *powerpc*)
4723 aros_host_cpu="ppc"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4727 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4728 aros_host_cpu="$host_cpu"
4730 esac
4732 aros_host_ldflags="$aros_host_ldflags -liconv"
4736 dragonfly*)
4737 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4738 aros_host_make="gmake"
4739 aros_host_arch="dragonfly"
4740 case $host_cpu in
4741 *i?86*)
4742 aros_host_cpu="i386"
4744 *amd64*)
4745 aros_host_cpu="x86_64"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4749 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4750 aros_host_cpu="$host_cpu"
4752 esac
4755 netbsd*)
4756 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4757 aros_host_make="gmake"
4758 aros_host_arch="netbsd"
4759 case "$host_cpu" in
4760 *i?86*)
4761 aros_host_cpu="i386"
4763 *m68k*)
4764 aros_host_cpu="m68k"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4768 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4769 aros_host_cpu="$host_cpu"
4771 esac
4772 aros_host_lib_suffix=".0.0"
4775 openbsd*)
4776 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4777 aros_host_make="gmake"
4778 aros_host_arch="openbsd"
4779 case "$host_cpu" in
4780 *i?86*)
4781 aros_host_cpu="i386"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4785 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4786 aros_host_cpu="$host_cpu"
4788 esac
4791 solaris*)
4792 aros_host_arch="solaris"
4793 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4794 case "$host_cpu" in
4795 *i?86*)
4796 aros_host_cpu="i386"
4798 *sparc*)
4799 aros_host_cpu="sparc"
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4803 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4804 aros_host_cpu="$host_cpu"
4806 esac
4809 morphos*)
4810 aros_host_arch="morphos"
4811 aros_host_cpu="ppc"
4812 host_cc_elf=no
4815 amiga*)
4816 aros_host_arch="amiga"
4817 host_cc_elf=no
4818 SORT="/gg/bin/sort"
4819 TEST="/gg/bin/test"
4820 UNIQ="/gg/bin/uniq"
4821 FOR="for"
4822 TOUCH="/gg/bin/touch"
4823 case "$host_cpu" in
4824 *m68k*)
4825 aros_host_cpu="m68k"
4827 *powerpc*)
4828 aros_host_cpu="ppc"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4832 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4833 aros_host_cpu="$host_cpu"
4835 esac
4838 cygwin*)
4839 aros_host_arch="cygwin"
4840 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4841 host_cc_elf=no
4842 android_build_os="windows"
4843 android_tool="android.bat"
4844 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4846 case "$host_cpu" in
4847 *i?86*)
4848 aros_host_cpu="i386"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4852 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4853 aros_host_cpu="$host_cpu"
4855 esac
4858 mingw32*)
4859 aros_host_arch="mingw32"
4860 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4861 host_cc_elf=no
4862 android_build_os="windows"
4863 android_tool="android.bat"
4864 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4866 case "$host_cpu" in
4867 *i?86*)
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4870 $as_echo_n "checking for Windows native gcc target... " >&6; }
4871 host_cpu=`gcc -dumpmachine`
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4873 $as_echo "$host_cpu" >&6; }
4876 esac
4878 case "$host_cpu" in
4879 *i?86*)
4880 aros_host_cpu="i386"
4883 mingw32*)
4884 aros_host_cpu="i386"
4887 *x86_64*)
4888 aros_host_cpu="x86_64"
4889 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4894 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4895 aros_host_cpu="$host_cpu"
4897 esac
4900 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4902 esac
4904 # Extract the first word of "ar", so it can be a program name with args.
4905 set dummy ar; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$aros_host_ar"; then
4912 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_aros_host_ar="ar cr"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4925 done
4926 done
4927 IFS=$as_save_IFS
4931 aros_host_ar=$ac_cv_prog_aros_host_ar
4932 if test -n "$aros_host_ar"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4934 $as_echo "$aros_host_ar" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4941 if test "$aros_host_ar" = ""; then
4942 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4944 # Extract the first word of "ranlib", so it can be a program name with args.
4945 set dummy ranlib; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 if test -n "$aros_host_ranlib"; then
4952 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_prog_aros_host_ranlib="ranlib "
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4965 done
4966 done
4967 IFS=$as_save_IFS
4971 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4972 if test -n "$aros_host_ranlib"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4974 $as_echo "$aros_host_ranlib" >&6; }
4975 else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4981 if test "$aros_host_ranlib" = ""; then
4982 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4984 # Extract the first word of "strip", so it can be a program name with args.
4985 set dummy strip; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$aros_host_strip"; then
4992 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_prog_aros_host_strip="strip "
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5011 aros_host_strip=$ac_cv_prog_aros_host_strip
5012 if test -n "$aros_host_strip"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5014 $as_echo "$aros_host_strip" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 if test "$aros_host_strip" = ""; then
5022 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5025 # Extract the first word of "rm", so it can be a program name with args.
5026 set dummy rm; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if test "${ac_cv_prog_RM+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if test -n "$RM"; then
5033 ac_cv_prog_RM="$RM" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_prog_RM="rm -rf"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5046 done
5047 done
5048 IFS=$as_save_IFS
5052 RM=$ac_cv_prog_RM
5053 if test -n "$RM"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5055 $as_echo "$RM" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5062 if test "$RM" = ""; then
5063 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5065 # Extract the first word of "cp", so it can be a program name with args.
5066 set dummy cp; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if test "${ac_cv_prog_CP+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$CP"; then
5073 ac_cv_prog_CP="$CP" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_prog_CP="cp "
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5086 done
5087 done
5088 IFS=$as_save_IFS
5092 CP=$ac_cv_prog_CP
5093 if test -n "$CP"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5095 $as_echo "$CP" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5102 if test "$CP" = ""; then
5103 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5105 # Extract the first word of "mv", so it can be a program name with args.
5106 set dummy mv; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if test "${ac_cv_prog_MV+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$MV"; then
5113 ac_cv_prog_MV="$MV" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_MV="mv "
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 MV=$ac_cv_prog_MV
5133 if test -n "$MV"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5135 $as_echo "$MV" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5142 if test "$MV" = ""; then
5143 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5145 # Extract the first word of "echo", so it can be a program name with args.
5146 set dummy echo; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if test "${ac_cv_prog_ECHO+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$ECHO"; then
5153 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162 ac_cv_prog_ECHO="echo "
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5166 done
5167 done
5168 IFS=$as_save_IFS
5172 ECHO=$ac_cv_prog_ECHO
5173 if test -n "$ECHO"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5175 $as_echo "$ECHO" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5182 if test "$ECHO" = ""; then
5183 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5185 # Extract the first word of "mkdir", so it can be a program name with args.
5186 set dummy mkdir; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if test "${ac_cv_prog_MKDIR+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$MKDIR"; then
5193 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_prog_MKDIR="mkdir -p"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5206 done
5207 done
5208 IFS=$as_save_IFS
5212 MKDIR=$ac_cv_prog_MKDIR
5213 if test -n "$MKDIR"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5215 $as_echo "$MKDIR" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5222 if test "$MKDIR" = ""; then
5223 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5225 # Extract the first word of "touch", so it can be a program name with args.
5226 set dummy touch; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_TOUCH+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$TOUCH"; then
5233 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_prog_TOUCH="touch "
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5246 done
5247 done
5248 IFS=$as_save_IFS
5252 TOUCH=$ac_cv_prog_TOUCH
5253 if test -n "$TOUCH"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5255 $as_echo "$TOUCH" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5262 if test "$TOUCH" = ""; then
5263 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5265 # Extract the first word of "sort", so it can be a program name with args.
5266 set dummy sort; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_SORT+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$SORT"; then
5273 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_SORT="sort "
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5288 IFS=$as_save_IFS
5292 SORT=$ac_cv_prog_SORT
5293 if test -n "$SORT"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5295 $as_echo "$SORT" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5302 if test "$SORT" = ""; then
5303 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5305 # Extract the first word of "uniq", so it can be a program name with args.
5306 set dummy uniq; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_UNIQ+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$UNIQ"; then
5313 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_UNIQ="uniq "
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5326 done
5327 done
5328 IFS=$as_save_IFS
5332 UNIQ=$ac_cv_prog_UNIQ
5333 if test -n "$UNIQ"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5335 $as_echo "$UNIQ" >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5342 if test "$UNIQ" = ""; then
5343 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5345 # Extract the first word of "true", so it can be a program name with args.
5346 set dummy true; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_NOP+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$NOP"; then
5353 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_NOP="true "
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5366 done
5367 done
5368 IFS=$as_save_IFS
5372 NOP=$ac_cv_prog_NOP
5373 if test -n "$NOP"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5375 $as_echo "$NOP" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5382 if test "$NOP" = ""; then
5383 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5385 # Extract the first word of "cat", so it can be a program name with args.
5386 set dummy cat; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_CAT+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$CAT"; then
5393 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_CAT="cat "
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5406 done
5407 done
5408 IFS=$as_save_IFS
5412 CAT=$ac_cv_prog_CAT
5413 if test -n "$CAT"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5415 $as_echo "$CAT" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5422 if test "$CAT" = ""; then
5423 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5425 # Extract the first word of "bison", so it can be a program name with args.
5426 set dummy bison; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if test "${ac_cv_prog_BISON+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$BISON"; then
5433 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_BISON="bison "
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5446 done
5447 done
5448 IFS=$as_save_IFS
5452 BISON=$ac_cv_prog_BISON
5453 if test -n "$BISON"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5455 $as_echo "$BISON" >&6; }
5456 else
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5462 if test "$BISON" = ""; then
5463 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5465 # Extract the first word of "flex", so it can be a program name with args.
5466 set dummy flex; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if test "${ac_cv_prog_FLEX+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$FLEX"; then
5473 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_prog_FLEX="flex "
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5486 done
5487 done
5488 IFS=$as_save_IFS
5492 FLEX=$ac_cv_prog_FLEX
5493 if test -n "$FLEX"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5495 $as_echo "$FLEX" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5502 if test "$FLEX" = ""; then
5503 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5505 # Extract the first word of "pngtopnm", so it can be a program name with args.
5506 set dummy pngtopnm; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$PNGTOPNM"; then
5513 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_PNGTOPNM="pngtopnm "
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5526 done
5527 done
5528 IFS=$as_save_IFS
5532 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5533 if test -n "$PNGTOPNM"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5535 $as_echo "$PNGTOPNM" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5542 if test "$PNGTOPNM" = ""; then
5543 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5545 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5546 set dummy ppmtoilbm; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$PPMTOILBM"; then
5553 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5566 done
5567 done
5568 IFS=$as_save_IFS
5572 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5573 if test -n "$PPMTOILBM"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5575 $as_echo "$PPMTOILBM" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5582 if test "$PPMTOILBM" = ""; then
5583 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5585 # Extract the first word of "sed", so it can be a program name with args.
5586 set dummy sed; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if test "${ac_cv_prog_SED+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$SED"; then
5593 ac_cv_prog_SED="$SED" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602 ac_cv_prog_SED="sed "
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5608 IFS=$as_save_IFS
5612 SED=$ac_cv_prog_SED
5613 if test -n "$SED"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5615 $as_echo "$SED" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5622 if test "$SED" = ""; then
5623 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5625 # Extract the first word of "chmod", so it can be a program name with args.
5626 set dummy chmod; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 if test -n "$CHMOD"; then
5633 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_prog_CHMOD="chmod "
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5646 done
5647 done
5648 IFS=$as_save_IFS
5652 CHMOD=$ac_cv_prog_CHMOD
5653 if test -n "$CHMOD"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5655 $as_echo "$CHMOD" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5662 if test "$CHMOD" = ""; then
5663 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5665 # Extract the first word of "patch", so it can be a program name with args.
5666 set dummy patch; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if test "${ac_cv_prog_PATCH+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if test -n "$PATCH"; then
5673 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_prog_PATCH="patch "
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5686 done
5687 done
5688 IFS=$as_save_IFS
5692 PATCH=$ac_cv_prog_PATCH
5693 if test -n "$PATCH"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5695 $as_echo "$PATCH" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5702 if test "$PATCH" = ""; then
5703 as_fn_error "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5712 if test -n "$PYTHON"; then
5713 # If the user set $PYTHON, use it and don't search something else.
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5715 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5716 prog="import sys
5717 # split strings by '.' and convert to numeric. Append some zeros
5718 # because we need at least 4 digits for the hex conversion.
5719 # map returns an iterator in Python 3.0 and a list in 2.x
5720 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5721 minverhex = 0
5722 # xrange is not present in Python 3.0 and range returns an iterator
5723 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5724 sys.exit(sys.hexversion < minverhex)"
5725 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5726 ($PYTHON -c "$prog") >&5 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; then :
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5731 $as_echo "yes" >&6; }
5732 else
5733 as_fn_error "too old" "$LINENO" 5
5735 am_display_PYTHON=$PYTHON
5736 else
5737 # Otherwise, try each interpreter until we find one that satisfies
5738 # VERSION.
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5740 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5741 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5745 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
5746 test "$am_cv_pathless_PYTHON" = none && break
5747 prog="import sys
5748 # split strings by '.' and convert to numeric. Append some zeros
5749 # because we need at least 4 digits for the hex conversion.
5750 # map returns an iterator in Python 3.0 and a list in 2.x
5751 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5752 minverhex = 0
5753 # xrange is not present in Python 3.0 and range returns an iterator
5754 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5755 sys.exit(sys.hexversion < minverhex)"
5756 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5757 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; then :
5761 break
5763 done
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5766 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5767 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5768 if test "$am_cv_pathless_PYTHON" = none; then
5769 PYTHON=:
5770 else
5771 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5772 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if test "${ac_cv_path_PYTHON+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 case $PYTHON in
5779 [\\/]* | ?:[\\/]*)
5780 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5794 done
5795 done
5796 IFS=$as_save_IFS
5799 esac
5801 PYTHON=$ac_cv_path_PYTHON
5802 if test -n "$PYTHON"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5804 $as_echo "$PYTHON" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5812 am_display_PYTHON=$am_cv_pathless_PYTHON
5816 if test "$PYTHON" = :; then
5817 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5818 else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5822 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5823 if test "${am_cv_python_version+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5829 $as_echo "$am_cv_python_version" >&6; }
5830 PYTHON_VERSION=$am_cv_python_version
5834 PYTHON_PREFIX='${prefix}'
5836 PYTHON_EXEC_PREFIX='${exec_prefix}'
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5841 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5842 if test "${am_cv_python_platform+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5848 $as_echo "$am_cv_python_platform" >&6; }
5849 PYTHON_PLATFORM=$am_cv_python_platform
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5855 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5856 if test "${am_cv_python_pythondir+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test "x$prefix" = xNONE
5860 then
5861 am_py_prefix=$ac_default_prefix
5862 else
5863 am_py_prefix=$prefix
5865 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`
5866 case $am_cv_python_pythondir in
5867 $am_py_prefix*)
5868 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5869 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5872 case $am_py_prefix in
5873 /usr|/System*) ;;
5875 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5877 esac
5879 esac
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5883 $as_echo "$am_cv_python_pythondir" >&6; }
5884 pythondir=$am_cv_python_pythondir
5888 pkgpythondir=\${pythondir}/$PACKAGE
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5892 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5893 if test "${am_cv_python_pyexecdir+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test "x$exec_prefix" = xNONE
5897 then
5898 am_py_exec_prefix=$am_py_prefix
5899 else
5900 am_py_exec_prefix=$exec_prefix
5902 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`
5903 case $am_cv_python_pyexecdir in
5904 $am_py_exec_prefix*)
5905 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5906 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5909 case $am_py_exec_prefix in
5910 /usr|/System*) ;;
5912 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5914 esac
5916 esac
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5920 $as_echo "$am_cv_python_pyexecdir" >&6; }
5921 pyexecdir=$am_cv_python_pyexecdir
5925 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5935 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5936 if test "${ac_cv_lib_png_png_read_png+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 ac_check_lib_save_LIBS=$LIBS
5940 LIBS="-lpng $LIBS"
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5944 /* Override any GCC internal prototype to avoid an error.
5945 Use char because int might match the return type of a GCC
5946 builtin and then its argument prototype would still apply. */
5947 #ifdef __cplusplus
5948 extern "C"
5949 #endif
5950 char png_read_png ();
5952 main ()
5954 return png_read_png ();
5956 return 0;
5958 _ACEOF
5959 if ac_fn_c_try_link "$LINENO"; then :
5960 ac_cv_lib_png_png_read_png=yes
5961 else
5962 ac_cv_lib_png_png_read_png=no
5964 rm -f core conftest.err conftest.$ac_objext \
5965 conftest$ac_exeext conftest.$ac_ext
5966 LIBS=$ac_check_lib_save_LIBS
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
5969 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
5970 if test "x$ac_cv_lib_png_png_read_png" = x""yes; then :
5971 cat >>confdefs.h <<_ACEOF
5972 #define HAVE_LIBPNG 1
5973 _ACEOF
5975 LIBS="-lpng $LIBS"
5979 if test "$ac_cv_lib_png_png_read_png" = ""; then
5980 as_fn_error "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
5983 FOR=for
5985 IF=if
5987 TEST=test
5989 CMP=cmp
5993 # Check for some includes for the X11 HIDD and the kernel
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5996 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5997 if test "${ac_cv_path_GREP+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if test -z "$GREP"; then
6001 ac_path_GREP_found=false
6002 # Loop through the user's path and test for each of PROGNAME-LIST
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_prog in grep ggrep; do
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6011 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6012 # Check for GNU ac_path_GREP and select it if it is found.
6013 # Check for GNU $ac_path_GREP
6014 case `"$ac_path_GREP" --version 2>&1` in
6015 *GNU*)
6016 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6018 ac_count=0
6019 $as_echo_n 0123456789 >"conftest.in"
6020 while :
6022 cat "conftest.in" "conftest.in" >"conftest.tmp"
6023 mv "conftest.tmp" "conftest.in"
6024 cp "conftest.in" "conftest.nl"
6025 $as_echo 'GREP' >> "conftest.nl"
6026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6028 as_fn_arith $ac_count + 1 && ac_count=$as_val
6029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6030 # Best one so far, save it but keep looking for a better one
6031 ac_cv_path_GREP="$ac_path_GREP"
6032 ac_path_GREP_max=$ac_count
6034 # 10*(2^10) chars as input seems more than enough
6035 test $ac_count -gt 10 && break
6036 done
6037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6038 esac
6040 $ac_path_GREP_found && break 3
6041 done
6042 done
6043 done
6044 IFS=$as_save_IFS
6045 if test -z "$ac_cv_path_GREP"; then
6046 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6048 else
6049 ac_cv_path_GREP=$GREP
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6054 $as_echo "$ac_cv_path_GREP" >&6; }
6055 GREP="$ac_cv_path_GREP"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6059 $as_echo_n "checking for egrep... " >&6; }
6060 if test "${ac_cv_path_EGREP+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6064 then ac_cv_path_EGREP="$GREP -E"
6065 else
6066 if test -z "$EGREP"; then
6067 ac_path_EGREP_found=false
6068 # Loop through the user's path and test for each of PROGNAME-LIST
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_prog in egrep; do
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6077 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6078 # Check for GNU ac_path_EGREP and select it if it is found.
6079 # Check for GNU $ac_path_EGREP
6080 case `"$ac_path_EGREP" --version 2>&1` in
6081 *GNU*)
6082 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6084 ac_count=0
6085 $as_echo_n 0123456789 >"conftest.in"
6086 while :
6088 cat "conftest.in" "conftest.in" >"conftest.tmp"
6089 mv "conftest.tmp" "conftest.in"
6090 cp "conftest.in" "conftest.nl"
6091 $as_echo 'EGREP' >> "conftest.nl"
6092 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6094 as_fn_arith $ac_count + 1 && ac_count=$as_val
6095 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6096 # Best one so far, save it but keep looking for a better one
6097 ac_cv_path_EGREP="$ac_path_EGREP"
6098 ac_path_EGREP_max=$ac_count
6100 # 10*(2^10) chars as input seems more than enough
6101 test $ac_count -gt 10 && break
6102 done
6103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6104 esac
6106 $ac_path_EGREP_found && break 3
6107 done
6108 done
6109 done
6110 IFS=$as_save_IFS
6111 if test -z "$ac_cv_path_EGREP"; then
6112 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6114 else
6115 ac_cv_path_EGREP=$EGREP
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6121 $as_echo "$ac_cv_path_EGREP" >&6; }
6122 EGREP="$ac_cv_path_EGREP"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6126 $as_echo_n "checking for ANSI C header files... " >&6; }
6127 if test "${ac_cv_header_stdc+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <stdlib.h>
6133 #include <stdarg.h>
6134 #include <string.h>
6135 #include <float.h>
6138 main ()
6142 return 0;
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146 ac_cv_header_stdc=yes
6147 else
6148 ac_cv_header_stdc=no
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 if test $ac_cv_header_stdc = yes; then
6153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 #include <string.h>
6158 _ACEOF
6159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6160 $EGREP "memchr" >/dev/null 2>&1; then :
6162 else
6163 ac_cv_header_stdc=no
6165 rm -f conftest*
6169 if test $ac_cv_header_stdc = yes; then
6170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 #include <stdlib.h>
6175 _ACEOF
6176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177 $EGREP "free" >/dev/null 2>&1; then :
6179 else
6180 ac_cv_header_stdc=no
6182 rm -f conftest*
6186 if test $ac_cv_header_stdc = yes; then
6187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6188 if test "$cross_compiling" = yes; then :
6190 else
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #include <ctype.h>
6194 #include <stdlib.h>
6195 #if ((' ' & 0x0FF) == 0x020)
6196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6198 #else
6199 # define ISLOWER(c) \
6200 (('a' <= (c) && (c) <= 'i') \
6201 || ('j' <= (c) && (c) <= 'r') \
6202 || ('s' <= (c) && (c) <= 'z'))
6203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6204 #endif
6206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6208 main ()
6210 int i;
6211 for (i = 0; i < 256; i++)
6212 if (XOR (islower (i), ISLOWER (i))
6213 || toupper (i) != TOUPPER (i))
6214 return 2;
6215 return 0;
6217 _ACEOF
6218 if ac_fn_c_try_run "$LINENO"; then :
6220 else
6221 ac_cv_header_stdc=no
6223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6224 conftest.$ac_objext conftest.beam conftest.$ac_ext
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6230 $as_echo "$ac_cv_header_stdc" >&6; }
6231 if test $ac_cv_header_stdc = yes; then
6233 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6239 inttypes.h stdint.h unistd.h
6240 do :
6241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6242 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6244 eval as_val=\$$as_ac_Header
6245 if test "x$as_val" = x""yes; then :
6246 cat >>confdefs.h <<_ACEOF
6247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248 _ACEOF
6252 done
6255 for ac_header in sys/ipc.h sys/shm.h \
6256 sys/mmap.h sys/mman.h sysexits.h \
6257 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6259 do :
6260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6262 eval as_val=\$$as_ac_Header
6263 if test "x$as_val" = x""yes; then :
6264 cat >>confdefs.h <<_ACEOF
6265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6270 done
6273 for ac_header in sys/mount.h
6274 do :
6275 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6277 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
6278 cat >>confdefs.h <<_ACEOF
6279 #define HAVE_SYS_MOUNT_H 1
6280 _ACEOF
6284 done
6287 ac_header_dirent=no
6288 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6289 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6291 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 #include <sys/types.h>
6298 #include <$ac_hdr>
6301 main ()
6303 if ((DIR *) 0)
6304 return 0;
6306 return 0;
6308 _ACEOF
6309 if ac_fn_c_try_compile "$LINENO"; then :
6310 eval "$as_ac_Header=yes"
6311 else
6312 eval "$as_ac_Header=no"
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 eval ac_res=\$$as_ac_Header
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6318 $as_echo "$ac_res" >&6; }
6319 eval as_val=\$$as_ac_Header
6320 if test "x$as_val" = x""yes; then :
6321 cat >>confdefs.h <<_ACEOF
6322 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6323 _ACEOF
6325 ac_header_dirent=$ac_hdr; break
6328 done
6329 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6330 if test $ac_header_dirent = dirent.h; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6332 $as_echo_n "checking for library containing opendir... " >&6; }
6333 if test "${ac_cv_search_opendir+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 ac_func_search_save_LIBS=$LIBS
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6340 /* Override any GCC internal prototype to avoid an error.
6341 Use char because int might match the return type of a GCC
6342 builtin and then its argument prototype would still apply. */
6343 #ifdef __cplusplus
6344 extern "C"
6345 #endif
6346 char opendir ();
6348 main ()
6350 return opendir ();
6352 return 0;
6354 _ACEOF
6355 for ac_lib in '' dir; do
6356 if test -z "$ac_lib"; then
6357 ac_res="none required"
6358 else
6359 ac_res=-l$ac_lib
6360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6362 if ac_fn_c_try_link "$LINENO"; then :
6363 ac_cv_search_opendir=$ac_res
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext
6367 if test "${ac_cv_search_opendir+set}" = set; then :
6368 break
6370 done
6371 if test "${ac_cv_search_opendir+set}" = set; then :
6373 else
6374 ac_cv_search_opendir=no
6376 rm conftest.$ac_ext
6377 LIBS=$ac_func_search_save_LIBS
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6380 $as_echo "$ac_cv_search_opendir" >&6; }
6381 ac_res=$ac_cv_search_opendir
6382 if test "$ac_res" != no; then :
6383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6387 else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6389 $as_echo_n "checking for library containing opendir... " >&6; }
6390 if test "${ac_cv_search_opendir+set}" = set; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 ac_func_search_save_LIBS=$LIBS
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6397 /* Override any GCC internal prototype to avoid an error.
6398 Use char because int might match the return type of a GCC
6399 builtin and then its argument prototype would still apply. */
6400 #ifdef __cplusplus
6401 extern "C"
6402 #endif
6403 char opendir ();
6405 main ()
6407 return opendir ();
6409 return 0;
6411 _ACEOF
6412 for ac_lib in '' x; do
6413 if test -z "$ac_lib"; then
6414 ac_res="none required"
6415 else
6416 ac_res=-l$ac_lib
6417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6419 if ac_fn_c_try_link "$LINENO"; then :
6420 ac_cv_search_opendir=$ac_res
6422 rm -f core conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext
6424 if test "${ac_cv_search_opendir+set}" = set; then :
6425 break
6427 done
6428 if test "${ac_cv_search_opendir+set}" = set; then :
6430 else
6431 ac_cv_search_opendir=no
6433 rm conftest.$ac_ext
6434 LIBS=$ac_func_search_save_LIBS
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6437 $as_echo "$ac_cv_search_opendir" >&6; }
6438 ac_res=$ac_cv_search_opendir
6439 if test "$ac_res" != no; then :
6440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6447 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6448 if test "${ac_cv_header_stat_broken+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453 #include <sys/types.h>
6454 #include <sys/stat.h>
6456 #if defined S_ISBLK && defined S_IFDIR
6457 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6458 #endif
6460 #if defined S_ISBLK && defined S_IFCHR
6461 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6462 #endif
6464 #if defined S_ISLNK && defined S_IFREG
6465 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6466 #endif
6468 #if defined S_ISSOCK && defined S_IFREG
6469 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6470 #endif
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 ac_cv_header_stat_broken=no
6475 else
6476 ac_cv_header_stat_broken=yes
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6481 $as_echo "$ac_cv_header_stat_broken" >&6; }
6482 if test $ac_cv_header_stat_broken = yes; then
6484 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6489 $as_echo_n "checking for ANSI C header files... " >&6; }
6490 if test "${ac_cv_header_stdc+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 #include <stdlib.h>
6496 #include <stdarg.h>
6497 #include <string.h>
6498 #include <float.h>
6501 main ()
6505 return 0;
6507 _ACEOF
6508 if ac_fn_c_try_compile "$LINENO"; then :
6509 ac_cv_header_stdc=yes
6510 else
6511 ac_cv_header_stdc=no
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 if test $ac_cv_header_stdc = yes; then
6516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 #include <string.h>
6521 _ACEOF
6522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6523 $EGREP "memchr" >/dev/null 2>&1; then :
6525 else
6526 ac_cv_header_stdc=no
6528 rm -f conftest*
6532 if test $ac_cv_header_stdc = yes; then
6533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <stdlib.h>
6538 _ACEOF
6539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6540 $EGREP "free" >/dev/null 2>&1; then :
6542 else
6543 ac_cv_header_stdc=no
6545 rm -f conftest*
6549 if test $ac_cv_header_stdc = yes; then
6550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6551 if test "$cross_compiling" = yes; then :
6553 else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 #include <ctype.h>
6557 #include <stdlib.h>
6558 #if ((' ' & 0x0FF) == 0x020)
6559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6561 #else
6562 # define ISLOWER(c) \
6563 (('a' <= (c) && (c) <= 'i') \
6564 || ('j' <= (c) && (c) <= 'r') \
6565 || ('s' <= (c) && (c) <= 'z'))
6566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6567 #endif
6569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6571 main ()
6573 int i;
6574 for (i = 0; i < 256; i++)
6575 if (XOR (islower (i), ISLOWER (i))
6576 || toupper (i) != TOUPPER (i))
6577 return 2;
6578 return 0;
6580 _ACEOF
6581 if ac_fn_c_try_run "$LINENO"; then :
6583 else
6584 ac_cv_header_stdc=no
6586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6587 conftest.$ac_objext conftest.beam conftest.$ac_ext
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6593 $as_echo "$ac_cv_header_stdc" >&6; }
6594 if test $ac_cv_header_stdc = yes; then
6596 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6601 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6602 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607 #include <sys/types.h>
6608 #include <sys/wait.h>
6609 #ifndef WEXITSTATUS
6610 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6611 #endif
6612 #ifndef WIFEXITED
6613 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6614 #endif
6617 main ()
6619 int s;
6620 wait (&s);
6621 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6623 return 0;
6625 _ACEOF
6626 if ac_fn_c_try_compile "$LINENO"; then :
6627 ac_cv_header_sys_wait_h=yes
6628 else
6629 ac_cv_header_sys_wait_h=no
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6634 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6635 if test $ac_cv_header_sys_wait_h = yes; then
6637 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6642 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6643 if test "${ac_cv_header_time+set}" = set; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648 #include <sys/types.h>
6649 #include <sys/time.h>
6650 #include <time.h>
6653 main ()
6655 if ((struct tm *) 0)
6656 return 0;
6658 return 0;
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 ac_cv_header_time=yes
6663 else
6664 ac_cv_header_time=no
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6669 $as_echo "$ac_cv_header_time" >&6; }
6670 if test $ac_cv_header_time = yes; then
6672 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6676 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6677 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6679 cat >>confdefs.h <<_ACEOF
6680 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6681 _ACEOF
6684 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6689 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6690 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6692 cat >>confdefs.h <<_ACEOF
6693 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6694 _ACEOF
6697 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6699 else
6700 case " $LIBOBJS " in
6701 *" fileblocks.$ac_objext "* ) ;;
6702 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6704 esac
6709 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6710 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6712 cat >>confdefs.h <<_ACEOF
6713 #define HAVE_STRUCT_STAT_ST_RDEV 1
6714 _ACEOF
6717 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6723 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6724 if test "${ac_cv_struct_tm+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 #include <sys/types.h>
6730 #include <time.h>
6733 main ()
6735 struct tm tm;
6736 int *p = &tm.tm_sec;
6737 return !p;
6739 return 0;
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743 ac_cv_struct_tm=time.h
6744 else
6745 ac_cv_struct_tm=sys/time.h
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6750 $as_echo "$ac_cv_struct_tm" >&6; }
6751 if test $ac_cv_struct_tm = sys/time.h; then
6753 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6757 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6758 #include <$ac_cv_struct_tm>
6761 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6763 cat >>confdefs.h <<_ACEOF
6764 #define HAVE_STRUCT_TM_TM_ZONE 1
6765 _ACEOF
6770 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6772 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6774 else
6775 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6777 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6778 ac_have_decl=1
6779 else
6780 ac_have_decl=0
6783 cat >>confdefs.h <<_ACEOF
6784 #define HAVE_DECL_TZNAME $ac_have_decl
6785 _ACEOF
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6788 $as_echo_n "checking for tzname... " >&6; }
6789 if test "${ac_cv_var_tzname+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6794 #include <time.h>
6795 #if !HAVE_DECL_TZNAME
6796 extern char *tzname[];
6797 #endif
6800 main ()
6802 return tzname[0][0];
6804 return 0;
6806 _ACEOF
6807 if ac_fn_c_try_link "$LINENO"; then :
6808 ac_cv_var_tzname=yes
6809 else
6810 ac_cv_var_tzname=no
6812 rm -f core conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6816 $as_echo "$ac_cv_var_tzname" >&6; }
6817 if test $ac_cv_var_tzname = yes; then
6819 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6824 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6825 if test "x$ac_cv_type_off_t" = x""yes; then :
6827 else
6829 cat >>confdefs.h <<_ACEOF
6830 #define off_t long int
6831 _ACEOF
6835 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6836 if test "x$ac_cv_type_pid_t" = x""yes; then :
6838 else
6840 cat >>confdefs.h <<_ACEOF
6841 #define pid_t int
6842 _ACEOF
6846 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6847 if test "x$ac_cv_type_size_t" = x""yes; then :
6849 else
6851 cat >>confdefs.h <<_ACEOF
6852 #define size_t unsigned int
6853 _ACEOF
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6858 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6859 if test "${ac_cv_type_uid_t+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 #include <sys/types.h>
6866 _ACEOF
6867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868 $EGREP "uid_t" >/dev/null 2>&1; then :
6869 ac_cv_type_uid_t=yes
6870 else
6871 ac_cv_type_uid_t=no
6873 rm -f conftest*
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6877 $as_echo "$ac_cv_type_uid_t" >&6; }
6878 if test $ac_cv_type_uid_t = no; then
6880 $as_echo "#define uid_t int" >>confdefs.h
6883 $as_echo "#define gid_t int" >>confdefs.h
6888 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6889 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6891 cat >>confdefs.h <<_ACEOF
6892 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6893 _ACEOF
6899 # Look for some functions
6900 for ac_func in getpagesize kqueue statfs statvfs \
6901 clone kse_create rfork_thread thr_create sa_register \
6902 getcontext makecontext setcontext sigaltstack swapcontext
6903 do :
6904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6905 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6906 eval as_val=\$$as_ac_var
6907 if test "x$as_val" = x""yes; then :
6908 cat >>confdefs.h <<_ACEOF
6909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6910 _ACEOF
6913 done
6919 for ac_header in $ac_header_list
6920 do :
6921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6924 eval as_val=\$$as_ac_Header
6925 if test "x$as_val" = x""yes; then :
6926 cat >>confdefs.h <<_ACEOF
6927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6928 _ACEOF
6932 done
6941 for ac_func in getpagesize
6942 do :
6943 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6944 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6945 cat >>confdefs.h <<_ACEOF
6946 #define HAVE_GETPAGESIZE 1
6947 _ACEOF
6950 done
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6953 $as_echo_n "checking for working mmap... " >&6; }
6954 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 if test "$cross_compiling" = yes; then :
6958 ac_cv_func_mmap_fixed_mapped=no
6959 else
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 $ac_includes_default
6963 /* malloc might have been renamed as rpl_malloc. */
6964 #undef malloc
6966 /* Thanks to Mike Haertel and Jim Avera for this test.
6967 Here is a matrix of mmap possibilities:
6968 mmap private not fixed
6969 mmap private fixed at somewhere currently unmapped
6970 mmap private fixed at somewhere already mapped
6971 mmap shared not fixed
6972 mmap shared fixed at somewhere currently unmapped
6973 mmap shared fixed at somewhere already mapped
6974 For private mappings, we should verify that changes cannot be read()
6975 back from the file, nor mmap's back from the file at a different
6976 address. (There have been systems where private was not correctly
6977 implemented like the infamous i386 svr4.0, and systems where the
6978 VM page cache was not coherent with the file system buffer cache
6979 like early versions of FreeBSD and possibly contemporary NetBSD.)
6980 For shared mappings, we should conversely verify that changes get
6981 propagated back to all the places they're supposed to be.
6983 Grep wants private fixed already mapped.
6984 The main things grep needs to know about mmap are:
6985 * does it exist and is it safe to write into the mmap'd area
6986 * how to use it (BSD variants) */
6988 #include <fcntl.h>
6989 #include <sys/mman.h>
6991 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6992 char *malloc ();
6993 #endif
6995 /* This mess was copied from the GNU getpagesize.h. */
6996 #ifndef HAVE_GETPAGESIZE
6997 # ifdef _SC_PAGESIZE
6998 # define getpagesize() sysconf(_SC_PAGESIZE)
6999 # else /* no _SC_PAGESIZE */
7000 # ifdef HAVE_SYS_PARAM_H
7001 # include <sys/param.h>
7002 # ifdef EXEC_PAGESIZE
7003 # define getpagesize() EXEC_PAGESIZE
7004 # else /* no EXEC_PAGESIZE */
7005 # ifdef NBPG
7006 # define getpagesize() NBPG * CLSIZE
7007 # ifndef CLSIZE
7008 # define CLSIZE 1
7009 # endif /* no CLSIZE */
7010 # else /* no NBPG */
7011 # ifdef NBPC
7012 # define getpagesize() NBPC
7013 # else /* no NBPC */
7014 # ifdef PAGESIZE
7015 # define getpagesize() PAGESIZE
7016 # endif /* PAGESIZE */
7017 # endif /* no NBPC */
7018 # endif /* no NBPG */
7019 # endif /* no EXEC_PAGESIZE */
7020 # else /* no HAVE_SYS_PARAM_H */
7021 # define getpagesize() 8192 /* punt totally */
7022 # endif /* no HAVE_SYS_PARAM_H */
7023 # endif /* no _SC_PAGESIZE */
7025 #endif /* no HAVE_GETPAGESIZE */
7028 main ()
7030 char *data, *data2, *data3;
7031 const char *cdata2;
7032 int i, pagesize;
7033 int fd, fd2;
7035 pagesize = getpagesize ();
7037 /* First, make a file with some known garbage in it. */
7038 data = (char *) malloc (pagesize);
7039 if (!data)
7040 return 1;
7041 for (i = 0; i < pagesize; ++i)
7042 *(data + i) = rand ();
7043 umask (0);
7044 fd = creat ("conftest.mmap", 0600);
7045 if (fd < 0)
7046 return 2;
7047 if (write (fd, data, pagesize) != pagesize)
7048 return 3;
7049 close (fd);
7051 /* Next, check that the tail of a page is zero-filled. File must have
7052 non-zero length, otherwise we risk SIGBUS for entire page. */
7053 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7054 if (fd2 < 0)
7055 return 4;
7056 cdata2 = "";
7057 if (write (fd2, cdata2, 1) != 1)
7058 return 5;
7059 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7060 if (data2 == MAP_FAILED)
7061 return 6;
7062 for (i = 0; i < pagesize; ++i)
7063 if (*(data2 + i))
7064 return 7;
7065 close (fd2);
7066 if (munmap (data2, pagesize))
7067 return 8;
7069 /* Next, try to mmap the file at a fixed address which already has
7070 something else allocated at it. If we can, also make sure that
7071 we see the same garbage. */
7072 fd = open ("conftest.mmap", O_RDWR);
7073 if (fd < 0)
7074 return 9;
7075 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7076 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7077 return 10;
7078 for (i = 0; i < pagesize; ++i)
7079 if (*(data + i) != *(data2 + i))
7080 return 11;
7082 /* Finally, make sure that changes to the mapped area do not
7083 percolate back to the file as seen by read(). (This is a bug on
7084 some variants of i386 svr4.0.) */
7085 for (i = 0; i < pagesize; ++i)
7086 *(data2 + i) = *(data2 + i) + 1;
7087 data3 = (char *) malloc (pagesize);
7088 if (!data3)
7089 return 12;
7090 if (read (fd, data3, pagesize) != pagesize)
7091 return 13;
7092 for (i = 0; i < pagesize; ++i)
7093 if (*(data + i) != *(data3 + i))
7094 return 14;
7095 close (fd);
7096 return 0;
7098 _ACEOF
7099 if ac_fn_c_try_run "$LINENO"; then :
7100 ac_cv_func_mmap_fixed_mapped=yes
7101 else
7102 ac_cv_func_mmap_fixed_mapped=no
7104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7105 conftest.$ac_objext conftest.beam conftest.$ac_ext
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7110 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7111 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7113 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7116 rm -f conftest.mmap conftest.txt
7121 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7122 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7123 aros_config_ldflags=""
7125 aros_shared_default=yes
7127 aros_shared_cflags="-fPIC"
7128 aros_shared_aflags=""
7129 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7130 aros_kernel_ldflags="-Wl,-rpath,./lib"
7132 aros_kernel_ar_flags="cr"
7133 aros_target_ar_flags="cr"
7134 aros_target_nm_flags="-C -ul"
7135 aros_target_strip_flags="--strip-unneeded -R.comment"
7137 aros_compiler_libs=
7138 aros_arch_libs=
7140 aros_target_genmap="-Wl,-Map -Xlinker"
7142 # Native flavour stuff
7143 aros_serial_debug="0"
7145 # Palm native flavour stuff
7146 aros_palm_debug_hack="0"
7148 # Unix flavour stuff
7149 aros_nesting_supervisor="0"
7151 # Collect-aros stuff: "-ius" to ignore undefined symbols
7152 ignore_undefined_symbols=""
7154 # Check for X11 by default
7155 need_x11="auto"
7157 #-----------------------------------------------------------------------------
7160 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7161 # it switched on by default, and we use the host compiler, so it compiles AROS
7162 # code with this enabled resulting in link failures as we don't have support
7163 # for it.
7165 # We use two methods to disable it. For the host compiler (used to compile
7166 # some hosted modules), we test to see if the compiler supports stack
7167 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7168 # work on all platforms.
7170 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7171 # (this is done unconditionally, as it should have no effect on compilers
7172 # without the stack protection feature). This may be specific to the way that
7173 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7174 # strong enough to disable it in a generic way though, so we'll live with it
7175 # until another vendor ships GCC with it enabled in a different way, and deal
7176 # with it then.
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7180 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7181 save_cflags="$CFLAGS"
7182 CFLAGS="$CFLAGS -fno-stack-protector"
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7187 main ()
7191 return 0;
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 use_no_stack_protector="yes"
7196 else
7197 use_no_stack_protector="no"
7199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7201 $as_echo "$use_no_stack_protector" >&6; }
7202 if test "x-$use_no_stack_protector" = "x-yes" ; then
7203 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7205 CFLAGS="$save_cflags"
7207 #-----------------------------------------------------------------------------
7209 # Disable pointer-signedness warnings if the compiler recognises the option
7210 # (this only works for the host compiler at the moment)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7213 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7214 save_cflags="$CFLAGS"
7215 CFLAGS="$CFLAGS -Wno-pointer-sign"
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7220 main ()
7224 return 0;
7226 _ACEOF
7227 if ac_fn_c_try_compile "$LINENO"; then :
7228 use_no_sign_warning="yes"
7229 else
7230 use_no_sign_warning="no"
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7234 $as_echo "$use_no_sign_warning" >&6; }
7235 if test "x-$use_no_sign_warning" = "x-yes" ; then
7236 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7238 CFLAGS="$save_cflags"
7240 #-----------------------------------------------------------------------------
7242 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7245 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7246 save_cflags="$CFLAGS"
7247 CFLAGS="$CFLAGS -fgnu89-inline"
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7252 main ()
7256 return 0;
7258 _ACEOF
7259 if ac_fn_c_try_compile "$LINENO"; then :
7260 use_gnu89_inline="yes"
7261 else
7262 use_gnu89_inline="no"
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7266 $as_echo "$use_gnu89_inline" >&6; }
7267 if test "x-$use_gnu89_inline" = "x-yes" ; then
7268 gnu89_inline="-fgnu89-inline"
7270 CFLAGS="$save_cflags"
7272 #-----------------------------------------------------------------------------
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7275 $as_echo_n "checking for type of build... " >&6; }
7276 # Check whether --enable-build_type was given.
7277 if test "${enable_build_type+set}" = set; then :
7278 enableval=$enable_build_type; build_type=$enableval
7279 else
7280 build_type="personal"
7284 if test "$build_type" = "nightly"; then
7285 build_type_string="NIGHTLY"
7286 elif test "$build_type" = "snapshot"; then
7287 build_type_string="SNAPSHOT"
7288 elif test "$build_type" = "milestone"; then
7289 build_type_string="MILESTONE"
7290 elif test "$build_type" = "release"; then
7291 build_type_string="RELEASE"
7292 else
7293 build_type_string="PERSONAL"
7294 build_type="personal"
7297 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7300 $as_echo "$build_type" >&6; }
7302 #-----------------------------------------------------------------------------
7303 all_debug_types="messages stack modules mungwall symbols"
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7306 $as_echo_n "checking which debug types to enable... " >&6; }
7307 # Check whether --enable-debug was given.
7308 if test "${enable_debug+set}" = set; then :
7309 enableval=$enable_debug; debug="$enableval"
7310 else
7311 debug=""
7315 if test "$debug" = "" -o "$debug" = "no"; then
7316 debug="none"
7317 elif test "$debug" = "yes"; then
7318 debug="all"
7321 if test "$debug" = "all" ; then
7322 debug="messages stack modules symbols"
7323 for d in $all_debug_types; do
7324 export aros_${d}_debug="1"
7325 done
7326 else
7327 for d in $all_debug_types; do
7328 export aros_${d}_debug="0"
7329 done
7332 if test "$debug" != "none"; then
7333 debug=`echo $debug | sed s/,/\ /g`
7334 for d in $debug; do
7335 found="0"
7336 for d2 in $all_debug_types; do
7337 if test "$d2" = "$d"; then
7338 found="1"
7339 break
7341 done
7342 if test "$found" = "0"; then
7343 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7345 export aros_${d}_debug="1"
7346 done
7347 aros_debug="yes"
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7350 $as_echo "$debug" >&6; }
7352 if test "$aros_messages_debug" = "1"; then
7353 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7354 else
7355 aros_messages_debug=""
7357 if test "$aros_symbols_debug" = "1"; then
7358 aros_symbols_debug="-g"
7359 else
7360 aros_symbols_debug=""
7363 # These are the flags to pass when compiling debugged programs
7364 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7365 aros_debug_aflags=""
7366 aros_debug_ldflags="$aros_symbols_debug"
7368 #-----------------------------------------------------------------------------
7369 # Checking for distcc and ccache.
7371 # Always apply the transforms in this particular order. Basically you should
7372 # always run 'ccache distcc compiler' in that order for the best performance.
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7375 $as_echo_n "checking whether to enable distcc... " >&6; }
7376 # Check whether --enable-distcc was given.
7377 if test "${enable_distcc+set}" = set; then :
7378 enableval=$enable_distcc; distcc="$enableval"
7379 else
7380 distcc="no"
7383 if test "$distcc" != "" -a "$distcc" != "no"; then
7384 # AC_CHECK_PROG will print out the result in this case
7385 # Extract the first word of "distcc", so it can be a program name with args.
7386 set dummy distcc; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if test "${ac_cv_path_DISTCC+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 case $DISTCC in
7393 [\\/]* | ?:[\\/]*)
7394 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7408 done
7409 done
7410 IFS=$as_save_IFS
7412 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7414 esac
7416 DISTCC=$ac_cv_path_DISTCC
7417 if test -n "$DISTCC"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7419 $as_echo "$DISTCC" >&6; }
7420 else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7432 $as_echo_n "checking whether to enable ccache... " >&6; }
7433 # Check whether --enable-ccache was given.
7434 if test "${enable_ccache+set}" = set; then :
7435 enableval=$enable_ccache; ccache="$enableval"
7436 else
7437 ccache="no"
7440 if test "$ccache" != "" -a "$ccache" != "no"; then
7441 # AC_CHECK_PROG will print out the result in this case
7442 # Extract the first word of "ccache", so it can be a program name with args.
7443 set dummy ccache; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_CCACHE+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$CCACHE"; then
7450 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_CCACHE="ccache"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7469 CCACHE=$ac_cv_prog_CCACHE
7470 if test -n "$CCACHE"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7472 $as_echo "$CCACHE" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7484 #-----------------------------------------------------------------------------
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7486 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7488 # Check whether --with-kernel-gcc-version was given.
7489 if test "${with_kernel_gcc_version+set}" = set; then :
7490 withval=$with_kernel_gcc_version; kernel_tool_version="-$withval"
7491 else
7492 kernel_tool_version=""
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7496 $as_echo "$kernel_tool_version" >&6; }
7498 #-----------------------------------------------------------------------------
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7500 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7502 # Check whether --with-gcc-version was given.
7503 if test "${with_gcc_version+set}" = set; then :
7504 withval=$with_gcc_version; target_tool_version="$withval"
7505 else
7506 target_tool_version="default"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7510 $as_echo "$target_tool_version" >&6; }
7512 #-----------------------------------------------------------------------------
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7514 $as_echo_n "checking what optimization flags to use... " >&6; }
7516 # Check whether --with-optimization was given.
7517 if test "${with_optimization+set}" = set; then :
7518 withval=$with_optimization; optimization="$withval"
7519 else
7520 optimization="unknown"
7523 if test "$optimization" = "unknown"; then
7524 if test "$debug" != "none"; then
7525 optimization="-O0"
7526 else
7527 optimization="-O2"
7530 aros_config_cflags="$aros_config_cflags $optimization"
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7532 $as_echo "$optimization" >&6; }
7534 #-----------------------------------------------------------------------------
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7536 $as_echo_n "checking what paranoia flags to use... " >&6; }
7538 # Check whether --with-paranoia was given.
7539 if test "${with_paranoia+set}" = set; then :
7540 withval=$with_paranoia; paranoia_flags="$withval"
7541 else
7542 paranoia_flags="default"
7545 if test "$paranoia_flags" = "default"; then
7546 paranoia_flags=""
7547 else if test "$paranoia_flags" = "yes"; then
7548 paranoia_flags="-Wall -Werror"
7549 fi fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7551 $as_echo "$paranoia_flags" >&6; }
7552 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7554 #-----------------------------------------------------------------------------
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7556 $as_echo_n "checking what target variant to enable... " >&6; }
7557 # Check whether --enable-target_variant was given.
7558 if test "${enable_target_variant+set}" = set; then :
7559 enableval=$enable_target_variant; target_variant=$enableval
7560 else
7561 target_variant=""
7564 if test "$target_variant" = ""; then
7565 aros_target_variant=""
7566 aros_target_suffix=""
7567 enableval="none"
7568 else
7569 aros_target_variant="$target_variant"
7570 aros_target_suffix="-$target_variant"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7573 $as_echo "$enableval" >&6; }
7575 #-----------------------------------------------------------------------------
7576 # Target-specific defaults. You can override then on a per-target basis.
7578 # Bootloader name. Currently used by PC target.
7579 target_bootloader="none"
7581 #-----------------------------------------------------------------------------
7582 # Additional options for some specific targets
7584 case "$aros_target_variant" in
7585 ios)
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7587 $as_echo_n "checking XCode path... " >&6; }
7589 # Check whether --with-xcode was given.
7590 if test "${with_xcode+set}" = set; then :
7591 withval=$with_xcode; aros_xcode_path="$withval"
7592 else
7593 aros_xcode_path="/Developer"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7597 $as_echo "$aros_xcode_path" >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7600 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7602 # Check whether --with-sdk-version was given.
7603 if test "${with_sdk_version+set}" = set; then :
7604 withval=$with_sdk_version; aros_sdk_version="$withval"
7605 else
7606 aros_sdk_version="4.1"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7610 $as_echo "$aros_sdk_version" >&6; }
7614 "android")
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7616 $as_echo_n "checking Android SDK path... " >&6; }
7618 # Check whether --with-sdk was given.
7619 if test "${with_sdk+set}" = set; then :
7620 withval=$with_sdk; aros_android_sdk="$withval"
7621 else
7622 aros_android_sdk=$default_android_sdk
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7626 $as_echo "$aros_android_sdk" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7629 $as_echo_n "checking Android NDK path... " >&6; }
7631 # Check whether --with-ndk was given.
7632 if test "${with_ndk+set}" = set; then :
7633 withval=$with_ndk; aros_android_ndk="$withval"
7634 else
7635 aros_android_ndk="none"
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7639 $as_echo "$aros_android_ndk" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7642 $as_echo_n "checking what Android SDK version to use... " >&6; }
7644 # Check whether --with-sdk-version was given.
7645 if test "${with_sdk_version+set}" = set; then :
7646 withval=$with_sdk_version; aros_sdk_version="$withval"
7647 else
7648 aros_sdk_version="12"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7652 $as_echo "$aros_sdk_version" >&6; }
7654 if test "$aros_android_ndk" != "none"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7656 $as_echo_n "checking what Android NDK version to use... " >&6; }
7658 # Check whether --with-ndk-version was given.
7659 if test "${with_ndk_version+set}" = set; then :
7660 withval=$with_ndk_version; aros_ndk_version="$withval"
7661 else
7662 aros_ndk_version="9"
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7666 $as_echo "$aros_ndk_version" >&6; }
7669 export PATH="$aros_android_sdk/tools:$PATH"
7670 # Extract the first word of "$android_tool", so it can be a program name with args.
7671 set dummy $android_tool; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_path_android_tool+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 case $android_tool in
7678 [\\/]* | ?:[\\/]*)
7679 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7693 done
7694 done
7695 IFS=$as_save_IFS
7698 esac
7700 android_tool=$ac_cv_path_android_tool
7701 if test -n "$android_tool"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7703 $as_echo "$android_tool" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7710 if test "$android_tool" = ""; then
7711 as_fn_error "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7714 aros_android_level=android-$aros_sdk_version
7715 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7716 echo "Platform $aros_android_level is not installed in your SDK"
7717 echo "Use --with-sdk-version=<API level number> to select another platform version"
7718 echo "You can check what plaform versions are installed in your SDK"
7719 echo "by examining contents of $aros_android_sdk/platforms directory"
7720 as_fn_error "Android platform $aros_android_level is not installed" "$LINENO" 5
7723 # Extract the first word of "ant", so it can be a program name with args.
7724 set dummy ant; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if test "${ac_cv_path_ant+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 case $ant in
7731 [\\/]* | ?:[\\/]*)
7732 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7746 done
7747 done
7748 IFS=$as_save_IFS
7751 esac
7753 ant=$ac_cv_path_ant
7754 if test -n "$ant"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7756 $as_echo "$ant" >&6; }
7757 else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7763 if test "$ant" = ""; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7765 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7768 if test "$host_os" = "mingw32"; then
7769 android_tool="cmd //c $android_tool"
7773 esac
7775 #-----------------------------------------------------------------------------
7776 # External toolchains
7777 kernel_tool_prefix="none"
7778 aros_tool_prefix="none"
7779 elf_tool_prefix="${target_cpu}-elf-"
7781 # This is the target configuration switch.
7782 case "$target_os" in
7783 linux*)
7784 aros_target_arch="linux"
7785 aros_target_family="unix"
7786 case "$target_cpu" in
7787 *m68k*)
7788 aros_target_cpu="m68k"
7789 aros_object_format="m68kelf"
7790 aros_flavour="emulcompat"
7791 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7792 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7793 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7794 gcc_target_cpu="mc68000"
7796 *i?86*)
7797 aros_target_cpu="i386"
7798 aros_object_format="elf_i386"
7799 aros_flavour="emulation"
7800 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7801 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7802 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7803 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7804 aros_config_ldflags="-m32 -march=i486"
7805 aros_kernel_ldflags="-melf_i386"
7806 aros_default_wbdepth=8
7807 gcc_target_cpu="i386"
7808 pci_hidd_target="hidd-pci-linux"
7809 android_tool_dir_prefix="x86"
7810 android_tool_prefix="i686-android-linux"
7811 android_ndk_arch="x86"
7813 *x86_64*)
7814 aros_target_cpu="x86_64"
7815 aros_object_format="elf_x86_64"
7816 aros_flavour="emulation"
7817 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7818 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7819 aros_default_wbdepth=8
7820 pci_hidd_target="hidd-pci-linux"
7822 *powerpc*)
7823 aros_target_cpu="ppc"
7824 aros_object_format="elf32ppc"
7825 aros_flavour="emulation"
7826 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7827 aros_default_wbdepth=8
7828 gcc_target_cpu="ppc"
7830 # TODO
7831 # Same as powerpc, but I need this for the nightly build to work again.
7832 # Actually, the nightly should be made working with powerpc target.
7833 # That just was too much work for the moment, another week or two.
7834 *ppc*)
7835 aros_target_cpu="ppc"
7836 aros_object_format="elf32ppc"
7837 aros_flavour="emulation"
7838 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7839 aros_default_wbdepth=8
7840 gcc_target_cpu="ppc"
7842 *armhf*)
7843 aros_target_cpu="arm"
7844 target_cpu="arm"
7845 aros_object_format="armelf_linux_eabi"
7846 aros_flavour="emulation"
7847 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7848 gcc_target_cpu="arm"
7849 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7850 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7851 aros_arch_libs="-laeabi"
7852 gcc_default_fpu="vfpv3-d16"
7853 gcc_default_float_abi="hard"
7854 android_tool_dir_prefix="arm-linux-androideabi"
7855 android_tool_prefix="arm-linux-androideabi"
7856 android_ndk_arch="arm"
7857 kernel_tool_prefix="arm-linux-gnueabihf-"
7859 *arm*)
7860 aros_target_cpu="arm"
7861 aros_object_format="armelf_linux_eabi"
7862 aros_flavour="emulation"
7863 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7864 gcc_target_cpu="arm"
7865 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7866 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7867 aros_arch_libs="-laeabi"
7868 android_tool_dir_prefix="arm-linux-androideabi"
7869 android_tool_prefix="arm-linux-androideabi"
7870 android_ndk_arch="arm"
7871 kernel_tool_prefix="arm-linux-gnueabi-"
7874 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7876 esac
7877 case "$aros_target_variant" in
7878 android)
7880 if test "$android_ndk_arch" = ""; then
7881 as_fn_error "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7884 aros_default_wbwidth=320
7885 aros_default_wbheight=480
7886 if test "$aros_android_ndk" = "none"; then
7887 aros_kernel_cflags="-mandroid"
7888 aros_kernel_ldflags="-mandroid"
7889 CFLAGS="-mandroid"
7890 else
7891 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7892 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7893 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7894 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7895 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7896 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7898 need_x11=no
7899 x11_hidd_target=kernel-hidd-androidgfx-kobj
7900 # Disable implicit PIC mode
7901 aros_target_cflags="$aros_target_cflags -fno-pic"
7902 kernel_tool_prefix="$android_tool_prefix-"
7904 esac
7908 aros_target_arch="pc"
7909 aros_shared_default="no"
7910 target_bootloader="grub2"
7911 case "$target_cpu" in
7912 *i?86*)
7913 aros_target_cpu="i386"
7916 if test "$aros_object_format" = "" ; then
7917 aros_object_format="elf_i386"
7919 aros_flavour="standalone"
7920 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7921 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7922 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7923 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7924 aros_config_ldflags="-m32 -march=i486"
7925 aros_kernel_ldflags="-melf_i386"
7926 aros_default_wbwidth=640
7927 aros_default_wbheight=480
7928 gcc_target_cpu="i386"
7930 *x86_64*)
7931 aros_target_cpu="x86_64"
7932 aros_serial_debug=1
7933 if test "$aros_object_format" = "" ; then
7934 aros_object_format="elf_x86_64"
7936 aros_flavour="standalone"
7937 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7938 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7939 aros_kernel_ldflags=""
7940 aros_default_wbwidth=640
7941 aros_default_wbheight=480
7944 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7946 esac
7949 prep)
7950 aros_target_arch="prep"
7951 aros_shared_default="no"
7952 aros_target_cpu="ppc"
7953 aros_object_format="elf32ppc"
7954 aros_flavour="ppcnative"
7955 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7956 aros_kernel_ldflags=""
7957 aros_default_wbwidth=640
7958 aros_default_wbheight=480
7959 gcc_target_cpu="ppc"
7962 freebsd*)
7963 aros_target_arch="freebsd"
7964 aros_target_family="unix"
7965 aros_target_cpu="i386"
7966 aros_flavour="emulation"
7967 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7968 gcc_target_cpu="i386"
7970 aros_target_strip_flags="-x"
7973 darwin*)
7974 aros_target_arch="darwin"
7975 aros_target_family="unix"
7976 aros_flavour="emulation"
7977 case "$target_cpu" in
7978 *i?86*)
7979 aros_ios_platform="iPhoneSimulator"
7980 aros_target_cpu="i386"
7981 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7982 aros_kernel_ldflags=""
7983 aros_macosx_version="10.4"
7984 aros_default_wbdepth=8
7985 gcc_target_cpu="i386"
7986 aros_object_format="elf_i386"
7987 aros_kernel_ar_flags="-cr"
7988 aros_target_strip_flags="-x"
7989 kernel_tool_flags="-m32"
7991 *x86_64*)
7992 aros_target_cpu="x86_64"
7993 aros_object_format="elf_x86_64"
7994 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7995 aros_macosx_version="10.6"
7996 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7997 aros_kernel_cflags="-m64"
7998 aros_kernel_ldflags="-m64"
7999 aros_target_cflags="-mcmodel=large"
8000 aros_default_wbdepth=8
8001 aros_kernel_ar="ar"
8002 aros_kernel_ar_flags="-cr"
8003 aros_kernel_ld="ld"
8004 aros_kernel_ranlib="ranlib"
8006 *ppc*)
8007 aros_target_cpu="ppc"
8008 aros_object_format="elf32ppc"
8009 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8010 aros_kernel_ldflags=""
8011 aros_macosx_version="10.0"
8012 aros_default_wbdepth=8
8013 gcc_target_cpu="ppc"
8014 aros_kernel_ar="ar"
8015 aros_kernel_ar_flags="-cr"
8016 aros_kernel_ld="ld -arch ppc"
8017 aros_kernel_as="as -arch ppc"
8018 aros_kernel_ranlib="ranlib -arch ppc"
8019 aros_kernel_nm="nm -arch ppc"
8020 aros_kernel_strip="strip -arch ppc"
8021 kernel_tool_prefix="powerpc-apple-darwin10-"
8023 *arm*)
8024 aros_ios_platform="iPhoneOS"
8025 aros_target_cpu="arm"
8026 aros_object_format="armelf_linux_eabi"
8027 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8028 aros_arch_libs="-laeabi"
8029 aros_default_wbdepth=8
8030 gcc_target_cpu="arm"
8031 aros_kernel_ar="ar"
8032 aros_kernel_ar_flags="-cr"
8033 aros_kernel_ld="ld -arch arm"
8034 aros_kernel_ranlib="ranlib -arch arm"
8035 kernel_tool_prefix="arm-apple-darwin10-"
8036 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8039 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8041 esac
8042 case "$aros_target_variant" in
8043 ios)
8044 aros_ios_version="3.0"
8045 aros_default_wbwidth=320
8046 aros_default_wbheight=480
8047 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8048 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8049 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8050 need_x11=no
8051 # This is here because it may depend on iOS or SDK version
8052 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8053 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8054 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8057 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8058 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8060 esac
8063 dragonfly*)
8064 aros_target_arch="dragonfly"
8065 aros_target_family="unix"
8066 aros_flavour="emulation"
8067 case "$target_cpu" in
8068 *i?86*)
8069 aros_target_cpu="i386"
8070 aros_object_format="elf_i386"
8071 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8073 *x86_64*)
8074 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8075 aros_target_cpu="x86_64"
8076 aros_object_format="elf_x86_64"
8077 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8080 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8082 esac
8085 netbsd*)
8086 aros_target_arch="netbsd"
8087 aros_target_family="unix"
8088 case "$target_cpu" in
8089 *m68k*)
8090 aros_target_cpu="m68k"
8091 aros_object_format="m68kelf"
8092 aros_flavour="emulcompat"
8093 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8094 gcc_target_cpu="mc68000"
8096 *i?86*)
8097 aros_target_cpu="i386"
8098 aros_object_format="elf_i386"
8099 aros_flavour="emulation"
8100 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8101 aros_default_wbdepth=8
8102 gcc_target_cpu="i386"
8105 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8107 esac
8108 aros_target_genmap="-Wl,-M -Xlinker >"
8109 aros_flavour="emulation"
8110 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8113 openbsd*)
8114 aros_target_arch="openbsd"
8115 aros_target_family="unix"
8116 case "$target_cpu" in
8117 *i?86*)
8118 aros_target_cpu="i386"
8119 aros_object_format="elf_i386"
8120 aros_flavour="emulation"
8121 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8122 gcc_target_cpu="i386"
8125 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8127 esac
8128 aros_target_genmap="-Wl,-M -Xlinker >"
8129 aros_target_nm_flags="-u"
8130 aros_flavour="emulation"
8133 solaris*)
8134 aros_target_arch="solaris"
8135 aros_target_family="unix"
8136 case "$target_cpu" in
8137 *i?86*)
8138 aros_target_cpu="i386"
8139 aros_object_format="elf_i386"
8140 aros_flavour="emulation"
8141 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8142 aros_default_wbdepth=8
8143 gcc_target_cpu="i386"
8145 *sparc*)
8146 aros_target_cpu="sparc"
8147 aros_object_format="elf_sparc"
8148 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8149 gcc_target_cpu="sparc"
8152 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8154 esac
8155 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8156 aros_flavour="emulation"
8159 morphos*)
8160 aros_target_arch="morphos"
8161 aros_shared_default="no"
8162 aros_target_cpu="ppc"
8163 aros_object_format="elf_ppc"
8164 aros_flavour="nativecompat"
8165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8166 gcc_target_cpu="ppc"
8169 sam440)
8170 aros_target_arch="sam440"
8171 aros_shared_default="no"
8172 aros_target_cpu="ppc"
8173 aros_object_format="elf32ppc"
8174 aros_flavour="ppcnative"
8175 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8176 aros_kernel_ldflags=""
8177 aros_default_wbwidth=1024
8178 aros_default_wbheight=768
8179 aros_default_wbdepth=24
8180 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8181 gcc_target_cpu="powerpc"
8184 efika)
8185 aros_target_arch="efika"
8186 aros_shared_default="no"
8187 aros_target_cpu="arm"
8188 aros_object_format="armelf_linux_eabi"
8189 aros_flavour="standalone"
8190 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8191 aros_kernel_ldflags=""
8192 aros_default_wbwidth=1024
8193 aros_default_wbheight=600
8194 aros_arch_libs="-laeabi"
8195 gcc_default_cpu="armv7-a"
8196 gcc_default_fpu="vfpv3"
8197 gcc_default_float_abi="softfp"
8198 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8199 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8202 chrp)
8203 aros_target_arch="chrp"
8204 aros_shared_default="no"
8205 aros_target_cpu="ppc"
8206 aros_object_format="elf32ppc"
8207 aros_flavour="ppcnative"
8208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8209 aros_kernel_ldflags=""
8210 aros_default_wbwidth=640
8211 aros_default_wbheight=480
8212 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8213 gcc_target_cpu="powerpc"
8214 case "$aros_target_variant" in
8215 efika)
8216 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8218 esac
8221 amiga*)
8222 aros_target_arch="amiga"
8223 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8224 aros_shared_default="no"
8226 case "$target_cpu" in
8227 *m68k*)
8228 # Check whether --enable-amigaos_compliance was given.
8229 if test "${enable_amigaos_compliance+set}" = set; then :
8230 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8233 aros_enable_mmu=no
8234 aros_target_cpu="m68k"
8235 aros_object_format="m68kelf"
8236 aros_flavour="standcompat"
8237 gcc_target_cpu="m68000"
8238 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8239 aros_config_aflags="$aros_config_aflags"
8240 aros_target_strip_flags="-R.comment --strip-debug"
8241 aros_default_wbwidth=640
8242 aros_default_wbheight=256
8243 aros_default_wbdepth=2
8245 *ppc*)
8246 aros_cpu="ppc"
8247 aros_flavour="native"
8248 gcc_target_cpu="ppc"
8251 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8253 esac
8256 mingw*)
8257 aros_target_arch="mingw32"
8258 aros_shared_default="no"
8259 aros_flavour="emulation"
8260 aros_shared_cflags=""
8261 need_crosstools="yes"
8262 need_dlopen="no"
8263 rescomp="windres"
8264 case "$target_cpu" in
8265 *i?86*)
8266 aros_target_cpu="i386"
8267 aros_object_format="elf_i386"
8268 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8269 aros_default_wbdepth=8
8270 gcc_target_cpu="i386"
8272 kernel_tool_prefix="i386-mingw32-"
8274 *x86_64*)
8275 aros_target_cpu="x86_64"
8276 aros_object_format="elf_x86_64"
8277 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8278 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8279 aros_default_wbdepth=8
8280 kernel_tool_prefix="x86_64-w64-mingw32-"
8282 *arm*)
8283 aros_target_cpu="arm"
8284 aros_object_format="armelf_linux_eabi"
8285 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8286 aros_arch_libs="-laeabi"
8287 aros_default_wbdepth=8
8288 gcc_target_cpu="arm"
8289 gcc_default_float_abi="soft"
8290 kernel_tool_prefix="arm-mingw32ce-"
8291 aros_default_wbwidth=160
8292 aros_default_wbheight=160
8295 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8297 esac
8298 if test $host_os = "cygwin"; then
8299 aros_kernel_cflags="-mno-cygwin"
8302 pp*)
8303 aros_target_arch="pp"
8304 aros_shared_default="no"
8305 case "$target_cpu" in
8306 *m68k*)
8307 aros_target_cpu="m68k"
8308 aros_object_format="m68kelf"
8309 aros_flavour="palmnative"
8310 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8311 aros_default_wbwidth=160
8312 aros_default_wbheight=160
8313 aros_default_wbdepth=1
8314 aros_target_ar_flags="cru"
8315 aros_compiler_libs="-lgcc1"
8316 aros_shared_default=no
8317 aros_shared_cflags="-fpic"
8318 aros_shared_aflags=""
8319 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8320 aros_kernel_ldflags="-Wl,-rpath,./lib"
8321 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8322 aros_debug_aflags=""
8323 aros_debug_ldflags="$aros_symbols_debug"
8324 aros_mungwall_debug="0"
8325 aros_modules_debug="0"
8326 gcc_target_cpu="mc68000"
8327 ignore_undefined_symbols="-ius"
8330 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8332 esac
8335 mac*)
8336 aros_target_arch="mac"
8337 aros_shared_default="no"
8338 case "$target_cpu" in
8339 *m68k*)
8340 aros_target_cpu="m68k"
8341 aros_object_format="m68kelf"
8342 aros_flavour="mac68knative"
8343 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8344 aros_default_wbwidth=512
8345 aros_default_wbheight=384
8346 aros_default_wbdepth=8
8347 aros_target_ar_flags="cru"
8348 aros_compiler_libs="-lgcc1"
8349 aros_shared_default=no
8350 aros_shared_cflags="-fpic"
8351 aros_shared_aflags=""
8352 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8353 aros_kernel_ldflags="-Wl,-rpath,./lib"
8354 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8355 aros_debug_aflags=""
8356 aros_debug_ldflags="$aros_symbols_debug"
8357 aros_mungwall_debug="0"
8358 aros_modules_debug="0"
8359 gcc_target_cpu="mc68000"
8360 ignore_undefined_symbols="-ius"
8363 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8365 esac
8369 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
8371 esac
8373 #-----------------------------------------------------------------------------
8374 crosstools_guess=yes
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8377 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8379 # Check whether --with-kernel-toolchain-prefix was given.
8380 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8381 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8385 $as_echo "$kernel_tool_prefix" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8388 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8390 # Check whether --with-elf-toolchain-prefix was given.
8391 if test "${with_elf_toolchain_prefix+set}" = set; then :
8392 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8393 crosstools_guess=no
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8397 $as_echo "$elf_tool_prefix" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8400 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8402 # Check whether --with-aros-toolchain was given.
8403 if test "${with_aros_toolchain+set}" = set; then :
8404 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8405 crosstools_guess=no
8408 if test "$aros_tool_prefix" = "yes" ; then
8409 aros_tool_prefix=$aros_target_cpu-aros-
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8412 $as_echo "$aros_tool_prefix" >&6; }
8414 #-----------------------------------------------------------------------------
8415 # Checking if we should build crosstools..
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8417 $as_echo_n "checking whether to build crosstools... " >&6; }
8418 # Check whether --enable-crosstools was given.
8419 if test "${enable_crosstools+set}" = set; then :
8420 enableval=$enable_crosstools; crosstools="$enableval"
8421 else
8422 crosstools="$crosstools_guess"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8426 $as_echo "$crosstools" >&6; }
8428 if test "${crosstools}" = "yes"; then
8429 if test "${crosstools_guess}" = "no"; then
8430 as_fn_error "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8435 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8437 # Check whether --with-aros-toolchain-install was given.
8438 if test "${with_aros_toolchain_install+set}" = set; then :
8439 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8442 if test "x$aros_toolchain_install" = "x"; then
8443 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8444 else
8445 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8446 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8449 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8452 # Now process extra architecture-specific options.
8453 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8454 # as well as floating-point ABI.
8455 case "$aros_target_cpu" in
8456 arm)
8457 if test "$gcc_default_cpu" = ""; then
8458 gcc_default_cpu="armv6"
8460 if test "$gcc_default_fpu" = ""; then
8461 gcc_default_fpu="vfp"
8463 if test "$gcc_default_float_abi" = ""; then
8464 gcc_default_float_abi="softfp"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8468 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8470 # Check whether --with-cpu was given.
8471 if test "${with_cpu+set}" = set; then :
8472 withval=$with_cpu; aros_gcc_cpu="$withval"
8473 else
8474 aros_gcc_cpu=$gcc_default_cpu
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8478 $as_echo "$aros_gcc_cpu" >&6; }
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8481 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8483 # Check whether --with-fpu was given.
8484 if test "${with_fpu+set}" = set; then :
8485 withval=$with_fpu; aros_gcc_fpu="$withval"
8486 else
8487 aros_gcc_fpu=$gcc_default_fpu
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8491 $as_echo "$aros_gcc_fpu" >&6; }
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8494 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8496 # Check whether --with-float was given.
8497 if test "${with_float+set}" = set; then :
8498 withval=$with_float; aros_gcc_float_abi="$withval"
8499 else
8500 aros_gcc_float_abi=$gcc_default_float_abi
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8504 $as_echo "$aros_gcc_float_abi" >&6; }
8506 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"
8507 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"
8509 esac
8511 # Some formats need custom ELF specs.
8512 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8513 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8514 elf_specs_in=config/${aros_object_format}-specs.in
8515 else
8516 elf_specs_in=config/elf-specs.in
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8520 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8522 # Check whether --with-aros-gcc was given.
8523 if test "${with_aros_gcc+set}" = set; then :
8524 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8525 else
8526 aros_gcc_version=""
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8530 $as_echo "$aros_gcc_version" >&6; }
8532 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8533 # Since we override specs, we may need to put these defines there
8534 if test "$gcc_target_cpu" != ""; then
8535 gcc_target_cpu="-D__${gcc_target_cpu}__"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8539 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8541 # Check whether --with-portssources was given.
8542 if test "${with_portssources+set}" = set; then :
8543 withval=$with_portssources; with_portssrcdir=$withval
8544 else
8545 with_portssrcdir="default"
8548 if test "$with_portssrcdir" = "default"; then
8549 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8550 else
8551 AROS_PORTSSRCDIR="$with_portssrcdir"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8554 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8557 $as_echo_n "checking which bootloader to use... " >&6; }
8559 # Check whether --with-bootloader was given.
8560 if test "${with_bootloader+set}" = set; then :
8561 withval=$with_bootloader; target_bootloader=$withval
8562 else
8563 target_bootloader=$target_bootloader
8566 if test "$target_bootloader" = "none"; then
8567 aros_target_bootloader=""
8568 else
8569 aros_target_bootloader="$target_bootloader"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8572 $as_echo "$target_bootloader" >&6; }
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8575 $as_echo_n "checking which icon-set to use... " >&6; }
8577 # Check whether --with-iconset was given.
8578 if test "${with_iconset+set}" = set; then :
8579 withval=$with_iconset; target_iconset=$withval
8580 else
8581 target_iconset="default"
8584 if test "$target_iconset" = "default"; then
8585 aros_target_iconset="Gorilla"
8586 target_iconset="default (Gorilla)"
8587 else
8588 aros_target_iconset="$target_iconset"
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8591 $as_echo "$target_iconset" >&6; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8594 $as_echo_n "checking which GUI Theme to use... " >&6; }
8596 # Check whether --with-theme was given.
8597 if test "${with_theme+set}" = set; then :
8598 withval=$with_theme; target_guitheme=$withval
8599 else
8600 target_guitheme="default"
8603 if test "$target_guitheme" = "default"; then
8604 aros_target_guitheme="Ice"
8605 else
8606 aros_target_guitheme="$target_guitheme"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8609 $as_echo "$aros_target_guitheme" >&6; }
8611 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8612 # for target code)
8613 cross_compiling=no
8615 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8616 cross_compiling=yes
8619 if test "$aros_host_cpu" == "x86_64" ; then
8620 if test "$aros_target_cpu" == "i386" ; then
8621 cross_compiling=no
8625 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8626 if test "$aros_host_arch" != "$aros_target_arch" ; then
8627 cross_compiling=yes
8629 else
8630 if test "$host_cc_elf" = "no" ; then
8631 cross_compiling=yes
8635 if test "$cross_compiling" = "no" ; then
8636 kernel_tool_prefix=""
8637 if test "$host_cc_elf" = "yes" ; then
8638 elf_tool_prefix=""
8642 #######################################################################
8643 ## Compute what toolchains to use, and their paths ##
8644 #######################################################################
8646 # This takes, as input:
8647 # crosstools {yes,no}
8648 # kernel_tool_version {"",[version]}
8649 # aros_gcc_version {"",[version]}
8650 # kernel_tool_prefix {none,[some-arch-os-]}
8651 # target_tool_prefix ${aros_target_cpu}-aros-
8652 # aros_tool_prefix ${aros_target_cpu}-aros-
8654 # The output is
8655 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8656 # Where the 'kernel' binaries are located
8657 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8658 # Where the 'target' binaries are located
8659 # (not the symlink farm - that is aros_target_*!)
8661 # The rules are:
8662 # if crosstools then
8663 # if kernel_tools_prefix = "no-kernel-prefix-"
8664 # aros_kernel_* = crosstools cc paths
8665 # aros_kernel_cc = elf cc wrapper around crosstools cc
8666 # else
8667 # VALIDATE(${kernel_tools_prefix}*)
8668 # aros_kernel_* = ${kernel_tools_prefix}*
8669 # if ${kernel_tools_prefix}cc is an AROS gcc
8670 # aros_kernel_cc = ${kernel_tools_prefix}cc
8671 # else
8672 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8673 # fi
8674 # fi
8676 # orig_target_* = aros built crosstools
8677 # orig_target_cc = elf cc wrapper around crosstools cc
8678 # else
8679 # VALIDATE(${kernel_tools_prefix}*)
8681 # orig_target_* = aros_kernel_*
8682 # if aros_kernel_cc is an AROS gcc
8683 # orig_target_cc = aros_kernel_cc
8684 # else
8685 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8686 # fi
8687 # fi
8689 target_tool_prefix="${aros_target_cpu}-aros-"
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8692 $as_echo_n "checking which kernel tools... " >&6; }
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8694 $as_echo "$kernel_tool_prefix" >&6; };
8696 if test "$kernel_tool_prefix" = "none" ; then
8697 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8698 as_fn_error "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8700 else
8701 # Kernel tools required - find them
8702 # Note that 'normally', aros_kernel_* overrides will be
8703 # empty, unless specified in the per-arch sections above.
8704 if test "x$aros_kernel_cpp" = "x"; then
8705 aros_kernel_cpp=${kernel_tool_prefix}cpp
8708 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8709 if test "$cross_compiling" = "yes" ; then
8710 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8711 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 case $aros_kernel_cpp in
8718 [\\/]* | ?:[\\/]*)
8719 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8733 done
8734 done
8735 IFS=$as_save_IFS
8738 esac
8740 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8741 if test -n "$aros_kernel_cpp"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8743 $as_echo "$aros_kernel_cpp" >&6; }
8744 else
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8750 else
8751 if test "$GCC" = "yes"; then
8752 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8753 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8754 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756 $as_echo_n "checking for $ac_word... " >&6; }
8757 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 case $aros_kernel_cpp in
8761 [\\/]* | ?:[\\/]*)
8762 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in `dirname $aros_gcc_cpp`
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 break 2
8776 done
8777 done
8778 IFS=$as_save_IFS
8781 esac
8783 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8784 if test -n "$aros_kernel_cpp"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8786 $as_echo "$aros_kernel_cpp" >&6; }
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8794 if test "$aros_kernel_cpp" = ""; then
8795 # Extract the first word of "cpp", so it can be a program name with args.
8796 set dummy cpp; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 case $aros_kernel_cpp in
8803 [\\/]* | ?:[\\/]*)
8804 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8818 done
8819 done
8820 IFS=$as_save_IFS
8823 esac
8825 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8826 if test -n "$aros_kernel_cpp"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8828 $as_echo "$aros_kernel_cpp" >&6; }
8829 else
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8837 else
8838 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8839 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 case $aros_kernel_cpp in
8846 [\\/]* | ?:[\\/]*)
8847 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 for as_dir in $PATH
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8857 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 break 2
8861 done
8862 done
8863 IFS=$as_save_IFS
8866 esac
8868 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8869 if test -n "$aros_kernel_cpp"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8871 $as_echo "$aros_kernel_cpp" >&6; }
8872 else
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8880 if test "$aros_kernel_cpp" = ""; then
8881 as_fn_error "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8883 if test "x$aros_kernel_cc" = "x"; then
8884 aros_kernel_cc=${kernel_tool_prefix}gcc
8887 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8888 if test "$cross_compiling" = "yes" ; then
8889 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8890 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 $as_echo_n "checking for $ac_word... " >&6; }
8893 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 case $aros_kernel_cc in
8897 [\\/]* | ?:[\\/]*)
8898 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 for as_dir in $PATH
8904 IFS=$as_save_IFS
8905 test -z "$as_dir" && as_dir=.
8906 for ac_exec_ext in '' $ac_executable_extensions; do
8907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8908 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8910 break 2
8912 done
8913 done
8914 IFS=$as_save_IFS
8917 esac
8919 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8920 if test -n "$aros_kernel_cc"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8922 $as_echo "$aros_kernel_cc" >&6; }
8923 else
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8929 else
8930 if test "$GCC" = "yes"; then
8931 aros_gcc_cc=`$CC -print-prog-name=cc`
8932 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8933 set dummy `basename $aros_gcc_cc`; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 case $aros_kernel_cc in
8940 [\\/]* | ?:[\\/]*)
8941 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in `dirname $aros_gcc_cc`
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8960 esac
8962 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8963 if test -n "$aros_kernel_cc"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8965 $as_echo "$aros_kernel_cc" >&6; }
8966 else
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8973 if test "$aros_kernel_cc" = ""; then
8974 # Extract the first word of "cc", so it can be a program name with args.
8975 set dummy cc; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 case $aros_kernel_cc in
8982 [\\/]* | ?:[\\/]*)
8983 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8997 done
8998 done
8999 IFS=$as_save_IFS
9002 esac
9004 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9005 if test -n "$aros_kernel_cc"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9007 $as_echo "$aros_kernel_cc" >&6; }
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9016 else
9017 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9018 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 $as_echo_n "checking for $ac_word... " >&6; }
9021 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 case $aros_kernel_cc in
9025 [\\/]* | ?:[\\/]*)
9026 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9040 done
9041 done
9042 IFS=$as_save_IFS
9045 esac
9047 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9048 if test -n "$aros_kernel_cc"; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9050 $as_echo "$aros_kernel_cc" >&6; }
9051 else
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9059 if test "$aros_kernel_cc" = ""; then
9060 as_fn_error "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9062 if test "x$aros_kernel_cxx" = "x"; then
9063 aros_kernel_cxx=${kernel_tool_prefix}g++
9066 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9067 if test "$cross_compiling" = "yes" ; then
9068 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9069 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 case $aros_kernel_cxx in
9076 [\\/]* | ?:[\\/]*)
9077 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9087 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 break 2
9091 done
9092 done
9093 IFS=$as_save_IFS
9096 esac
9098 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9099 if test -n "$aros_kernel_cxx"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9101 $as_echo "$aros_kernel_cxx" >&6; }
9102 else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9108 else
9109 if test "$GCC" = "yes"; then
9110 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9111 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9112 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 case $aros_kernel_cxx in
9119 [\\/]* | ?:[\\/]*)
9120 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in `dirname $aros_gcc_cxx`
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9130 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 break 2
9134 done
9135 done
9136 IFS=$as_save_IFS
9139 esac
9141 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9142 if test -n "$aros_kernel_cxx"; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9144 $as_echo "$aros_kernel_cxx" >&6; }
9145 else
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 $as_echo "no" >&6; }
9152 if test "$aros_kernel_cxx" = ""; then
9153 # Extract the first word of "cxx", so it can be a program name with args.
9154 set dummy cxx; ac_word=$2
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 $as_echo_n "checking for $ac_word... " >&6; }
9157 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 case $aros_kernel_cxx in
9161 [\\/]* | ?:[\\/]*)
9162 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9172 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9176 done
9177 done
9178 IFS=$as_save_IFS
9181 esac
9183 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9184 if test -n "$aros_kernel_cxx"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9186 $as_echo "$aros_kernel_cxx" >&6; }
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9195 else
9196 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9197 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199 $as_echo_n "checking for $ac_word... " >&6; }
9200 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 case $aros_kernel_cxx in
9204 [\\/]* | ?:[\\/]*)
9205 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9215 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9219 done
9220 done
9221 IFS=$as_save_IFS
9224 esac
9226 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9227 if test -n "$aros_kernel_cxx"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9229 $as_echo "$aros_kernel_cxx" >&6; }
9230 else
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9238 # If it's set, make sure it's really there
9239 if test "x$aros_kernel_cxx" != "x" ; then
9240 if test "$aros_kernel_cxx" = ""; then
9241 as_fn_error "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9245 if test "$aros_kernel_ld" = ""; then
9246 if test "$cross_compiling" = "yes" ; then
9247 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9248 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250 $as_echo_n "checking for $ac_word... " >&6; }
9251 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 case $aros_kernel_ld in
9255 [\\/]* | ?:[\\/]*)
9256 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 for as_dir in $PATH
9262 IFS=$as_save_IFS
9263 test -z "$as_dir" && as_dir=.
9264 for ac_exec_ext in '' $ac_executable_extensions; do
9265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9266 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268 break 2
9270 done
9271 done
9272 IFS=$as_save_IFS
9275 esac
9277 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9278 if test -n "$aros_kernel_ld"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9280 $as_echo "$aros_kernel_ld" >&6; }
9281 else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9287 else
9288 if test "$GCC" = "yes"; then
9289 aros_gcc_ld=`$CC -print-prog-name=ld`
9290 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9291 set dummy `basename $aros_gcc_ld`; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 case $aros_kernel_ld in
9298 [\\/]* | ?:[\\/]*)
9299 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in `dirname $aros_gcc_ld`
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 break 2
9313 done
9314 done
9315 IFS=$as_save_IFS
9318 esac
9320 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9321 if test -n "$aros_kernel_ld"; then
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9323 $as_echo "$aros_kernel_ld" >&6; }
9324 else
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9326 $as_echo "no" >&6; }
9331 if test "$aros_kernel_ld" = ""; then
9332 # Extract the first word of "ld", so it can be a program name with args.
9333 set dummy ld; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 case $aros_kernel_ld in
9340 [\\/]* | ?:[\\/]*)
9341 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 break 2
9355 done
9356 done
9357 IFS=$as_save_IFS
9360 esac
9362 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9363 if test -n "$aros_kernel_ld"; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9365 $as_echo "$aros_kernel_ld" >&6; }
9366 else
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 $as_echo "no" >&6; }
9374 else
9375 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9376 set dummy $aros_kernel_ld; ac_word=$2
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 $as_echo_n "checking for $ac_word... " >&6; }
9379 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 case $aros_kernel_ld in
9383 [\\/]* | ?:[\\/]*)
9384 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388 for as_dir in $PATH
9390 IFS=$as_save_IFS
9391 test -z "$as_dir" && as_dir=.
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9394 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9396 break 2
9398 done
9399 done
9400 IFS=$as_save_IFS
9403 esac
9405 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9406 if test -n "$aros_kernel_ld"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9408 $as_echo "$aros_kernel_ld" >&6; }
9409 else
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9417 if test "$aros_kernel_ld" = ""; then
9418 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9421 if test "$aros_kernel_as" = ""; then
9422 if test "$cross_compiling" = "yes" ; then
9423 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9424 set dummy ${kernel_tool_prefix}as; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 case $aros_kernel_as in
9431 [\\/]* | ?:[\\/]*)
9432 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436 for as_dir in $PATH
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9442 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444 break 2
9446 done
9447 done
9448 IFS=$as_save_IFS
9451 esac
9453 aros_kernel_as=$ac_cv_path_aros_kernel_as
9454 if test -n "$aros_kernel_as"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9456 $as_echo "$aros_kernel_as" >&6; }
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9463 else
9464 if test "$GCC" = "yes"; then
9465 aros_gcc_as=`$CC -print-prog-name=as`
9466 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9467 set dummy `basename $aros_gcc_as`; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 case $aros_kernel_as in
9474 [\\/]* | ?:[\\/]*)
9475 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 for as_dir in `dirname $aros_gcc_as`
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9485 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9489 done
9490 done
9491 IFS=$as_save_IFS
9494 esac
9496 aros_kernel_as=$ac_cv_path_aros_kernel_as
9497 if test -n "$aros_kernel_as"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9499 $as_echo "$aros_kernel_as" >&6; }
9500 else
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 $as_echo "no" >&6; }
9507 if test "$aros_kernel_as" = ""; then
9508 # Extract the first word of "as", so it can be a program name with args.
9509 set dummy as; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 $as_echo_n "checking for $ac_word... " >&6; }
9512 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 case $aros_kernel_as in
9516 [\\/]* | ?:[\\/]*)
9517 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 for as_dir in $PATH
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9527 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9531 done
9532 done
9533 IFS=$as_save_IFS
9536 esac
9538 aros_kernel_as=$ac_cv_path_aros_kernel_as
9539 if test -n "$aros_kernel_as"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9541 $as_echo "$aros_kernel_as" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9550 else
9551 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9552 set dummy $aros_kernel_as; ac_word=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 case $aros_kernel_as in
9559 [\\/]* | ?:[\\/]*)
9560 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 for as_dir in $PATH
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 break 2
9574 done
9575 done
9576 IFS=$as_save_IFS
9579 esac
9581 aros_kernel_as=$ac_cv_path_aros_kernel_as
9582 if test -n "$aros_kernel_as"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9584 $as_echo "$aros_kernel_as" >&6; }
9585 else
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9593 if test "$aros_kernel_as" = ""; then
9594 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9597 if test "$aros_kernel_ar" = ""; then
9598 if test "$cross_compiling" = "yes" ; then
9599 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9600 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602 $as_echo_n "checking for $ac_word... " >&6; }
9603 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 case $aros_kernel_ar in
9607 [\\/]* | ?:[\\/]*)
9608 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 for as_dir in $PATH
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9618 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9622 done
9623 done
9624 IFS=$as_save_IFS
9627 esac
9629 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9630 if test -n "$aros_kernel_ar"; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9632 $as_echo "$aros_kernel_ar" >&6; }
9633 else
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635 $as_echo "no" >&6; }
9639 else
9640 if test "$GCC" = "yes"; then
9641 aros_gcc_ar=`$CC -print-prog-name=ar`
9642 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9643 set dummy `basename $aros_gcc_ar`; ac_word=$2
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 case $aros_kernel_ar in
9650 [\\/]* | ?:[\\/]*)
9651 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in `dirname $aros_gcc_ar`
9657 IFS=$as_save_IFS
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9661 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663 break 2
9665 done
9666 done
9667 IFS=$as_save_IFS
9670 esac
9672 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9673 if test -n "$aros_kernel_ar"; then
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9675 $as_echo "$aros_kernel_ar" >&6; }
9676 else
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678 $as_echo "no" >&6; }
9683 if test "$aros_kernel_ar" = ""; then
9684 # Extract the first word of "ar", so it can be a program name with args.
9685 set dummy ar; ac_word=$2
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687 $as_echo_n "checking for $ac_word... " >&6; }
9688 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 case $aros_kernel_ar in
9692 [\\/]* | ?:[\\/]*)
9693 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 for as_dir in $PATH
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9707 done
9708 done
9709 IFS=$as_save_IFS
9712 esac
9714 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9715 if test -n "$aros_kernel_ar"; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9717 $as_echo "$aros_kernel_ar" >&6; }
9718 else
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 $as_echo "no" >&6; }
9726 else
9727 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9728 set dummy $aros_kernel_ar; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 case $aros_kernel_ar in
9735 [\\/]* | ?:[\\/]*)
9736 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 for as_dir in $PATH
9742 IFS=$as_save_IFS
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9746 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748 break 2
9750 done
9751 done
9752 IFS=$as_save_IFS
9755 esac
9757 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9758 if test -n "$aros_kernel_ar"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9760 $as_echo "$aros_kernel_ar" >&6; }
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9769 if test "$aros_kernel_ar" = ""; then
9770 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9773 if test "$aros_kernel_ranlib" = ""; then
9774 if test "$cross_compiling" = "yes" ; then
9775 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9776 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778 $as_echo_n "checking for $ac_word... " >&6; }
9779 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 case $aros_kernel_ranlib in
9783 [\\/]* | ?:[\\/]*)
9784 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in $PATH
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9794 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9798 done
9799 done
9800 IFS=$as_save_IFS
9803 esac
9805 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9806 if test -n "$aros_kernel_ranlib"; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9808 $as_echo "$aros_kernel_ranlib" >&6; }
9809 else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811 $as_echo "no" >&6; }
9815 else
9816 if test "$GCC" = "yes"; then
9817 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9818 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9819 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821 $as_echo_n "checking for $ac_word... " >&6; }
9822 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 case $aros_kernel_ranlib in
9826 [\\/]* | ?:[\\/]*)
9827 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in `dirname $aros_gcc_ranlib`
9833 IFS=$as_save_IFS
9834 test -z "$as_dir" && as_dir=.
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9837 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 break 2
9841 done
9842 done
9843 IFS=$as_save_IFS
9846 esac
9848 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9849 if test -n "$aros_kernel_ranlib"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9851 $as_echo "$aros_kernel_ranlib" >&6; }
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9859 if test "$aros_kernel_ranlib" = ""; then
9860 # Extract the first word of "ranlib", so it can be a program name with args.
9861 set dummy ranlib; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 case $aros_kernel_ranlib in
9868 [\\/]* | ?:[\\/]*)
9869 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9883 done
9884 done
9885 IFS=$as_save_IFS
9888 esac
9890 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9891 if test -n "$aros_kernel_ranlib"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9893 $as_echo "$aros_kernel_ranlib" >&6; }
9894 else
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9902 else
9903 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9904 set dummy $aros_kernel_ranlib; ac_word=$2
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9906 $as_echo_n "checking for $ac_word... " >&6; }
9907 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 case $aros_kernel_ranlib in
9911 [\\/]* | ?:[\\/]*)
9912 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 for as_dir in $PATH
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9922 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9926 done
9927 done
9928 IFS=$as_save_IFS
9931 esac
9933 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9934 if test -n "$aros_kernel_ranlib"; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9936 $as_echo "$aros_kernel_ranlib" >&6; }
9937 else
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939 $as_echo "no" >&6; }
9945 if test "$aros_kernel_ranlib" = ""; then
9946 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9949 if test "$aros_kernel_nm" = ""; then
9950 if test "$cross_compiling" = "yes" ; then
9951 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9952 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 case $aros_kernel_nm in
9959 [\\/]* | ?:[\\/]*)
9960 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 for as_dir in $PATH
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9974 done
9975 done
9976 IFS=$as_save_IFS
9979 esac
9981 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9982 if test -n "$aros_kernel_nm"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9984 $as_echo "$aros_kernel_nm" >&6; }
9985 else
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9991 else
9992 if test "$GCC" = "yes"; then
9993 aros_gcc_nm=`$CC -print-prog-name=nm`
9994 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9995 set dummy `basename $aros_gcc_nm`; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 case $aros_kernel_nm in
10002 [\\/]* | ?:[\\/]*)
10003 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in `dirname $aros_gcc_nm`
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10017 done
10018 done
10019 IFS=$as_save_IFS
10022 esac
10024 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10025 if test -n "$aros_kernel_nm"; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10027 $as_echo "$aros_kernel_nm" >&6; }
10028 else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10035 if test "$aros_kernel_nm" = ""; then
10036 # Extract the first word of "nm", so it can be a program name with args.
10037 set dummy nm; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 case $aros_kernel_nm in
10044 [\\/]* | ?:[\\/]*)
10045 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10059 done
10060 done
10061 IFS=$as_save_IFS
10064 esac
10066 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10067 if test -n "$aros_kernel_nm"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10069 $as_echo "$aros_kernel_nm" >&6; }
10070 else
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10078 else
10079 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10080 set dummy $aros_kernel_nm; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 case $aros_kernel_nm in
10087 [\\/]* | ?:[\\/]*)
10088 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10098 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 break 2
10102 done
10103 done
10104 IFS=$as_save_IFS
10107 esac
10109 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10110 if test -n "$aros_kernel_nm"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10112 $as_echo "$aros_kernel_nm" >&6; }
10113 else
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10121 if test "$aros_kernel_nm" = ""; then
10122 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10125 if test "$aros_kernel_strip" = ""; then
10126 if test "$cross_compiling" = "yes" ; then
10127 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10128 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130 $as_echo_n "checking for $ac_word... " >&6; }
10131 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 case $aros_kernel_strip in
10135 [\\/]* | ?:[\\/]*)
10136 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $PATH
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10146 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10148 break 2
10150 done
10151 done
10152 IFS=$as_save_IFS
10155 esac
10157 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10158 if test -n "$aros_kernel_strip"; then
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10160 $as_echo "$aros_kernel_strip" >&6; }
10161 else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }
10167 else
10168 if test "$GCC" = "yes"; then
10169 aros_gcc_strip=`$CC -print-prog-name=strip`
10170 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10171 set dummy `basename $aros_gcc_strip`; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 case $aros_kernel_strip in
10178 [\\/]* | ?:[\\/]*)
10179 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in `dirname $aros_gcc_strip`
10185 IFS=$as_save_IFS
10186 test -z "$as_dir" && as_dir=.
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10189 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 break 2
10193 done
10194 done
10195 IFS=$as_save_IFS
10198 esac
10200 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10201 if test -n "$aros_kernel_strip"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10203 $as_echo "$aros_kernel_strip" >&6; }
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10211 if test "$aros_kernel_strip" = ""; then
10212 # Extract the first word of "strip", so it can be a program name with args.
10213 set dummy strip; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 case $aros_kernel_strip in
10220 [\\/]* | ?:[\\/]*)
10221 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10231 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10237 IFS=$as_save_IFS
10240 esac
10242 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10243 if test -n "$aros_kernel_strip"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10245 $as_echo "$aros_kernel_strip" >&6; }
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10254 else
10255 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10256 set dummy $aros_kernel_strip; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 case $aros_kernel_strip in
10263 [\\/]* | ?:[\\/]*)
10264 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10278 done
10279 done
10280 IFS=$as_save_IFS
10283 esac
10285 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10286 if test -n "$aros_kernel_strip"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10288 $as_echo "$aros_kernel_strip" >&6; }
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10297 if test "$aros_kernel_strip" = ""; then
10298 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10301 # Objcopy and objdump are not required for the kernel
10302 # toolchain on many architectures.
10303 # So we'll look for them, but not make them strictly required.
10305 if test "$aros_kernel_objcopy" = ""; then
10306 if test "$cross_compiling" = "yes" ; then
10307 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10308 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 case $aros_kernel_objcopy in
10315 [\\/]* | ?:[\\/]*)
10316 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320 for as_dir in $PATH
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10326 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10330 done
10331 done
10332 IFS=$as_save_IFS
10335 esac
10337 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10338 if test -n "$aros_kernel_objcopy"; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10340 $as_echo "$aros_kernel_objcopy" >&6; }
10341 else
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 $as_echo "no" >&6; }
10347 else
10348 if test "$GCC" = "yes"; then
10349 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10350 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10351 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 case $aros_kernel_objcopy in
10358 [\\/]* | ?:[\\/]*)
10359 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in `dirname $aros_gcc_objcopy`
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10369 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10373 done
10374 done
10375 IFS=$as_save_IFS
10378 esac
10380 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10381 if test -n "$aros_kernel_objcopy"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10383 $as_echo "$aros_kernel_objcopy" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10391 if test "$aros_kernel_objcopy" = ""; then
10392 # Extract the first word of "objcopy", so it can be a program name with args.
10393 set dummy objcopy; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 case $aros_kernel_objcopy in
10400 [\\/]* | ?:[\\/]*)
10401 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10411 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10415 done
10416 done
10417 IFS=$as_save_IFS
10420 esac
10422 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10423 if test -n "$aros_kernel_objcopy"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10425 $as_echo "$aros_kernel_objcopy" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10434 else
10435 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10436 set dummy $aros_kernel_objcopy; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 case $aros_kernel_objcopy in
10443 [\\/]* | ?:[\\/]*)
10444 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10454 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10458 done
10459 done
10460 IFS=$as_save_IFS
10463 esac
10465 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10466 if test -n "$aros_kernel_objcopy"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10468 $as_echo "$aros_kernel_objcopy" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10478 if test "$aros_kernel_objdump" = ""; then
10479 if test "$cross_compiling" = "yes" ; then
10480 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10481 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 case $aros_kernel_objdump in
10488 [\\/]* | ?:[\\/]*)
10489 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $PATH
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10499 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 break 2
10503 done
10504 done
10505 IFS=$as_save_IFS
10508 esac
10510 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10511 if test -n "$aros_kernel_objdump"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10513 $as_echo "$aros_kernel_objdump" >&6; }
10514 else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10520 else
10521 if test "$GCC" = "yes"; then
10522 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10523 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10524 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526 $as_echo_n "checking for $ac_word... " >&6; }
10527 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 case $aros_kernel_objdump in
10531 [\\/]* | ?:[\\/]*)
10532 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in `dirname $aros_gcc_objdump`
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10542 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10546 done
10547 done
10548 IFS=$as_save_IFS
10551 esac
10553 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10554 if test -n "$aros_kernel_objdump"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10556 $as_echo "$aros_kernel_objdump" >&6; }
10557 else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10564 if test "$aros_kernel_objdump" = ""; then
10565 # Extract the first word of "objdump", so it can be a program name with args.
10566 set dummy objdump; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568 $as_echo_n "checking for $ac_word... " >&6; }
10569 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 case $aros_kernel_objdump in
10573 [\\/]* | ?:[\\/]*)
10574 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578 for as_dir in $PATH
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10584 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10588 done
10589 done
10590 IFS=$as_save_IFS
10593 esac
10595 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10596 if test -n "$aros_kernel_objdump"; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10598 $as_echo "$aros_kernel_objdump" >&6; }
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10607 else
10608 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10609 set dummy $aros_kernel_objdump; ac_word=$2
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10611 $as_echo_n "checking for $ac_word... " >&6; }
10612 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 case $aros_kernel_objdump in
10616 [\\/]* | ?:[\\/]*)
10617 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10627 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10631 done
10632 done
10633 IFS=$as_save_IFS
10636 esac
10638 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10639 if test -n "$aros_kernel_objdump"; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10641 $as_echo "$aros_kernel_objdump" >&6; }
10642 else
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644 $as_echo "no" >&6; }
10650 if test "x${crosstools}" != "xyes" ; then
10651 if test "$aros_kernel_objcopy" = ""; then
10652 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10654 if test "$aros_kernel_objdump" = ""; then
10655 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10661 $as_echo_n "checking which target tools to use... " >&6; }
10662 if test "$crosstools" = "yes"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10664 $as_echo "$target_tool_prefix" >&6; }
10665 # We are are building AROS crosstools
10666 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10667 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10668 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10669 orig_target_cpp="${tmp_tool_prefix}cpp"
10670 orig_target_ld="${tmp_tool_prefix}ld"
10671 orig_target_as="${tmp_tool_prefix}as"
10672 orig_target_ar="${tmp_tool_prefix}ar"
10673 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10674 orig_target_nm="${tmp_tool_prefix}nm"
10675 orig_target_strip="${tmp_tool_prefix}strip"
10676 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10677 orig_target_objdump="${tmp_tool_prefix}objdump"
10678 else
10679 # Determine whether AROS or ELF tools should be used
10680 if test "$aros_tool_prefix" = "none"; then
10681 aros_tool_prefix="${elf_tool_prefix}"
10682 crosstools_cxx_target=tools-crosstools
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10686 $as_echo "$aros_tool_prefix" >&6; }
10687 # We are *not* building AROS crosstools - use the AROS or ELF tools
10689 if test "${aros_tool_prefix}cpp" = ""; then
10690 if test "$cross_compiling" = "yes" ; then
10691 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10692 set dummy ${target_tool_prefix}cpp; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if test "${ac_cv_path_orig_target_cpp+set}" = set; then :
10696 $as_echo_n "(cached) " >&6
10697 else
10698 case $orig_target_cpp in
10699 [\\/]* | ?:[\\/]*)
10700 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704 for as_dir in $PATH
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
10709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10714 done
10715 done
10716 IFS=$as_save_IFS
10719 esac
10721 orig_target_cpp=$ac_cv_path_orig_target_cpp
10722 if test -n "$orig_target_cpp"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10724 $as_echo "$orig_target_cpp" >&6; }
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10731 else
10732 if test "$GCC" = "yes"; then
10733 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10734 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10735 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737 $as_echo_n "checking for $ac_word... " >&6; }
10738 if test "${ac_cv_path_orig_target_cpp+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 case $orig_target_cpp in
10742 [\\/]* | ?:[\\/]*)
10743 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747 for as_dir in `dirname $aros_gcc_cpp`
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10753 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10757 done
10758 done
10759 IFS=$as_save_IFS
10762 esac
10764 orig_target_cpp=$ac_cv_path_orig_target_cpp
10765 if test -n "$orig_target_cpp"; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10767 $as_echo "$orig_target_cpp" >&6; }
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10775 if test "$orig_target_cpp" = ""; then
10776 # Extract the first word of "cpp", so it can be a program name with args.
10777 set dummy cpp; ac_word=$2
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779 $as_echo_n "checking for $ac_word... " >&6; }
10780 if test "${ac_cv_path_orig_target_cpp+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 case $orig_target_cpp in
10784 [\\/]* | ?:[\\/]*)
10785 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 break 2
10799 done
10800 done
10801 IFS=$as_save_IFS
10804 esac
10806 orig_target_cpp=$ac_cv_path_orig_target_cpp
10807 if test -n "$orig_target_cpp"; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10809 $as_echo "$orig_target_cpp" >&6; }
10810 else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }
10818 else
10819 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10820 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822 $as_echo_n "checking for $ac_word... " >&6; }
10823 if test "${ac_cv_path_orig_target_cpp+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 case $orig_target_cpp in
10827 [\\/]* | ?:[\\/]*)
10828 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832 for as_dir in $PATH
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10838 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10842 done
10843 done
10844 IFS=$as_save_IFS
10847 esac
10849 orig_target_cpp=$ac_cv_path_orig_target_cpp
10850 if test -n "$orig_target_cpp"; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10852 $as_echo "$orig_target_cpp" >&6; }
10853 else
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855 $as_echo "no" >&6; }
10861 if test "$orig_target_cpp" = ""; then
10862 as_fn_error "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10865 if test "${aros_tool_prefix}gcc" = ""; then
10866 if test "$cross_compiling" = "yes" ; then
10867 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10868 set dummy ${target_tool_prefix}gcc; ac_word=$2
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870 $as_echo_n "checking for $ac_word... " >&6; }
10871 if test "${ac_cv_path_orig_target_cc+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 case $orig_target_cc in
10875 [\\/]* | ?:[\\/]*)
10876 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880 for as_dir in $PATH
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10886 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10890 done
10891 done
10892 IFS=$as_save_IFS
10895 esac
10897 orig_target_cc=$ac_cv_path_orig_target_cc
10898 if test -n "$orig_target_cc"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10900 $as_echo "$orig_target_cc" >&6; }
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10907 else
10908 if test "$GCC" = "yes"; then
10909 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10910 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10911 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913 $as_echo_n "checking for $ac_word... " >&6; }
10914 if test "${ac_cv_path_orig_target_cc+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
10916 else
10917 case $orig_target_cc in
10918 [\\/]* | ?:[\\/]*)
10919 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in `dirname $aros_gcc_gcc`
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10933 done
10934 done
10935 IFS=$as_save_IFS
10938 esac
10940 orig_target_cc=$ac_cv_path_orig_target_cc
10941 if test -n "$orig_target_cc"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10943 $as_echo "$orig_target_cc" >&6; }
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10951 if test "$orig_target_cc" = ""; then
10952 # Extract the first word of "gcc", so it can be a program name with args.
10953 set dummy gcc; ac_word=$2
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955 $as_echo_n "checking for $ac_word... " >&6; }
10956 if test "${ac_cv_path_orig_target_cc+set}" = set; then :
10957 $as_echo_n "(cached) " >&6
10958 else
10959 case $orig_target_cc in
10960 [\\/]* | ?:[\\/]*)
10961 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $PATH
10967 IFS=$as_save_IFS
10968 test -z "$as_dir" && as_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10971 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10973 break 2
10975 done
10976 done
10977 IFS=$as_save_IFS
10980 esac
10982 orig_target_cc=$ac_cv_path_orig_target_cc
10983 if test -n "$orig_target_cc"; then
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10985 $as_echo "$orig_target_cc" >&6; }
10986 else
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988 $as_echo "no" >&6; }
10994 else
10995 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10996 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10998 $as_echo_n "checking for $ac_word... " >&6; }
10999 if test "${ac_cv_path_orig_target_cc+set}" = set; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 case $orig_target_cc in
11003 [\\/]* | ?:[\\/]*)
11004 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11010 IFS=$as_save_IFS
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11014 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 break 2
11018 done
11019 done
11020 IFS=$as_save_IFS
11023 esac
11025 orig_target_cc=$ac_cv_path_orig_target_cc
11026 if test -n "$orig_target_cc"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11028 $as_echo "$orig_target_cc" >&6; }
11029 else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11037 if test "$orig_target_cc" = ""; then
11038 as_fn_error "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11040 if test "x${crosstools_cxx_target}" = "x" ; then
11042 if test "${aros_tool_prefix}g++" = ""; then
11043 if test "$cross_compiling" = "yes" ; then
11044 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11045 set dummy ${target_tool_prefix}g++; ac_word=$2
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 $as_echo_n "checking for $ac_word... " >&6; }
11048 if test "${ac_cv_path_orig_target_cxx+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 case $orig_target_cxx in
11052 [\\/]* | ?:[\\/]*)
11053 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11067 done
11068 done
11069 IFS=$as_save_IFS
11072 esac
11074 orig_target_cxx=$ac_cv_path_orig_target_cxx
11075 if test -n "$orig_target_cxx"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11077 $as_echo "$orig_target_cxx" >&6; }
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11084 else
11085 if test "$GCC" = "yes"; then
11086 aros_gcc_g++=`$CC -print-prog-name=g++`
11087 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11088 set dummy `basename $aros_gcc_g++`; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if test "${ac_cv_path_orig_target_cxx+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 case $orig_target_cxx in
11095 [\\/]* | ?:[\\/]*)
11096 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in `dirname $aros_gcc_g++`
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11106 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11110 done
11111 done
11112 IFS=$as_save_IFS
11115 esac
11117 orig_target_cxx=$ac_cv_path_orig_target_cxx
11118 if test -n "$orig_target_cxx"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11120 $as_echo "$orig_target_cxx" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11128 if test "$orig_target_cxx" = ""; then
11129 # Extract the first word of "g++", so it can be a program name with args.
11130 set dummy g++; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if test "${ac_cv_path_orig_target_cxx+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 case $orig_target_cxx in
11137 [\\/]* | ?:[\\/]*)
11138 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11152 done
11153 done
11154 IFS=$as_save_IFS
11157 esac
11159 orig_target_cxx=$ac_cv_path_orig_target_cxx
11160 if test -n "$orig_target_cxx"; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11162 $as_echo "$orig_target_cxx" >&6; }
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11171 else
11172 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11173 set dummy ${aros_tool_prefix}g++; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if test "${ac_cv_path_orig_target_cxx+set}" = set; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 case $orig_target_cxx in
11180 [\\/]* | ?:[\\/]*)
11181 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11191 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11195 done
11196 done
11197 IFS=$as_save_IFS
11200 esac
11202 orig_target_cxx=$ac_cv_path_orig_target_cxx
11203 if test -n "$orig_target_cxx"; then
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11205 $as_echo "$orig_target_cxx" >&6; }
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11214 if test "$orig_target_cxx" = ""; then
11215 as_fn_error "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11219 if test "${aros_tool_prefix}ld" = ""; then
11220 if test "$cross_compiling" = "yes" ; then
11221 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11222 set dummy ${target_tool_prefix}gcc; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if test "${ac_cv_path_orig_target_ld+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 case $orig_target_ld in
11229 [\\/]* | ?:[\\/]*)
11230 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11240 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11244 done
11245 done
11246 IFS=$as_save_IFS
11249 esac
11251 orig_target_ld=$ac_cv_path_orig_target_ld
11252 if test -n "$orig_target_ld"; then
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11254 $as_echo "$orig_target_ld" >&6; }
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11261 else
11262 if test "$GCC" = "yes"; then
11263 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11264 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11265 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if test "${ac_cv_path_orig_target_ld+set}" = set; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 case $orig_target_ld in
11272 [\\/]* | ?:[\\/]*)
11273 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in `dirname $aros_gcc_gcc`
11279 IFS=$as_save_IFS
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 break 2
11287 done
11288 done
11289 IFS=$as_save_IFS
11292 esac
11294 orig_target_ld=$ac_cv_path_orig_target_ld
11295 if test -n "$orig_target_ld"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11297 $as_echo "$orig_target_ld" >&6; }
11298 else
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11305 if test "$orig_target_ld" = ""; then
11306 # Extract the first word of "gcc", so it can be a program name with args.
11307 set dummy gcc; ac_word=$2
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309 $as_echo_n "checking for $ac_word... " >&6; }
11310 if test "${ac_cv_path_orig_target_ld+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 case $orig_target_ld in
11314 [\\/]* | ?:[\\/]*)
11315 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $PATH
11321 IFS=$as_save_IFS
11322 test -z "$as_dir" && as_dir=.
11323 for ac_exec_ext in '' $ac_executable_extensions; do
11324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11325 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11327 break 2
11329 done
11330 done
11331 IFS=$as_save_IFS
11334 esac
11336 orig_target_ld=$ac_cv_path_orig_target_ld
11337 if test -n "$orig_target_ld"; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11339 $as_echo "$orig_target_ld" >&6; }
11340 else
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342 $as_echo "no" >&6; }
11348 else
11349 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11350 set dummy ${aros_tool_prefix}ld; ac_word=$2
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 $as_echo_n "checking for $ac_word... " >&6; }
11353 if test "${ac_cv_path_orig_target_ld+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 case $orig_target_ld in
11357 [\\/]* | ?:[\\/]*)
11358 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11368 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370 break 2
11372 done
11373 done
11374 IFS=$as_save_IFS
11377 esac
11379 orig_target_ld=$ac_cv_path_orig_target_ld
11380 if test -n "$orig_target_ld"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11382 $as_echo "$orig_target_ld" >&6; }
11383 else
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11391 if test "$orig_target_ld" = ""; then
11392 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11395 if test "${aros_tool_prefix}as" = ""; then
11396 if test "$cross_compiling" = "yes" ; then
11397 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11398 set dummy ${target_tool_prefix}as; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if test "${ac_cv_path_orig_target_as+set}" = set; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 case $orig_target_as in
11405 [\\/]* | ?:[\\/]*)
11406 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11416 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11420 done
11421 done
11422 IFS=$as_save_IFS
11425 esac
11427 orig_target_as=$ac_cv_path_orig_target_as
11428 if test -n "$orig_target_as"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11430 $as_echo "$orig_target_as" >&6; }
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11437 else
11438 if test "$GCC" = "yes"; then
11439 aros_gcc_as=`$CC -print-prog-name=as`
11440 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11441 set dummy `basename $aros_gcc_as`; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if test "${ac_cv_path_orig_target_as+set}" = set; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 case $orig_target_as in
11448 [\\/]* | ?:[\\/]*)
11449 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in `dirname $aros_gcc_as`
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11463 done
11464 done
11465 IFS=$as_save_IFS
11468 esac
11470 orig_target_as=$ac_cv_path_orig_target_as
11471 if test -n "$orig_target_as"; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11473 $as_echo "$orig_target_as" >&6; }
11474 else
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11481 if test "$orig_target_as" = ""; then
11482 # Extract the first word of "as", so it can be a program name with args.
11483 set dummy as; ac_word=$2
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if test "${ac_cv_path_orig_target_as+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 case $orig_target_as in
11490 [\\/]* | ?:[\\/]*)
11491 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495 for as_dir in $PATH
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11501 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 break 2
11505 done
11506 done
11507 IFS=$as_save_IFS
11510 esac
11512 orig_target_as=$ac_cv_path_orig_target_as
11513 if test -n "$orig_target_as"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11515 $as_echo "$orig_target_as" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11524 else
11525 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11526 set dummy ${aros_tool_prefix}as; ac_word=$2
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11528 $as_echo_n "checking for $ac_word... " >&6; }
11529 if test "${ac_cv_path_orig_target_as+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 case $orig_target_as in
11533 [\\/]* | ?:[\\/]*)
11534 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538 for as_dir in $PATH
11540 IFS=$as_save_IFS
11541 test -z "$as_dir" && as_dir=.
11542 for ac_exec_ext in '' $ac_executable_extensions; do
11543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11544 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 break 2
11548 done
11549 done
11550 IFS=$as_save_IFS
11553 esac
11555 orig_target_as=$ac_cv_path_orig_target_as
11556 if test -n "$orig_target_as"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11558 $as_echo "$orig_target_as" >&6; }
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11567 if test "$orig_target_as" = ""; then
11568 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11571 if test "${aros_tool_prefix}ar" = ""; then
11572 if test "$cross_compiling" = "yes" ; then
11573 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11574 set dummy ${target_tool_prefix}ar; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 $as_echo_n "checking for $ac_word... " >&6; }
11577 if test "${ac_cv_path_orig_target_ar+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 case $orig_target_ar in
11581 [\\/]* | ?:[\\/]*)
11582 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 break 2
11596 done
11597 done
11598 IFS=$as_save_IFS
11601 esac
11603 orig_target_ar=$ac_cv_path_orig_target_ar
11604 if test -n "$orig_target_ar"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11606 $as_echo "$orig_target_ar" >&6; }
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11613 else
11614 if test "$GCC" = "yes"; then
11615 aros_gcc_ar=`$CC -print-prog-name=ar`
11616 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11617 set dummy `basename $aros_gcc_ar`; ac_word=$2
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619 $as_echo_n "checking for $ac_word... " >&6; }
11620 if test "${ac_cv_path_orig_target_ar+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 case $orig_target_ar in
11624 [\\/]* | ?:[\\/]*)
11625 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629 for as_dir in `dirname $aros_gcc_ar`
11631 IFS=$as_save_IFS
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11635 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11637 break 2
11639 done
11640 done
11641 IFS=$as_save_IFS
11644 esac
11646 orig_target_ar=$ac_cv_path_orig_target_ar
11647 if test -n "$orig_target_ar"; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11649 $as_echo "$orig_target_ar" >&6; }
11650 else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; }
11657 if test "$orig_target_ar" = ""; then
11658 # Extract the first word of "ar", so it can be a program name with args.
11659 set dummy ar; ac_word=$2
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11661 $as_echo_n "checking for $ac_word... " >&6; }
11662 if test "${ac_cv_path_orig_target_ar+set}" = set; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 case $orig_target_ar in
11666 [\\/]* | ?:[\\/]*)
11667 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11677 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 break 2
11681 done
11682 done
11683 IFS=$as_save_IFS
11686 esac
11688 orig_target_ar=$ac_cv_path_orig_target_ar
11689 if test -n "$orig_target_ar"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11691 $as_echo "$orig_target_ar" >&6; }
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11700 else
11701 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11702 set dummy ${aros_tool_prefix}ar; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if test "${ac_cv_path_orig_target_ar+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 case $orig_target_ar in
11709 [\\/]* | ?:[\\/]*)
11710 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11724 done
11725 done
11726 IFS=$as_save_IFS
11729 esac
11731 orig_target_ar=$ac_cv_path_orig_target_ar
11732 if test -n "$orig_target_ar"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11734 $as_echo "$orig_target_ar" >&6; }
11735 else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11743 if test "$orig_target_ar" = ""; then
11744 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11747 if test "${aros_tool_prefix}ranlib" = ""; then
11748 if test "$cross_compiling" = "yes" ; then
11749 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11750 set dummy ${target_tool_prefix}ar; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if test "${ac_cv_path_orig_target_ranlib+set}" = set; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 case $orig_target_ranlib in
11757 [\\/]* | ?:[\\/]*)
11758 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $PATH
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11772 done
11773 done
11774 IFS=$as_save_IFS
11777 esac
11779 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11780 if test -n "$orig_target_ranlib"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11782 $as_echo "$orig_target_ranlib" >&6; }
11783 else
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11789 else
11790 if test "$GCC" = "yes"; then
11791 aros_gcc_ar=`$CC -print-prog-name=ar`
11792 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11793 set dummy `basename $aros_gcc_ar`; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if test "${ac_cv_path_orig_target_ranlib+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 case $orig_target_ranlib in
11800 [\\/]* | ?:[\\/]*)
11801 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in `dirname $aros_gcc_ar`
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11815 done
11816 done
11817 IFS=$as_save_IFS
11820 esac
11822 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11823 if test -n "$orig_target_ranlib"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11825 $as_echo "$orig_target_ranlib" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11833 if test "$orig_target_ranlib" = ""; then
11834 # Extract the first word of "ar", so it can be a program name with args.
11835 set dummy ar; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if test "${ac_cv_path_orig_target_ranlib+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 case $orig_target_ranlib in
11842 [\\/]* | ?:[\\/]*)
11843 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11857 done
11858 done
11859 IFS=$as_save_IFS
11862 esac
11864 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11865 if test -n "$orig_target_ranlib"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11867 $as_echo "$orig_target_ranlib" >&6; }
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11876 else
11877 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11878 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if test "${ac_cv_path_orig_target_ranlib+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 case $orig_target_ranlib in
11885 [\\/]* | ?:[\\/]*)
11886 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890 for as_dir in $PATH
11892 IFS=$as_save_IFS
11893 test -z "$as_dir" && as_dir=.
11894 for ac_exec_ext in '' $ac_executable_extensions; do
11895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11896 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11898 break 2
11900 done
11901 done
11902 IFS=$as_save_IFS
11905 esac
11907 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11908 if test -n "$orig_target_ranlib"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11910 $as_echo "$orig_target_ranlib" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11919 if test "$orig_target_ranlib" = ""; then
11920 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11923 if test "${aros_tool_prefix}nm" = ""; then
11924 if test "$cross_compiling" = "yes" ; then
11925 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11926 set dummy ${target_tool_prefix}nm; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if test "${ac_cv_path_orig_target_nm+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 case $orig_target_nm in
11933 [\\/]* | ?:[\\/]*)
11934 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11944 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11948 done
11949 done
11950 IFS=$as_save_IFS
11953 esac
11955 orig_target_nm=$ac_cv_path_orig_target_nm
11956 if test -n "$orig_target_nm"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11958 $as_echo "$orig_target_nm" >&6; }
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11965 else
11966 if test "$GCC" = "yes"; then
11967 aros_gcc_nm=`$CC -print-prog-name=nm`
11968 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11969 set dummy `basename $aros_gcc_nm`; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if test "${ac_cv_path_orig_target_nm+set}" = set; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 case $orig_target_nm in
11976 [\\/]* | ?:[\\/]*)
11977 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in `dirname $aros_gcc_nm`
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11987 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989 break 2
11991 done
11992 done
11993 IFS=$as_save_IFS
11996 esac
11998 orig_target_nm=$ac_cv_path_orig_target_nm
11999 if test -n "$orig_target_nm"; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12001 $as_echo "$orig_target_nm" >&6; }
12002 else
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12009 if test "$orig_target_nm" = ""; then
12010 # Extract the first word of "nm", so it can be a program name with args.
12011 set dummy nm; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_path_orig_target_nm+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 case $orig_target_nm in
12018 [\\/]* | ?:[\\/]*)
12019 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 break 2
12033 done
12034 done
12035 IFS=$as_save_IFS
12038 esac
12040 orig_target_nm=$ac_cv_path_orig_target_nm
12041 if test -n "$orig_target_nm"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12043 $as_echo "$orig_target_nm" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12052 else
12053 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12054 set dummy ${aros_tool_prefix}nm; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if test "${ac_cv_path_orig_target_nm+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 case $orig_target_nm in
12061 [\\/]* | ?:[\\/]*)
12062 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12068 IFS=$as_save_IFS
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12072 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074 break 2
12076 done
12077 done
12078 IFS=$as_save_IFS
12081 esac
12083 orig_target_nm=$ac_cv_path_orig_target_nm
12084 if test -n "$orig_target_nm"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12086 $as_echo "$orig_target_nm" >&6; }
12087 else
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12095 if test "$orig_target_nm" = ""; then
12096 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12099 if test "${aros_tool_prefix}strip" = ""; then
12100 if test "$cross_compiling" = "yes" ; then
12101 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12102 set dummy ${target_tool_prefix}strip; ac_word=$2
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if test "${ac_cv_path_orig_target_strip+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 case $orig_target_strip in
12109 [\\/]* | ?:[\\/]*)
12110 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12116 IFS=$as_save_IFS
12117 test -z "$as_dir" && as_dir=.
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12120 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12122 break 2
12124 done
12125 done
12126 IFS=$as_save_IFS
12129 esac
12131 orig_target_strip=$ac_cv_path_orig_target_strip
12132 if test -n "$orig_target_strip"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12134 $as_echo "$orig_target_strip" >&6; }
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12141 else
12142 if test "$GCC" = "yes"; then
12143 aros_gcc_strip=`$CC -print-prog-name=strip`
12144 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12145 set dummy `basename $aros_gcc_strip`; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if test "${ac_cv_path_orig_target_strip+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 case $orig_target_strip in
12152 [\\/]* | ?:[\\/]*)
12153 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in `dirname $aros_gcc_strip`
12159 IFS=$as_save_IFS
12160 test -z "$as_dir" && as_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12163 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 break 2
12167 done
12168 done
12169 IFS=$as_save_IFS
12172 esac
12174 orig_target_strip=$ac_cv_path_orig_target_strip
12175 if test -n "$orig_target_strip"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12177 $as_echo "$orig_target_strip" >&6; }
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12185 if test "$orig_target_strip" = ""; then
12186 # Extract the first word of "strip", so it can be a program name with args.
12187 set dummy strip; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 $as_echo_n "checking for $ac_word... " >&6; }
12190 if test "${ac_cv_path_orig_target_strip+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 case $orig_target_strip in
12194 [\\/]* | ?:[\\/]*)
12195 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199 for as_dir in $PATH
12201 IFS=$as_save_IFS
12202 test -z "$as_dir" && as_dir=.
12203 for ac_exec_ext in '' $ac_executable_extensions; do
12204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12205 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 break 2
12209 done
12210 done
12211 IFS=$as_save_IFS
12214 esac
12216 orig_target_strip=$ac_cv_path_orig_target_strip
12217 if test -n "$orig_target_strip"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12219 $as_echo "$orig_target_strip" >&6; }
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12228 else
12229 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12230 set dummy ${aros_tool_prefix}strip; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if test "${ac_cv_path_orig_target_strip+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 case $orig_target_strip in
12237 [\\/]* | ?:[\\/]*)
12238 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12244 IFS=$as_save_IFS
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12248 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250 break 2
12252 done
12253 done
12254 IFS=$as_save_IFS
12257 esac
12259 orig_target_strip=$ac_cv_path_orig_target_strip
12260 if test -n "$orig_target_strip"; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12262 $as_echo "$orig_target_strip" >&6; }
12263 else
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12271 if test "$orig_target_strip" = ""; then
12272 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12275 if test "${aros_tool_prefix}objcopy" = ""; then
12276 if test "$cross_compiling" = "yes" ; then
12277 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12278 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if test "${ac_cv_path_orig_target_objcopy+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 case $orig_target_objcopy in
12285 [\\/]* | ?:[\\/]*)
12286 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $PATH
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12300 done
12301 done
12302 IFS=$as_save_IFS
12305 esac
12307 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12308 if test -n "$orig_target_objcopy"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12310 $as_echo "$orig_target_objcopy" >&6; }
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12317 else
12318 if test "$GCC" = "yes"; then
12319 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12320 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12321 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323 $as_echo_n "checking for $ac_word... " >&6; }
12324 if test "${ac_cv_path_orig_target_objcopy+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 case $orig_target_objcopy in
12328 [\\/]* | ?:[\\/]*)
12329 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in `dirname $aros_gcc_objcopy`
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12339 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12343 done
12344 done
12345 IFS=$as_save_IFS
12348 esac
12350 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12351 if test -n "$orig_target_objcopy"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12353 $as_echo "$orig_target_objcopy" >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12361 if test "$orig_target_objcopy" = ""; then
12362 # Extract the first word of "objcopy", so it can be a program name with args.
12363 set dummy objcopy; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if test "${ac_cv_path_orig_target_objcopy+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 case $orig_target_objcopy in
12370 [\\/]* | ?:[\\/]*)
12371 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12381 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 break 2
12385 done
12386 done
12387 IFS=$as_save_IFS
12390 esac
12392 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12393 if test -n "$orig_target_objcopy"; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12395 $as_echo "$orig_target_objcopy" >&6; }
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12404 else
12405 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12406 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 $as_echo_n "checking for $ac_word... " >&6; }
12409 if test "${ac_cv_path_orig_target_objcopy+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12411 else
12412 case $orig_target_objcopy in
12413 [\\/]* | ?:[\\/]*)
12414 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418 for as_dir in $PATH
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12424 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426 break 2
12428 done
12429 done
12430 IFS=$as_save_IFS
12433 esac
12435 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12436 if test -n "$orig_target_objcopy"; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12438 $as_echo "$orig_target_objcopy" >&6; }
12439 else
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441 $as_echo "no" >&6; }
12447 if test "$orig_target_objcopy" = ""; then
12448 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12451 if test "${aros_tool_prefix}objdump" = ""; then
12452 if test "$cross_compiling" = "yes" ; then
12453 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12454 set dummy ${target_tool_prefix}objdump; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if test "${ac_cv_path_orig_target_objdump+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 case $orig_target_objdump in
12461 [\\/]* | ?:[\\/]*)
12462 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12476 done
12477 done
12478 IFS=$as_save_IFS
12481 esac
12483 orig_target_objdump=$ac_cv_path_orig_target_objdump
12484 if test -n "$orig_target_objdump"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12486 $as_echo "$orig_target_objdump" >&6; }
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12493 else
12494 if test "$GCC" = "yes"; then
12495 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12496 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12497 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499 $as_echo_n "checking for $ac_word... " >&6; }
12500 if test "${ac_cv_path_orig_target_objdump+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 case $orig_target_objdump in
12504 [\\/]* | ?:[\\/]*)
12505 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in `dirname $aros_gcc_objdump`
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12515 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12519 done
12520 done
12521 IFS=$as_save_IFS
12524 esac
12526 orig_target_objdump=$ac_cv_path_orig_target_objdump
12527 if test -n "$orig_target_objdump"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12529 $as_echo "$orig_target_objdump" >&6; }
12530 else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12537 if test "$orig_target_objdump" = ""; then
12538 # Extract the first word of "objdump", so it can be a program name with args.
12539 set dummy objdump; ac_word=$2
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541 $as_echo_n "checking for $ac_word... " >&6; }
12542 if test "${ac_cv_path_orig_target_objdump+set}" = set; then :
12543 $as_echo_n "(cached) " >&6
12544 else
12545 case $orig_target_objdump in
12546 [\\/]* | ?:[\\/]*)
12547 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12553 IFS=$as_save_IFS
12554 test -z "$as_dir" && as_dir=.
12555 for ac_exec_ext in '' $ac_executable_extensions; do
12556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12557 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559 break 2
12561 done
12562 done
12563 IFS=$as_save_IFS
12566 esac
12568 orig_target_objdump=$ac_cv_path_orig_target_objdump
12569 if test -n "$orig_target_objdump"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12571 $as_echo "$orig_target_objdump" >&6; }
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12580 else
12581 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12582 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if test "${ac_cv_path_orig_target_objdump+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 case $orig_target_objdump in
12589 [\\/]* | ?:[\\/]*)
12590 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12604 done
12605 done
12606 IFS=$as_save_IFS
12609 esac
12611 orig_target_objdump=$ac_cv_path_orig_target_objdump
12612 if test -n "$orig_target_objdump"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12614 $as_echo "$orig_target_objdump" >&6; }
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12623 if test "$orig_target_objdump" = ""; then
12624 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12628 if test "$kernel_tool_prefix" = "none" ; then
12629 # No kernel tools specified
12630 # Assume target tools == kernel tools with ELF wrapper
12631 aros_kernel_cc=$orig_target_cc
12632 aros_kernel_cxx=$orig_target_cxx
12633 aros_kernel_cpp=$orig_target_cpp
12634 aros_kernel_ld=$orig_target_ld
12635 aros_kernel_as=$orig_target_as
12636 aros_kernel_ar=$orig_target_ar
12637 aros_kernel_ranlib=$orig_target_ranlib
12638 aros_kernel_nm=$orig_target_nm
12639 aros_kernel_strip=$orig_target_strip
12640 aros_kernel_objcopy=$orig_target_objcopy
12641 aros_kernel_objdump=$orig_target_objdump
12642 use_kernel_cc_wrapper=yes
12645 # At this point, all aros_kernel_* and aros_target_*
12646 # tools should be set up correctly
12648 CC="$aros_kernel_cc $kernel_tool_flags"
12649 CPP="$aros_kernel_cpp"
12651 #-----------------------------------------------------------------------------
12653 # Disable pointer-signedness warnings if the compiler recognises the option
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12656 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12657 save_cflags="$CFLAGS"
12658 if test "$crosstools" != "yes" ; then
12659 CFLAGS="$CFLAGS -Wno-pointer-sign"
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12664 main ()
12668 return 0;
12670 _ACEOF
12671 if ac_fn_c_try_compile "$LINENO"; then :
12672 use_no_sign_warning="yes"
12673 else
12674 use_no_sign_warning="no"
12676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12677 else
12678 # we do know it is supported for the smallest version of gcc we are going to build
12679 # we assume it's also supported by later versions
12680 use_no_sign_warning=yes
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12683 $as_echo "$use_no_sign_warning" >&6; }
12684 if test "x-$use_no_sign_warning" = "x-yes" ; then
12685 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12687 CFLAGS="$save_cflags"
12689 #-----------------------------------------------------------------------------
12691 # Find all the tools we need to compile. This could be cross-compiling
12692 # though! If that is the case we use the GNU form of the target and
12693 # simply add this to the front of the binary name. This is rather simple,
12694 # but it should work under most circumstances.
12696 # The default tools are to use the same as the host, but only if the
12697 # host and target CPU are the same. With GCC this is normally enough.
12700 aros_cc_pre=""
12701 aros_shared_ld="$aros_host_ld"
12703 aros_target_mkdep="$aros_host_mkdep"
12705 # The default tools executables to be linked to.
12706 if test "$rescomp" != ""; then
12707 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12708 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12710 $as_echo_n "checking for $ac_word... " >&6; }
12711 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 case $aros_kernel_rescomp in
12715 [\\/]* | ?:[\\/]*)
12716 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720 for as_dir in $PATH
12722 IFS=$as_save_IFS
12723 test -z "$as_dir" && as_dir=.
12724 for ac_exec_ext in '' $ac_executable_extensions; do
12725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12726 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728 break 2
12730 done
12731 done
12732 IFS=$as_save_IFS
12735 esac
12737 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12738 if test -n "$aros_kernel_rescomp"; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12740 $as_echo "$aros_kernel_rescomp" >&6; }
12741 else
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12747 if test "$aros_kernel_rescomp" = ""; then
12748 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12752 # Set up the sources for the symlink farm
12753 if test "$crosstools" = "yes"; then
12754 crosstools_target=tools-crosstools
12757 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12758 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12761 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12762 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12763 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12764 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12765 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12766 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12767 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12769 # aros_cc_pre is a variable that is added to the front of the compiler name
12770 # in the generated aros-gcc shell script. We need this to enable the cache
12771 # to work across cleaned builds. Also, support DISTCC using the correct
12772 # environment variable.
12775 if test "x${DISTCC}" != "x" ; then
12776 if test "x${CCACHE}" != "x" ; then
12777 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12778 else
12779 aros_cc_pre="${DISTCC} "
12781 else
12782 if test "x${CCACHE}" != "x" ; then
12783 aros_cc_pre="${CCACHE} "
12787 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12789 aros_target_nostdinc_cflags=-nostdinc
12791 aros_target_nostartup_ldflags=-nostartfiles
12793 aros_target_nix_ldflags=-nix
12795 aros_target_detach_ldflags=-detach
12797 aros_target_nostdlib_ldflags=-nostdlib
12800 # Target tools
12801 if test "$crosstools" != "yes"; then
12802 if test "$GCC" = "yes"; then
12803 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12805 else
12806 # We do not know which gcc version we are going to build and what we need to know
12807 # here is different for different versions so this will be set later during the
12808 # build of crosstools.
12809 aros_target_cc_path=@aros_target_cc_path@
12811 aros_target_cpp="${prefix}cpp"
12812 aros_target_cc="${prefix}gcc"
12813 aros_target_cxx="${prefix}g++"
12814 aros_target_as="${prefix}as"
12815 aros_target_ld="${prefix}ld"
12816 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12817 aros_target_objcopy="${prefix}objcopy"
12818 aros_target_objdump="${prefix}objdump"
12819 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12820 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12821 aros_target_strip="${prefix}strip"
12822 aros_plain_nm="${prefix}nm"
12823 aros_plain_ar="${prefix}ar"
12825 # Check whether --enable-includes was given.
12826 if test "${enable_includes+set}" = set; then :
12827 enableval=$enable_includes; aros_target_incl=$enable_includes
12828 else
12829 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12833 if test "$aros_kernel_includes" = ""; then
12834 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12835 aros_kernel_includes="-isystem $aros_target_incl"
12839 if test "$aros_kernel_includes" != "" ; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12841 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12842 if test "$aros_kernel_cc_includes" = "" ; then
12843 # Try to guess where the directory is.
12844 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12845 if test -d $aros_kernel_cc_includes; then
12846 # Check if there is also an include-fixed directory and add it
12847 # to kernel compiler's include path as it may contain some of
12848 # the headers we need.
12849 if test -d "$aros_kernel_cc_includes"-fixed; then
12850 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12852 # Check for specific includes directory. Neede for Ubuntu 11.10
12853 if test -d "/usr/include/i386-linux-gnu"; then
12854 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12856 else
12857 # The directory doesn't exist, we need to do some more work.
12858 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12860 # These are the headers we're looking for.
12861 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12862 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12863 zutil.h stdint.h"
12865 dirs=
12866 for h in $headers; do
12867 # Which other headers are needed by each of the above?
12868 deps=$(echo "#include <$h>" | \
12869 $aros_kernel_cc -E -M - 2>/dev/null | \
12870 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12872 # Copy all the needed headers to a directory beneath gendir.
12873 for d in $deps; do
12874 h=$(basename $d)
12875 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12876 sed -n "s,^.*/include\(/.*\),\1,p")
12877 ! test -d $dir && mkdir -p $dir
12878 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12879 done
12880 done
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12884 $as_echo "$aros_kernel_cc_includes" >&6; }
12885 # Adding -nostdinc to kernel includes as they are always used together.
12886 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12889 if test "$crosstools" != "yes"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12891 $as_echo_n "checking for the target compiler's include path... " >&6; }
12892 if test "$aros_target_cc_includes" = "" ; then
12893 #try to guess where the directory is
12894 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12895 if ! test -d $aros_target_cc_includes; then
12896 #the directory doesn't exist, we need to do some more work
12897 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12899 #these are the headers we're looking for
12900 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12901 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12902 zutil.h"
12904 dirs=
12905 for h in $headers; do
12906 #which other headers each of the above headers needs?
12907 deps=$(echo "#include <$h>" | \
12908 $orig_target_cc -E -M - 2>/dev/null | \
12909 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12911 #copy all the needed headers to a directory beneath gendir
12912 for d in $deps; do
12913 h=$(basename $d)
12914 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12915 sed -n "s,^.*/include\(/.*\),\1,p")
12916 ! test -d $dir && mkdir -p $dir
12917 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12918 done
12919 done
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12923 $as_echo "$aros_target_cc_includes" >&6; }
12924 else
12925 # We do not know which gcc version we are going to build and what we need to know
12926 # here is different for different versions so this will be set later during the
12927 # build of crosstools.
12928 aros_target_cc_includes=@aros_target_cc_includes@
12932 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12933 # On GCC >= 4.0 -iquote should be used
12936 save_cc="$CC"
12937 save_cflags="$CFLAGS"
12938 CFLAGS="-iquote."
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12940 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12941 if test "x-$crosstools" != "x-yes"; then
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12946 main ()
12950 return 0;
12952 _ACEOF
12953 if ac_fn_c_try_compile "$LINENO"; then :
12954 has_iquote="yes"
12955 else
12956 has_iquote="no"
12958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959 else
12960 # we do know it is supported for the smallest version of gcc we are going to build
12961 # we assume it's also supported by later versions
12962 has_iquote=yes
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12965 $as_echo "$has_iquote" >&6; }
12966 if test "x-$has_iquote" = "x-yes" ; then
12967 host_cflags_iquote=-iquote
12968 host_cflags_iquote_end=
12969 else
12970 host_cflags_iquote=-I
12971 host_cflags_iquote_end=-I-
12973 kernel_cflags_iquote=$host_cflags_iquote
12974 kernel_cflags_iquote_end=$host_cflags_iquote_end
12975 if test "x-$cross_compiling" = "x-yes"; then
12976 CC="$aros_kernel_cc"
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12978 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12979 if test "x-$crosstools" != "x-yes"; then
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12984 main ()
12988 return 0;
12990 _ACEOF
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 use_no_stack_protector="yes"
12993 else
12994 use_no_stack_protector="no"
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 else
12998 # we do know it is supported for the smallest version of gcc we are going to build
12999 # we assume it's also supported by later versions
13000 use_no_stack_protector=yes
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13003 $as_echo "$use_no_stack_protector" >&6; }
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13005 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13006 if test "x-$crosstools" != "x-yes"; then
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13011 main ()
13015 return 0;
13017 _ACEOF
13018 if ac_fn_c_try_compile "$LINENO"; then :
13019 has_iquote="yes"
13020 else
13021 has_iquote="no"
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 else
13025 # we do know it is supported for the smallest version of gcc we are going to build
13026 # we assume it's also supported by later versions
13027 has_iquote=yes
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13030 $as_echo "$has_iquote" >&6; }
13031 if test "x-$has_iquote" = "x-yes" ; then
13032 kernel_cflags_iquote=-iquote
13033 kernel_cflags_iquote_end=
13034 else
13035 kernel_cflags_iquote=-I
13036 kernel_cflags_iquote_end=-I-
13039 aros_cflags_iquote=$kernel_cflags_iquote
13040 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13041 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13042 CC="$orig_target_cc"
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13044 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13045 if test "x-$crosstools" != "x-yes"; then
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13050 main ()
13054 return 0;
13056 _ACEOF
13057 if ac_fn_c_try_compile "$LINENO"; then :
13058 has_iquote="yes"
13059 else
13060 has_iquote="no"
13062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063 else
13064 # we do know it is supported for the smallest version of gcc we are going to build
13065 # we assume it's also supported by later versions
13066 has_iquote=yes
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13069 $as_echo "$has_iquote" >&6; }
13070 if test "x-$has_iquote" = "x-yes" ; then
13071 aros_cflags_iquote=-iquote
13072 aros_cflags_iquote_end=
13073 else
13074 aros_cflags_iquote=-I
13075 aros_cflags_iquote_end=-I-
13078 if test "x-$use_no_stack_protector" = "x-yes" ; then
13079 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13083 #-----------------------------------------------------------------------------
13085 # Check if the target compiler supports some options used for delinting:
13086 # -Wunused-but-set-variable
13087 # -Warray-bounds
13088 # -Wenum-compare
13089 # -Wstrict-overflow
13090 # -Wformat-security
13092 if test "x-$crosstools" != "x-yes"; then
13093 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13094 CC="$orig_target_cc"
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13097 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13098 CFLAGS=-Wunused-but-set-variable
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13103 main ()
13107 return 0;
13109 _ACEOF
13110 if ac_fn_c_try_compile "$LINENO"; then :
13111 aros_unused_but_set_variable="yes"
13112 else
13113 aros_unused_but_set_variable="no"
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13117 $as_echo "$aros_unused_but_set_variable" >&6; }
13118 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13119 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13123 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13124 CFLAGS=-Warray-bounds
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13129 main ()
13133 return 0;
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"; then :
13137 aros_array_bounds="yes"
13138 else
13139 aros_array_bounds="no"
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13143 $as_echo "$aros_array_bounds" >&6; }
13144 if test "x-$aros_array_bounds" = "x-yes" ; then
13145 aros_cflags_array_bounds=-Wno-array-bounds
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13149 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13150 CFLAGS=-Wenum-compare
13151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152 /* end confdefs.h. */
13155 main ()
13159 return 0;
13161 _ACEOF
13162 if ac_fn_c_try_compile "$LINENO"; then :
13163 aros_enum_compare="yes"
13164 else
13165 aros_enum_compare="no"
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13169 $as_echo "$aros_enum_compare" >&6; }
13170 if test "x-$aros_enum_compare" = "x-yes" ; then
13171 aros_cflags_enum_compare=-Wno-enum-compare
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13175 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13176 CFLAGS=-Wstrict-overflow
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13181 main ()
13185 return 0;
13187 _ACEOF
13188 if ac_fn_c_try_compile "$LINENO"; then :
13189 aros_strict_overflow="yes"
13190 else
13191 aros_strict_overflow="no"
13193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13195 $as_echo "$aros_strict_overflow" >&6; }
13196 if test "x-$aros_strict_overflow" = "x-yes" ; then
13197 aros_cflags_strict_overflow=-Wno-strict-overflow
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13201 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13202 CFLAGS=-Wformat-security
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13207 main ()
13211 return 0;
13213 _ACEOF
13214 if ac_fn_c_try_compile "$LINENO"; then :
13215 aros_format_security="yes"
13216 else
13217 aros_format_security="no"
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13221 $as_echo "$aros_format_security" >&6; }
13222 if test "x-$aros_format_security" = "x-yes" ; then
13223 aros_cflags_format_security=-Wno-format-security
13225 else
13226 # We do not know which gcc version we are going to build and what we need to know
13227 # here is different for different versions so this will be set later during the
13228 # build of crosstools.
13229 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13230 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13231 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13232 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13233 aros_cflags_format_security=@aros_cflags_format_security@
13236 #-----------------------------------------------------------------------------
13238 # Check if we can explicitly choose older version of symbol hashing
13240 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13241 CC="$aros_kernel_cc"
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13243 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13248 main ()
13252 return 0;
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"; then :
13256 use_hash_style="yes"
13257 else
13258 use_hash_style="no"
13260 rm -f core conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext conftest.$ac_ext
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13263 $as_echo "$use_hash_style" >&6; }
13264 if test "x-$use_hash_style" = "x-yes" ; then
13265 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13267 CC="$save_cc"
13268 CFLAGS="$save_cflags"
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13279 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13281 # Check whether --with-resolution was given.
13282 if test "${with_resolution+set}" = set; then :
13283 withval=$with_resolution; resolution=$withval
13284 else
13285 resolution=none
13288 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13289 if test "$resolution" = "yes" ; then
13290 resolution="none"
13292 if test "$resolution" = "no" ; then
13293 resolution="none"
13295 if test "$resolution" != "none" ; then
13296 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13297 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13298 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13301 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13302 aros_cv_default_wbwidth=$aros_default_wbwidth
13303 aros_cv_default_wbheight=$aros_default_wbheight
13304 aros_cv_default_wbdepth=$aros_default_wbdepth
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13307 $as_echo_n "checking if serial debug is enabled... " >&6; }
13309 # Check whether --with-serial-debug was given.
13310 if test "${with_serial_debug+set}" = set; then :
13311 withval=$with_serial_debug; serial_debug=$withval
13312 else
13313 serial_debug=none
13316 if test "$aros_serial_debug" = 0 ; then
13317 serial_debug_forced=""
13318 if test "$serial_debug" = "yes" ; then
13319 serial_debug="1"
13321 if test "$serial_debug" = "no" ; then
13322 serial_debug="none"
13324 else
13325 serial_debug_forced="(forced)"
13326 serial_debug=$aros_serial_debug
13328 if test "$serial_debug" != "none" ; then
13329 aros_serial_debug=$serial_debug
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13331 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13338 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13339 # Check whether --enable-palm_debug_hack was given.
13340 if test "${enable_palm_debug_hack+set}" = set; then :
13341 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13342 else
13343 palm_debug_hack="no"
13346 if test "$palm_debug_hack" = "yes" ; then
13347 aros_palm_debug_hack="1"
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13350 $as_echo "$palm_debug_hack" >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13353 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13354 # Check whether --enable-nesting_supervisor was given.
13355 if test "${enable_nesting_supervisor+set}" = set; then :
13356 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13357 else
13358 nesting_supervisor="no"
13361 if test "$nesting_supervisor" = "yes" ; then
13362 aros_nesting_supervisor="1"
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13365 $as_echo "$nesting_supervisor" >&6; }
13367 if test "$aros_enable_mmu" = "" ; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13369 $as_echo_n "checking if MMU support is enabled... " >&6; }
13370 # Check whether --enable-mmu was given.
13371 if test "${enable_mmu+set}" = set; then :
13372 enableval=$enable_mmu; aros_enable_mmu=$enableval
13373 else
13374 aros_enable_mmu="yes"
13377 if test "$aros_enable_mmu" = "" ; then
13378 aros_enable_mmu="yes"
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13381 $as_echo "$aros_enable_mmu" >&6; }
13383 if test "$aros_enable_mmu" = "no" ; then
13384 aros_enable_mmu="0"
13385 else
13386 aros_enable_mmu="1"
13390 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13392 if test "x-$need_dlopen" != "x-no" ; then
13393 save_libs="$LIBS"
13394 LIBS=""
13395 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13396 if test "x$ac_cv_func_dlopen" = x""yes; then :
13397 have_dl="yes"
13398 else
13399 have_dl="no"
13402 if test "x-$have_dl" = "x-no" ; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13404 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13405 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 ac_check_lib_save_LIBS=$LIBS
13409 LIBS="-ldl $LIBS"
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13413 /* Override any GCC internal prototype to avoid an error.
13414 Use char because int might match the return type of a GCC
13415 builtin and then its argument prototype would still apply. */
13416 #ifdef __cplusplus
13417 extern "C"
13418 #endif
13419 char dlopen ();
13421 main ()
13423 return dlopen ();
13425 return 0;
13427 _ACEOF
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 ac_cv_lib_dl_dlopen=yes
13430 else
13431 ac_cv_lib_dl_dlopen=no
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LIBS=$ac_check_lib_save_LIBS
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13438 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13439 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13440 have_dl="yes"
13441 aros_host_ldflags="$aros_host_ldflags -ldl"
13442 else
13443 have_dl="no"
13447 if test "x-$have_dl" = "x-no" ; then
13448 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
13450 LIBS="$save_libs"
13454 # Check whether --enable-x11_hidd was given.
13455 if test "${enable_x11_hidd+set}" = set; then :
13456 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13457 else
13458 x11_hidd="$need_x11"
13461 case "x-$x11_hidd" in
13462 x-yes|x-no|x-auto) ;;
13463 *) x11_hidd="$need_x11" ;;
13464 esac
13466 ENABLE_X11=0
13468 if test "x-$x11_hidd" != "x-no" ; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13471 $as_echo_n "checking for X... " >&6; }
13474 # Check whether --with-x was given.
13475 if test "${with_x+set}" = set; then :
13476 withval=$with_x;
13479 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13480 if test "x$with_x" = xno; then
13481 # The user explicitly disabled X.
13482 have_x=disabled
13483 else
13484 case $x_includes,$x_libraries in #(
13485 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
13486 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13487 $as_echo_n "(cached) " >&6
13488 else
13489 # One or both of the vars are not set, and there is no cached value.
13490 ac_x_includes=no ac_x_libraries=no
13491 rm -f -r conftest.dir
13492 if mkdir conftest.dir; then
13493 cd conftest.dir
13494 cat >Imakefile <<'_ACEOF'
13495 incroot:
13496 @echo incroot='${INCROOT}'
13497 usrlibdir:
13498 @echo usrlibdir='${USRLIBDIR}'
13499 libdir:
13500 @echo libdir='${LIBDIR}'
13501 _ACEOF
13502 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13503 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13504 for ac_var in incroot usrlibdir libdir; do
13505 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13506 done
13507 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13508 for ac_extension in a so sl dylib la dll; do
13509 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13510 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13511 ac_im_usrlibdir=$ac_im_libdir; break
13513 done
13514 # Screen out bogus values from the imake configuration. They are
13515 # bogus both because they are the default anyway, and because
13516 # using them would break gcc on systems where it needs fixed includes.
13517 case $ac_im_incroot in
13518 /usr/include) ac_x_includes= ;;
13519 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13520 esac
13521 case $ac_im_usrlibdir in
13522 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13523 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13524 esac
13526 cd ..
13527 rm -f -r conftest.dir
13530 # Standard set of common directories for X headers.
13531 # Check X11 before X11Rn because it is often a symlink to the current release.
13532 ac_x_header_dirs='
13533 /usr/X11/include
13534 /usr/X11R7/include
13535 /usr/X11R6/include
13536 /usr/X11R5/include
13537 /usr/X11R4/include
13539 /usr/include/X11
13540 /usr/include/X11R7
13541 /usr/include/X11R6
13542 /usr/include/X11R5
13543 /usr/include/X11R4
13545 /usr/local/X11/include
13546 /usr/local/X11R7/include
13547 /usr/local/X11R6/include
13548 /usr/local/X11R5/include
13549 /usr/local/X11R4/include
13551 /usr/local/include/X11
13552 /usr/local/include/X11R7
13553 /usr/local/include/X11R6
13554 /usr/local/include/X11R5
13555 /usr/local/include/X11R4
13557 /usr/X386/include
13558 /usr/x386/include
13559 /usr/XFree86/include/X11
13561 /usr/include
13562 /usr/local/include
13563 /usr/unsupported/include
13564 /usr/athena/include
13565 /usr/local/x11r5/include
13566 /usr/lpp/Xamples/include
13568 /usr/openwin/include
13569 /usr/openwin/share/include'
13571 if test "$ac_x_includes" = no; then
13572 # Guess where to find include files, by looking for Xlib.h.
13573 # First, try using that file with no special directory specified.
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576 #include <X11/Xlib.h>
13577 _ACEOF
13578 if ac_fn_c_try_cpp "$LINENO"; then :
13579 # We can compile using X headers with no special include directory.
13580 ac_x_includes=
13581 else
13582 for ac_dir in $ac_x_header_dirs; do
13583 if test -r "$ac_dir/X11/Xlib.h"; then
13584 ac_x_includes=$ac_dir
13585 break
13587 done
13589 rm -f conftest.err conftest.$ac_ext
13590 fi # $ac_x_includes = no
13592 if test "$ac_x_libraries" = no; then
13593 # Check for the libraries.
13594 # See if we find them without any special options.
13595 # Don't add to $LIBS permanently.
13596 ac_save_LIBS=$LIBS
13597 LIBS="-lX11 $LIBS"
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13600 #include <X11/Xlib.h>
13602 main ()
13604 XrmInitialize ()
13606 return 0;
13608 _ACEOF
13609 if ac_fn_c_try_link "$LINENO"; then :
13610 LIBS=$ac_save_LIBS
13611 # We can link X programs with no special library path.
13612 ac_x_libraries=
13613 else
13614 LIBS=$ac_save_LIBS
13615 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13617 # Don't even attempt the hair of trying to link an X program!
13618 for ac_extension in a so sl dylib la dll; do
13619 if test -r "$ac_dir/libX11.$ac_extension"; then
13620 ac_x_libraries=$ac_dir
13621 break 2
13623 done
13624 done
13626 rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 fi # $ac_x_libraries = no
13630 case $ac_x_includes,$ac_x_libraries in #(
13631 no,* | *,no | *\'*)
13632 # Didn't find X, or a directory has "'" in its name.
13633 ac_cv_have_x="have_x=no";; #(
13635 # Record where we found X for the cache.
13636 ac_cv_have_x="have_x=yes\
13637 ac_x_includes='$ac_x_includes'\
13638 ac_x_libraries='$ac_x_libraries'"
13639 esac
13641 ;; #(
13642 *) have_x=yes;;
13643 esac
13644 eval "$ac_cv_have_x"
13645 fi # $with_x != no
13647 if test "$have_x" != yes; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13649 $as_echo "$have_x" >&6; }
13650 no_x=yes
13651 else
13652 # If each of the values was on the command line, it overrides each guess.
13653 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13654 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13655 # Update the cache value to reflect the command line values.
13656 ac_cv_have_x="have_x=yes\
13657 ac_x_includes='$x_includes'\
13658 ac_x_libraries='$x_libraries'"
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13660 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13664 x_cflags=
13665 for path in $x_libraries
13667 x_cflags="$x_cflags -L$path"
13668 done
13670 for path in $x_includes
13672 x_cflags="$x_cflags -I$path"
13673 done
13675 if test "x-$no_x" = "x-yes" ; then
13677 if test "x-$x11_hidd" != "x-auto" ; then
13678 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13681 else
13682 x11_hidd_target=kernel-x11gfx-kobj
13683 ENABLE_X11=1
13685 # Check whether --enable-x11_shm was given.
13686 if test "${enable_x11_shm+set}" = set; then :
13687 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13688 else
13689 x11_hidd_shm="auto"
13692 case "x-$x11_hidd_shm" in
13693 x-yes|x-no|x-auto) ;;
13694 *) x11_hidd_shm="auto" ;;
13695 esac
13697 have_xshm=no
13699 if test "x-$x11_hidd_shm" != "x-no" ; then
13701 for ac_header in sys/ipc.h
13702 do :
13703 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13704 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
13705 cat >>confdefs.h <<_ACEOF
13706 #define HAVE_SYS_IPC_H 1
13707 _ACEOF
13711 done
13713 for ac_header in sys/shm.h
13714 do :
13715 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13716 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
13717 cat >>confdefs.h <<_ACEOF
13718 #define HAVE_SYS_SHM_H 1
13719 _ACEOF
13723 done
13726 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13728 save_cflags="$CFLAGS"
13729 CFLAGS="$CFLAGS $x_cflags"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13731 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13732 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 ac_check_lib_save_LIBS=$LIBS
13736 LIBS="-lXext $LIBS"
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13740 /* Override any GCC internal prototype to avoid an error.
13741 Use char because int might match the return type of a GCC
13742 builtin and then its argument prototype would still apply. */
13743 #ifdef __cplusplus
13744 extern "C"
13745 #endif
13746 char XShmQueryExtension ();
13748 main ()
13750 return XShmQueryExtension ();
13752 return 0;
13754 _ACEOF
13755 if ac_fn_c_try_link "$LINENO"; then :
13756 ac_cv_lib_Xext_XShmQueryExtension=yes
13757 else
13758 ac_cv_lib_Xext_XShmQueryExtension=no
13760 rm -f core conftest.err conftest.$ac_objext \
13761 conftest$ac_exeext conftest.$ac_ext
13762 LIBS=$ac_check_lib_save_LIBS
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13765 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13766 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
13767 have_xshm=yes
13770 CFLAGS="$save_cflags"
13774 if test "x-$have_xshm" = "x-yes" ; then
13775 DO_XSHM_SUPPORT="1"
13776 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13777 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13778 else
13779 DO_XSHM_SUPPORT="0"
13783 # Check whether --enable-x11_vidmode was given.
13784 if test "${enable_x11_vidmode+set}" = set; then :
13785 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13786 else
13787 x11_hidd_vidmode="auto"
13790 case "x-$x11_hidd_vidmode" in
13791 x-yes|x-no|x-auto) ;;
13792 *) x11_hidd_vidmode="auto" ;;
13793 esac
13795 have_vidmode=no
13797 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13799 save_cflags="$CFLAGS"
13800 CFLAGS="$CFLAGS $x_cflags"
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13802 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13803 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 ac_check_lib_save_LIBS=$LIBS
13807 LIBS="-lXxf86vm $LIBS"
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13811 /* Override any GCC internal prototype to avoid an error.
13812 Use char because int might match the return type of a GCC
13813 builtin and then its argument prototype would still apply. */
13814 #ifdef __cplusplus
13815 extern "C"
13816 #endif
13817 char XF86VidModeQueryExtension ();
13819 main ()
13821 return XF86VidModeQueryExtension ();
13823 return 0;
13825 _ACEOF
13826 if ac_fn_c_try_link "$LINENO"; then :
13827 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13828 else
13829 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13831 rm -f core conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13833 LIBS=$ac_check_lib_save_LIBS
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13836 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13837 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
13838 have_vidmode=yes
13841 CFLAGS="$save_cflags"
13844 if test "x-$have_vidmode" = "x-yes" ; then
13845 DO_VIDMODE_SUPPORT="1"
13846 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13847 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13848 else
13849 DO_VIDMODE_SUPPORT="0"
13853 aros_host_x11_includes=$x_includes
13854 aros_host_x11_libdirs=$x_libraries
13858 # Check whether --enable-sdl_hidd was given.
13859 if test "${enable_sdl_hidd+set}" = set; then :
13860 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13861 else
13862 sdl_hidd="auto"
13865 case "x-$sdl_hidd" in
13866 x-yes|x-no|x-auto) ;;
13867 *) sdl_hidd="auto" ;;
13868 esac
13870 if test "x-$sdl_hidd" != "x-no" ; then
13873 # Check whether --with-sdl-prefix was given.
13874 if test "${with_sdl_prefix+set}" = set; then :
13875 withval=$with_sdl_prefix; sdl_prefix="$withval"
13876 else
13877 sdl_prefix=""
13881 # Check whether --with-sdl-exec-prefix was given.
13882 if test "${with_sdl_exec_prefix+set}" = set; then :
13883 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13884 else
13885 sdl_exec_prefix=""
13888 # Check whether --enable-sdltest was given.
13889 if test "${enable_sdltest+set}" = set; then :
13890 enableval=$enable_sdltest;
13891 else
13892 enable_sdltest=yes
13896 if test x$sdl_exec_prefix != x ; then
13897 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13898 if test x${SDL_CONFIG+set} != xset ; then
13899 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13902 if test x$sdl_prefix != x ; then
13903 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13904 if test x${SDL_CONFIG+set} != xset ; then
13905 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13909 as_save_PATH="$PATH"
13910 if test "x$prefix" != xNONE; then
13911 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13913 # Extract the first word of "sdl-config", so it can be a program name with args.
13914 set dummy sdl-config; ac_word=$2
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13916 $as_echo_n "checking for $ac_word... " >&6; }
13917 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 case $SDL_CONFIG in
13921 [\\/]* | ?:[\\/]*)
13922 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13928 IFS=$as_save_IFS
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
13931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13932 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13934 break 2
13936 done
13937 done
13938 IFS=$as_save_IFS
13940 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13942 esac
13944 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13945 if test -n "$SDL_CONFIG"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13947 $as_echo "$SDL_CONFIG" >&6; }
13948 else
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13954 PATH="$as_save_PATH"
13955 min_sdl_version=1.2.10
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13957 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13958 no_sdl=""
13959 if test "$SDL_CONFIG" = "no" ; then
13960 no_sdl=yes
13961 else
13962 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13963 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13965 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13966 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13967 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13968 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13969 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13970 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13971 if test "x$enable_sdltest" = "xyes" ; then
13972 ac_save_CFLAGS="$CFLAGS"
13973 ac_save_CXXFLAGS="$CXXFLAGS"
13974 ac_save_LIBS="$LIBS"
13975 CFLAGS="$CFLAGS $SDL_CFLAGS"
13976 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13977 LIBS="$LIBS $SDL_LIBS"
13978 rm -f conf.sdltest
13979 if test "$cross_compiling" = yes; then :
13980 echo $ac_n "cross compiling; assumed OK... $ac_c"
13981 else
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13985 #include <stdio.h>
13986 #include <stdlib.h>
13987 #include <string.h>
13988 #include "SDL.h"
13990 char*
13991 my_strdup (char *str)
13993 char *new_str;
13995 if (str)
13997 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13998 strcpy (new_str, str);
14000 else
14001 new_str = NULL;
14003 return new_str;
14006 int main (int argc, char *argv[])
14008 int major, minor, micro;
14009 char *tmp_version;
14011 /* This hangs on some systems (?)
14012 system ("touch conf.sdltest");
14014 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14016 /* HP/UX 9 (%@#!) writes to sscanf strings */
14017 tmp_version = my_strdup("$min_sdl_version");
14018 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14019 printf("%s, bad version string\n", "$min_sdl_version");
14020 exit(1);
14023 if (($sdl_major_version > major) ||
14024 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14025 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14027 return 0;
14029 else
14031 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14032 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14033 printf("*** best to upgrade to the required version.\n");
14034 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14035 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14036 printf("*** config.cache before re-running configure\n");
14037 return 1;
14042 _ACEOF
14043 if ac_fn_c_try_run "$LINENO"; then :
14045 else
14046 no_sdl=yes
14048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14049 conftest.$ac_objext conftest.beam conftest.$ac_ext
14052 CFLAGS="$ac_save_CFLAGS"
14053 CXXFLAGS="$ac_save_CXXFLAGS"
14054 LIBS="$ac_save_LIBS"
14057 if test "x$no_sdl" = x ; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14059 $as_echo "yes" >&6; }
14060 have_sdl="yes"
14061 else
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14063 $as_echo "no" >&6; }
14064 if test "$SDL_CONFIG" = "no" ; then
14065 echo "*** The sdl-config script installed by SDL could not be found"
14066 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14067 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14068 echo "*** full path to sdl-config."
14069 else
14070 if test -f conf.sdltest ; then
14072 else
14073 echo "*** Could not run SDL test program, checking why..."
14074 CFLAGS="$CFLAGS $SDL_CFLAGS"
14075 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14076 LIBS="$LIBS $SDL_LIBS"
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h. */
14080 #include <stdio.h>
14081 #include "SDL.h"
14083 int main(int argc, char *argv[])
14084 { return 0; }
14085 #undef main
14086 #define main K_and_R_C_main
14089 main ()
14091 return 0;
14093 return 0;
14095 _ACEOF
14096 if ac_fn_c_try_link "$LINENO"; then :
14097 echo "*** The test program compiled, but did not run. This usually means"
14098 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14099 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14100 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14101 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14102 echo "*** is required on your system"
14103 echo "***"
14104 echo "*** If you have an old version installed, it is best to remove it, although"
14105 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14106 else
14107 echo "*** The test program failed to compile or link. See the file config.log for the"
14108 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14109 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14110 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14112 rm -f core conftest.err conftest.$ac_objext \
14113 conftest$ac_exeext conftest.$ac_ext
14114 CFLAGS="$ac_save_CFLAGS"
14115 CXXFLAGS="$ac_save_CXXFLAGS"
14116 LIBS="$ac_save_LIBS"
14119 SDL_CFLAGS=""
14120 SDL_LIBS=""
14121 have_sdl="no"
14125 rm -f conf.sdltest
14128 if test "x-$have_sdl" != "x-yes" ; then
14130 if test "x-$sdl_hidd" != "x-auto" ; then
14131 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14134 else
14135 sdl_hidd_target=kernel-hidd-sdl
14136 aros_host_sdl_cflags=SDL_CFLAGS
14137 aros_host_sdl_libs=SDL_LIBS
14141 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14142 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
14147 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14148 oss_library_target=workbench-libs-oss-unix
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14154 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14155 # Check whether --enable-dbus was given.
14156 if test "${enable_dbus+set}" = set; then :
14157 enableval=$enable_dbus; dbus="yes"
14158 else
14159 dbus="no"
14162 if test "$dbus" = "yes" ; then
14163 ENABLE_DBUS=1
14164 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14165 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14166 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14167 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14168 else
14169 ENABLE_DBUS=0
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14172 $as_echo "$dbus" >&6; }
14174 if test "$use_kernel_cc_wrapper" = "yes" ; then
14175 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14178 if test "${crosstools}" != "yes" ; then
14179 aros_target_toolchain=no
14180 else
14181 aros_target_toolchain=yes
14185 # Generic
14197 # Compatability with other Amiga-like operation systems
14200 # Host related
14228 # Target Related
14292 # Delinting target compiler flags
14299 # Graphics Related
14316 # Native version related
14319 # Palm native version related
14322 # Unix/Hosted version related
14325 # MMU related
14328 # Apple iOS related
14333 # ARM default GCC target related
14338 # Android related
14342 # DBUS related
14349 #X11 related
14352 # Debug related
14358 # Collect-aros stuff: "-ius" to ignore undefined symbols
14361 # C compiler related
14364 case "$aros_flavour" in
14365 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14366 aros_flavour="emulation" ;;
14367 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14368 aros_flavour="emulation" ;;
14369 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14370 aros_flavour="standalone";;
14371 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14372 aros_flavour="standalone";;
14373 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14374 aros_flavour="native" ;;
14375 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14376 aros_flavour="native" ;;
14377 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14378 aros_flavour="linklib" ;;
14379 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14380 aros_flavour="palmnative" ;;
14381 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14382 aros_flavour="mac68knative" ;;
14383 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14384 aros_flavour="ppcnative" ;;
14385 esac
14387 if test ! -d ${aros_inc_dir} ; then
14388 ${MKDIR} ${aros_inc_dir}
14390 if test ! -d ${aros_geninc_dir} ; then
14391 ${MKDIR} ${aros_geninc_dir}
14393 if test ! -d ${aros_hostcfg_dir} ; then
14394 ${MKDIR} ${aros_hostcfg_dir}
14396 if test ! -d ${aros_targetcfg_dir} ; then
14397 ${MKDIR} ${aros_targetcfg_dir}
14399 if test ! -d ${aros_tools_dir} ; then
14400 ${MKDIR} ${aros_tools_dir}
14402 if test ! -d ${aros_scripts_dir} ; then
14403 ${MKDIR} ${aros_scripts_dir}
14406 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14409 ac_config_commands="$ac_config_commands compiler_executable"
14411 ac_config_commands="$ac_config_commands genmf_executable"
14414 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"
14417 cat >confcache <<\_ACEOF
14418 # This file is a shell script that caches the results of configure
14419 # tests run on this system so they can be shared between configure
14420 # scripts and configure runs, see configure's option --config-cache.
14421 # It is not useful on other systems. If it contains results you don't
14422 # want to keep, you may remove or edit it.
14424 # config.status only pays attention to the cache file if you give it
14425 # the --recheck option to rerun configure.
14427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14429 # following values.
14431 _ACEOF
14433 # The following way of writing the cache mishandles newlines in values,
14434 # but we know of no workaround that is simple, portable, and efficient.
14435 # So, we kill variables containing newlines.
14436 # Ultrix sh set writes to stderr and can't be redirected directly,
14437 # and sets the high bit in the cache file unless we assign to the vars.
14439 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14440 eval ac_val=\$$ac_var
14441 case $ac_val in #(
14442 *${as_nl}*)
14443 case $ac_var in #(
14444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14446 esac
14447 case $ac_var in #(
14448 _ | IFS | as_nl) ;; #(
14449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14450 *) { eval $ac_var=; unset $ac_var;} ;;
14451 esac ;;
14452 esac
14453 done
14455 (set) 2>&1 |
14456 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14457 *${as_nl}ac_space=\ *)
14458 # `set' does not quote correctly, so add quotes: double-quote
14459 # substitution turns \\\\ into \\, and sed turns \\ into \.
14460 sed -n \
14461 "s/'/'\\\\''/g;
14462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14463 ;; #(
14465 # `set' quotes correctly as required by POSIX, so do not add quotes.
14466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14468 esac |
14469 sort
14471 sed '
14472 /^ac_cv_env_/b end
14473 t clear
14474 :clear
14475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14476 t end
14477 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14478 :end' >>confcache
14479 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14480 if test -w "$cache_file"; then
14481 test "x$cache_file" != "x/dev/null" &&
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14483 $as_echo "$as_me: updating cache $cache_file" >&6;}
14484 cat confcache >$cache_file
14485 else
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14487 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14490 rm -f confcache
14492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14493 # Let make expand exec_prefix.
14494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14496 DEFS=-DHAVE_CONFIG_H
14498 ac_libobjs=
14499 ac_ltlibobjs=
14500 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14501 # 1. Remove the extension, and $U if already installed.
14502 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14503 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14504 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14505 # will be set to the directory where LIBOBJS objects are built.
14506 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14507 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14508 done
14509 LIBOBJS=$ac_libobjs
14511 LTLIBOBJS=$ac_ltlibobjs
14515 : ${CONFIG_STATUS=./config.status}
14516 ac_write_fail=0
14517 ac_clean_files_save=$ac_clean_files
14518 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14520 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14521 as_write_fail=0
14522 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14523 #! $SHELL
14524 # Generated by $as_me.
14525 # Run this file to recreate the current configuration.
14526 # Compiler output produced by configure, useful for debugging
14527 # configure, is in config.log if it exists.
14529 debug=false
14530 ac_cs_recheck=false
14531 ac_cs_silent=false
14533 SHELL=\${CONFIG_SHELL-$SHELL}
14534 export SHELL
14535 _ASEOF
14536 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14537 ## -------------------- ##
14538 ## M4sh Initialization. ##
14539 ## -------------------- ##
14541 # Be more Bourne compatible
14542 DUALCASE=1; export DUALCASE # for MKS sh
14543 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14544 emulate sh
14545 NULLCMD=:
14546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14547 # is contrary to our usage. Disable this feature.
14548 alias -g '${1+"$@"}'='"$@"'
14549 setopt NO_GLOB_SUBST
14550 else
14551 case `(set -o) 2>/dev/null` in #(
14552 *posix*) :
14553 set -o posix ;; #(
14554 *) :
14556 esac
14560 as_nl='
14562 export as_nl
14563 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14564 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14567 # Prefer a ksh shell builtin over an external printf program on Solaris,
14568 # but without wasting forks for bash or zsh.
14569 if test -z "$BASH_VERSION$ZSH_VERSION" \
14570 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14571 as_echo='print -r --'
14572 as_echo_n='print -rn --'
14573 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14574 as_echo='printf %s\n'
14575 as_echo_n='printf %s'
14576 else
14577 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14578 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14579 as_echo_n='/usr/ucb/echo -n'
14580 else
14581 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14582 as_echo_n_body='eval
14583 arg=$1;
14584 case $arg in #(
14585 *"$as_nl"*)
14586 expr "X$arg" : "X\\(.*\\)$as_nl";
14587 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14588 esac;
14589 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14591 export as_echo_n_body
14592 as_echo_n='sh -c $as_echo_n_body as_echo'
14594 export as_echo_body
14595 as_echo='sh -c $as_echo_body as_echo'
14598 # The user is always right.
14599 if test "${PATH_SEPARATOR+set}" != set; then
14600 PATH_SEPARATOR=:
14601 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14602 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14603 PATH_SEPARATOR=';'
14608 # IFS
14609 # We need space, tab and new line, in precisely that order. Quoting is
14610 # there to prevent editors from complaining about space-tab.
14611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14612 # splitting by setting IFS to empty value.)
14613 IFS=" "" $as_nl"
14615 # Find who we are. Look in the path if we contain no directory separator.
14616 case $0 in #((
14617 *[\\/]* ) as_myself=$0 ;;
14618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14621 IFS=$as_save_IFS
14622 test -z "$as_dir" && as_dir=.
14623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14624 done
14625 IFS=$as_save_IFS
14628 esac
14629 # We did not find ourselves, most probably we were run as `sh COMMAND'
14630 # in which case we are not to be found in the path.
14631 if test "x$as_myself" = x; then
14632 as_myself=$0
14634 if test ! -f "$as_myself"; then
14635 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14636 exit 1
14639 # Unset variables that we do not need and which cause bugs (e.g. in
14640 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14641 # suppresses any "Segmentation fault" message there. '((' could
14642 # trigger a bug in pdksh 5.2.14.
14643 for as_var in BASH_ENV ENV MAIL MAILPATH
14644 do eval test x\${$as_var+set} = xset \
14645 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14646 done
14647 PS1='$ '
14648 PS2='> '
14649 PS4='+ '
14651 # NLS nuisances.
14652 LC_ALL=C
14653 export LC_ALL
14654 LANGUAGE=C
14655 export LANGUAGE
14657 # CDPATH.
14658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14661 # as_fn_error ERROR [LINENO LOG_FD]
14662 # ---------------------------------
14663 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14664 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14665 # script with status $?, using 1 if that was 0.
14666 as_fn_error ()
14668 as_status=$?; test $as_status -eq 0 && as_status=1
14669 if test "$3"; then
14670 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14671 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14673 $as_echo "$as_me: error: $1" >&2
14674 as_fn_exit $as_status
14675 } # as_fn_error
14678 # as_fn_set_status STATUS
14679 # -----------------------
14680 # Set $? to STATUS, without forking.
14681 as_fn_set_status ()
14683 return $1
14684 } # as_fn_set_status
14686 # as_fn_exit STATUS
14687 # -----------------
14688 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14689 as_fn_exit ()
14691 set +e
14692 as_fn_set_status $1
14693 exit $1
14694 } # as_fn_exit
14696 # as_fn_unset VAR
14697 # ---------------
14698 # Portably unset VAR.
14699 as_fn_unset ()
14701 { eval $1=; unset $1;}
14703 as_unset=as_fn_unset
14704 # as_fn_append VAR VALUE
14705 # ----------------------
14706 # Append the text in VALUE to the end of the definition contained in VAR. Take
14707 # advantage of any shell optimizations that allow amortized linear growth over
14708 # repeated appends, instead of the typical quadratic growth present in naive
14709 # implementations.
14710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14711 eval 'as_fn_append ()
14713 eval $1+=\$2
14715 else
14716 as_fn_append ()
14718 eval $1=\$$1\$2
14720 fi # as_fn_append
14722 # as_fn_arith ARG...
14723 # ------------------
14724 # Perform arithmetic evaluation on the ARGs, and store the result in the
14725 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14726 # must be portable across $(()) and expr.
14727 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14728 eval 'as_fn_arith ()
14730 as_val=$(( $* ))
14732 else
14733 as_fn_arith ()
14735 as_val=`expr "$@" || test $? -eq 1`
14737 fi # as_fn_arith
14740 if expr a : '\(a\)' >/dev/null 2>&1 &&
14741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14742 as_expr=expr
14743 else
14744 as_expr=false
14747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14748 as_basename=basename
14749 else
14750 as_basename=false
14753 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14754 as_dirname=dirname
14755 else
14756 as_dirname=false
14759 as_me=`$as_basename -- "$0" ||
14760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14761 X"$0" : 'X\(//\)$' \| \
14762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14763 $as_echo X/"$0" |
14764 sed '/^.*\/\([^/][^/]*\)\/*$/{
14765 s//\1/
14768 /^X\/\(\/\/\)$/{
14769 s//\1/
14772 /^X\/\(\/\).*/{
14773 s//\1/
14776 s/.*/./; q'`
14778 # Avoid depending upon Character Ranges.
14779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14782 as_cr_digits='0123456789'
14783 as_cr_alnum=$as_cr_Letters$as_cr_digits
14785 ECHO_C= ECHO_N= ECHO_T=
14786 case `echo -n x` in #(((((
14787 -n*)
14788 case `echo 'xy\c'` in
14789 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14790 xy) ECHO_C='\c';;
14791 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14792 ECHO_T=' ';;
14793 esac;;
14795 ECHO_N='-n';;
14796 esac
14798 rm -f conf$$ conf$$.exe conf$$.file
14799 if test -d conf$$.dir; then
14800 rm -f conf$$.dir/conf$$.file
14801 else
14802 rm -f conf$$.dir
14803 mkdir conf$$.dir 2>/dev/null
14805 if (echo >conf$$.file) 2>/dev/null; then
14806 if ln -s conf$$.file conf$$ 2>/dev/null; then
14807 as_ln_s='ln -s'
14808 # ... but there are two gotchas:
14809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14811 # In both cases, we have to default to `cp -p'.
14812 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14813 as_ln_s='cp -p'
14814 elif ln conf$$.file conf$$ 2>/dev/null; then
14815 as_ln_s=ln
14816 else
14817 as_ln_s='cp -p'
14819 else
14820 as_ln_s='cp -p'
14822 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14823 rmdir conf$$.dir 2>/dev/null
14826 # as_fn_mkdir_p
14827 # -------------
14828 # Create "$as_dir" as a directory, including parents if necessary.
14829 as_fn_mkdir_p ()
14832 case $as_dir in #(
14833 -*) as_dir=./$as_dir;;
14834 esac
14835 test -d "$as_dir" || eval $as_mkdir_p || {
14836 as_dirs=
14837 while :; do
14838 case $as_dir in #(
14839 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14840 *) as_qdir=$as_dir;;
14841 esac
14842 as_dirs="'$as_qdir' $as_dirs"
14843 as_dir=`$as_dirname -- "$as_dir" ||
14844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14845 X"$as_dir" : 'X\(//\)[^/]' \| \
14846 X"$as_dir" : 'X\(//\)$' \| \
14847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14848 $as_echo X"$as_dir" |
14849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14850 s//\1/
14853 /^X\(\/\/\)[^/].*/{
14854 s//\1/
14857 /^X\(\/\/\)$/{
14858 s//\1/
14861 /^X\(\/\).*/{
14862 s//\1/
14865 s/.*/./; q'`
14866 test -d "$as_dir" && break
14867 done
14868 test -z "$as_dirs" || eval "mkdir $as_dirs"
14869 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14872 } # as_fn_mkdir_p
14873 if mkdir -p . 2>/dev/null; then
14874 as_mkdir_p='mkdir -p "$as_dir"'
14875 else
14876 test -d ./-p && rmdir ./-p
14877 as_mkdir_p=false
14880 if test -x / >/dev/null 2>&1; then
14881 as_test_x='test -x'
14882 else
14883 if ls -dL / >/dev/null 2>&1; then
14884 as_ls_L_option=L
14885 else
14886 as_ls_L_option=
14888 as_test_x='
14889 eval sh -c '\''
14890 if test -d "$1"; then
14891 test -d "$1/.";
14892 else
14893 case $1 in #(
14894 -*)set "./$1";;
14895 esac;
14896 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14897 ???[sx]*):;;*)false;;esac;fi
14898 '\'' sh
14901 as_executable_p=$as_test_x
14903 # Sed expression to map a string onto a valid CPP name.
14904 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14906 # Sed expression to map a string onto a valid variable name.
14907 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14910 exec 6>&1
14911 ## ----------------------------------- ##
14912 ## Main body of $CONFIG_STATUS script. ##
14913 ## ----------------------------------- ##
14914 _ASEOF
14915 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14918 # Save the log message, to keep $0 and so on meaningful, and to
14919 # report actual input values of CONFIG_FILES etc. instead of their
14920 # values after options handling.
14921 ac_log="
14922 This file was extended by $as_me, which was
14923 generated by GNU Autoconf 2.65. Invocation command line was
14925 CONFIG_FILES = $CONFIG_FILES
14926 CONFIG_HEADERS = $CONFIG_HEADERS
14927 CONFIG_LINKS = $CONFIG_LINKS
14928 CONFIG_COMMANDS = $CONFIG_COMMANDS
14929 $ $0 $@
14931 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14934 _ACEOF
14936 case $ac_config_files in *"
14937 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14938 esac
14940 case $ac_config_headers in *"
14941 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14942 esac
14945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14946 # Files that config.status was made for.
14947 config_files="$ac_config_files"
14948 config_headers="$ac_config_headers"
14949 config_commands="$ac_config_commands"
14951 _ACEOF
14953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14954 ac_cs_usage="\
14955 \`$as_me' instantiates files and other configuration actions
14956 from templates according to the current configuration. Unless the files
14957 and actions are specified as TAGs, all are instantiated by default.
14959 Usage: $0 [OPTION]... [TAG]...
14961 -h, --help print this help, then exit
14962 -V, --version print version number and configuration settings, then exit
14963 --config print configuration, then exit
14964 -q, --quiet, --silent
14965 do not print progress messages
14966 -d, --debug don't remove temporary files
14967 --recheck update $as_me by reconfiguring in the same conditions
14968 --file=FILE[:TEMPLATE]
14969 instantiate the configuration file FILE
14970 --header=FILE[:TEMPLATE]
14971 instantiate the configuration header FILE
14973 Configuration files:
14974 $config_files
14976 Configuration headers:
14977 $config_headers
14979 Configuration commands:
14980 $config_commands
14982 Report bugs to the package provider."
14984 _ACEOF
14985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14986 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14987 ac_cs_version="\\
14988 config.status
14989 configured by $0, generated by GNU Autoconf 2.65,
14990 with options \\"\$ac_cs_config\\"
14992 Copyright (C) 2009 Free Software Foundation, Inc.
14993 This config.status script is free software; the Free Software Foundation
14994 gives unlimited permission to copy, distribute and modify it."
14996 ac_pwd='$ac_pwd'
14997 srcdir='$srcdir'
14998 test -n "\$AWK" || AWK=awk
14999 _ACEOF
15001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15002 # The default lists apply if the user does not specify any file.
15003 ac_need_defaults=:
15004 while test $# != 0
15006 case $1 in
15007 --*=*)
15008 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15009 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15010 ac_shift=:
15013 ac_option=$1
15014 ac_optarg=$2
15015 ac_shift=shift
15017 esac
15019 case $ac_option in
15020 # Handling of the options.
15021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15022 ac_cs_recheck=: ;;
15023 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15024 $as_echo "$ac_cs_version"; exit ;;
15025 --config | --confi | --conf | --con | --co | --c )
15026 $as_echo "$ac_cs_config"; exit ;;
15027 --debug | --debu | --deb | --de | --d | -d )
15028 debug=: ;;
15029 --file | --fil | --fi | --f )
15030 $ac_shift
15031 case $ac_optarg in
15032 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15033 esac
15034 as_fn_append CONFIG_FILES " '$ac_optarg'"
15035 ac_need_defaults=false;;
15036 --header | --heade | --head | --hea )
15037 $ac_shift
15038 case $ac_optarg in
15039 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15040 esac
15041 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15042 ac_need_defaults=false;;
15043 --he | --h)
15044 # Conflict between --help and --header
15045 as_fn_error "ambiguous option: \`$1'
15046 Try \`$0 --help' for more information.";;
15047 --help | --hel | -h )
15048 $as_echo "$ac_cs_usage"; exit ;;
15049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15051 ac_cs_silent=: ;;
15053 # This is an error.
15054 -*) as_fn_error "unrecognized option: \`$1'
15055 Try \`$0 --help' for more information." ;;
15057 *) as_fn_append ac_config_targets " $1"
15058 ac_need_defaults=false ;;
15060 esac
15061 shift
15062 done
15064 ac_configure_extra_args=
15066 if $ac_cs_silent; then
15067 exec 6>/dev/null
15068 ac_configure_extra_args="$ac_configure_extra_args --silent"
15071 _ACEOF
15072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15073 if \$ac_cs_recheck; then
15074 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15075 shift
15076 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15077 CONFIG_SHELL='$SHELL'
15078 export CONFIG_SHELL
15079 exec "\$@"
15082 _ACEOF
15083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15084 exec 5>>config.log
15086 echo
15087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15088 ## Running $as_me. ##
15089 _ASBOX
15090 $as_echo "$ac_log"
15091 } >&5
15093 _ACEOF
15094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15096 # INIT-COMMANDS
15099 aros_host_exe_suffix=${aros_host_exe_suffix}
15100 aros_tools_dir=${aros_tools_dir}
15101 aros_target_cpu=${aros_target_cpu}
15102 aros_target_arch=${aros_target_arch}
15103 aros_target_suffix=${aros_target_suffix}
15104 orig_target_nm=${orig_target_nm}
15105 orig_target_as=${orig_target_as}
15106 orig_target_ar=${orig_target_ar}
15107 orig_target_ranlib=${orig_target_ranlib}
15108 orig_target_objdump=${orig_target_objdump}
15109 orig_target_objcopy=${orig_target_objcopy}
15110 orig_target_strip=${orig_target_strip}
15111 aros_kernel_ld=${aros_kernel_ld}
15114 aros_tools_dir=${aros_tools_dir}
15117 _ACEOF
15119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15121 # Handling of arguments.
15122 for ac_config_target in $ac_config_targets
15124 case $ac_config_target in
15125 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15126 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15127 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15128 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15129 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15130 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15131 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15132 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15133 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15134 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15135 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15136 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15137 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15138 "${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" ;;
15139 "${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" ;;
15140 "${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" ;;
15141 "${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" ;;
15142 "${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" ;;
15143 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15144 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15145 "${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" ;;
15147 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15148 esac
15149 done
15152 # If the user did not use the arguments to specify the items to instantiate,
15153 # then the envvar interface is used. Set only those that are not.
15154 # We use the long form for the default assignment because of an extremely
15155 # bizarre bug on SunOS 4.1.3.
15156 if $ac_need_defaults; then
15157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15162 # Have a temporary directory for convenience. Make it in the build tree
15163 # simply because there is no reason against having it here, and in addition,
15164 # creating and moving files from /tmp can sometimes cause problems.
15165 # Hook for its removal unless debugging.
15166 # Note that there is a small window in which the directory will not be cleaned:
15167 # after its creation but before its name has been assigned to `$tmp'.
15168 $debug ||
15170 tmp=
15171 trap 'exit_status=$?
15172 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15174 trap 'as_fn_exit 1' 1 2 13 15
15176 # Create a (secure) tmp directory for tmp files.
15179 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15180 test -n "$tmp" && test -d "$tmp"
15181 } ||
15183 tmp=./conf$$-$RANDOM
15184 (umask 077 && mkdir "$tmp")
15185 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15187 # Set up the scripts for CONFIG_FILES section.
15188 # No need to generate them if there are no CONFIG_FILES.
15189 # This happens for instance with `./config.status config.h'.
15190 if test -n "$CONFIG_FILES"; then
15193 ac_cr=`echo X | tr X '\015'`
15194 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15195 # But we know of no other shell where ac_cr would be empty at this
15196 # point, so we can use a bashism as a fallback.
15197 if test "x$ac_cr" = x; then
15198 eval ac_cr=\$\'\\r\'
15200 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15201 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15202 ac_cs_awk_cr='\r'
15203 else
15204 ac_cs_awk_cr=$ac_cr
15207 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15208 _ACEOF
15212 echo "cat >conf$$subs.awk <<_ACEOF" &&
15213 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15214 echo "_ACEOF"
15215 } >conf$$subs.sh ||
15216 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15217 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15218 ac_delim='%!_!# '
15219 for ac_last_try in false false false false false :; do
15220 . ./conf$$subs.sh ||
15221 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15223 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15224 if test $ac_delim_n = $ac_delim_num; then
15225 break
15226 elif $ac_last_try; then
15227 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15228 else
15229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15231 done
15232 rm -f conf$$subs.sh
15234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15235 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15236 _ACEOF
15237 sed -n '
15239 s/^/S["/; s/!.*/"]=/
15242 s/^[^!]*!//
15243 :repl
15244 t repl
15245 s/'"$ac_delim"'$//
15246 t delim
15249 s/\(.\{148\}\)..*/\1/
15250 t more1
15251 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15254 b repl
15255 :more1
15256 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15259 s/.\{148\}//
15260 t nl
15261 :delim
15263 s/\(.\{148\}\)..*/\1/
15264 t more2
15265 s/["\\]/\\&/g; s/^/"/; s/$/"/
15268 :more2
15269 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15272 s/.\{148\}//
15273 t delim
15274 ' <conf$$subs.awk | sed '
15275 /^[^""]/{
15277 s/\n//
15279 ' >>$CONFIG_STATUS || ac_write_fail=1
15280 rm -f conf$$subs.awk
15281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15282 _ACAWK
15283 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15284 for (key in S) S_is_set[key] = 1
15285 FS = "\a"
15289 line = $ 0
15290 nfields = split(line, field, "@")
15291 substed = 0
15292 len = length(field[1])
15293 for (i = 2; i < nfields; i++) {
15294 key = field[i]
15295 keylen = length(key)
15296 if (S_is_set[key]) {
15297 value = S[key]
15298 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15299 len += length(value) + length(field[++i])
15300 substed = 1
15301 } else
15302 len += 1 + keylen
15305 print line
15308 _ACAWK
15309 _ACEOF
15310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15311 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15312 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15313 else
15315 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15316 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15317 _ACEOF
15319 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15320 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15321 # trailing colons and then remove the whole line if VPATH becomes empty
15322 # (actually we leave an empty line to preserve line numbers).
15323 if test "x$srcdir" = x.; then
15324 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15325 s/:*\$(srcdir):*/:/
15326 s/:*\${srcdir}:*/:/
15327 s/:*@srcdir@:*/:/
15328 s/^\([^=]*=[ ]*\):*/\1/
15329 s/:*$//
15330 s/^[^=]*=[ ]*$//
15334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335 fi # test -n "$CONFIG_FILES"
15337 # Set up the scripts for CONFIG_HEADERS section.
15338 # No need to generate them if there are no CONFIG_HEADERS.
15339 # This happens for instance with `./config.status Makefile'.
15340 if test -n "$CONFIG_HEADERS"; then
15341 cat >"$tmp/defines.awk" <<\_ACAWK ||
15342 BEGIN {
15343 _ACEOF
15345 # Transform confdefs.h into an awk script `defines.awk', embedded as
15346 # here-document in config.status, that substitutes the proper values into
15347 # config.h.in to produce config.h.
15349 # Create a delimiter string that does not exist in confdefs.h, to ease
15350 # handling of long lines.
15351 ac_delim='%!_!# '
15352 for ac_last_try in false false :; do
15353 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15354 if test -z "$ac_t"; then
15355 break
15356 elif $ac_last_try; then
15357 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15358 else
15359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15361 done
15363 # For the awk script, D is an array of macro values keyed by name,
15364 # likewise P contains macro parameters if any. Preserve backslash
15365 # newline sequences.
15367 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15368 sed -n '
15369 s/.\{148\}/&'"$ac_delim"'/g
15370 t rset
15371 :rset
15372 s/^[ ]*#[ ]*define[ ][ ]*/ /
15373 t def
15375 :def
15376 s/\\$//
15377 t bsnl
15378 s/["\\]/\\&/g
15379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15380 D["\1"]=" \3"/p
15381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15383 :bsnl
15384 s/["\\]/\\&/g
15385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15386 D["\1"]=" \3\\\\\\n"\\/p
15387 t cont
15388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15389 t cont
15391 :cont
15393 s/.\{148\}/&'"$ac_delim"'/g
15394 t clear
15395 :clear
15396 s/\\$//
15397 t bsnlc
15398 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15400 :bsnlc
15401 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15402 b cont
15403 ' <confdefs.h | sed '
15404 s/'"$ac_delim"'/"\\\
15405 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15408 for (key in D) D_is_set[key] = 1
15409 FS = "\a"
15411 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15412 line = \$ 0
15413 split(line, arg, " ")
15414 if (arg[1] == "#") {
15415 defundef = arg[2]
15416 mac1 = arg[3]
15417 } else {
15418 defundef = substr(arg[1], 2)
15419 mac1 = arg[2]
15421 split(mac1, mac2, "(") #)
15422 macro = mac2[1]
15423 prefix = substr(line, 1, index(line, defundef) - 1)
15424 if (D_is_set[macro]) {
15425 # Preserve the white space surrounding the "#".
15426 print prefix "define", macro P[macro] D[macro]
15427 next
15428 } else {
15429 # Replace #undef with comments. This is necessary, for example,
15430 # in the case of _POSIX_SOURCE, which is predefined and required
15431 # on some systems where configure will not decide to define it.
15432 if (defundef == "undef") {
15433 print "/*", prefix defundef, macro, "*/"
15434 next
15438 { print }
15439 _ACAWK
15440 _ACEOF
15441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15443 fi # test -n "$CONFIG_HEADERS"
15446 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15447 shift
15448 for ac_tag
15450 case $ac_tag in
15451 :[FHLC]) ac_mode=$ac_tag; continue;;
15452 esac
15453 case $ac_mode$ac_tag in
15454 :[FHL]*:*);;
15455 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15456 :[FH]-) ac_tag=-:-;;
15457 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15458 esac
15459 ac_save_IFS=$IFS
15460 IFS=:
15461 set x $ac_tag
15462 IFS=$ac_save_IFS
15463 shift
15464 ac_file=$1
15465 shift
15467 case $ac_mode in
15468 :L) ac_source=$1;;
15469 :[FH])
15470 ac_file_inputs=
15471 for ac_f
15473 case $ac_f in
15474 -) ac_f="$tmp/stdin";;
15475 *) # Look for the file first in the build tree, then in the source tree
15476 # (if the path is not absolute). The absolute path cannot be DOS-style,
15477 # because $ac_f cannot contain `:'.
15478 test -f "$ac_f" ||
15479 case $ac_f in
15480 [\\/$]*) false;;
15481 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15482 esac ||
15483 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15484 esac
15485 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15486 as_fn_append ac_file_inputs " '$ac_f'"
15487 done
15489 # Let's still pretend it is `configure' which instantiates (i.e., don't
15490 # use $as_me), people would be surprised to read:
15491 # /* config.h. Generated by config.status. */
15492 configure_input='Generated from '`
15493 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15494 `' by configure.'
15495 if test x"$ac_file" != x-; then
15496 configure_input="$ac_file. $configure_input"
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15498 $as_echo "$as_me: creating $ac_file" >&6;}
15500 # Neutralize special characters interpreted by sed in replacement strings.
15501 case $configure_input in #(
15502 *\&* | *\|* | *\\* )
15503 ac_sed_conf_input=`$as_echo "$configure_input" |
15504 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15505 *) ac_sed_conf_input=$configure_input;;
15506 esac
15508 case $ac_tag in
15509 *:-:* | *:-) cat >"$tmp/stdin" \
15510 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15511 esac
15513 esac
15515 ac_dir=`$as_dirname -- "$ac_file" ||
15516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15517 X"$ac_file" : 'X\(//\)[^/]' \| \
15518 X"$ac_file" : 'X\(//\)$' \| \
15519 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15520 $as_echo X"$ac_file" |
15521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15522 s//\1/
15525 /^X\(\/\/\)[^/].*/{
15526 s//\1/
15529 /^X\(\/\/\)$/{
15530 s//\1/
15533 /^X\(\/\).*/{
15534 s//\1/
15537 s/.*/./; q'`
15538 as_dir="$ac_dir"; as_fn_mkdir_p
15539 ac_builddir=.
15541 case "$ac_dir" in
15542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15545 # A ".." for each directory in $ac_dir_suffix.
15546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15547 case $ac_top_builddir_sub in
15548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15550 esac ;;
15551 esac
15552 ac_abs_top_builddir=$ac_pwd
15553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15554 # for backward compatibility:
15555 ac_top_builddir=$ac_top_build_prefix
15557 case $srcdir in
15558 .) # We are building in place.
15559 ac_srcdir=.
15560 ac_top_srcdir=$ac_top_builddir_sub
15561 ac_abs_top_srcdir=$ac_pwd ;;
15562 [\\/]* | ?:[\\/]* ) # Absolute name.
15563 ac_srcdir=$srcdir$ac_dir_suffix;
15564 ac_top_srcdir=$srcdir
15565 ac_abs_top_srcdir=$srcdir ;;
15566 *) # Relative name.
15567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15568 ac_top_srcdir=$ac_top_build_prefix$srcdir
15569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15570 esac
15571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15574 case $ac_mode in
15577 # CONFIG_FILE
15580 _ACEOF
15582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15583 # If the template does not know about datarootdir, expand it.
15584 # FIXME: This hack should be removed a few years after 2.60.
15585 ac_datarootdir_hack=; ac_datarootdir_seen=
15586 ac_sed_dataroot='
15587 /datarootdir/ {
15591 /@datadir@/p
15592 /@docdir@/p
15593 /@infodir@/p
15594 /@localedir@/p
15595 /@mandir@/p'
15596 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15597 *datarootdir*) ac_datarootdir_seen=yes;;
15598 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15600 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15601 _ACEOF
15602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15603 ac_datarootdir_hack='
15604 s&@datadir@&$datadir&g
15605 s&@docdir@&$docdir&g
15606 s&@infodir@&$infodir&g
15607 s&@localedir@&$localedir&g
15608 s&@mandir@&$mandir&g
15609 s&\\\${datarootdir}&$datarootdir&g' ;;
15610 esac
15611 _ACEOF
15613 # Neutralize VPATH when `$srcdir' = `.'.
15614 # Shell code in configure.ac might set extrasub.
15615 # FIXME: do we really want to maintain this feature?
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 ac_sed_extra="$ac_vpsub
15618 $extrasub
15619 _ACEOF
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15623 s|@configure_input@|$ac_sed_conf_input|;t t
15624 s&@top_builddir@&$ac_top_builddir_sub&;t t
15625 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15626 s&@srcdir@&$ac_srcdir&;t t
15627 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15628 s&@top_srcdir@&$ac_top_srcdir&;t t
15629 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15630 s&@builddir@&$ac_builddir&;t t
15631 s&@abs_builddir@&$ac_abs_builddir&;t t
15632 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15633 $ac_datarootdir_hack
15635 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15636 || as_fn_error "could not create $ac_file" "$LINENO" 5
15638 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15639 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15642 which seems to be undefined. Please make sure it is defined." >&5
15643 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15644 which seems to be undefined. Please make sure it is defined." >&2;}
15646 rm -f "$tmp/stdin"
15647 case $ac_file in
15648 -) cat "$tmp/out" && rm -f "$tmp/out";;
15649 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15650 esac \
15651 || as_fn_error "could not create $ac_file" "$LINENO" 5
15655 # CONFIG_HEADER
15657 if test x"$ac_file" != x-; then
15659 $as_echo "/* $configure_input */" \
15660 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15661 } >"$tmp/config.h" \
15662 || as_fn_error "could not create $ac_file" "$LINENO" 5
15663 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15665 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15666 else
15667 rm -f "$ac_file"
15668 mv "$tmp/config.h" "$ac_file" \
15669 || as_fn_error "could not create $ac_file" "$LINENO" 5
15671 else
15672 $as_echo "/* $configure_input */" \
15673 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15674 || as_fn_error "could not create -" "$LINENO" 5
15678 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15679 $as_echo "$as_me: executing $ac_file commands" >&6;}
15681 esac
15684 case $ac_file$ac_mode in
15685 "compiler_executable":C)
15686 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15687 mkdir -p $prefix
15688 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15689 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15691 echo ${prefix2}
15692 echo ${prefix3}
15693 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15695 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15696 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15697 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15698 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15699 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15700 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15701 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15703 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15705 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15707 esac
15708 done # for ac_tag
15711 as_fn_exit 0
15712 _ACEOF
15713 ac_clean_files=$ac_clean_files_save
15715 test $ac_write_fail = 0 ||
15716 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15719 # configure is writing to config.log, and then calls config.status.
15720 # config.status does its own redirection, appending to config.log.
15721 # Unfortunately, on DOS this fails, as config.log is still kept open
15722 # by configure, so config.status won't be able to write to it; its
15723 # output is simply discarded. So we exec the FD to /dev/null,
15724 # effectively closing config.log, so it can be properly (re)opened and
15725 # appended to by config.status. When coming back to configure, we
15726 # need to make the FD available again.
15727 if test "$no_create" != yes; then
15728 ac_cs_success=:
15729 ac_config_status_args=
15730 test "$silent" = yes &&
15731 ac_config_status_args="$ac_config_status_args --quiet"
15732 exec 5>/dev/null
15733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15734 exec 5>>config.log
15735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15736 # would make configure fail if this is the last instruction.
15737 $ac_cs_success || as_fn_exit $?
15739 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15741 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15746 #XXX compatability...
15747 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15749 if test -n "$aros_shared_cflags" ; then
15750 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15751 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg