WIP BoingIconBar Preferences; rewritten such that it uses the Zune
[AROS.git] / configure
blob2f8cd825f85bcc34d0f60abb806f42f36539f150
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&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, old GNU/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 aros_ios_sdk
610 aros_ios_version
611 aros_ios_platform
612 aros_enable_mmu
613 aros_nesting_supervisor
614 aros_palm_debug_hack
615 aros_serial_debug
616 aros_host_sdl_libs
617 aros_host_sdl_cflags
618 aros_host_x11_libdirs
619 aros_host_x11_includes
620 DO_VIDMODE_SUPPORT
621 DO_XSHM_SUPPORT
622 aros_default_wbdepth
623 aros_default_wbheight
624 aros_default_wbwidth
625 oss_library_target
626 pci_hidd_target
627 sdl_hidd_target
628 x11_hidd_target
629 aros_cflags_format_security
630 aros_cflags_strict_overflow
631 aros_cflags_enum_compare
632 aros_cflags_array_bounds
633 aros_cflags_unused_but_set_variable
634 crosstools_cxx_target
635 crosstools_target
636 aros_target_strip_flags
637 aros_target_genmap
638 aros_debug_ldflags
639 aros_debug_aflags
640 aros_debug_cflags
641 aros_target_cflags
642 aros_kernel_ldflags
643 aros_kernel_objcflags
644 aros_kernel_includes
645 aros_kernel_cflags
646 aros_shared_ldflags
647 aros_shared_aflags
648 aros_shared_cflags
649 aros_config_ldflags
650 aros_config_aflags
651 aros_config_cflags
652 aros_arch_libs
653 aros_compiler_libs
654 aros_object_format
655 aros_shared_ld
656 aros_shared_default
657 aros_target_nm
658 aros_target_strip
659 aros_target_objcopy
660 aros_target_objdump
661 aros_target_cc_path
662 aros_target_cc_includes
663 aros_target_ld
664 aros_target_as
665 aros_target_cpp
666 aros_target_cxx
667 aros_target_cc
668 aros_plain_ar
669 aros_plain_nm
670 aros_target_ranlib
671 aros_target_ar
672 aros_target_suffix
673 aros_target_variant
674 aros_target_cpu
675 aros_target_family
676 aros_target_arch
677 aros_target_bootloader
678 aros_target_iconset
679 aros_target_guitheme
680 aros_tools_dir
681 aros_host_lib_suffix
682 aros_host_exe_suffix
683 aros_host_mkargs
684 aros_host_mkdep
685 aros_host_debug
686 aros_host_ldflags
687 gnu89_inline
688 aros_host_cxxflags
689 aros_host_cflags
690 aros_host_make
691 aros_host_cxx
692 aros_host_cc
693 aros_host_cpp
694 aros_host_cpu
695 aros_host_arch
696 aros_cc_pre
697 aros_amigaos_compliance
698 AROS_PORTSSRCDIR
699 AROS_CROSSTOOLSDIR
700 SRCDIR
701 AROS_BUILDDIR_UNIX
702 AROS_BUILDDIR
703 aros_target_toolchain
704 aros_flavour_uc
705 aros_flavour
706 aros_cpu
707 aros_arch
708 SDL_LIBS
709 SDL_CFLAGS
710 SDL_CONFIG
711 XMKMF
712 aros_cflags_iquote_end
713 aros_cflags_iquote
714 kernel_cflags_iquote_end
715 kernel_cflags_iquote
716 host_cflags_iquote_end
717 host_cflags_iquote
718 aros_target_nostdlib_ldflags
719 aros_target_detach_ldflags
720 aros_target_nix_ldflags
721 aros_target_nostartup_ldflags
722 aros_target_nostdinc_cflags
723 aros_kernel_rescomp
724 orig_target_objdump
725 orig_target_objcopy
726 orig_target_strip
727 orig_target_nm
728 orig_target_ranlib
729 orig_target_ar
730 orig_target_as
731 orig_target_ld
732 orig_target_cxx
733 orig_target_cc
734 orig_target_cpp
735 aros_kernel_objdump
736 aros_kernel_objcopy
737 aros_kernel_strip
738 aros_kernel_nm
739 aros_kernel_ranlib
740 aros_kernel_ar
741 aros_kernel_as
742 aros_kernel_ld
743 aros_kernel_cxx
744 aros_kernel_cc
745 aros_kernel_cpp
747 android_tool
748 CCACHE
749 DISTCC
750 LIBOBJS
751 EGREP
752 GREP
754 TEST
757 pkgpyexecdir
758 pyexecdir
759 pkgpythondir
760 pythondir
761 PYTHON_PLATFORM
762 PYTHON_EXEC_PREFIX
763 PYTHON_PREFIX
764 PYTHON_VERSION
765 PYTHON
766 PATCH
767 CHMOD
769 PPMTOILBM
770 PNGTOPNM
771 FLEX
772 BISON
775 UNIQ
776 SORT
777 TOUCH
778 MKDIR
779 ECHO
783 aros_host_strip
784 aros_host_ranlib
785 aros_host_ar
786 aros_host_automake
787 aros_host_autoheader
788 aros_host_autoconf
789 aros_host_aclocal
790 aros_host_ld
791 MMAKE
794 ac_ct_CXX
795 CXXFLAGS
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
804 host_os
805 host_vendor
806 host_cpu
807 host
808 build_os
809 build_vendor
810 build_cpu
811 build
812 target_alias
813 host_alias
814 build_alias
815 LIBS
816 ECHO_T
817 ECHO_N
818 ECHO_C
819 DEFS
820 mandir
821 localedir
822 libdir
823 psdir
824 pdfdir
825 dvidir
826 htmldir
827 infodir
828 docdir
829 oldincludedir
830 includedir
831 localstatedir
832 sharedstatedir
833 sysconfdir
834 datadir
835 datarootdir
836 libexecdir
837 sbindir
838 bindir
839 program_transform_name
840 prefix
841 exec_prefix
842 PACKAGE_URL
843 PACKAGE_BUGREPORT
844 PACKAGE_STRING
845 PACKAGE_VERSION
846 PACKAGE_TARNAME
847 PACKAGE_NAME
848 PATH_SEPARATOR
849 SHELL'
850 ac_subst_files=''
851 ac_user_opts='
852 enable_option_checking
853 enable_build_type
854 enable_debug
855 enable_crosstools
856 enable_distcc
857 enable_ccache
858 with_gcc_version
859 with_optimization
860 with_paranoia
861 enable_target_variant
862 with_xcode
863 with_sdk_version
864 with_sdk
865 with_ndk
866 with_ndk_version
867 enable_amigaos_compliance
868 with_crosstools
869 with_kernel_tool_prefix
870 with_cpu
871 with_fpu
872 with_float
873 with_aros_gcc
874 with_portssources
875 with_bootloader
876 with_iconset
877 with_theme
878 with_resolution
879 with_serial_debug
880 enable_palm_debug_hack
881 enable_nesting_supervisor
882 enable_mmu
883 enable_x11_hidd
884 with_x
885 enable_x11_shm
886 enable_x11_vidmode
887 enable_sdl_hidd
888 with_sdl_prefix
889 with_sdl_exec_prefix
890 enable_sdltest
891 enable_dbus
893 ac_precious_vars='build_alias
894 host_alias
895 target_alias
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
902 CXXFLAGS
905 XMKMF'
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 ac_unrecognized_opts=
912 ac_unrecognized_sep=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
956 ac_prev=
957 ac_dashdash=
958 for ac_option
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
967 case $ac_option in
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
971 esac
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
977 ac_dashdash=yes ;;
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
996 --config-cache | -C)
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1131 no_create=yes ;;
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 ac_prev=sbindir ;;
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 | --sbi=* | --sb=*)
1200 sbindir=$ac_optarg ;;
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1205 | --sha | --sh)
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 | --sha=* | --sh=*)
1211 sharedstatedir=$ac_optarg ;;
1213 -site | --site | --sit)
1214 ac_prev=site ;;
1215 -site=* | --site=* | --sit=*)
1216 site=$ac_optarg ;;
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 ac_prev=srcdir ;;
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 verbose=yes ;;
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1241 -with-* | --with-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=\$ac_optarg ;;
1257 -without-* | --without-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=no ;;
1273 --x)
1274 # Obsolete; use --with-x.
1275 with_x=yes ;;
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1295 *=*)
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
1300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1301 esac
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1313 esac
1314 done
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $? "missing argument to $ac_option"
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1323 no) ;;
1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 esac
1329 # Check all directory arguments for consistency.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1335 eval ac_val=\$$ac_var
1336 # Remove trailing slashes.
1337 case $ac_val in
1338 */ )
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1341 esac
1342 # Be sure to have absolute directory names.
1343 case $ac_val in
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 esac
1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1348 done
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used" >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371 test "$silent" = yes && exec 6>/dev/null
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 as_fn_error $? "working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 as_fn_error $? "pwd does not report name of working directory"
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 s//\1/
1396 /^X\(\/\/\)[^/].*/{
1397 s//\1/
1400 /^X\(\/\/\)$/{
1401 s//\1/
1404 /^X\(\/\).*/{
1405 s//\1/
1408 s/.*/./; q'`
1409 srcdir=$ac_confdir
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 srcdir=..
1413 else
1414 ac_srcdir_defaulted=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 ac_abs_confdir=`(
1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423 pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 srcdir=.
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448 \`configure' configures this package to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1457 Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 [PREFIX]
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1501 _ACEOF
1503 cat <<\_ACEOF
1505 X features:
1506 --x-includes=DIR X include files are in DIR
1507 --x-libraries=DIR X library files are in DIR
1509 System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 _ACEOF
1515 if test -n "$ac_init_help"; then
1517 cat <<\_ACEOF
1519 Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-build-type=TYPE
1524 Select the build type. Available types are:
1525 personal, nightly, snapshot, milestone, release. Do
1526 NOT use this option unless you know what you are
1527 doing! (default=personal)
1528 --enable-debug=list Enable different types of debug. Commas or
1529 whitespaces can be used to separate the items in the
1530 list. Available types of debug are: all, none,
1531 messages, stack, mungwall, modules, symbols. If no
1532 list is provided then "all" is assumed.
1533 (default=none)
1534 --disable-crosstools Do not build cross-compiler toolchain
1535 --enable-distcc Use distcc as a front end to the compiler
1536 (default=no).
1537 --enable-ccache Use ccache as a front end to the compiler
1538 (default=no).
1539 --enable-target-variant=NAME
1540 Enable a specific target variant(default=none)
1541 --enable-amigaos-compliance=VERSION
1542 Enforce userspace AmigaOS compliance to a specific
1543 KickStart version (default=none).
1544 --enable-palm-debug-hack
1545 Enable palm debug output hack in palm native
1546 (default=no)
1547 --enable-nesting-supervisor
1548 Enable nesting supervisor support in unix
1549 (default=no)
1550 --disable-mmu Disable MMU support (default=enabled)
1551 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1552 --enable-x11-shm use X11 shared memory (default=auto)
1553 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1554 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1555 --disable-sdltest Do not try to compile and run a test SDL program
1556 --enable-dbus Enable DBUS support via dbus.library (default=no)
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-kernel-gcc-version=VERSION
1562 Use host gcc-VERSION for building AROS
1563 --with-gcc-version=VERSION
1564 Use host gcc-VERSION for building AROS
1565 --with-optimization=FLAGS
1566 Use optimization flags FLAGS (default=-O2).
1567 --with-paranoia=FLAGS CC flags to enable paranoia
1568 --with-xcode=PATH Specify XCode path for iOS targets
1569 (default=/Developer).
1570 --with-sdk-version=VERSION
1571 Use iOS SDK version VERSION (default=4.1).
1572 --with-sdk=PATH Specify Android SDK path
1573 (default=$default_android_sdk).
1574 --with-ndk=PATH Specify Android NDK path (default=none).
1575 --with-sdk-version=LEVEL
1576 Use Android SDK for API LEVEL (default=12).
1577 --with-ndk-version=LEVEL
1578 Use Android NDK for API LEVEL (default=9).
1579 --with-crosstools=DIR Where to install or search for cross tools binaries
1580 --with-kernel-tool-prefix=...
1581 Specify crosscompile toolchain prefix for kernel
1582 objects
1583 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1584 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1585 --with-float=<spec> Specify floating point ABI
1586 (default=$gcc_default_float_abi).
1587 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1588 --with-portssources=DIR Where to download sourcecode for external ports
1589 --with-bootloader=NAME Use a specific bootloader
1590 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1591 --with-theme=NAME Use a specific GUI Theme
1592 --with-resolution=XRESxYRESxDEPTH
1593 Default resolution of the initial WorkbenchScreen
1594 --with-serial-debug Enable serial debug output in native (default=no)
1595 --with-x use the X Window System
1596 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1597 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1599 Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1607 CXX C++ compiler command
1608 CXXFLAGS C++ compiler flags
1609 CPP C preprocessor
1610 XMKMF Path to xmkmf, Makefile generator for X Window System
1612 Use these variables to override the choices made by `configure' or to help
1613 it to find libraries and programs with nonstandard names/locations.
1615 Report bugs to the package provider.
1616 _ACEOF
1617 ac_status=$?
1620 if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
1626 ac_builddir=.
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1644 case $srcdir in
1645 .) # We are building in place.
1646 ac_srcdir=.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1668 else
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1672 done
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677 cat <<\_ACEOF
1678 configure
1679 generated by GNU Autoconf 2.67
1681 Copyright (C) 2010 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684 _ACEOF
1685 exit
1688 ## ------------------------ ##
1689 ## Autoconf initialization. ##
1690 ## ------------------------ ##
1692 # ac_fn_c_try_compile LINENO
1693 # --------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_compile ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=1
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 as_fn_set_status $ac_retval
1728 } # ac_fn_c_try_compile
1730 # ac_fn_cxx_try_compile LINENO
1731 # ----------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_cxx_try_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_cxx_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=1
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_cxx_try_compile
1768 # ac_fn_c_try_cpp LINENO
1769 # ----------------------
1770 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_cpp ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_cpp conftest.$ac_ext"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } > conftest.i && {
1790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 }; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 ac_retval=1
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_c_try_cpp
1805 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1806 # -------------------------------------------------------
1807 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1808 # the include files in INCLUDES and setting the cache variable VAR
1809 # accordingly.
1810 ac_fn_c_check_header_mongrel ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if eval "test \"\${$3+set}\"" = set; then :
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval "test \"\${$3+set}\"" = set; then :
1817 $as_echo_n "(cached) " >&6
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 else
1823 # Is the header compilable?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1825 $as_echo_n "checking $2 usability... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_header_compiler=yes
1833 else
1834 ac_header_compiler=no
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1838 $as_echo "$ac_header_compiler" >&6; }
1840 # Is the header present?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1842 $as_echo_n "checking $2 presence... " >&6; }
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_cpp "$LINENO"; then :
1848 ac_header_preproc=yes
1849 else
1850 ac_header_preproc=no
1852 rm -f conftest.err conftest.i conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1854 $as_echo "$ac_header_preproc" >&6; }
1856 # So? What about this header?
1857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 yes:no: )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1860 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 no:yes:* )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1866 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1868 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1870 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1872 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 esac
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval "test \"\${$3+set}\"" = set; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 eval "$3=\$ac_header_compiler"
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 } # ac_fn_c_check_header_mongrel
1892 # ac_fn_c_try_run LINENO
1893 # ----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1895 # that executables *can* be run.
1896 ac_fn_c_try_run ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>&5
1907 ac_status=$?
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1910 { { case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_try") 2>&5
1917 ac_status=$?
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; }; }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: program exited with status $ac_status" >&5
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=$ac_status
1928 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 as_fn_set_status $ac_retval
1932 } # ac_fn_c_try_run
1934 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1935 # -------------------------------------------------------
1936 # Tests whether HEADER exists and can be compiled using the include files in
1937 # INCLUDES, setting the cache variable VAR accordingly.
1938 ac_fn_c_check_header_compile ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval "test \"\${$3+set}\"" = set; then :
1944 $as_echo_n "(cached) " >&6
1945 else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 eval "$3=yes"
1953 else
1954 eval "$3=no"
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 } # ac_fn_c_check_header_compile
1965 # ac_fn_c_try_link LINENO
1966 # -----------------------
1967 # Try to link conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_link ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 rm -f conftest.$ac_objext conftest$ac_exeext
1972 if { { ac_try="$ac_link"
1973 case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_link") 2>conftest.err
1980 ac_status=$?
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } && {
1988 test -z "$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1990 } && test -s conftest$ac_exeext && {
1991 test "$cross_compiling" = yes ||
1992 $as_test_x conftest$ac_exeext
1993 }; then :
1994 ac_retval=0
1995 else
1996 $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1999 ac_retval=1
2001 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2002 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2003 # interfere with the next link command; also delete a directory that is
2004 # left behind by Apple's compiler. We do this before executing the actions.
2005 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_c_try_link
2011 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2012 # ----------------------------------------------------
2013 # Tries to find if the field MEMBER exists in type AGGR, after including
2014 # INCLUDES, setting cache variable VAR accordingly.
2015 ac_fn_c_check_member ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2019 $as_echo_n "checking for $2.$3... " >&6; }
2020 if eval "test \"\${$4+set}\"" = set; then :
2021 $as_echo_n "(cached) " >&6
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static $2 ac_aggr;
2030 if (ac_aggr.$3)
2031 return 0;
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$4=yes"
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 static $2 ac_aggr;
2046 if (sizeof ac_aggr.$3)
2047 return 0;
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$4=yes"
2054 else
2055 eval "$4=no"
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 eval ac_res=\$$4
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 } # ac_fn_c_check_member
2068 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2069 # ---------------------------------------------
2070 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2071 # accordingly.
2072 ac_fn_c_check_decl ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 as_decl_name=`echo $2|sed 's/ *(.*//'`
2076 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2078 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2079 if eval "test \"\${$3+set}\"" = set; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 #ifndef $as_decl_name
2089 #ifdef __cplusplus
2090 (void) $as_decl_use;
2091 #else
2092 (void) $as_decl_name;
2093 #endif
2094 #endif
2097 return 0;
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$3=yes"
2102 else
2103 eval "$3=no"
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_c_check_decl
2114 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115 # -------------------------------------------
2116 # Tests whether TYPE exists after having included INCLUDES, setting cache
2117 # variable VAR accordingly.
2118 ac_fn_c_check_type ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if eval "test \"\${$3+set}\"" = set; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 eval "$3=no"
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 if (sizeof ($2))
2134 return 0;
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 if (sizeof (($2)))
2147 return 0;
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2154 else
2155 eval "$3=yes"
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 } # ac_fn_c_check_type
2168 # ac_fn_c_check_func LINENO FUNC VAR
2169 # ----------------------------------
2170 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2171 ac_fn_c_check_func ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval "test \"\${$3+set}\"" = set; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2183 #define $2 innocuous_$2
2185 /* System header to define __stub macros and hopefully few prototypes,
2186 which can conflict with char $2 (); below.
2187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2188 <limits.h> exists even on freestanding compilers. */
2190 #ifdef __STDC__
2191 # include <limits.h>
2192 #else
2193 # include <assert.h>
2194 #endif
2196 #undef $2
2198 /* Override any GCC internal prototype to avoid an error.
2199 Use char because int might match the return type of a GCC
2200 builtin and then its argument prototype would still apply. */
2201 #ifdef __cplusplus
2202 extern "C"
2203 #endif
2204 char $2 ();
2205 /* The GNU C library defines this for functions which it implements
2206 to always fail with ENOSYS. Some functions are actually named
2207 something starting with __ and the normal name is an alias. */
2208 #if defined __stub_$2 || defined __stub___$2
2209 choke me
2210 #endif
2213 main ()
2215 return $2 ();
2217 return 0;
2219 _ACEOF
2220 if ac_fn_c_try_link "$LINENO"; then :
2221 eval "$3=yes"
2222 else
2223 eval "$3=no"
2225 rm -f core conftest.err conftest.$ac_objext \
2226 conftest$ac_exeext conftest.$ac_ext
2228 eval ac_res=\$$3
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233 } # ac_fn_c_check_func
2234 cat >config.log <<_ACEOF
2235 This file contains any messages produced by compilers while
2236 running configure, to aid debugging if configure makes a mistake.
2238 It was created by $as_me, which was
2239 generated by GNU Autoconf 2.67. Invocation command line was
2241 $ $0 $@
2243 _ACEOF
2244 exec 5>>config.log
2246 cat <<_ASUNAME
2247 ## --------- ##
2248 ## Platform. ##
2249 ## --------- ##
2251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2258 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2260 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2261 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2263 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2264 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2265 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2266 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2268 _ASUNAME
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 $as_echo "PATH: $as_dir"
2276 done
2277 IFS=$as_save_IFS
2279 } >&5
2281 cat >&5 <<_ACEOF
2284 ## ----------- ##
2285 ## Core tests. ##
2286 ## ----------- ##
2288 _ACEOF
2291 # Keep a trace of the command line.
2292 # Strip out --no-create and --no-recursion so they do not pile up.
2293 # Strip out --silent because we don't want to record it for future runs.
2294 # Also quote any args containing shell meta-characters.
2295 # Make two passes to allow for proper duplicate-argument suppression.
2296 ac_configure_args=
2297 ac_configure_args0=
2298 ac_configure_args1=
2299 ac_must_keep_next=false
2300 for ac_pass in 1 2
2302 for ac_arg
2304 case $ac_arg in
2305 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2307 | -silent | --silent | --silen | --sile | --sil)
2308 continue ;;
2309 *\'*)
2310 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2311 esac
2312 case $ac_pass in
2313 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2315 as_fn_append ac_configure_args1 " '$ac_arg'"
2316 if test $ac_must_keep_next = true; then
2317 ac_must_keep_next=false # Got value, back to normal.
2318 else
2319 case $ac_arg in
2320 *=* | --config-cache | -C | -disable-* | --disable-* \
2321 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2322 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2323 | -with-* | --with-* | -without-* | --without-* | --x)
2324 case "$ac_configure_args0 " in
2325 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2326 esac
2328 -* ) ac_must_keep_next=true ;;
2329 esac
2331 as_fn_append ac_configure_args " '$ac_arg'"
2333 esac
2334 done
2335 done
2336 { ac_configure_args0=; unset ac_configure_args0;}
2337 { ac_configure_args1=; unset ac_configure_args1;}
2339 # When interrupted or exit'd, cleanup temporary files, and complete
2340 # config.log. We remove comments because anyway the quotes in there
2341 # would cause problems or look ugly.
2342 # WARNING: Use '\'' to represent an apostrophe within the trap.
2343 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2344 trap 'exit_status=$?
2345 # Save into config.log some information that might help in debugging.
2347 echo
2349 $as_echo "## ---------------- ##
2350 ## Cache variables. ##
2351 ## ---------------- ##"
2352 echo
2353 # The following way of writing the cache mishandles newlines in values,
2355 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2356 eval ac_val=\$$ac_var
2357 case $ac_val in #(
2358 *${as_nl}*)
2359 case $ac_var in #(
2360 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2362 esac
2363 case $ac_var in #(
2364 _ | IFS | as_nl) ;; #(
2365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2366 *) { eval $ac_var=; unset $ac_var;} ;;
2367 esac ;;
2368 esac
2369 done
2370 (set) 2>&1 |
2371 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2372 *${as_nl}ac_space=\ *)
2373 sed -n \
2374 "s/'\''/'\''\\\\'\'''\''/g;
2375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2376 ;; #(
2378 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2380 esac |
2381 sort
2383 echo
2385 $as_echo "## ----------------- ##
2386 ## Output variables. ##
2387 ## ----------------- ##"
2388 echo
2389 for ac_var in $ac_subst_vars
2391 eval ac_val=\$$ac_var
2392 case $ac_val in
2393 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394 esac
2395 $as_echo "$ac_var='\''$ac_val'\''"
2396 done | sort
2397 echo
2399 if test -n "$ac_subst_files"; then
2400 $as_echo "## ------------------- ##
2401 ## File substitutions. ##
2402 ## ------------------- ##"
2403 echo
2404 for ac_var in $ac_subst_files
2406 eval ac_val=\$$ac_var
2407 case $ac_val in
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 esac
2410 $as_echo "$ac_var='\''$ac_val'\''"
2411 done | sort
2412 echo
2415 if test -s confdefs.h; then
2416 $as_echo "## ----------- ##
2417 ## confdefs.h. ##
2418 ## ----------- ##"
2419 echo
2420 cat confdefs.h
2421 echo
2423 test "$ac_signal" != 0 &&
2424 $as_echo "$as_me: caught signal $ac_signal"
2425 $as_echo "$as_me: exit $exit_status"
2426 } >&5
2427 rm -f core *.core core.conftest.* &&
2428 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2429 exit $exit_status
2431 for ac_signal in 1 2 13 15; do
2432 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2433 done
2434 ac_signal=0
2436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2437 rm -f -r conftest* confdefs.h
2439 $as_echo "/* confdefs.h */" > confdefs.h
2441 # Predefined preprocessor variables.
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_NAME "$PACKAGE_NAME"
2445 _ACEOF
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2449 _ACEOF
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2453 _ACEOF
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_STRING "$PACKAGE_STRING"
2457 _ACEOF
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2461 _ACEOF
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_URL "$PACKAGE_URL"
2465 _ACEOF
2468 # Let the site file select an alternate cache file if it wants to.
2469 # Prefer an explicitly selected file to automatically selected ones.
2470 ac_site_file1=NONE
2471 ac_site_file2=NONE
2472 if test -n "$CONFIG_SITE"; then
2473 # We do not want a PATH search for config.site.
2474 case $CONFIG_SITE in #((
2475 -*) ac_site_file1=./$CONFIG_SITE;;
2476 */*) ac_site_file1=$CONFIG_SITE;;
2477 *) ac_site_file1=./$CONFIG_SITE;;
2478 esac
2479 elif test "x$prefix" != xNONE; then
2480 ac_site_file1=$prefix/share/config.site
2481 ac_site_file2=$prefix/etc/config.site
2482 else
2483 ac_site_file1=$ac_default_prefix/share/config.site
2484 ac_site_file2=$ac_default_prefix/etc/config.site
2486 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2488 test "x$ac_site_file" = xNONE && continue
2489 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2491 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2492 sed 's/^/| /' "$ac_site_file" >&5
2493 . "$ac_site_file" \
2494 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 as_fn_error $? "failed to load site script $ac_site_file
2497 See \`config.log' for more details" "$LINENO" 5 ; }
2499 done
2501 if test -r "$cache_file"; then
2502 # Some versions of bash will fail to source /dev/null (special files
2503 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2504 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2506 $as_echo "$as_me: loading cache $cache_file" >&6;}
2507 case $cache_file in
2508 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509 *) . "./$cache_file";;
2510 esac
2512 else
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2514 $as_echo "$as_me: creating cache $cache_file" >&6;}
2515 >$cache_file
2518 as_fn_append ac_header_list " stdlib.h"
2519 as_fn_append ac_header_list " unistd.h"
2520 as_fn_append ac_header_list " sys/param.h"
2521 # Check that the precious variables saved in the cache have kept the same
2522 # value.
2523 ac_cache_corrupted=false
2524 for ac_var in $ac_precious_vars; do
2525 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2526 eval ac_new_set=\$ac_env_${ac_var}_set
2527 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528 eval ac_new_val=\$ac_env_${ac_var}_value
2529 case $ac_old_set,$ac_new_set in
2530 set,)
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2532 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2533 ac_cache_corrupted=: ;;
2534 ,set)
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2536 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2537 ac_cache_corrupted=: ;;
2538 ,);;
2540 if test "x$ac_old_val" != "x$ac_new_val"; then
2541 # differences in whitespace do not lead to failure.
2542 ac_old_val_w=`echo x $ac_old_val`
2543 ac_new_val_w=`echo x $ac_new_val`
2544 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2546 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2547 ac_cache_corrupted=:
2548 else
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2550 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2551 eval $ac_var=\$ac_old_val
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2554 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2556 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2557 fi;;
2558 esac
2559 # Pass precious variables to config.status.
2560 if test "$ac_new_set" = set; then
2561 case $ac_new_val in
2562 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2563 *) ac_arg=$ac_var=$ac_new_val ;;
2564 esac
2565 case " $ac_configure_args " in
2566 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2567 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 esac
2570 done
2571 if $ac_cache_corrupted; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2575 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2576 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2578 ## -------------------- ##
2579 ## Main body of script. ##
2580 ## -------------------- ##
2582 ac_ext=c
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 ac_aux_dir=
2591 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2592 if test -f "$ac_dir/install-sh"; then
2593 ac_aux_dir=$ac_dir
2594 ac_install_sh="$ac_aux_dir/install-sh -c"
2595 break
2596 elif test -f "$ac_dir/install.sh"; then
2597 ac_aux_dir=$ac_dir
2598 ac_install_sh="$ac_aux_dir/install.sh -c"
2599 break
2600 elif test -f "$ac_dir/shtool"; then
2601 ac_aux_dir=$ac_dir
2602 ac_install_sh="$ac_aux_dir/shtool install -c"
2603 break
2605 done
2606 if test -z "$ac_aux_dir"; then
2607 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2610 # These three variables are undocumented and unsupported,
2611 # and are intended to be withdrawn in a future Autoconf release.
2612 # They can cause serious problems if a builder's source tree is in a directory
2613 # whose full name contains unusual characters.
2614 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2615 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2616 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2620 # Check what host we are running on.
2621 # If a target is not suggested, we use this one.
2622 # Note that what we call a target, Autoconf calls a host.
2623 # Make sure we can run config.sub.
2624 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2625 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2628 $as_echo_n "checking build system type... " >&6; }
2629 if test "${ac_cv_build+set}" = set; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 ac_build_alias=$build_alias
2633 test "x$ac_build_alias" = x &&
2634 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2635 test "x$ac_build_alias" = x &&
2636 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2637 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2642 $as_echo "$ac_cv_build" >&6; }
2643 case $ac_cv_build in
2644 *-*-*) ;;
2645 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2646 esac
2647 build=$ac_cv_build
2648 ac_save_IFS=$IFS; IFS='-'
2649 set x $ac_cv_build
2650 shift
2651 build_cpu=$1
2652 build_vendor=$2
2653 shift; shift
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2656 build_os=$*
2657 IFS=$ac_save_IFS
2658 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2662 $as_echo_n "checking host system type... " >&6; }
2663 if test "${ac_cv_host+set}" = set; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test "x$host_alias" = x; then
2667 ac_cv_host=$ac_cv_build
2668 else
2669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2675 $as_echo "$ac_cv_host" >&6; }
2676 case $ac_cv_host in
2677 *-*-*) ;;
2678 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2679 esac
2680 host=$ac_cv_host
2681 ac_save_IFS=$IFS; IFS='-'
2682 set x $ac_cv_host
2683 shift
2684 host_cpu=$1
2685 host_vendor=$2
2686 shift; shift
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2689 host_os=$*
2690 IFS=$ac_save_IFS
2691 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2695 # The AROS target is slightly different to the normal GNU style
2696 # format. We don't have the middle part, and we reverse the order
2697 # of the $(CPU) and $(OS) bits.
2699 # Don't strip the version of the target yet, it might be
2700 # useful on some systems.
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2703 $as_echo_n "checking for AROS style target... " >&6; }
2705 if test "$target" = "NONE" ; then
2706 target=$host_os-$host_cpu
2707 else
2708 if test "$target" = "" ; then
2709 target=$host_os-$host_cpu
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2713 $as_echo "$target" >&6; }
2715 if test "$host_os" = "mingw32" ; then
2716 PWDCMD="pwd -W"
2719 # Don't know where else to put this...
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2721 $as_echo_n "checking building AROS in... " >&6; }
2722 AROS_BUILDDIR=`${PWDCMD-pwd}`
2723 AROS_BUILDDIR_UNIX=${PWD}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2725 $as_echo "$AROS_BUILDDIR" >&6; }
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2728 $as_echo_n "checking AROS source in... " >&6; }
2729 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2730 SRCDIR=${srcpwd}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2732 $as_echo "$SRCDIR" >&6; }
2734 # Parse the target field into something useful.
2736 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2737 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2740 # Some debug output, to be removed again.
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2742 $as_echo_n "checking for target system (debug output)... " >&6; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2744 $as_echo "$target_os" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2746 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2748 $as_echo "$target_cpu" >&6; }
2750 aros_default_wbwidth=800
2751 aros_default_wbheight=600
2752 aros_default_wbdepth=4
2755 # The first step is to find the host binaries.
2756 # Check for a compiler.
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2764 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if test "${ac_cv_prog_CC+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 CC=$ac_cv_prog_CC
2791 if test -n "$CC"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2793 $as_echo "$CC" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2801 if test -z "$ac_cv_prog_CC"; then
2802 ac_ct_CC=$CC
2803 # Extract the first word of "gcc", so it can be a program name with args.
2804 set dummy gcc; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_ac_ct_CC="gcc"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2824 done
2825 done
2826 IFS=$as_save_IFS
2830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831 if test -n "$ac_ct_CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2833 $as_echo "$ac_ct_CC" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2839 if test "x$ac_ct_CC" = x; then
2840 CC=""
2841 else
2842 case $cross_compiling:$ac_tool_warned in
2843 yes:)
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846 ac_tool_warned=yes ;;
2847 esac
2848 CC=$ac_ct_CC
2850 else
2851 CC="$ac_cv_prog_CC"
2854 if test -z "$CC"; then
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2857 set dummy ${ac_tool_prefix}cc; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if test "${ac_cv_prog_CC+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_CC="${ac_tool_prefix}cc"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2879 IFS=$as_save_IFS
2883 CC=$ac_cv_prog_CC
2884 if test -n "$CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886 $as_echo "$CC" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2895 if test -z "$CC"; then
2896 # Extract the first word of "cc", so it can be a program name with args.
2897 set dummy cc; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if test "${ac_cv_prog_CC+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 else
2906 ac_prog_rejected=no
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2915 ac_prog_rejected=yes
2916 continue
2918 ac_cv_prog_CC="cc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2926 if test $ac_prog_rejected = yes; then
2927 # We found a bogon in the path, so make sure we never use it.
2928 set dummy $ac_cv_prog_CC
2929 shift
2930 if test $# != 0; then
2931 # We chose a different compiler from the bogus one.
2932 # However, it has the same basename, so the bogon will be chosen
2933 # first if we set CC to just the basename; use the full file name.
2934 shift
2935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2940 CC=$ac_cv_prog_CC
2941 if test -n "$CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943 $as_echo "$CC" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2951 if test -z "$CC"; then
2952 if test -n "$ac_tool_prefix"; then
2953 for ac_prog in cl.exe
2955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_CC+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2976 done
2977 done
2978 IFS=$as_save_IFS
2982 CC=$ac_cv_prog_CC
2983 if test -n "$CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 $as_echo "$CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2992 test -n "$CC" && break
2993 done
2995 if test -z "$CC"; then
2996 ac_ct_CC=$CC
2997 for ac_prog in cl.exe
2999 # Extract the first word of "$ac_prog", so it can be a program name with args.
3000 set dummy $ac_prog; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test -n "$ac_ct_CC"; then
3007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 ac_cv_prog_ac_ct_CC="$ac_prog"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3020 done
3021 done
3022 IFS=$as_save_IFS
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3029 $as_echo "$ac_ct_CC" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3036 test -n "$ac_ct_CC" && break
3037 done
3039 if test "x$ac_ct_CC" = x; then
3040 CC=""
3041 else
3042 case $cross_compiling:$ac_tool_warned in
3043 yes:)
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3047 esac
3048 CC=$ac_ct_CC
3055 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 as_fn_error $? "no acceptable C compiler found in \$PATH
3058 See \`config.log' for more details" "$LINENO" 5 ; }
3060 # Provide some information about the compiler.
3061 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3062 set X $ac_compile
3063 ac_compiler=$2
3064 for ac_option in --version -v -V -qversion; do
3065 { { ac_try="$ac_compiler $ac_option >&5"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3073 ac_status=$?
3074 if test -s conftest.err; then
3075 sed '10a\
3076 ... rest of stderr output deleted ...
3077 10q' conftest.err >conftest.er1
3078 cat conftest.er1 >&5
3080 rm -f conftest.er1 conftest.err
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }
3083 done
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3089 main ()
3093 return 0;
3095 _ACEOF
3096 ac_clean_files_save=$ac_clean_files
3097 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3098 # Try to create an executable without -o first, disregard a.out.
3099 # It will help us diagnose broken compilers, and finding out an intuition
3100 # of exeext.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3102 $as_echo_n "checking whether the C compiler works... " >&6; }
3103 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105 # The possible output files:
3106 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3108 ac_rmfiles=
3109 for ac_file in $ac_files
3111 case $ac_file in
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3114 esac
3115 done
3116 rm -f $ac_rmfiles
3118 if { { ac_try="$ac_link_default"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124 $as_echo "$ac_try_echo"; } >&5
3125 (eval "$ac_link_default") 2>&5
3126 ac_status=$?
3127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128 test $ac_status = 0; }; then :
3129 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3130 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3131 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3132 # so that the user can short-circuit this test for compilers unknown to
3133 # Autoconf.
3134 for ac_file in $ac_files ''
3136 test -f "$ac_file" || continue
3137 case $ac_file in
3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3140 [ab].out )
3141 # We found the default executable, but exeext='' is most
3142 # certainly right.
3143 break;;
3144 *.* )
3145 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3146 then :; else
3147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 # We set ac_cv_exeext here because the later test for it is not
3150 # safe: cross compilers may not add the suffix if given an `-o'
3151 # argument, so we may need to know it at that point already.
3152 # Even if this section looks crufty: it has the advantage of
3153 # actually working.
3154 break;;
3156 break;;
3157 esac
3158 done
3159 test "$ac_cv_exeext" = no && ac_cv_exeext=
3161 else
3162 ac_file=''
3164 if test -z "$ac_file"; then :
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 $as_echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error 77 "C compiler cannot create executables
3173 See \`config.log' for more details" "$LINENO" 5 ; }
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3176 $as_echo "yes" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3179 $as_echo_n "checking for C compiler default output file name... " >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3181 $as_echo "$ac_file" >&6; }
3182 ac_exeext=$ac_cv_exeext
3184 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3185 ac_clean_files=$ac_clean_files_save
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3187 $as_echo_n "checking for suffix of executables... " >&6; }
3188 if { { ac_try="$ac_link"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; then :
3199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3201 # work properly (i.e., refer to `conftest.exe'), while it won't with
3202 # `rm'.
3203 for ac_file in conftest.exe conftest conftest.*; do
3204 test -f "$ac_file" || continue
3205 case $ac_file in
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3208 break;;
3209 * ) break;;
3210 esac
3211 done
3212 else
3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3216 See \`config.log' for more details" "$LINENO" 5 ; }
3218 rm -f conftest conftest$ac_cv_exeext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3220 $as_echo "$ac_cv_exeext" >&6; }
3222 rm -f conftest.$ac_ext
3223 EXEEXT=$ac_cv_exeext
3224 ac_exeext=$EXEEXT
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227 #include <stdio.h>
3229 main ()
3231 FILE *f = fopen ("conftest.out", "w");
3232 return ferror (f) || fclose (f) != 0;
3235 return 0;
3237 _ACEOF
3238 ac_clean_files="$ac_clean_files conftest.out"
3239 # Check that the compiler produces executables we can run. If not, either
3240 # the compiler is broken, or we cross compile.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3242 $as_echo_n "checking whether we are cross compiling... " >&6; }
3243 if test "$cross_compiling" != yes; then
3244 { { ac_try="$ac_link"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_link") 2>&5
3252 ac_status=$?
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }
3255 if { ac_try='./conftest$ac_cv_exeext'
3256 { { case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_try") 2>&5
3263 ac_status=$?
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; }; then
3266 cross_compiling=no
3267 else
3268 if test "$cross_compiling" = maybe; then
3269 cross_compiling=yes
3270 else
3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error $? "cannot run C compiled programs.
3274 If you meant to cross compile, use \`--host'.
3275 See \`config.log' for more details" "$LINENO" 5 ; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3280 $as_echo "$cross_compiling" >&6; }
3282 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3283 ac_clean_files=$ac_clean_files_save
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3285 $as_echo_n "checking for suffix of object files... " >&6; }
3286 if test "${ac_cv_objext+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 rm -f conftest.o conftest.obj
3301 if { { ac_try="$ac_compile"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_compile") 2>&5
3309 ac_status=$?
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; then :
3312 for ac_file in conftest.o conftest.obj conftest.*; do
3313 test -f "$ac_file" || continue;
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3317 break;;
3318 esac
3319 done
3320 else
3321 $as_echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error $? "cannot compute suffix of object files: cannot compile
3327 See \`config.log' for more details" "$LINENO" 5 ; }
3329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3332 $as_echo "$ac_cv_objext" >&6; }
3333 OBJEXT=$ac_cv_objext
3334 ac_objext=$OBJEXT
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3337 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3344 main ()
3346 #ifndef __GNUC__
3347 choke me
3348 #endif
3351 return 0;
3353 _ACEOF
3354 if ac_fn_c_try_compile "$LINENO"; then :
3355 ac_compiler_gnu=yes
3356 else
3357 ac_compiler_gnu=no
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3364 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3365 if test $ac_compiler_gnu = yes; then
3366 GCC=yes
3367 else
3368 GCC=
3370 ac_test_CFLAGS=${CFLAGS+set}
3371 ac_save_CFLAGS=$CFLAGS
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3373 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3374 if test "${ac_cv_prog_cc_g+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 ac_save_c_werror_flag=$ac_c_werror_flag
3378 ac_c_werror_flag=yes
3379 ac_cv_prog_cc_g=no
3380 CFLAGS="-g"
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3385 main ()
3389 return 0;
3391 _ACEOF
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_cv_prog_cc_g=yes
3394 else
3395 CFLAGS=""
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3400 main ()
3404 return 0;
3406 _ACEOF
3407 if ac_fn_c_try_compile "$LINENO"; then :
3409 else
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3411 CFLAGS="-g"
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_g=yes
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3434 $as_echo "$ac_cv_prog_cc_g" >&6; }
3435 if test "$ac_test_CFLAGS" = set; then
3436 CFLAGS=$ac_save_CFLAGS
3437 elif test $ac_cv_prog_cc_g = yes; then
3438 if test "$GCC" = yes; then
3439 CFLAGS="-g -O2"
3440 else
3441 CFLAGS="-g"
3443 else
3444 if test "$GCC" = yes; then
3445 CFLAGS="-O2"
3446 else
3447 CFLAGS=
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3452 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 ac_cv_prog_cc_c89=no
3456 ac_save_CC=$CC
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459 #include <stdarg.h>
3460 #include <stdio.h>
3461 #include <sys/types.h>
3462 #include <sys/stat.h>
3463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3464 struct buf { int x; };
3465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3466 static char *e (p, i)
3467 char **p;
3468 int i;
3470 return p[i];
3472 static char *f (char * (*g) (char **, int), char **p, ...)
3474 char *s;
3475 va_list v;
3476 va_start (v,p);
3477 s = g (p, va_arg (v,int));
3478 va_end (v);
3479 return s;
3482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3483 function prototypes and stuff, but not '\xHH' hex character constants.
3484 These don't provoke an error unfortunately, instead are silently treated
3485 as 'x'. The following induces an error, until -std is added to get
3486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3487 array size at least. It's necessary to write '\x00'==0 to get something
3488 that's true only with -std. */
3489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3492 inside strings and character constants. */
3493 #define FOO(x) 'x'
3494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496 int test (int i, double x);
3497 struct s1 {int (*f) (int a);};
3498 struct s2 {int (*f) (double a);};
3499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3500 int argc;
3501 char **argv;
3503 main ()
3505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3507 return 0;
3509 _ACEOF
3510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513 CC="$ac_save_CC $ac_arg"
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_cv_prog_cc_c89=$ac_arg
3517 rm -f core conftest.err conftest.$ac_objext
3518 test "x$ac_cv_prog_cc_c89" != "xno" && break
3519 done
3520 rm -f conftest.$ac_ext
3521 CC=$ac_save_CC
3524 # AC_CACHE_VAL
3525 case "x$ac_cv_prog_cc_c89" in
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3528 $as_echo "none needed" >&6; } ;;
3529 xno)
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3531 $as_echo "unsupported" >&6; } ;;
3533 CC="$CC $ac_cv_prog_cc_c89"
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3536 esac
3537 if test "x$ac_cv_prog_cc_c89" != xno; then :
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 case $ac_cv_prog_cc_stdc in #(
3548 no) :
3549 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3550 *) :
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3552 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3553 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 ac_cv_prog_cc_c99=no
3557 ac_save_CC=$CC
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560 #include <stdarg.h>
3561 #include <stdbool.h>
3562 #include <stdlib.h>
3563 #include <wchar.h>
3564 #include <stdio.h>
3566 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3567 #define debug(...) fprintf (stderr, __VA_ARGS__)
3568 #define showlist(...) puts (#__VA_ARGS__)
3569 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3570 static void
3571 test_varargs_macros (void)
3573 int x = 1234;
3574 int y = 5678;
3575 debug ("Flag");
3576 debug ("X = %d\n", x);
3577 showlist (The first, second, and third items.);
3578 report (x>y, "x is %d but y is %d", x, y);
3581 // Check long long types.
3582 #define BIG64 18446744073709551615ull
3583 #define BIG32 4294967295ul
3584 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3585 #if !BIG_OK
3586 your preprocessor is broken;
3587 #endif
3588 #if BIG_OK
3589 #else
3590 your preprocessor is broken;
3591 #endif
3592 static long long int bignum = -9223372036854775807LL;
3593 static unsigned long long int ubignum = BIG64;
3595 struct incomplete_array
3597 int datasize;
3598 double data[];
3601 struct named_init {
3602 int number;
3603 const wchar_t *name;
3604 double average;
3607 typedef const char *ccp;
3609 static inline int
3610 test_restrict (ccp restrict text)
3612 // See if C++-style comments work.
3613 // Iterate through items via the restricted pointer.
3614 // Also check for declarations in for loops.
3615 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3616 continue;
3617 return 0;
3620 // Check varargs and va_copy.
3621 static void
3622 test_varargs (const char *format, ...)
3624 va_list args;
3625 va_start (args, format);
3626 va_list args_copy;
3627 va_copy (args_copy, args);
3629 const char *str;
3630 int number;
3631 float fnumber;
3633 while (*format)
3635 switch (*format++)
3637 case 's': // string
3638 str = va_arg (args_copy, const char *);
3639 break;
3640 case 'd': // int
3641 number = va_arg (args_copy, int);
3642 break;
3643 case 'f': // float
3644 fnumber = va_arg (args_copy, double);
3645 break;
3646 default:
3647 break;
3650 va_end (args_copy);
3651 va_end (args);
3655 main ()
3658 // Check bool.
3659 _Bool success = false;
3661 // Check restrict.
3662 if (test_restrict ("String literal") == 0)
3663 success = true;
3664 char *restrict newvar = "Another string";
3666 // Check varargs.
3667 test_varargs ("s, d' f .", "string", 65, 34.234);
3668 test_varargs_macros ();
3670 // Check flexible array members.
3671 struct incomplete_array *ia =
3672 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3673 ia->datasize = 10;
3674 for (int i = 0; i < ia->datasize; ++i)
3675 ia->data[i] = i * 1.234;
3677 // Check named initializers.
3678 struct named_init ni = {
3679 .number = 34,
3680 .name = L"Test wide string",
3681 .average = 543.34343,
3684 ni.number = 58;
3686 int dynamic_array[ni.number];
3687 dynamic_array[ni.number - 1] = 543;
3689 // work around unused variable warnings
3690 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3691 || dynamic_array[ni.number - 1] != 543);
3694 return 0;
3696 _ACEOF
3697 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3699 CC="$ac_save_CC $ac_arg"
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_prog_cc_c99=$ac_arg
3703 rm -f core conftest.err conftest.$ac_objext
3704 test "x$ac_cv_prog_cc_c99" != "xno" && break
3705 done
3706 rm -f conftest.$ac_ext
3707 CC=$ac_save_CC
3710 # AC_CACHE_VAL
3711 case "x$ac_cv_prog_cc_c99" in
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3714 $as_echo "none needed" >&6; } ;;
3715 xno)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3717 $as_echo "unsupported" >&6; } ;;
3719 CC="$CC $ac_cv_prog_cc_c99"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3721 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3722 esac
3723 if test "x$ac_cv_prog_cc_c99" != xno; then :
3724 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3727 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3728 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 ac_cv_prog_cc_c89=no
3732 ac_save_CC=$CC
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 #include <stdarg.h>
3736 #include <stdio.h>
3737 #include <sys/types.h>
3738 #include <sys/stat.h>
3739 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3740 struct buf { int x; };
3741 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3742 static char *e (p, i)
3743 char **p;
3744 int i;
3746 return p[i];
3748 static char *f (char * (*g) (char **, int), char **p, ...)
3750 char *s;
3751 va_list v;
3752 va_start (v,p);
3753 s = g (p, va_arg (v,int));
3754 va_end (v);
3755 return s;
3758 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3759 function prototypes and stuff, but not '\xHH' hex character constants.
3760 These don't provoke an error unfortunately, instead are silently treated
3761 as 'x'. The following induces an error, until -std is added to get
3762 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3763 array size at least. It's necessary to write '\x00'==0 to get something
3764 that's true only with -std. */
3765 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3767 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3768 inside strings and character constants. */
3769 #define FOO(x) 'x'
3770 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3772 int test (int i, double x);
3773 struct s1 {int (*f) (int a);};
3774 struct s2 {int (*f) (double a);};
3775 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3776 int argc;
3777 char **argv;
3779 main ()
3781 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3783 return 0;
3785 _ACEOF
3786 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3787 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3789 CC="$ac_save_CC $ac_arg"
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791 ac_cv_prog_cc_c89=$ac_arg
3793 rm -f core conftest.err conftest.$ac_objext
3794 test "x$ac_cv_prog_cc_c89" != "xno" && break
3795 done
3796 rm -f conftest.$ac_ext
3797 CC=$ac_save_CC
3800 # AC_CACHE_VAL
3801 case "x$ac_cv_prog_cc_c89" in
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3804 $as_echo "none needed" >&6; } ;;
3805 xno)
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3807 $as_echo "unsupported" >&6; } ;;
3809 CC="$CC $ac_cv_prog_cc_c89"
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3811 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3812 esac
3813 if test "x$ac_cv_prog_cc_c89" != xno; then :
3814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3815 else
3816 ac_cv_prog_cc_stdc=no
3821 esac
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3823 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3824 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
3828 case $ac_cv_prog_cc_stdc in #(
3829 no) :
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3831 $as_echo "unsupported" >&6; } ;; #(
3832 '') :
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3834 $as_echo "none needed" >&6; } ;; #(
3835 *) :
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3837 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3838 esac
3840 ac_ext=cpp
3841 ac_cpp='$CXXCPP $CPPFLAGS'
3842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3845 if test -z "$CXX"; then
3846 if test -n "$CCC"; then
3847 CXX=$CCC
3848 else
3849 if test -n "$ac_tool_prefix"; then
3850 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_CXX+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 if test -n "$CXX"; then
3860 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3873 done
3874 done
3875 IFS=$as_save_IFS
3879 CXX=$ac_cv_prog_CXX
3880 if test -n "$CXX"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3882 $as_echo "$CXX" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3889 test -n "$CXX" && break
3890 done
3892 if test -z "$CXX"; then
3893 ac_ct_CXX=$CXX
3894 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 if test -n "$ac_ct_CXX"; then
3904 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_ac_ct_CXX="$ac_prog"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3917 done
3918 done
3919 IFS=$as_save_IFS
3923 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3924 if test -n "$ac_ct_CXX"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3926 $as_echo "$ac_ct_CXX" >&6; }
3927 else
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3933 test -n "$ac_ct_CXX" && break
3934 done
3936 if test "x$ac_ct_CXX" = x; then
3937 CXX="g++"
3938 else
3939 case $cross_compiling:$ac_tool_warned in
3940 yes:)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943 ac_tool_warned=yes ;;
3944 esac
3945 CXX=$ac_ct_CXX
3951 # Provide some information about the compiler.
3952 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3953 set X $ac_compile
3954 ac_compiler=$2
3955 for ac_option in --version -v -V -qversion; do
3956 { { ac_try="$ac_compiler $ac_option >&5"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3964 ac_status=$?
3965 if test -s conftest.err; then
3966 sed '10a\
3967 ... rest of stderr output deleted ...
3968 10q' conftest.err >conftest.er1
3969 cat conftest.er1 >&5
3971 rm -f conftest.er1 conftest.err
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }
3974 done
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3977 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3978 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3985 main ()
3987 #ifndef __GNUC__
3988 choke me
3989 #endif
3992 return 0;
3994 _ACEOF
3995 if ac_fn_cxx_try_compile "$LINENO"; then :
3996 ac_compiler_gnu=yes
3997 else
3998 ac_compiler_gnu=no
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4005 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4006 if test $ac_compiler_gnu = yes; then
4007 GXX=yes
4008 else
4009 GXX=
4011 ac_test_CXXFLAGS=${CXXFLAGS+set}
4012 ac_save_CXXFLAGS=$CXXFLAGS
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4014 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4015 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4019 ac_cxx_werror_flag=yes
4020 ac_cv_prog_cxx_g=no
4021 CXXFLAGS="-g"
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4026 main ()
4030 return 0;
4032 _ACEOF
4033 if ac_fn_cxx_try_compile "$LINENO"; then :
4034 ac_cv_prog_cxx_g=yes
4035 else
4036 CXXFLAGS=""
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4041 main ()
4045 return 0;
4047 _ACEOF
4048 if ac_fn_cxx_try_compile "$LINENO"; then :
4050 else
4051 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4052 CXXFLAGS="-g"
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4057 main ()
4061 return 0;
4063 _ACEOF
4064 if ac_fn_cxx_try_compile "$LINENO"; then :
4065 ac_cv_prog_cxx_g=yes
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4075 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4076 if test "$ac_test_CXXFLAGS" = set; then
4077 CXXFLAGS=$ac_save_CXXFLAGS
4078 elif test $ac_cv_prog_cxx_g = yes; then
4079 if test "$GXX" = yes; then
4080 CXXFLAGS="-g -O2"
4081 else
4082 CXXFLAGS="-g"
4084 else
4085 if test "$GXX" = yes; then
4086 CXXFLAGS="-O2"
4087 else
4088 CXXFLAGS=
4091 ac_ext=c
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4103 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4104 # On Suns, sometimes $CPP names a directory.
4105 if test -n "$CPP" && test -d "$CPP"; then
4106 CPP=
4108 if test -z "$CPP"; then
4109 if test "${ac_cv_prog_CPP+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 # Double quotes because CPP needs to be expanded
4113 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4115 ac_preproc_ok=false
4116 for ac_c_preproc_warn_flag in '' yes
4118 # Use a header file that comes with gcc, so configuring glibc
4119 # with a fresh cross-compiler works.
4120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121 # <limits.h> exists even on freestanding compilers.
4122 # On the NeXT, cc -E runs the code through the compiler's parser,
4123 # not just through cpp. "Syntax error" is here to catch this case.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #ifdef __STDC__
4127 # include <limits.h>
4128 #else
4129 # include <assert.h>
4130 #endif
4131 Syntax error
4132 _ACEOF
4133 if ac_fn_c_try_cpp "$LINENO"; then :
4135 else
4136 # Broken: fails on valid input.
4137 continue
4139 rm -f conftest.err conftest.i conftest.$ac_ext
4141 # OK, works on sane cases. Now check whether nonexistent headers
4142 # can be detected and how.
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #include <ac_nonexistent.h>
4146 _ACEOF
4147 if ac_fn_c_try_cpp "$LINENO"; then :
4148 # Broken: success on invalid input.
4149 continue
4150 else
4151 # Passes both tests.
4152 ac_preproc_ok=:
4153 break
4155 rm -f conftest.err conftest.i conftest.$ac_ext
4157 done
4158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4159 rm -f conftest.i conftest.err conftest.$ac_ext
4160 if $ac_preproc_ok; then :
4161 break
4164 done
4165 ac_cv_prog_CPP=$CPP
4168 CPP=$ac_cv_prog_CPP
4169 else
4170 ac_cv_prog_CPP=$CPP
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4173 $as_echo "$CPP" >&6; }
4174 ac_preproc_ok=false
4175 for ac_c_preproc_warn_flag in '' yes
4177 # Use a header file that comes with gcc, so configuring glibc
4178 # with a fresh cross-compiler works.
4179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4180 # <limits.h> exists even on freestanding compilers.
4181 # On the NeXT, cc -E runs the code through the compiler's parser,
4182 # not just through cpp. "Syntax error" is here to catch this case.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #ifdef __STDC__
4186 # include <limits.h>
4187 #else
4188 # include <assert.h>
4189 #endif
4190 Syntax error
4191 _ACEOF
4192 if ac_fn_c_try_cpp "$LINENO"; then :
4194 else
4195 # Broken: fails on valid input.
4196 continue
4198 rm -f conftest.err conftest.i conftest.$ac_ext
4200 # OK, works on sane cases. Now check whether nonexistent headers
4201 # can be detected and how.
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #include <ac_nonexistent.h>
4205 _ACEOF
4206 if ac_fn_c_try_cpp "$LINENO"; then :
4207 # Broken: success on invalid input.
4208 continue
4209 else
4210 # Passes both tests.
4211 ac_preproc_ok=:
4212 break
4214 rm -f conftest.err conftest.i conftest.$ac_ext
4216 done
4217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4218 rm -f conftest.i conftest.err conftest.$ac_ext
4219 if $ac_preproc_ok; then :
4221 else
4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4225 See \`config.log' for more details" "$LINENO" 5 ; }
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235 # Check for a compatible awk
4236 for ac_prog in gawk nawk
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if test "${ac_cv_prog_AWK+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$AWK"; then
4246 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_AWK="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 AWK=$ac_cv_prog_AWK
4266 if test -n "$AWK"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4268 $as_echo "$AWK" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$AWK" && break
4276 done
4278 if test "$AWK" = ""; then
4279 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4281 # Extract the first word of "mmake", so it can be a program name with args.
4282 set dummy mmake; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if test "${ac_cv_prog_MMAKE+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test -n "$MMAKE"; then
4289 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298 ac_cv_prog_MMAKE="mmake "
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 break 2
4302 done
4303 done
4304 IFS=$as_save_IFS
4308 MMAKE=$ac_cv_prog_MMAKE
4309 if test -n "$MMAKE"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4311 $as_echo "$MMAKE" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4319 # Perform some default variable assignments. Note all of these will be
4320 # Regenerated from the script, so there is no need to cache them.
4322 aros_host_cpp="$CPP"
4323 aros_host_cc="$CC"
4324 aros_host_cxx="$CXX"
4325 if test "$GCC" = "yes"; then
4326 aros_gcc_ld=`$CC -print-prog-name=ld`
4327 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4328 set dummy `basename $aros_gcc_ld`; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 case $aros_host_ld in
4335 [\\/]* | ?:[\\/]*)
4336 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in `dirname $aros_gcc_ld`
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4355 esac
4357 aros_host_ld=$ac_cv_path_aros_host_ld
4358 if test -n "$aros_host_ld"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4360 $as_echo "$aros_host_ld" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4368 if test "$aros_host_ld" = ""; then
4369 # Extract the first word of "ld", so it can be a program name with args.
4370 set dummy ld; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 case $aros_host_ld in
4377 [\\/]* | ?:[\\/]*)
4378 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4392 done
4393 done
4394 IFS=$as_save_IFS
4397 esac
4399 aros_host_ld=$ac_cv_path_aros_host_ld
4400 if test -n "$aros_host_ld"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4402 $as_echo "$aros_host_ld" >&6; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4410 if test "$aros_host_ld" = ""; then
4411 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4413 aros_host_make="make"
4414 aros_host_cflags=$CFLAGS
4415 aros_host_cxxflags=$CXXFLAGS
4416 aros_host_ldflags=$LDFLAGS
4417 aros_host_debug="-g -O0"
4418 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4419 aros_host_mkargs="--no-print-directory"
4420 aros_host_exe_suffix="$EXEEXT"
4421 aros_host_lib_suffix=""
4423 # Ignore all compliance, AROS ROMs = 0
4424 # KickStart v1.0 = 30
4425 # KickStart v1.3 = 34
4426 # KickStart v2.0 = 37
4427 # KickStart v3.0 = 39
4428 # KickStart v3.1 = 40
4429 # AmigaOS v3.5 = 44
4430 aros_amigaos_compliance=0
4432 for ac_prog in aclocal aclocal19 aclocal-1.9
4434 # Extract the first word of "$ac_prog", so it can be a program name with args.
4435 set dummy $ac_prog; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if test -n "$aros_host_aclocal"; then
4442 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_aros_host_aclocal="$ac_prog"
4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4455 done
4456 done
4457 IFS=$as_save_IFS
4461 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4462 if test -n "$aros_host_aclocal"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4464 $as_echo "$aros_host_aclocal" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4471 test -n "$aros_host_aclocal" && break
4472 done
4474 for ac_prog in autoconf autoconf259 autoconf253
4476 # Extract the first word of "$ac_prog", so it can be a program name with args.
4477 set dummy $ac_prog; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$aros_host_autoconf"; then
4484 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_aros_host_autoconf="$ac_prog"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4503 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4504 if test -n "$aros_host_autoconf"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4506 $as_echo "$aros_host_autoconf" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4513 test -n "$aros_host_autoconf" && break
4514 done
4516 for ac_prog in autoheader autoheader259 autoheader253
4518 # Extract the first word of "$ac_prog", so it can be a program name with args.
4519 set dummy $ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$aros_host_autoheader"; then
4526 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_aros_host_autoheader="$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4541 IFS=$as_save_IFS
4545 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4546 if test -n "$aros_host_autoheader"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4548 $as_echo "$aros_host_autoheader" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4555 test -n "$aros_host_autoheader" && break
4556 done
4558 for ac_prog in automake automake19 automake-1.9
4560 # Extract the first word of "$ac_prog", so it can be a program name with args.
4561 set dummy $ac_prog; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$aros_host_automake"; then
4568 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_aros_host_automake="$ac_prog"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 aros_host_automake=$ac_cv_prog_aros_host_automake
4588 if test -n "$aros_host_automake"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4590 $as_echo "$aros_host_automake" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4597 test -n "$aros_host_automake" && break
4598 done
4601 if test "$aros_host_aclocal" = ""; then
4602 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4604 if test "$aros_host_automake" = ""; then
4605 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4608 case "$aros_host_cc" in
4609 *gcc*)
4610 aros_host_cc_pipe="-pipe"
4612 icc)
4613 aros_host_cc_pipe=""
4616 aros_host_cc_pipe=""
4618 esac
4620 aros_kernel_cc_includes=""
4621 aros_target_cc_includes=""
4623 # ----------------------------------------------------------------------------------------
4624 # Host-specific defaults
4626 # This is the main host configuration section. It is where the host
4627 # can change the values of any variables it needs to change. We do
4628 # not look at anything that compiles to the target yet, we'll get
4629 # to that later.
4631 case "$host_os" in
4632 aros*)
4633 aros_host_arch="aros"
4634 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4635 case "$host_cpu" in
4636 *i?86*)
4637 aros_host_cpu="i386"
4639 *x86_64*)
4640 aros_host_cpu="x86_64"
4642 *powerpc*)
4643 aros_host_cpu="ppc"
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4647 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4648 aros_host_cpu="$host_cpu"
4650 esac
4653 linux*)
4654 aros_host_arch="linux"
4655 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4656 android_build_os="linux-x86"
4657 android_tool="android"
4658 default_android_sdk="/opt/android-sdk-linux_x86"
4659 case "$host_cpu" in
4660 *i?86*)
4661 aros_host_cpu="i386"
4663 *x86_64*)
4664 aros_host_cpu="x86_64"
4666 *m68k*)
4667 aros_host_cpu="m68k"
4669 *powerpc*)
4670 aros_host_cpu="ppc"
4672 *arm*)
4673 aros_host_cpu="arm"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4677 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4678 aros_host_cpu="$host_cpu"
4680 esac
4683 freebsd*)
4684 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4685 aros_host_make="gmake"
4686 aros_host_arch="freebsd"
4687 aros_host_cpu="i386"
4689 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4691 case $host_os in
4692 freebsd[234]*)
4693 aros_object_format="elf_i386"
4697 aros_object_format="elf_i386_fbsd"
4699 esac
4703 darwin*)
4704 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4705 aros_host_arch="darwin"
4706 android_build_os="darwin-x86"
4707 android_tool="android"
4708 default_android_sdk="/android-sdk-mac_x86"
4709 case "$host_cpu" in
4710 *i?86*)
4711 aros_host_cpu="i386"
4713 *x86_64*)
4714 aros_host_cpu="x86_64"
4716 *powerpc*)
4717 aros_host_cpu="ppc"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4721 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4722 aros_host_cpu="$host_cpu"
4724 esac
4726 aros_host_ldflags="$aros_host_ldflags -liconv"
4730 dragonfly*)
4731 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4732 aros_host_make="gmake"
4733 aros_host_arch="dragonfly"
4734 case $host_cpu in
4735 *i?86*)
4736 aros_host_cpu="i386"
4738 *amd64*)
4739 aros_host_cpu="x86_64"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4743 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4744 aros_host_cpu="$host_cpu"
4746 esac
4749 netbsd*)
4750 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4751 aros_host_make="gmake"
4752 aros_host_arch="netbsd"
4753 case "$host_cpu" in
4754 *i?86*)
4755 aros_host_cpu="i386"
4757 *m68k*)
4758 aros_host_cpu="m68k"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4762 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4763 aros_host_cpu="$host_cpu"
4765 esac
4766 aros_host_lib_suffix=".0.0"
4769 openbsd*)
4770 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4771 aros_host_make="gmake"
4772 aros_host_arch="openbsd"
4773 case "$host_cpu" in
4774 *i?86*)
4775 aros_host_cpu="i386"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4779 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4780 aros_host_cpu="$host_cpu"
4782 esac
4785 solaris*)
4786 aros_host_arch="solaris"
4787 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4788 case "$host_cpu" in
4789 *i?86*)
4790 aros_host_cpu="i386"
4792 *sparc*)
4793 aros_host_cpu="sparc"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4797 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4798 aros_host_cpu="$host_cpu"
4800 esac
4803 morphos*)
4804 aros_host_arch="morphos"
4805 aros_host_cpu="ppc"
4808 amiga*)
4809 aros_host_arch="amiga"
4810 SORT="/gg/bin/sort"
4811 TEST="/gg/bin/test"
4812 UNIQ="/gg/bin/uniq"
4813 FOR="for"
4814 TOUCH="/gg/bin/touch"
4815 case "$host_cpu" in
4816 *m68k*)
4817 aros_host_cpu="m68k"
4819 *powerpc*)
4820 aros_host_cpu="ppc"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4824 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4825 aros_host_cpu="$host_cpu"
4827 esac
4830 cygwin*)
4831 aros_host_arch="cygwin"
4832 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4833 android_build_os="windows"
4834 android_tool="android.bat"
4835 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4837 case "$host_cpu" in
4838 *i?86*)
4839 aros_host_cpu="i386"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4843 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4844 aros_host_cpu="$host_cpu"
4846 esac
4849 mingw32*)
4850 aros_host_arch="mingw32"
4851 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4852 android_build_os="windows"
4853 android_tool="android.bat"
4854 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4856 case "$host_cpu" in
4857 *i?86*)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4860 $as_echo_n "checking for Windows native gcc target... " >&6; }
4861 host_cpu=`gcc -dumpmachine`
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4863 $as_echo "$host_cpu" >&6; }
4866 esac
4868 case "$host_cpu" in
4869 *i?86*)
4870 aros_host_cpu="i386"
4873 mingw32*)
4874 aros_host_cpu="i386"
4877 *x86_64*)
4878 aros_host_cpu="x86_64"
4879 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4884 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4885 aros_host_cpu="$host_cpu"
4887 esac
4890 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4892 esac
4894 # Extract the first word of "ar", so it can be a program name with args.
4895 set dummy ar; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$aros_host_ar"; then
4902 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_prog_aros_host_ar="ar cr"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4915 done
4916 done
4917 IFS=$as_save_IFS
4921 aros_host_ar=$ac_cv_prog_aros_host_ar
4922 if test -n "$aros_host_ar"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4924 $as_echo "$aros_host_ar" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4931 if test "$aros_host_ar" = ""; then
4932 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4934 # Extract the first word of "ranlib", so it can be a program name with args.
4935 set dummy ranlib; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 if test -n "$aros_host_ranlib"; then
4942 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 ac_cv_prog_aros_host_ranlib="ranlib "
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4955 done
4956 done
4957 IFS=$as_save_IFS
4961 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4962 if test -n "$aros_host_ranlib"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4964 $as_echo "$aros_host_ranlib" >&6; }
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4971 if test "$aros_host_ranlib" = ""; then
4972 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4974 # Extract the first word of "strip", so it can be a program name with args.
4975 set dummy strip; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -n "$aros_host_strip"; then
4982 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_aros_host_strip="strip "
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4995 done
4996 done
4997 IFS=$as_save_IFS
5001 aros_host_strip=$ac_cv_prog_aros_host_strip
5002 if test -n "$aros_host_strip"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5004 $as_echo "$aros_host_strip" >&6; }
5005 else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5011 if test "$aros_host_strip" = ""; then
5012 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5015 # Extract the first word of "rm", so it can be a program name with args.
5016 set dummy rm; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_prog_RM+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$RM"; then
5023 ac_cv_prog_RM="$RM" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_prog_RM="rm -rf"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5036 done
5037 done
5038 IFS=$as_save_IFS
5042 RM=$ac_cv_prog_RM
5043 if test -n "$RM"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5045 $as_echo "$RM" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 if test "$RM" = ""; then
5053 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5055 # Extract the first word of "cp", so it can be a program name with args.
5056 set dummy cp; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if test "${ac_cv_prog_CP+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$CP"; then
5063 ac_cv_prog_CP="$CP" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_prog_CP="cp "
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5082 CP=$ac_cv_prog_CP
5083 if test -n "$CP"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5085 $as_echo "$CP" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 if test "$CP" = ""; then
5093 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5095 # Extract the first word of "mv", so it can be a program name with args.
5096 set dummy mv; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if test "${ac_cv_prog_MV+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$MV"; then
5103 ac_cv_prog_MV="$MV" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_MV="mv "
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 MV=$ac_cv_prog_MV
5123 if test -n "$MV"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5125 $as_echo "$MV" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 if test "$MV" = ""; then
5133 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5135 # Extract the first word of "echo", so it can be a program name with args.
5136 set dummy echo; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if test "${ac_cv_prog_ECHO+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$ECHO"; then
5143 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ECHO="echo "
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 ECHO=$ac_cv_prog_ECHO
5163 if test -n "$ECHO"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5165 $as_echo "$ECHO" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5172 if test "$ECHO" = ""; then
5173 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5175 # Extract the first word of "mkdir", so it can be a program name with args.
5176 set dummy mkdir; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if test "${ac_cv_prog_MKDIR+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$MKDIR"; then
5183 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_MKDIR="mkdir -p"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 MKDIR=$ac_cv_prog_MKDIR
5203 if test -n "$MKDIR"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5205 $as_echo "$MKDIR" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 if test "$MKDIR" = ""; then
5213 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5215 # Extract the first word of "touch", so it can be a program name with args.
5216 set dummy touch; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_prog_TOUCH+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$TOUCH"; then
5223 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_TOUCH="touch "
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5236 done
5237 done
5238 IFS=$as_save_IFS
5242 TOUCH=$ac_cv_prog_TOUCH
5243 if test -n "$TOUCH"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5245 $as_echo "$TOUCH" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5252 if test "$TOUCH" = ""; then
5253 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5255 # Extract the first word of "sort", so it can be a program name with args.
5256 set dummy sort; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_prog_SORT+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$SORT"; then
5263 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_SORT="sort "
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5282 SORT=$ac_cv_prog_SORT
5283 if test -n "$SORT"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5285 $as_echo "$SORT" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5292 if test "$SORT" = ""; then
5293 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5295 # Extract the first word of "uniq", so it can be a program name with args.
5296 set dummy uniq; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if test "${ac_cv_prog_UNIQ+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$UNIQ"; then
5303 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312 ac_cv_prog_UNIQ="uniq "
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5318 IFS=$as_save_IFS
5322 UNIQ=$ac_cv_prog_UNIQ
5323 if test -n "$UNIQ"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5325 $as_echo "$UNIQ" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5332 if test "$UNIQ" = ""; then
5333 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5335 # Extract the first word of "true", so it can be a program name with args.
5336 set dummy true; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if test "${ac_cv_prog_NOP+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$NOP"; then
5343 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_prog_NOP="true "
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5358 IFS=$as_save_IFS
5362 NOP=$ac_cv_prog_NOP
5363 if test -n "$NOP"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5365 $as_echo "$NOP" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5372 if test "$NOP" = ""; then
5373 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5375 # Extract the first word of "cat", so it can be a program name with args.
5376 set dummy cat; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if test "${ac_cv_prog_CAT+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -n "$CAT"; then
5383 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_CAT="cat "
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5398 IFS=$as_save_IFS
5402 CAT=$ac_cv_prog_CAT
5403 if test -n "$CAT"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5405 $as_echo "$CAT" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5412 if test "$CAT" = ""; then
5413 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5415 # Extract the first word of "bison", so it can be a program name with args.
5416 set dummy bison; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if test "${ac_cv_prog_BISON+set}" = set; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$BISON"; then
5423 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5432 ac_cv_prog_BISON="bison "
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5442 BISON=$ac_cv_prog_BISON
5443 if test -n "$BISON"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5445 $as_echo "$BISON" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5452 if test "$BISON" = ""; then
5453 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5455 # Extract the first word of "flex", so it can be a program name with args.
5456 set dummy flex; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_prog_FLEX+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$FLEX"; then
5463 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_prog_FLEX="flex "
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5476 done
5477 done
5478 IFS=$as_save_IFS
5482 FLEX=$ac_cv_prog_FLEX
5483 if test -n "$FLEX"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5485 $as_echo "$FLEX" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5492 if test "$FLEX" = ""; then
5493 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5495 # Extract the first word of "pngtopnm", so it can be a program name with args.
5496 set dummy pngtopnm; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$PNGTOPNM"; then
5503 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_PNGTOPNM="pngtopnm "
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5516 done
5517 done
5518 IFS=$as_save_IFS
5522 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5523 if test -n "$PNGTOPNM"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5525 $as_echo "$PNGTOPNM" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 if test "$PNGTOPNM" = ""; then
5533 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5535 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5536 set dummy ppmtoilbm; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$PPMTOILBM"; then
5543 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5556 done
5557 done
5558 IFS=$as_save_IFS
5562 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5563 if test -n "$PPMTOILBM"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5565 $as_echo "$PPMTOILBM" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5572 if test "$PPMTOILBM" = ""; then
5573 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5575 # Extract the first word of "sed", so it can be a program name with args.
5576 set dummy sed; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if test "${ac_cv_prog_SED+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$SED"; then
5583 ac_cv_prog_SED="$SED" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_SED="sed "
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5602 SED=$ac_cv_prog_SED
5603 if test -n "$SED"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5605 $as_echo "$SED" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5612 if test "$SED" = ""; then
5613 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5615 # Extract the first word of "chmod", so it can be a program name with args.
5616 set dummy chmod; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$CHMOD"; then
5623 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_CHMOD="chmod "
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5636 done
5637 done
5638 IFS=$as_save_IFS
5642 CHMOD=$ac_cv_prog_CHMOD
5643 if test -n "$CHMOD"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5645 $as_echo "$CHMOD" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5652 if test "$CHMOD" = ""; then
5653 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5655 # Extract the first word of "patch", so it can be a program name with args.
5656 set dummy patch; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if test "${ac_cv_prog_PATCH+set}" = set; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 if test -n "$PATCH"; then
5663 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5664 else
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_prog_PATCH="patch "
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5676 done
5677 done
5678 IFS=$as_save_IFS
5682 PATCH=$ac_cv_prog_PATCH
5683 if test -n "$PATCH"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5685 $as_echo "$PATCH" >&6; }
5686 else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5692 if test "$PATCH" = ""; then
5693 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5700 if test -n "$PYTHON"; then
5701 # If the user set $PYTHON, use it and don't search something else.
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5703 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5704 prog="import sys, string
5705 # split strings by '.' and convert to numeric. Append some zeros
5706 # because we need at least 4 digits for the hex conversion.
5707 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5708 minverhex = 0
5709 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5710 sys.exit(sys.hexversion < minverhex)"
5711 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5712 ($PYTHON -c "$prog") >&5 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; then :
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5717 $as_echo "yes" >&6; }
5718 else
5719 as_fn_error $? "too old" "$LINENO" 5
5721 am_display_PYTHON=$PYTHON
5722 else
5723 # Otherwise, try each interpreter until we find one that satisfies
5724 # VERSION.
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5726 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5727 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5731 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
5732 test "$am_cv_pathless_PYTHON" = none && break
5733 prog="import sys, string
5734 # split strings by '.' and convert to numeric. Append some zeros
5735 # because we need at least 4 digits for the hex conversion.
5736 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5737 minverhex = 0
5738 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5739 sys.exit(sys.hexversion < minverhex)"
5740 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5741 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; then :
5745 break
5747 done
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5750 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5751 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5752 if test "$am_cv_pathless_PYTHON" = none; then
5753 PYTHON=:
5754 else
5755 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5756 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_path_PYTHON+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 case $PYTHON in
5763 [\\/]* | ?:[\\/]*)
5764 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5778 done
5779 done
5780 IFS=$as_save_IFS
5783 esac
5785 PYTHON=$ac_cv_path_PYTHON
5786 if test -n "$PYTHON"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5788 $as_echo "$PYTHON" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5796 am_display_PYTHON=$am_cv_pathless_PYTHON
5800 if test "$PYTHON" = :; then
5801 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5802 else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5806 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5807 if test "${am_cv_python_version+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5813 $as_echo "$am_cv_python_version" >&6; }
5814 PYTHON_VERSION=$am_cv_python_version
5818 PYTHON_PREFIX='${prefix}'
5820 PYTHON_EXEC_PREFIX='${exec_prefix}'
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5825 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5826 if test "${am_cv_python_platform+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5832 $as_echo "$am_cv_python_platform" >&6; }
5833 PYTHON_PLATFORM=$am_cv_python_platform
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5839 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5840 if test "${am_cv_python_pythondir+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5844 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5847 $as_echo "$am_cv_python_pythondir" >&6; }
5848 pythondir=$am_cv_python_pythondir
5852 pkgpythondir=\${pythondir}/$PACKAGE
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5856 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5857 if test "${am_cv_python_pyexecdir+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5861 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5864 $as_echo "$am_cv_python_pyexecdir" >&6; }
5865 pyexecdir=$am_cv_python_pyexecdir
5869 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5877 FOR=for
5879 IF=if
5881 TEST=test
5883 CMP=cmp
5887 # Check for some includes for the X11 HIDD and the kernel
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5891 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5892 if test "${ac_cv_path_GREP+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if test -z "$GREP"; then
5896 ac_path_GREP_found=false
5897 # Loop through the user's path and test for each of PROGNAME-LIST
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_prog in grep ggrep; do
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5906 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5907 # Check for GNU ac_path_GREP and select it if it is found.
5908 # Check for GNU $ac_path_GREP
5909 case `"$ac_path_GREP" --version 2>&1` in
5910 *GNU*)
5911 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5913 ac_count=0
5914 $as_echo_n 0123456789 >"conftest.in"
5915 while :
5917 cat "conftest.in" "conftest.in" >"conftest.tmp"
5918 mv "conftest.tmp" "conftest.in"
5919 cp "conftest.in" "conftest.nl"
5920 $as_echo 'GREP' >> "conftest.nl"
5921 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5923 as_fn_arith $ac_count + 1 && ac_count=$as_val
5924 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5925 # Best one so far, save it but keep looking for a better one
5926 ac_cv_path_GREP="$ac_path_GREP"
5927 ac_path_GREP_max=$ac_count
5929 # 10*(2^10) chars as input seems more than enough
5930 test $ac_count -gt 10 && break
5931 done
5932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5933 esac
5935 $ac_path_GREP_found && break 3
5936 done
5937 done
5938 done
5939 IFS=$as_save_IFS
5940 if test -z "$ac_cv_path_GREP"; then
5941 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5943 else
5944 ac_cv_path_GREP=$GREP
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5949 $as_echo "$ac_cv_path_GREP" >&6; }
5950 GREP="$ac_cv_path_GREP"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5954 $as_echo_n "checking for egrep... " >&6; }
5955 if test "${ac_cv_path_EGREP+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5959 then ac_cv_path_EGREP="$GREP -E"
5960 else
5961 if test -z "$EGREP"; then
5962 ac_path_EGREP_found=false
5963 # Loop through the user's path and test for each of PROGNAME-LIST
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_prog in egrep; do
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5972 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5973 # Check for GNU ac_path_EGREP and select it if it is found.
5974 # Check for GNU $ac_path_EGREP
5975 case `"$ac_path_EGREP" --version 2>&1` in
5976 *GNU*)
5977 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5979 ac_count=0
5980 $as_echo_n 0123456789 >"conftest.in"
5981 while :
5983 cat "conftest.in" "conftest.in" >"conftest.tmp"
5984 mv "conftest.tmp" "conftest.in"
5985 cp "conftest.in" "conftest.nl"
5986 $as_echo 'EGREP' >> "conftest.nl"
5987 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5989 as_fn_arith $ac_count + 1 && ac_count=$as_val
5990 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5991 # Best one so far, save it but keep looking for a better one
5992 ac_cv_path_EGREP="$ac_path_EGREP"
5993 ac_path_EGREP_max=$ac_count
5995 # 10*(2^10) chars as input seems more than enough
5996 test $ac_count -gt 10 && break
5997 done
5998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5999 esac
6001 $ac_path_EGREP_found && break 3
6002 done
6003 done
6004 done
6005 IFS=$as_save_IFS
6006 if test -z "$ac_cv_path_EGREP"; then
6007 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6009 else
6010 ac_cv_path_EGREP=$EGREP
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6016 $as_echo "$ac_cv_path_EGREP" >&6; }
6017 EGREP="$ac_cv_path_EGREP"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6021 $as_echo_n "checking for ANSI C header files... " >&6; }
6022 if test "${ac_cv_header_stdc+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 #include <stdlib.h>
6028 #include <stdarg.h>
6029 #include <string.h>
6030 #include <float.h>
6033 main ()
6037 return 0;
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6041 ac_cv_header_stdc=yes
6042 else
6043 ac_cv_header_stdc=no
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 if test $ac_cv_header_stdc = yes; then
6048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <string.h>
6053 _ACEOF
6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 $EGREP "memchr" >/dev/null 2>&1; then :
6057 else
6058 ac_cv_header_stdc=no
6060 rm -f conftest*
6064 if test $ac_cv_header_stdc = yes; then
6065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 #include <stdlib.h>
6070 _ACEOF
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 $EGREP "free" >/dev/null 2>&1; then :
6074 else
6075 ac_cv_header_stdc=no
6077 rm -f conftest*
6081 if test $ac_cv_header_stdc = yes; then
6082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6083 if test "$cross_compiling" = yes; then :
6085 else
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #include <ctype.h>
6089 #include <stdlib.h>
6090 #if ((' ' & 0x0FF) == 0x020)
6091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6093 #else
6094 # define ISLOWER(c) \
6095 (('a' <= (c) && (c) <= 'i') \
6096 || ('j' <= (c) && (c) <= 'r') \
6097 || ('s' <= (c) && (c) <= 'z'))
6098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6099 #endif
6101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6103 main ()
6105 int i;
6106 for (i = 0; i < 256; i++)
6107 if (XOR (islower (i), ISLOWER (i))
6108 || toupper (i) != TOUPPER (i))
6109 return 2;
6110 return 0;
6112 _ACEOF
6113 if ac_fn_c_try_run "$LINENO"; then :
6115 else
6116 ac_cv_header_stdc=no
6118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6119 conftest.$ac_objext conftest.beam conftest.$ac_ext
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6125 $as_echo "$ac_cv_header_stdc" >&6; }
6126 if test $ac_cv_header_stdc = yes; then
6128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6134 inttypes.h stdint.h unistd.h
6135 do :
6136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6140 cat >>confdefs.h <<_ACEOF
6141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6142 _ACEOF
6146 done
6149 for ac_header in sys/ipc.h sys/shm.h \
6150 sys/mmap.h sys/mman.h sysexits.h \
6151 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6153 do :
6154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6156 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6159 _ACEOF
6163 done
6166 for ac_header in sys/mount.h
6167 do :
6168 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6170 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
6171 cat >>confdefs.h <<_ACEOF
6172 #define HAVE_SYS_MOUNT_H 1
6173 _ACEOF
6177 done
6180 ac_header_dirent=no
6181 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6182 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6184 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6185 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 #include <sys/types.h>
6191 #include <$ac_hdr>
6194 main ()
6196 if ((DIR *) 0)
6197 return 0;
6199 return 0;
6201 _ACEOF
6202 if ac_fn_c_try_compile "$LINENO"; then :
6203 eval "$as_ac_Header=yes"
6204 else
6205 eval "$as_ac_Header=no"
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 eval ac_res=\$$as_ac_Header
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6211 $as_echo "$ac_res" >&6; }
6212 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6213 cat >>confdefs.h <<_ACEOF
6214 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6215 _ACEOF
6217 ac_header_dirent=$ac_hdr; break
6220 done
6221 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6222 if test $ac_header_dirent = dirent.h; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6224 $as_echo_n "checking for library containing opendir... " >&6; }
6225 if test "${ac_cv_search_opendir+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 ac_func_search_save_LIBS=$LIBS
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6232 /* Override any GCC internal prototype to avoid an error.
6233 Use char because int might match the return type of a GCC
6234 builtin and then its argument prototype would still apply. */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 char opendir ();
6240 main ()
6242 return opendir ();
6244 return 0;
6246 _ACEOF
6247 for ac_lib in '' dir; do
6248 if test -z "$ac_lib"; then
6249 ac_res="none required"
6250 else
6251 ac_res=-l$ac_lib
6252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6254 if ac_fn_c_try_link "$LINENO"; then :
6255 ac_cv_search_opendir=$ac_res
6257 rm -f core conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext
6259 if test "${ac_cv_search_opendir+set}" = set; then :
6260 break
6262 done
6263 if test "${ac_cv_search_opendir+set}" = set; then :
6265 else
6266 ac_cv_search_opendir=no
6268 rm conftest.$ac_ext
6269 LIBS=$ac_func_search_save_LIBS
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6272 $as_echo "$ac_cv_search_opendir" >&6; }
6273 ac_res=$ac_cv_search_opendir
6274 if test "$ac_res" != no; then :
6275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6281 $as_echo_n "checking for library containing opendir... " >&6; }
6282 if test "${ac_cv_search_opendir+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 ac_func_search_save_LIBS=$LIBS
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6289 /* Override any GCC internal prototype to avoid an error.
6290 Use char because int might match the return type of a GCC
6291 builtin and then its argument prototype would still apply. */
6292 #ifdef __cplusplus
6293 extern "C"
6294 #endif
6295 char opendir ();
6297 main ()
6299 return opendir ();
6301 return 0;
6303 _ACEOF
6304 for ac_lib in '' x; do
6305 if test -z "$ac_lib"; then
6306 ac_res="none required"
6307 else
6308 ac_res=-l$ac_lib
6309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6311 if ac_fn_c_try_link "$LINENO"; then :
6312 ac_cv_search_opendir=$ac_res
6314 rm -f core conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext
6316 if test "${ac_cv_search_opendir+set}" = set; then :
6317 break
6319 done
6320 if test "${ac_cv_search_opendir+set}" = set; then :
6322 else
6323 ac_cv_search_opendir=no
6325 rm conftest.$ac_ext
6326 LIBS=$ac_func_search_save_LIBS
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6329 $as_echo "$ac_cv_search_opendir" >&6; }
6330 ac_res=$ac_cv_search_opendir
6331 if test "$ac_res" != no; then :
6332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6339 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6340 if test "${ac_cv_header_stat_broken+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 #include <sys/types.h>
6346 #include <sys/stat.h>
6348 #if defined S_ISBLK && defined S_IFDIR
6349 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6350 #endif
6352 #if defined S_ISBLK && defined S_IFCHR
6353 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6354 #endif
6356 #if defined S_ISLNK && defined S_IFREG
6357 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6358 #endif
6360 #if defined S_ISSOCK && defined S_IFREG
6361 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6362 #endif
6364 _ACEOF
6365 if ac_fn_c_try_compile "$LINENO"; then :
6366 ac_cv_header_stat_broken=no
6367 else
6368 ac_cv_header_stat_broken=yes
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6373 $as_echo "$ac_cv_header_stat_broken" >&6; }
6374 if test $ac_cv_header_stat_broken = yes; then
6376 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6381 $as_echo_n "checking for ANSI C header files... " >&6; }
6382 if test "${ac_cv_header_stdc+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #include <stdlib.h>
6388 #include <stdarg.h>
6389 #include <string.h>
6390 #include <float.h>
6393 main ()
6397 return 0;
6399 _ACEOF
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401 ac_cv_header_stdc=yes
6402 else
6403 ac_cv_header_stdc=no
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 if test $ac_cv_header_stdc = yes; then
6408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 #include <string.h>
6413 _ACEOF
6414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6415 $EGREP "memchr" >/dev/null 2>&1; then :
6417 else
6418 ac_cv_header_stdc=no
6420 rm -f conftest*
6424 if test $ac_cv_header_stdc = yes; then
6425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 #include <stdlib.h>
6430 _ACEOF
6431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6432 $EGREP "free" >/dev/null 2>&1; then :
6434 else
6435 ac_cv_header_stdc=no
6437 rm -f conftest*
6441 if test $ac_cv_header_stdc = yes; then
6442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6443 if test "$cross_compiling" = yes; then :
6445 else
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448 #include <ctype.h>
6449 #include <stdlib.h>
6450 #if ((' ' & 0x0FF) == 0x020)
6451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6453 #else
6454 # define ISLOWER(c) \
6455 (('a' <= (c) && (c) <= 'i') \
6456 || ('j' <= (c) && (c) <= 'r') \
6457 || ('s' <= (c) && (c) <= 'z'))
6458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6459 #endif
6461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6463 main ()
6465 int i;
6466 for (i = 0; i < 256; i++)
6467 if (XOR (islower (i), ISLOWER (i))
6468 || toupper (i) != TOUPPER (i))
6469 return 2;
6470 return 0;
6472 _ACEOF
6473 if ac_fn_c_try_run "$LINENO"; then :
6475 else
6476 ac_cv_header_stdc=no
6478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6479 conftest.$ac_objext conftest.beam conftest.$ac_ext
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6485 $as_echo "$ac_cv_header_stdc" >&6; }
6486 if test $ac_cv_header_stdc = yes; then
6488 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6493 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6494 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 #include <sys/types.h>
6500 #include <sys/wait.h>
6501 #ifndef WEXITSTATUS
6502 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6503 #endif
6504 #ifndef WIFEXITED
6505 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6506 #endif
6509 main ()
6511 int s;
6512 wait (&s);
6513 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6515 return 0;
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 ac_cv_header_sys_wait_h=yes
6520 else
6521 ac_cv_header_sys_wait_h=no
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6526 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6527 if test $ac_cv_header_sys_wait_h = yes; then
6529 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6534 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6535 if test "${ac_cv_header_time+set}" = set; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 #include <sys/types.h>
6541 #include <sys/time.h>
6542 #include <time.h>
6545 main ()
6547 if ((struct tm *) 0)
6548 return 0;
6550 return 0;
6552 _ACEOF
6553 if ac_fn_c_try_compile "$LINENO"; then :
6554 ac_cv_header_time=yes
6555 else
6556 ac_cv_header_time=no
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6561 $as_echo "$ac_cv_header_time" >&6; }
6562 if test $ac_cv_header_time = yes; then
6564 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6568 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6569 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6571 cat >>confdefs.h <<_ACEOF
6572 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6573 _ACEOF
6576 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6581 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6582 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6584 cat >>confdefs.h <<_ACEOF
6585 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6586 _ACEOF
6589 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6591 else
6592 case " $LIBOBJS " in
6593 *" fileblocks.$ac_objext "* ) ;;
6594 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6596 esac
6601 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6602 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6604 cat >>confdefs.h <<_ACEOF
6605 #define HAVE_STRUCT_STAT_ST_RDEV 1
6606 _ACEOF
6609 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6615 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6616 if test "${ac_cv_struct_tm+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <sys/types.h>
6622 #include <time.h>
6625 main ()
6627 struct tm tm;
6628 int *p = &tm.tm_sec;
6629 return !p;
6631 return 0;
6633 _ACEOF
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635 ac_cv_struct_tm=time.h
6636 else
6637 ac_cv_struct_tm=sys/time.h
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6642 $as_echo "$ac_cv_struct_tm" >&6; }
6643 if test $ac_cv_struct_tm = sys/time.h; then
6645 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6649 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6650 #include <$ac_cv_struct_tm>
6653 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6655 cat >>confdefs.h <<_ACEOF
6656 #define HAVE_STRUCT_TM_TM_ZONE 1
6657 _ACEOF
6662 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6664 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6666 else
6667 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6669 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6670 ac_have_decl=1
6671 else
6672 ac_have_decl=0
6675 cat >>confdefs.h <<_ACEOF
6676 #define HAVE_DECL_TZNAME $ac_have_decl
6677 _ACEOF
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6680 $as_echo_n "checking for tzname... " >&6; }
6681 if test "${ac_cv_var_tzname+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 #include <time.h>
6687 #if !HAVE_DECL_TZNAME
6688 extern char *tzname[];
6689 #endif
6692 main ()
6694 return tzname[0][0];
6696 return 0;
6698 _ACEOF
6699 if ac_fn_c_try_link "$LINENO"; then :
6700 ac_cv_var_tzname=yes
6701 else
6702 ac_cv_var_tzname=no
6704 rm -f core conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6708 $as_echo "$ac_cv_var_tzname" >&6; }
6709 if test $ac_cv_var_tzname = yes; then
6711 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6716 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6717 if test "x$ac_cv_type_off_t" = x""yes; then :
6719 else
6721 cat >>confdefs.h <<_ACEOF
6722 #define off_t long int
6723 _ACEOF
6727 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6728 if test "x$ac_cv_type_pid_t" = x""yes; then :
6730 else
6732 cat >>confdefs.h <<_ACEOF
6733 #define pid_t int
6734 _ACEOF
6738 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6739 if test "x$ac_cv_type_size_t" = x""yes; then :
6741 else
6743 cat >>confdefs.h <<_ACEOF
6744 #define size_t unsigned int
6745 _ACEOF
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6750 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6751 if test "${ac_cv_type_uid_t+set}" = set; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <sys/types.h>
6758 _ACEOF
6759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6760 $EGREP "uid_t" >/dev/null 2>&1; then :
6761 ac_cv_type_uid_t=yes
6762 else
6763 ac_cv_type_uid_t=no
6765 rm -f conftest*
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6769 $as_echo "$ac_cv_type_uid_t" >&6; }
6770 if test $ac_cv_type_uid_t = no; then
6772 $as_echo "#define uid_t int" >>confdefs.h
6775 $as_echo "#define gid_t int" >>confdefs.h
6780 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6781 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6783 cat >>confdefs.h <<_ACEOF
6784 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6785 _ACEOF
6791 # Look for some functions
6792 for ac_func in getpagesize kqueue statfs statvfs \
6793 clone kse_create rfork_thread thr_create sa_register \
6794 getcontext makecontext setcontext sigaltstack swapcontext
6795 do :
6796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6797 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6798 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6801 _ACEOF
6804 done
6810 for ac_header in $ac_header_list
6811 do :
6812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6813 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6816 cat >>confdefs.h <<_ACEOF
6817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6818 _ACEOF
6822 done
6831 for ac_func in getpagesize
6832 do :
6833 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6834 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6835 cat >>confdefs.h <<_ACEOF
6836 #define HAVE_GETPAGESIZE 1
6837 _ACEOF
6840 done
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6843 $as_echo_n "checking for working mmap... " >&6; }
6844 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test "$cross_compiling" = yes; then :
6848 ac_cv_func_mmap_fixed_mapped=no
6849 else
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 $ac_includes_default
6853 /* malloc might have been renamed as rpl_malloc. */
6854 #undef malloc
6856 /* Thanks to Mike Haertel and Jim Avera for this test.
6857 Here is a matrix of mmap possibilities:
6858 mmap private not fixed
6859 mmap private fixed at somewhere currently unmapped
6860 mmap private fixed at somewhere already mapped
6861 mmap shared not fixed
6862 mmap shared fixed at somewhere currently unmapped
6863 mmap shared fixed at somewhere already mapped
6864 For private mappings, we should verify that changes cannot be read()
6865 back from the file, nor mmap's back from the file at a different
6866 address. (There have been systems where private was not correctly
6867 implemented like the infamous i386 svr4.0, and systems where the
6868 VM page cache was not coherent with the file system buffer cache
6869 like early versions of FreeBSD and possibly contemporary NetBSD.)
6870 For shared mappings, we should conversely verify that changes get
6871 propagated back to all the places they're supposed to be.
6873 Grep wants private fixed already mapped.
6874 The main things grep needs to know about mmap are:
6875 * does it exist and is it safe to write into the mmap'd area
6876 * how to use it (BSD variants) */
6878 #include <fcntl.h>
6879 #include <sys/mman.h>
6881 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6882 char *malloc ();
6883 #endif
6885 /* This mess was copied from the GNU getpagesize.h. */
6886 #ifndef HAVE_GETPAGESIZE
6887 # ifdef _SC_PAGESIZE
6888 # define getpagesize() sysconf(_SC_PAGESIZE)
6889 # else /* no _SC_PAGESIZE */
6890 # ifdef HAVE_SYS_PARAM_H
6891 # include <sys/param.h>
6892 # ifdef EXEC_PAGESIZE
6893 # define getpagesize() EXEC_PAGESIZE
6894 # else /* no EXEC_PAGESIZE */
6895 # ifdef NBPG
6896 # define getpagesize() NBPG * CLSIZE
6897 # ifndef CLSIZE
6898 # define CLSIZE 1
6899 # endif /* no CLSIZE */
6900 # else /* no NBPG */
6901 # ifdef NBPC
6902 # define getpagesize() NBPC
6903 # else /* no NBPC */
6904 # ifdef PAGESIZE
6905 # define getpagesize() PAGESIZE
6906 # endif /* PAGESIZE */
6907 # endif /* no NBPC */
6908 # endif /* no NBPG */
6909 # endif /* no EXEC_PAGESIZE */
6910 # else /* no HAVE_SYS_PARAM_H */
6911 # define getpagesize() 8192 /* punt totally */
6912 # endif /* no HAVE_SYS_PARAM_H */
6913 # endif /* no _SC_PAGESIZE */
6915 #endif /* no HAVE_GETPAGESIZE */
6918 main ()
6920 char *data, *data2, *data3;
6921 const char *cdata2;
6922 int i, pagesize;
6923 int fd, fd2;
6925 pagesize = getpagesize ();
6927 /* First, make a file with some known garbage in it. */
6928 data = (char *) malloc (pagesize);
6929 if (!data)
6930 return 1;
6931 for (i = 0; i < pagesize; ++i)
6932 *(data + i) = rand ();
6933 umask (0);
6934 fd = creat ("conftest.mmap", 0600);
6935 if (fd < 0)
6936 return 2;
6937 if (write (fd, data, pagesize) != pagesize)
6938 return 3;
6939 close (fd);
6941 /* Next, check that the tail of a page is zero-filled. File must have
6942 non-zero length, otherwise we risk SIGBUS for entire page. */
6943 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6944 if (fd2 < 0)
6945 return 4;
6946 cdata2 = "";
6947 if (write (fd2, cdata2, 1) != 1)
6948 return 5;
6949 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6950 if (data2 == MAP_FAILED)
6951 return 6;
6952 for (i = 0; i < pagesize; ++i)
6953 if (*(data2 + i))
6954 return 7;
6955 close (fd2);
6956 if (munmap (data2, pagesize))
6957 return 8;
6959 /* Next, try to mmap the file at a fixed address which already has
6960 something else allocated at it. If we can, also make sure that
6961 we see the same garbage. */
6962 fd = open ("conftest.mmap", O_RDWR);
6963 if (fd < 0)
6964 return 9;
6965 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6966 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6967 return 10;
6968 for (i = 0; i < pagesize; ++i)
6969 if (*(data + i) != *(data2 + i))
6970 return 11;
6972 /* Finally, make sure that changes to the mapped area do not
6973 percolate back to the file as seen by read(). (This is a bug on
6974 some variants of i386 svr4.0.) */
6975 for (i = 0; i < pagesize; ++i)
6976 *(data2 + i) = *(data2 + i) + 1;
6977 data3 = (char *) malloc (pagesize);
6978 if (!data3)
6979 return 12;
6980 if (read (fd, data3, pagesize) != pagesize)
6981 return 13;
6982 for (i = 0; i < pagesize; ++i)
6983 if (*(data + i) != *(data3 + i))
6984 return 14;
6985 close (fd);
6986 return 0;
6988 _ACEOF
6989 if ac_fn_c_try_run "$LINENO"; then :
6990 ac_cv_func_mmap_fixed_mapped=yes
6991 else
6992 ac_cv_func_mmap_fixed_mapped=no
6994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6995 conftest.$ac_objext conftest.beam conftest.$ac_ext
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7000 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7001 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7003 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7006 rm -f conftest.mmap conftest.txt
7011 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7012 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7013 aros_config_ldflags=""
7015 aros_shared_default=yes
7017 aros_shared_cflags="-fPIC"
7018 aros_shared_aflags=""
7019 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7020 aros_kernel_ldflags="-Wl,-rpath,./lib"
7022 aros_kernel_ar_flags="cr"
7023 aros_target_ar_flags="cr"
7024 aros_target_nm_flags="-C -ul"
7025 aros_target_strip_flags="--strip-unneeded -R.comment"
7027 aros_compiler_libs=
7028 aros_arch_libs=
7030 aros_target_genmap="-Wl,-Map -Xlinker"
7032 # Native flavour stuff
7033 aros_serial_debug="0"
7035 # Palm native flavour stuff
7036 aros_palm_debug_hack="0"
7038 # Unix flavour stuff
7039 aros_nesting_supervisor="0"
7041 # Collect-aros stuff: "-ius" to ignore undefined symbols
7042 ignore_undefined_symbols=""
7044 # Check for X11 by default
7045 need_x11="auto"
7047 # Leave at 'none' for no external toolchain
7048 kernel_tool_prefix="none"
7050 #-----------------------------------------------------------------------------
7053 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7054 # it switched on by default, and we use the host compiler, so it compiles AROS
7055 # code with this enabled resulting in link failures as we don't have support
7056 # for it.
7058 # We use two methods to disable it. For the host compiler (used to compile
7059 # some hosted modules), we test to see if the compiler supports stack
7060 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7061 # work on all platforms.
7063 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7064 # (this is done unconditionally, as it should have no effect on compilers
7065 # without the stack protection feature). This may be specific to the way that
7066 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7067 # strong enough to disable it in a generic way though, so we'll live with it
7068 # until another vendor ships GCC with it enabled in a different way, and deal
7069 # with it then.
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7073 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7074 save_cflags="$CFLAGS"
7075 CFLAGS="$CFLAGS -fno-stack-protector"
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7080 main ()
7084 return 0;
7086 _ACEOF
7087 if ac_fn_c_try_compile "$LINENO"; then :
7088 use_no_stack_protector="yes"
7089 else
7090 use_no_stack_protector="no"
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7094 $as_echo "$use_no_stack_protector" >&6; }
7095 if test "x-$use_no_stack_protector" = "x-yes" ; then
7096 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7098 CFLAGS="$save_cflags"
7100 #-----------------------------------------------------------------------------
7102 # Disable pointer-signedness warnings if the compiler recognises the option
7103 # (this only works for the host compiler at the moment)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7106 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7107 save_cflags="$CFLAGS"
7108 CFLAGS="$CFLAGS -Wno-pointer-sign"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7113 main ()
7117 return 0;
7119 _ACEOF
7120 if ac_fn_c_try_compile "$LINENO"; then :
7121 use_no_sign_warning="yes"
7122 else
7123 use_no_sign_warning="no"
7125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7127 $as_echo "$use_no_sign_warning" >&6; }
7128 if test "x-$use_no_sign_warning" = "x-yes" ; then
7129 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7131 CFLAGS="$save_cflags"
7133 #-----------------------------------------------------------------------------
7135 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7138 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7139 save_cflags="$CFLAGS"
7140 CFLAGS="$CFLAGS -fgnu89-inline"
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7145 main ()
7149 return 0;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"; then :
7153 use_gnu89_inline="yes"
7154 else
7155 use_gnu89_inline="no"
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7159 $as_echo "$use_gnu89_inline" >&6; }
7160 if test "x-$use_gnu89_inline" = "x-yes" ; then
7161 gnu89_inline="-fgnu89-inline"
7163 CFLAGS="$save_cflags"
7165 #-----------------------------------------------------------------------------
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7168 $as_echo_n "checking for type of build... " >&6; }
7169 # Check whether --enable-build_type was given.
7170 if test "${enable_build_type+set}" = set; then :
7171 enableval=$enable_build_type; build_type=$enableval
7172 else
7173 build_type="personal"
7177 if test "$build_type" = "nightly"; then
7178 build_type_string="NIGHTLY"
7179 elif test "$build_type" = "snapshot"; then
7180 build_type_string="SNAPSHOT"
7181 elif test "$build_type" = "milestone"; then
7182 build_type_string="MILESTONE"
7183 elif test "$build_type" = "release"; then
7184 build_type_string="RELEASE"
7185 else
7186 build_type_string="PERSONAL"
7187 build_type="personal"
7190 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7193 $as_echo "$build_type" >&6; }
7195 #-----------------------------------------------------------------------------
7196 all_debug_types="messages stack modules mungwall symbols"
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7199 $as_echo_n "checking which debug types to enable... " >&6; }
7200 # Check whether --enable-debug was given.
7201 if test "${enable_debug+set}" = set; then :
7202 enableval=$enable_debug; debug="$enableval"
7203 else
7204 debug=""
7208 if test "$debug" = "" -o "$debug" = "no"; then
7209 debug="none"
7210 elif test "$debug" = "yes"; then
7211 debug="all"
7214 if test "$debug" = "all" ; then
7215 debug="messages stack modules symbols"
7216 for d in $all_debug_types; do
7217 export aros_${d}_debug="1"
7218 done
7219 else
7220 for d in $all_debug_types; do
7221 export aros_${d}_debug="0"
7222 done
7225 if test "$debug" != "none"; then
7226 debug=`echo $debug | sed s/,/\ /g`
7227 for d in $debug; do
7228 found="0"
7229 for d2 in $all_debug_types; do
7230 if test "$d2" = "$d"; then
7231 found="1"
7232 break
7234 done
7235 if test "$found" = "0"; then
7236 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7238 export aros_${d}_debug="1"
7239 done
7240 aros_debug="yes"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7243 $as_echo "$debug" >&6; }
7245 if test "$aros_messages_debug" = "1"; then
7246 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7247 else
7248 aros_messages_debug=""
7250 if test "$aros_symbols_debug" = "1"; then
7251 aros_symbols_debug="-g"
7252 else
7253 aros_symbols_debug=""
7256 # These are the flags to pass when compiling debugged programs
7257 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7258 aros_debug_aflags=""
7259 aros_debug_ldflags="$aros_symbols_debug"
7261 #-----------------------------------------------------------------------------
7262 # Checking if we should build crosstools..
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
7264 $as_echo_n "checking whether to build crosstools... " >&6; }
7265 # Check whether --enable-crosstools was given.
7266 if test "${enable_crosstools+set}" = set; then :
7267 enableval=$enable_crosstools; crosstools="$enableval"
7268 else
7269 crosstools="yes"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
7273 $as_echo "$crosstools" >&6; }
7275 #-----------------------------------------------------------------------------
7276 # Checking for distcc and ccache.
7278 # Always apply the transforms in this particular order. Basically you should
7279 # always run 'ccache distcc compiler' in that order for the best performance.
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7282 $as_echo_n "checking whether to enable distcc... " >&6; }
7283 # Check whether --enable-distcc was given.
7284 if test "${enable_distcc+set}" = set; then :
7285 enableval=$enable_distcc; distcc="$enableval"
7286 else
7287 distcc="no"
7290 if test "$distcc" != "" -a "$distcc" != "no"; then
7291 # AC_CHECK_PROG will print out the result in this case
7292 # Extract the first word of "distcc", so it can be a program name with args.
7293 set dummy distcc; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if test "${ac_cv_path_DISTCC+set}" = set; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 case $DISTCC in
7300 [\\/]* | ?:[\\/]*)
7301 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7315 done
7316 done
7317 IFS=$as_save_IFS
7319 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7321 esac
7323 DISTCC=$ac_cv_path_DISTCC
7324 if test -n "$DISTCC"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7326 $as_echo "$DISTCC" >&6; }
7327 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7333 else
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7339 $as_echo_n "checking whether to enable ccache... " >&6; }
7340 # Check whether --enable-ccache was given.
7341 if test "${enable_ccache+set}" = set; then :
7342 enableval=$enable_ccache; ccache="$enableval"
7343 else
7344 ccache="no"
7347 if test "$ccache" != "" -a "$ccache" != "no"; then
7348 # AC_CHECK_PROG will print out the result in this case
7349 # Extract the first word of "ccache", so it can be a program name with args.
7350 set dummy ccache; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if test "${ac_cv_prog_CCACHE+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 if test -n "$CCACHE"; then
7357 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_prog_CCACHE="ccache"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7370 done
7371 done
7372 IFS=$as_save_IFS
7376 CCACHE=$ac_cv_prog_CCACHE
7377 if test -n "$CCACHE"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7379 $as_echo "$CCACHE" >&6; }
7380 else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7391 #-----------------------------------------------------------------------------
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7393 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7395 # Check whether --with-gcc-version was given.
7396 if test "${with_gcc_version+set}" = set; then :
7397 withval=$with_gcc_version; kernel_tool_version="$withval"
7398 else
7399 kernel_tool_version="default"
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7403 $as_echo "$kernel_tool_version" >&6; }
7405 #-----------------------------------------------------------------------------
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7407 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7409 # Check whether --with-gcc-version was given.
7410 if test "${with_gcc_version+set}" = set; then :
7411 withval=$with_gcc_version; target_tool_version="$withval"
7412 else
7413 target_tool_version="default"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7417 $as_echo "$target_tool_version" >&6; }
7419 #-----------------------------------------------------------------------------
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7421 $as_echo_n "checking what optimization flags to use... " >&6; }
7423 # Check whether --with-optimization was given.
7424 if test "${with_optimization+set}" = set; then :
7425 withval=$with_optimization; optimization="$withval"
7426 else
7427 optimization="unknown"
7430 if test "$optimization" = "unknown"; then
7431 if test "$debug" != "none"; then
7432 optimization="-O0"
7433 else
7434 optimization="-O2"
7437 aros_config_cflags="$aros_config_cflags $optimization"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7439 $as_echo "$optimization" >&6; }
7441 #-----------------------------------------------------------------------------
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7443 $as_echo_n "checking what paranoia flags to use... " >&6; }
7445 # Check whether --with-paranoia was given.
7446 if test "${with_paranoia+set}" = set; then :
7447 withval=$with_paranoia; paranoia_flags="$withval"
7448 else
7449 paranoia_flags="default"
7452 if test "$paranoia_flags" = "default"; then
7453 paranoia_flags=""
7454 else if test "$paranoia_flags" = "yes"; then
7455 paranoia_flags="-Wall -Werror"
7456 fi fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7458 $as_echo "$paranoia_flags" >&6; }
7459 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7461 #-----------------------------------------------------------------------------
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7463 $as_echo_n "checking what target variant to enable... " >&6; }
7464 # Check whether --enable-target_variant was given.
7465 if test "${enable_target_variant+set}" = set; then :
7466 enableval=$enable_target_variant; target_variant=$enableval
7467 else
7468 target_variant=""
7471 if test "$target_variant" = ""; then
7472 aros_target_variant=""
7473 aros_target_suffix=""
7474 enableval="none"
7475 else
7476 aros_target_variant="$target_variant"
7477 aros_target_suffix="-$target_variant"
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7480 $as_echo "$enableval" >&6; }
7482 #-----------------------------------------------------------------------------
7483 # Target-specific defaults. You can override then on a per-target basis.
7485 # Bootloader name. Currently used by PC target.
7486 target_bootloader="none"
7488 #-----------------------------------------------------------------------------
7489 # Additional options for some specific targets
7491 case "$aros_target_variant" in
7492 ios)
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7494 $as_echo_n "checking XCode path... " >&6; }
7496 # Check whether --with-xcode was given.
7497 if test "${with_xcode+set}" = set; then :
7498 withval=$with_xcode; aros_xcode_path="$withval"
7499 else
7500 aros_xcode_path="/Developer"
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7504 $as_echo "$aros_xcode_path" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7507 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7509 # Check whether --with-sdk-version was given.
7510 if test "${with_sdk_version+set}" = set; then :
7511 withval=$with_sdk_version; aros_sdk_version="$withval"
7512 else
7513 aros_sdk_version="4.1"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7517 $as_echo "$aros_sdk_version" >&6; }
7521 "android")
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7523 $as_echo_n "checking Android SDK path... " >&6; }
7525 # Check whether --with-sdk was given.
7526 if test "${with_sdk+set}" = set; then :
7527 withval=$with_sdk; aros_android_sdk="$withval"
7528 else
7529 aros_android_sdk=$default_android_sdk
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7533 $as_echo "$aros_android_sdk" >&6; }
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7536 $as_echo_n "checking Android NDK path... " >&6; }
7538 # Check whether --with-ndk was given.
7539 if test "${with_ndk+set}" = set; then :
7540 withval=$with_ndk; aros_android_ndk="$withval"
7541 else
7542 aros_android_ndk="none"
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7546 $as_echo "$aros_android_ndk" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7549 $as_echo_n "checking what Android SDK version to use... " >&6; }
7551 # Check whether --with-sdk-version was given.
7552 if test "${with_sdk_version+set}" = set; then :
7553 withval=$with_sdk_version; aros_sdk_version="$withval"
7554 else
7555 aros_sdk_version="12"
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7559 $as_echo "$aros_sdk_version" >&6; }
7561 if test "$aros_android_ndk" != "none"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7563 $as_echo_n "checking what Android NDK version to use... " >&6; }
7565 # Check whether --with-ndk-version was given.
7566 if test "${with_ndk_version+set}" = set; then :
7567 withval=$with_ndk_version; aros_ndk_version="$withval"
7568 else
7569 aros_ndk_version="9"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7573 $as_echo "$aros_ndk_version" >&6; }
7576 export PATH="$aros_android_sdk/tools:$PATH"
7577 # Extract the first word of "$android_tool", so it can be a program name with args.
7578 set dummy $android_tool; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_path_android_tool+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 case $android_tool in
7585 [\\/]* | ?:[\\/]*)
7586 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7600 done
7601 done
7602 IFS=$as_save_IFS
7605 esac
7607 android_tool=$ac_cv_path_android_tool
7608 if test -n "$android_tool"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7610 $as_echo "$android_tool" >&6; }
7611 else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7617 if test "$android_tool" = ""; then
7618 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7621 aros_android_level=android-$aros_sdk_version
7622 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7623 echo "Platform $aros_android_level is not installed in your SDK"
7624 echo "Use --with-sdk-version=<API level number> to select another platform version"
7625 echo "You can check what plaform versions are installed in your SDK"
7626 echo "by examining contents of $aros_android_sdk/platforms directory"
7627 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7630 # Extract the first word of "ant", so it can be a program name with args.
7631 set dummy ant; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_path_ant+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 case $ant in
7638 [\\/]* | ?:[\\/]*)
7639 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7653 done
7654 done
7655 IFS=$as_save_IFS
7658 esac
7660 ant=$ac_cv_path_ant
7661 if test -n "$ant"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7663 $as_echo "$ant" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7670 if test "$ant" = ""; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7672 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7675 if test "$host_os" = "mingw32"; then
7676 android_tool="cmd //c $android_tool"
7680 esac
7682 #-----------------------------------------------------------------------------
7684 # This is the target configuration switch.
7685 case "$target_os" in
7686 linux*)
7687 aros_target_arch="linux"
7688 aros_target_family="unix"
7689 case "$target_cpu" in
7690 *m68k*)
7691 aros_target_cpu="m68k"
7692 aros_object_format="m68kelf"
7693 aros_flavour="emulcompat"
7694 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7695 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7696 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7697 gcc_target_cpu="mc68000"
7699 *i?86*)
7700 aros_target_cpu="i386"
7701 aros_object_format="elf_i386"
7702 aros_flavour="emulation"
7703 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7704 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7705 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7706 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7707 aros_config_ldflags="-m32 -march=i486"
7708 aros_kernel_ldflags="-melf_i386"
7709 aros_default_wbdepth=8
7710 gcc_target_cpu="i386"
7711 pci_hidd_target="hidd-pci-linux"
7712 android_tool_dir_prefix="x86"
7713 android_tool_prefix="i686-android-linux"
7714 android_ndk_arch="x86"
7716 *x86_64*)
7717 aros_target_cpu="x86_64"
7718 aros_object_format="elf_x86_64"
7719 aros_flavour="emulation"
7720 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7721 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7722 aros_default_wbdepth=8
7723 pci_hidd_target="hidd-pci-linux"
7725 *powerpc*)
7726 aros_target_cpu="ppc"
7727 aros_object_format="elf32ppc"
7728 aros_flavour="emulation"
7729 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7730 aros_default_wbdepth=8
7731 gcc_target_cpu="ppc"
7733 # TODO
7734 # Same as powerpc, but I need this for the nightly build to work again.
7735 # Actually, the nightly should be made working with powerpc target.
7736 # That just was too much work for the moment, another week or two.
7737 *ppc*)
7738 aros_target_cpu="ppc"
7739 aros_object_format="elf32ppc"
7740 aros_flavour="emulation"
7741 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7742 aros_default_wbdepth=8
7743 gcc_target_cpu="ppc"
7745 *arm*)
7746 aros_target_cpu="arm"
7747 aros_object_format="armelf_linux_eabi"
7748 aros_flavour="emulation"
7749 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7750 gcc_target_cpu="arm"
7751 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7752 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7753 aros_arch_libs="-laeabi"
7754 android_tool_dir_prefix="arm-linux-androideabi"
7755 android_tool_prefix="arm-linux-androideabi"
7756 android_ndk_arch="arm"
7757 if test "$aros_host_cpu" != "arm" ; then
7758 kernel_tool_prefix="arm-linux-gnueabi-"
7762 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7764 esac
7765 case "$aros_target_variant" in
7766 android)
7768 if test "$android_ndk_arch" = ""; then
7769 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7772 aros_default_wbwidth=320
7773 aros_default_wbheight=480
7774 if test "$aros_android_ndk" = "none"; then
7775 aros_kernel_cflags="-mandroid"
7776 aros_kernel_ldflags="-mandroid"
7777 CFLAGS="-mandroid"
7778 else
7779 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7780 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7781 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7782 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7783 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7784 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7786 need_x11=no
7787 x11_hidd_target=kernel-hidd-androidgfx-kobj
7788 # Disable implicit PIC mode
7789 aros_target_cflags="$aros_target_cflags -fno-pic"
7790 kernel_tool_prefix="$android_tool_prefix-"
7792 esac
7796 aros_target_arch="pc"
7797 aros_shared_default="no"
7798 target_bootloader="grub2"
7799 case "$target_cpu" in
7800 *i?86*)
7801 aros_target_cpu="i386"
7804 if test "$aros_object_format" = "" ; then
7805 aros_object_format="elf_i386"
7807 aros_flavour="standalone"
7808 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7809 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7810 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7811 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7812 aros_config_ldflags="-m32 -march=i486"
7813 aros_kernel_ldflags="-melf_i386"
7814 aros_default_wbwidth=640
7815 aros_default_wbheight=480
7816 gcc_target_cpu="i386"
7818 *x86_64*)
7819 aros_target_cpu="x86_64"
7820 aros_serial_debug=1
7821 if test "$aros_object_format" = "" ; then
7822 aros_object_format="elf_x86_64"
7824 aros_flavour="standalone"
7825 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7826 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7827 aros_kernel_ldflags=""
7828 aros_default_wbwidth=640
7829 aros_default_wbheight=480
7832 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7834 esac
7837 prep)
7838 aros_target_arch="prep"
7839 aros_shared_default="no"
7840 aros_target_cpu="ppc"
7841 aros_object_format="elf32ppc"
7842 aros_flavour="ppcnative"
7843 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7844 aros_kernel_ldflags=""
7845 aros_default_wbwidth=640
7846 aros_default_wbheight=480
7847 gcc_target_cpu="ppc"
7850 freebsd*)
7851 aros_target_arch="freebsd"
7852 aros_target_family="unix"
7853 aros_target_cpu="i386"
7854 aros_flavour="emulation"
7855 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7856 gcc_target_cpu="i386"
7858 aros_target_strip_flags="-x"
7861 darwin*)
7862 aros_target_arch="darwin"
7863 aros_target_family="unix"
7864 aros_flavour="emulation"
7865 case "$target_cpu" in
7866 *i?86*)
7867 aros_ios_platform="iPhoneSimulator"
7868 aros_target_cpu="i386"
7869 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7870 aros_kernel_ldflags=""
7871 aros_macosx_version="10.4"
7872 aros_default_wbdepth=8
7873 gcc_target_cpu="i386"
7874 aros_object_format="elf_i386"
7875 aros_kernel_ar_flags="-cr"
7876 aros_target_strip_flags="-x"
7877 kernel_tool_flags="-m32"
7879 *x86_64*)
7880 aros_target_cpu="x86_64"
7881 aros_object_format="elf_x86_64"
7882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7883 aros_macosx_version="10.6"
7884 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7885 aros_kernel_cflags="-m64"
7886 aros_kernel_ldflags="-m64"
7887 aros_target_cflags="-mcmodel=large"
7888 aros_default_wbdepth=8
7889 aros_kernel_ar="ar"
7890 aros_kernel_ar_flags="-cr"
7891 aros_kernel_ld="ld"
7892 aros_kernel_ranlib="ranlib"
7894 *ppc*)
7895 aros_target_cpu="ppc"
7896 aros_object_format="elf32ppc"
7897 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7898 aros_kernel_ldflags=""
7899 aros_macosx_version="10.0"
7900 aros_default_wbdepth=8
7901 gcc_target_cpu="ppc"
7902 aros_kernel_ar="ar"
7903 aros_kernel_ar_flags="-cr"
7904 aros_kernel_ld="ld -arch ppc"
7905 aros_kernel_ranlib="ranlib -arch ppc"
7906 kernel_tool_prefix="powerpc-apple-darwin10-"
7908 *arm*)
7909 aros_ios_platform="iPhoneOS"
7910 aros_target_cpu="arm"
7911 aros_object_format="armelf_linux_eabi"
7912 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7913 aros_arch_libs="-laeabi"
7914 aros_default_wbdepth=8
7915 gcc_target_cpu="arm"
7916 aros_kernel_ar="ar"
7917 aros_kernel_ar_flags="-cr"
7918 aros_kernel_ld="ld -arch arm"
7919 aros_kernel_ranlib="ranlib -arch arm"
7920 kernel_tool_prefix="arm-apple-darwin10-"
7921 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7924 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7926 esac
7927 case "$aros_target_variant" in
7928 ios)
7929 aros_ios_version="3.0"
7930 aros_default_wbwidth=320
7931 aros_default_wbheight=480
7932 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7933 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7934 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7935 need_x11=no
7936 # This is here because it may depend on iOS or SDK version
7937 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7938 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7939 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7942 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7943 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7945 esac
7948 dragonfly*)
7949 aros_target_arch="dragonfly"
7950 aros_target_family="unix"
7951 aros_flavour="emulation"
7952 case "$target_cpu" in
7953 *i?86*)
7954 aros_target_cpu="i386"
7955 aros_object_format="elf_i386"
7956 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7958 *x86_64*)
7959 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7960 aros_target_cpu="x86_64"
7961 aros_object_format="elf_x86_64"
7962 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7965 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7967 esac
7970 netbsd*)
7971 aros_target_arch="netbsd"
7972 aros_target_family="unix"
7973 case "$target_cpu" in
7974 *m68k*)
7975 aros_target_cpu="m68k"
7976 aros_object_format="m68kelf"
7977 aros_flavour="emulcompat"
7978 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7979 gcc_target_cpu="mc68000"
7981 *i?86*)
7982 aros_target_cpu="i386"
7983 aros_object_format="elf_i386"
7984 aros_flavour="emulation"
7985 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7986 aros_default_wbdepth=8
7987 gcc_target_cpu="i386"
7990 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7992 esac
7993 aros_target_genmap="-Wl,-M -Xlinker >"
7994 aros_flavour="emulation"
7995 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7998 openbsd*)
7999 aros_target_arch="openbsd"
8000 aros_target_family="unix"
8001 case "$target_cpu" in
8002 *i?86*)
8003 aros_target_cpu="i386"
8004 aros_object_format="elf_i386"
8005 aros_flavour="emulation"
8006 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8007 gcc_target_cpu="i386"
8010 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8012 esac
8013 aros_target_genmap="-Wl,-M -Xlinker >"
8014 aros_target_nm_flags="-u"
8015 aros_flavour="emulation"
8018 solaris*)
8019 aros_target_arch="solaris"
8020 aros_target_family="unix"
8021 case "$target_cpu" in
8022 *i?86*)
8023 aros_target_cpu="i386"
8024 aros_object_format="elf_i386"
8025 aros_flavour="emulation"
8026 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8027 aros_default_wbdepth=8
8028 gcc_target_cpu="i386"
8030 *sparc*)
8031 aros_target_cpu="sparc"
8032 aros_object_format="elf_sparc"
8033 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8034 gcc_target_cpu="sparc"
8037 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8039 esac
8040 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8041 aros_flavour="emulation"
8044 morphos*)
8045 aros_target_arch="morphos"
8046 aros_shared_default="no"
8047 aros_target_cpu="ppc"
8048 aros_object_format="elf_ppc"
8049 aros_flavour="nativecompat"
8050 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8051 gcc_target_cpu="ppc"
8054 sam440)
8055 aros_target_arch="sam440"
8056 aros_shared_default="no"
8057 aros_target_cpu="ppc"
8058 aros_object_format="elf32ppc"
8059 aros_flavour="ppcnative"
8060 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8061 aros_kernel_ldflags=""
8062 aros_default_wbwidth=1024
8063 aros_default_wbheight=768
8064 aros_default_wbdepth=24
8065 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8066 gcc_target_cpu="powerpc"
8069 efika)
8070 aros_target_arch="efika"
8071 aros_shared_default="no"
8072 aros_target_cpu="arm"
8073 aros_object_format="armelf_linux_eabi"
8074 aros_flavour="standalone"
8075 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8076 aros_kernel_ldflags=""
8077 aros_default_wbwidth=1024
8078 aros_default_wbheight=600
8079 aros_arch_libs="-laeabi"
8080 gcc_default_cpu="armv7-a"
8081 gcc_default_fpu="vfpv3"
8082 gcc_default_float_abi="softfp"
8083 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8084 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8087 chrp)
8088 aros_target_arch="chrp"
8089 aros_shared_default="no"
8090 aros_target_cpu="ppc"
8091 aros_object_format="elf32ppc"
8092 aros_flavour="ppcnative"
8093 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8094 aros_kernel_ldflags=""
8095 aros_default_wbwidth=640
8096 aros_default_wbheight=480
8097 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8098 gcc_target_cpu="powerpc"
8099 case "$aros_target_variant" in
8100 efika)
8101 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8103 esac
8106 amiga*)
8107 aros_target_arch="amiga"
8108 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8109 aros_shared_default="no"
8111 case "$target_cpu" in
8112 *m68k*)
8113 # Check whether --enable-amigaos_compliance was given.
8114 if test "${enable_amigaos_compliance+set}" = set; then :
8115 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8118 aros_enable_mmu=no
8119 aros_target_cpu="m68k"
8120 aros_object_format="m68kelf"
8121 aros_flavour="standcompat"
8122 gcc_target_cpu="m68000"
8123 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8124 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8125 # Needed to get the correct multilib
8126 aros_config_ldflags="-${gcc_target_cpu}"
8127 aros_shared_ldflags="-${gcc_target_cpu}"
8128 aros_kernel_ldflags="-${gcc_target_cpu}"
8129 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8130 aros_target_strip_flags="-R.comment --strip-debug"
8131 aros_default_wbwidth=640
8132 aros_default_wbheight=256
8133 aros_default_wbdepth=2
8135 *ppc*)
8136 aros_cpu="ppc"
8137 aros_flavour="native"
8138 gcc_target_cpu="ppc"
8141 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8143 esac
8146 mingw*)
8147 aros_target_arch="mingw32"
8148 aros_shared_default="no"
8149 aros_flavour="emulation"
8150 aros_shared_cflags=""
8151 need_crosstools="yes"
8152 need_dlopen="no"
8153 rescomp="windres"
8154 case "$target_cpu" in
8155 *i?86*)
8156 aros_target_cpu="i386"
8157 aros_object_format="elf_i386"
8158 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8159 aros_default_wbdepth=8
8160 gcc_target_cpu="i386"
8162 kernel_tool_prefix="i386-mingw32-"
8164 *x86_64*)
8165 aros_target_cpu="x86_64"
8166 aros_object_format="elf_x86_64"
8167 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8168 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8169 aros_default_wbdepth=8
8170 kernel_tool_prefix="x86_64-w64-mingw32-"
8172 *arm*)
8173 aros_target_cpu="arm"
8174 aros_object_format="armelf_linux_eabi"
8175 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8176 aros_arch_libs="-laeabi"
8177 aros_default_wbdepth=8
8178 gcc_target_cpu="arm"
8179 gcc_default_float_abi="soft"
8180 kernel_tool_prefix="arm-mingw32ce-"
8181 aros_default_wbwidth=160
8182 aros_default_wbheight=160
8185 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8187 esac
8188 if test $host_os = "cygwin"; then
8189 aros_kernel_cflags="-mno-cygwin"
8192 pp*)
8193 aros_target_arch="pp"
8194 aros_shared_default="no"
8195 case "$target_cpu" in
8196 *m68k*)
8197 aros_target_cpu="m68k"
8198 aros_object_format="m68kelf"
8199 aros_flavour="palmnative"
8200 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8201 aros_default_wbwidth=160
8202 aros_default_wbheight=160
8203 aros_default_wbdepth=1
8204 aros_target_ar_flags="cru"
8205 aros_compiler_libs="-lgcc1"
8206 aros_shared_default=no
8207 aros_shared_cflags="-fpic"
8208 aros_shared_aflags=""
8209 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8210 aros_kernel_ldflags="-Wl,-rpath,./lib"
8211 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8212 aros_debug_aflags=""
8213 aros_debug_ldflags="$aros_symbols_debug"
8214 aros_mungwall_debug="0"
8215 aros_modules_debug="0"
8216 gcc_target_cpu="mc68000"
8217 ignore_undefined_symbols="-ius"
8220 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8222 esac
8225 mac*)
8226 aros_target_arch="mac"
8227 aros_shared_default="no"
8228 case "$target_cpu" in
8229 *m68k*)
8230 aros_target_cpu="m68k"
8231 aros_object_format="m68kelf"
8232 aros_flavour="mac68knative"
8233 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8234 aros_default_wbwidth=512
8235 aros_default_wbheight=384
8236 aros_default_wbdepth=8
8237 aros_target_ar_flags="cru"
8238 aros_compiler_libs="-lgcc1"
8239 aros_shared_default=no
8240 aros_shared_cflags="-fpic"
8241 aros_shared_aflags=""
8242 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8243 aros_kernel_ldflags="-Wl,-rpath,./lib"
8244 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8245 aros_debug_aflags=""
8246 aros_debug_ldflags="$aros_symbols_debug"
8247 aros_mungwall_debug="0"
8248 aros_modules_debug="0"
8249 gcc_target_cpu="mc68000"
8250 ignore_undefined_symbols="-ius"
8253 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8255 esac
8259 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8261 esac
8263 #-----------------------------------------------------------------------------
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8265 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8267 # Check whether --with-crosstools was given.
8268 if test "${with_crosstools+set}" = set; then :
8269 withval=$with_crosstools; with_crosstools=$withval
8270 else
8271 with_crosstools="default"
8274 if test "$with_crosstools" = "default"; then
8275 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8276 else
8277 # Disable building crosstools if we are using an external set - otherwise
8278 # we may attempt to overwrite them if the tools-crosstools target is made!
8279 crosstools=no
8280 AROS_CROSSTOOLSDIR="$with_crosstools"
8281 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8284 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
8287 $as_echo_n "checking Kernel tool prefix... " >&6; }
8289 # Check whether --with-kernel-tool-prefix was given.
8290 if test "${with_kernel_tool_prefix+set}" = set; then :
8291 withval=$with_kernel_tool_prefix; kernel_tool_prefix="$withval"
8292 else
8293 kernel_tool_prefix="$kernel_tool_prefix"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8297 $as_echo "$kernel_tool_prefix" >&6; }
8299 target_tool_prefix=${target_cpu}-aros-
8301 # Now process extra architecture-specific options.
8302 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8303 # as well as floating-point ABI.
8304 case "$aros_target_cpu" in
8305 arm)
8306 if test "$gcc_default_cpu" = ""; then
8307 gcc_default_cpu="armv6"
8309 if test "$gcc_default_fpu" = ""; then
8310 gcc_default_fpu="vfp"
8312 if test "$gcc_default_float_abi" = ""; then
8313 gcc_default_float_abi="softfp"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8317 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8319 # Check whether --with-cpu was given.
8320 if test "${with_cpu+set}" = set; then :
8321 withval=$with_cpu; aros_gcc_cpu="$withval"
8322 else
8323 aros_gcc_cpu=$gcc_default_cpu
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8327 $as_echo "$aros_gcc_cpu" >&6; }
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8330 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8332 # Check whether --with-fpu was given.
8333 if test "${with_fpu+set}" = set; then :
8334 withval=$with_fpu; aros_gcc_fpu="$withval"
8335 else
8336 aros_gcc_fpu=$gcc_default_fpu
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8340 $as_echo "$aros_gcc_fpu" >&6; }
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8343 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8345 # Check whether --with-float was given.
8346 if test "${with_float+set}" = set; then :
8347 withval=$with_float; aros_gcc_float_abi="$withval"
8348 else
8349 aros_gcc_float_abi=$gcc_default_float_abi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8353 $as_echo "$aros_gcc_float_abi" >&6; }
8355 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"
8356 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"
8358 esac
8360 # Some formats need custom ELF specs.
8361 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8362 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8363 elf_specs_in=config/${aros_object_format}-specs.in
8364 else
8365 elf_specs_in=config/elf-specs.in
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8369 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8371 # Check whether --with-aros-gcc was given.
8372 if test "${with_aros_gcc+set}" = set; then :
8373 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8374 else
8375 aros_gcc_version=""
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8379 $as_echo "$aros_gcc_version" >&6; }
8381 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8382 # Since we override specs, we may need to put these defines there
8383 if test "$gcc_target_cpu" != ""; then
8384 gcc_target_cpu="-D__${gcc_target_cpu}__"
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8388 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8390 # Check whether --with-portssources was given.
8391 if test "${with_portssources+set}" = set; then :
8392 withval=$with_portssources; with_portssrcdir=$withval
8393 else
8394 with_portssrcdir="default"
8397 if test "$with_portssrcdir" = "default"; then
8398 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8399 else
8400 AROS_PORTSSRCDIR="$with_portssrcdir"
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8403 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8406 $as_echo_n "checking which bootloader to use... " >&6; }
8408 # Check whether --with-bootloader was given.
8409 if test "${with_bootloader+set}" = set; then :
8410 withval=$with_bootloader; target_bootloader=$withval
8411 else
8412 target_bootloader=$target_bootloader
8415 if test "$target_bootloader" = "none"; then
8416 aros_target_bootloader=""
8417 else
8418 aros_target_bootloader="$target_bootloader"
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8421 $as_echo "$target_bootloader" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8424 $as_echo_n "checking which icon-set to use... " >&6; }
8426 # Check whether --with-iconset was given.
8427 if test "${with_iconset+set}" = set; then :
8428 withval=$with_iconset; target_iconset=$withval
8429 else
8430 target_iconset="default"
8433 if test "$target_iconset" = "default"; then
8434 aros_target_iconset="Gorilla"
8435 target_iconset="default (Gorilla)"
8436 else
8437 aros_target_iconset="$target_iconset"
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8440 $as_echo "$target_iconset" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8443 $as_echo_n "checking which GUI Theme to use... " >&6; }
8445 # Check whether --with-theme was given.
8446 if test "${with_theme+set}" = set; then :
8447 withval=$with_theme; target_guitheme=$withval
8448 else
8449 target_guitheme="default"
8452 if test "$target_guitheme" = "default"; then
8453 aros_target_guitheme="Ice"
8454 else
8455 aros_target_guitheme="$target_guitheme"
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8458 $as_echo "$aros_target_guitheme" >&6; }
8460 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8461 # for target code)
8462 cross_compiling=no
8463 if test "$aros_host_cpu" = "$aros_target_cpu" ; then
8464 # If host = target CPU, let's try to use the
8465 # host's toolchains if no others were requested
8466 if test "$kernel_tool_prefix" = "none" ; then
8467 kernel_tool_prefix=""
8469 else
8470 cross_compiling=yes
8473 if test "$aros_host_cpu" == "x86_64" ; then
8474 if test "$aros_target_cpu" == "i386" ; then
8475 if test "$aros_target_arch" != "mingw32"; then
8476 cross_compiling=no
8477 kernel_tool_prefix=""
8482 if test "$aros_host_arch" == "darwin" ; then
8483 if test "$aros_target_arch" != "darwin" ; then
8484 cross_compiling=yes
8485 else
8486 cross_compiling=no
8487 kernel_tool_prefix=""
8491 if test "$aros_host_arch" == "mingw32" ; then
8492 if test "$aros_target_arch" != "mingw32" ; then
8493 cross_compiling=yes
8494 else
8495 cross_compiling=no
8496 kernel_tool_prefix=""
8500 #######################################################################
8501 ## Compute what toolchains to use, and their paths ##
8502 #######################################################################
8504 # This takes, as input:
8505 # crosstools {yes,no}
8506 # aros_gcc_version {default,[version]}
8507 # kernel_tool_prefix {none,[some-arch-os-]}
8508 # target_tool_prefix ${target_cpu}-aros-
8510 # The output is
8511 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8512 # Where the 'kernel' binaries are located
8513 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8514 # Where the 'target' binaries are located
8515 # (not the symlink farm - that is aros_target_*!)
8517 # The rules are:
8518 # if crosstools then
8519 # if kernel_tools_prefix = "no-kernel-prefix-"
8520 # aros_kernel_* = crosstools cc paths
8521 # aros_kernel_cc = elf cc wrapper around crosstools cc
8522 # else
8523 # VALIDATE(${kernel_tools_prefix}*)
8524 # aros_kernel_* = ${kernel_tools_prefix}*
8525 # if ${kernel_tools_prefix}cc is an AROS gcc
8526 # aros_kernel_cc = ${kernel_tools_prefix}cc
8527 # else
8528 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8529 # fi
8530 # fi
8532 # orig_target_* = aros built crosstools
8533 # orig_target_cc = elf cc wrapper around crosstools cc
8534 # else
8535 # VALIDATE(${kernel_tools_prefix}*)
8537 # orig_target_* = aros_kernel_*
8538 # if aros_kernel_cc is an AROS gcc
8539 # orig_target_cc = aros_kernel_cc
8540 # else
8541 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8542 # fi
8543 # fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external toolchain" >&5
8547 $as_echo_n "checking whether to use external toolchain... " >&6; }
8548 if test "$kernel_tool_prefix" = "none" ; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; };
8551 if test "$crosstools" != "yes"; then
8552 as_fn_error $? "--disable-crosstools requires --with-kernel-tool-prefix= for this arch" "$LINENO" 5
8554 # We are building AROS crosstools, and no kernel
8555 # tools specified - assume target tools == kernel tools
8556 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
8557 aros_kernel_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
8558 aros_kernel_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
8559 aros_kernel_cpp="${tmp_tool_prefix}cpp"
8560 aros_kernel_ld="${tmp_tool_prefix}ld"
8561 aros_kernel_as="${tmp_tool_prefix}as"
8562 aros_kernel_ar="${tmp_tool_prefix}ar"
8563 aros_kernel_ranlib="${tmp_tool_prefix}ranlib"
8564 aros_kernel_nm="${tmp_tool_prefix}nm"
8565 aros_kernel_strip="${tmp_tool_prefix}strip"
8566 aros_kernel_objcopy="${tmp_tool_prefix}objcopy"
8567 aros_kernel_objdump="${tmp_tool_prefix}objdump"
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8570 $as_echo "yes" >&6; };
8571 # Kernel tools specified - find them
8572 # Note that 'normally', aros_kernel_* overrides will
8573 # empty, unless specified in the per-arch sections above.
8576 if test "$aros_kernel_cpp" = ""; then
8577 if test "$cross_compiling" = "yes" ; then
8578 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8579 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 case $aros_kernel_cpp in
8586 [\\/]* | ?:[\\/]*)
8587 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8601 done
8602 done
8603 IFS=$as_save_IFS
8606 esac
8608 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8609 if test -n "$aros_kernel_cpp"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8611 $as_echo "$aros_kernel_cpp" >&6; }
8612 else
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8618 else
8619 if test "$GCC" = "yes"; then
8620 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8621 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8622 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 case $aros_kernel_cpp in
8629 [\\/]* | ?:[\\/]*)
8630 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in `dirname $aros_gcc_cpp`
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8646 IFS=$as_save_IFS
8649 esac
8651 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8652 if test -n "$aros_kernel_cpp"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8654 $as_echo "$aros_kernel_cpp" >&6; }
8655 else
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8662 if test "$aros_kernel_cpp" = ""; then
8663 # Extract the first word of "cpp", so it can be a program name with args.
8664 set dummy cpp; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 case $aros_kernel_cpp in
8671 [\\/]* | ?:[\\/]*)
8672 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676 for as_dir in $PATH
8678 IFS=$as_save_IFS
8679 test -z "$as_dir" && as_dir=.
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8682 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 break 2
8686 done
8687 done
8688 IFS=$as_save_IFS
8691 esac
8693 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8694 if test -n "$aros_kernel_cpp"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8696 $as_echo "$aros_kernel_cpp" >&6; }
8697 else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8705 else
8706 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8707 set dummy $aros_kernel_cpp; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 case $aros_kernel_cpp in
8714 [\\/]* | ?:[\\/]*)
8715 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 for as_dir in $PATH
8721 IFS=$as_save_IFS
8722 test -z "$as_dir" && as_dir=.
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8725 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8727 break 2
8729 done
8730 done
8731 IFS=$as_save_IFS
8734 esac
8736 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8737 if test -n "$aros_kernel_cpp"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8739 $as_echo "$aros_kernel_cpp" >&6; }
8740 else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8748 if test "$aros_kernel_cpp" = ""; then
8749 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8751 if test "x$aros_kernel_cc" = "x"; then
8752 aros_kernel_cc=${kernel_tool_prefix}gcc
8755 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8756 if test "$cross_compiling" = "yes" ; then
8757 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8758 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 $as_echo_n "checking for $ac_word... " >&6; }
8761 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 case $aros_kernel_cc in
8765 [\\/]* | ?:[\\/]*)
8766 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 for as_dir in $PATH
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8776 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8778 break 2
8780 done
8781 done
8782 IFS=$as_save_IFS
8785 esac
8787 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8788 if test -n "$aros_kernel_cc"; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8790 $as_echo "$aros_kernel_cc" >&6; }
8791 else
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8797 else
8798 if test "$GCC" = "yes"; then
8799 aros_gcc_cc=`$CC -print-prog-name=cc`
8800 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8801 set dummy `basename $aros_gcc_cc`; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 case $aros_kernel_cc in
8808 [\\/]* | ?:[\\/]*)
8809 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in `dirname $aros_gcc_cc`
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8823 done
8824 done
8825 IFS=$as_save_IFS
8828 esac
8830 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8831 if test -n "$aros_kernel_cc"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8833 $as_echo "$aros_kernel_cc" >&6; }
8834 else
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8841 if test "$aros_kernel_cc" = ""; then
8842 # Extract the first word of "cc", so it can be a program name with args.
8843 set dummy cc; ac_word=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 case $aros_kernel_cc in
8850 [\\/]* | ?:[\\/]*)
8851 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 for as_dir in $PATH
8857 IFS=$as_save_IFS
8858 test -z "$as_dir" && as_dir=.
8859 for ac_exec_ext in '' $ac_executable_extensions; do
8860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8861 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8863 break 2
8865 done
8866 done
8867 IFS=$as_save_IFS
8870 esac
8872 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8873 if test -n "$aros_kernel_cc"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8875 $as_echo "$aros_kernel_cc" >&6; }
8876 else
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8884 else
8885 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8886 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 $as_echo_n "checking for $ac_word... " >&6; }
8889 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 case $aros_kernel_cc in
8893 [\\/]* | ?:[\\/]*)
8894 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 for as_dir in $PATH
8900 IFS=$as_save_IFS
8901 test -z "$as_dir" && as_dir=.
8902 for ac_exec_ext in '' $ac_executable_extensions; do
8903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8904 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 break 2
8908 done
8909 done
8910 IFS=$as_save_IFS
8913 esac
8915 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8916 if test -n "$aros_kernel_cc"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8918 $as_echo "$aros_kernel_cc" >&6; }
8919 else
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8927 if test "$aros_kernel_cc" = ""; then
8928 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8930 if test "x$aros_kernel_cxx" = "x"; then
8931 aros_kernel_cxx=${kernel_tool_prefix}g++
8934 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8935 if test "$cross_compiling" = "yes" ; then
8936 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8937 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 case $aros_kernel_cxx in
8944 [\\/]* | ?:[\\/]*)
8945 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8959 done
8960 done
8961 IFS=$as_save_IFS
8964 esac
8966 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8967 if test -n "$aros_kernel_cxx"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8969 $as_echo "$aros_kernel_cxx" >&6; }
8970 else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8976 else
8977 if test "$GCC" = "yes"; then
8978 aros_gcc_cxx=`$CC -print-prog-name=cxx`
8979 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
8980 set dummy `basename $aros_gcc_cxx`; ac_word=$2
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 $as_echo_n "checking for $ac_word... " >&6; }
8983 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 case $aros_kernel_cxx in
8987 [\\/]* | ?:[\\/]*)
8988 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 for as_dir in `dirname $aros_gcc_cxx`
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8998 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 break 2
9002 done
9003 done
9004 IFS=$as_save_IFS
9007 esac
9009 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9010 if test -n "$aros_kernel_cxx"; then
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9012 $as_echo "$aros_kernel_cxx" >&6; }
9013 else
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015 $as_echo "no" >&6; }
9020 if test "$aros_kernel_cxx" = ""; then
9021 # Extract the first word of "cxx", so it can be a program name with args.
9022 set dummy cxx; ac_word=$2
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024 $as_echo_n "checking for $ac_word... " >&6; }
9025 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 case $aros_kernel_cxx in
9029 [\\/]* | ?:[\\/]*)
9030 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 for as_dir in $PATH
9036 IFS=$as_save_IFS
9037 test -z "$as_dir" && as_dir=.
9038 for ac_exec_ext in '' $ac_executable_extensions; do
9039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9040 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9042 break 2
9044 done
9045 done
9046 IFS=$as_save_IFS
9049 esac
9051 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9052 if test -n "$aros_kernel_cxx"; then
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9054 $as_echo "$aros_kernel_cxx" >&6; }
9055 else
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 $as_echo "no" >&6; }
9063 else
9064 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9065 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 case $aros_kernel_cxx in
9072 [\\/]* | ?:[\\/]*)
9073 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9083 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9087 done
9088 done
9089 IFS=$as_save_IFS
9092 esac
9094 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9095 if test -n "$aros_kernel_cxx"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9097 $as_echo "$aros_kernel_cxx" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9106 # If it's set, make sure it's really there
9107 if test "x$aros_kernel_cxx" != "x" ; then
9108 if test "$aros_kernel_cxx" = ""; then
9109 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9113 if test "$aros_kernel_ld" = ""; then
9114 if test "$cross_compiling" = "yes" ; then
9115 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9116 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118 $as_echo_n "checking for $ac_word... " >&6; }
9119 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 case $aros_kernel_ld in
9123 [\\/]* | ?:[\\/]*)
9124 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9134 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9138 done
9139 done
9140 IFS=$as_save_IFS
9143 esac
9145 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9146 if test -n "$aros_kernel_ld"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9148 $as_echo "$aros_kernel_ld" >&6; }
9149 else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9155 else
9156 if test "$GCC" = "yes"; then
9157 aros_gcc_ld=`$CC -print-prog-name=ld`
9158 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9159 set dummy `basename $aros_gcc_ld`; ac_word=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 case $aros_kernel_ld in
9166 [\\/]* | ?:[\\/]*)
9167 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in `dirname $aros_gcc_ld`
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9177 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 break 2
9181 done
9182 done
9183 IFS=$as_save_IFS
9186 esac
9188 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9189 if test -n "$aros_kernel_ld"; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9191 $as_echo "$aros_kernel_ld" >&6; }
9192 else
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9199 if test "$aros_kernel_ld" = ""; then
9200 # Extract the first word of "ld", so it can be a program name with args.
9201 set dummy ld; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 case $aros_kernel_ld in
9208 [\\/]* | ?:[\\/]*)
9209 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 for as_dir in $PATH
9215 IFS=$as_save_IFS
9216 test -z "$as_dir" && as_dir=.
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9219 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9221 break 2
9223 done
9224 done
9225 IFS=$as_save_IFS
9228 esac
9230 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9231 if test -n "$aros_kernel_ld"; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9233 $as_echo "$aros_kernel_ld" >&6; }
9234 else
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9242 else
9243 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9244 set dummy $aros_kernel_ld; ac_word=$2
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 $as_echo_n "checking for $ac_word... " >&6; }
9247 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 case $aros_kernel_ld in
9251 [\\/]* | ?:[\\/]*)
9252 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in $PATH
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9266 done
9267 done
9268 IFS=$as_save_IFS
9271 esac
9273 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9274 if test -n "$aros_kernel_ld"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9276 $as_echo "$aros_kernel_ld" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9285 if test "$aros_kernel_ld" = ""; then
9286 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9289 if test "$aros_kernel_as" = ""; then
9290 if test "$cross_compiling" = "yes" ; then
9291 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9292 set dummy ${kernel_tool_prefix}as; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 case $aros_kernel_as in
9299 [\\/]* | ?:[\\/]*)
9300 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304 for as_dir in $PATH
9306 IFS=$as_save_IFS
9307 test -z "$as_dir" && as_dir=.
9308 for ac_exec_ext in '' $ac_executable_extensions; do
9309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9310 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9312 break 2
9314 done
9315 done
9316 IFS=$as_save_IFS
9319 esac
9321 aros_kernel_as=$ac_cv_path_aros_kernel_as
9322 if test -n "$aros_kernel_as"; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9324 $as_echo "$aros_kernel_as" >&6; }
9325 else
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9327 $as_echo "no" >&6; }
9331 else
9332 if test "$GCC" = "yes"; then
9333 aros_gcc_as=`$CC -print-prog-name=as`
9334 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9335 set dummy `basename $aros_gcc_as`; ac_word=$2
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337 $as_echo_n "checking for $ac_word... " >&6; }
9338 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 case $aros_kernel_as in
9342 [\\/]* | ?:[\\/]*)
9343 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in `dirname $aros_gcc_as`
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9357 done
9358 done
9359 IFS=$as_save_IFS
9362 esac
9364 aros_kernel_as=$ac_cv_path_aros_kernel_as
9365 if test -n "$aros_kernel_as"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9367 $as_echo "$aros_kernel_as" >&6; }
9368 else
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9375 if test "$aros_kernel_as" = ""; then
9376 # Extract the first word of "as", so it can be a program name with args.
9377 set dummy as; ac_word=$2
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9379 $as_echo_n "checking for $ac_word... " >&6; }
9380 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 case $aros_kernel_as in
9384 [\\/]* | ?:[\\/]*)
9385 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9399 done
9400 done
9401 IFS=$as_save_IFS
9404 esac
9406 aros_kernel_as=$ac_cv_path_aros_kernel_as
9407 if test -n "$aros_kernel_as"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9409 $as_echo "$aros_kernel_as" >&6; }
9410 else
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 $as_echo "no" >&6; }
9418 else
9419 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9420 set dummy $aros_kernel_as; ac_word=$2
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 $as_echo_n "checking for $ac_word... " >&6; }
9423 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 case $aros_kernel_as in
9427 [\\/]* | ?:[\\/]*)
9428 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9438 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9442 done
9443 done
9444 IFS=$as_save_IFS
9447 esac
9449 aros_kernel_as=$ac_cv_path_aros_kernel_as
9450 if test -n "$aros_kernel_as"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9452 $as_echo "$aros_kernel_as" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9461 if test "$aros_kernel_as" = ""; then
9462 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9465 if test "$aros_kernel_ar" = ""; then
9466 if test "$cross_compiling" = "yes" ; then
9467 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9468 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 $as_echo_n "checking for $ac_word... " >&6; }
9471 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 case $aros_kernel_ar in
9475 [\\/]* | ?:[\\/]*)
9476 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 for as_dir in $PATH
9482 IFS=$as_save_IFS
9483 test -z "$as_dir" && as_dir=.
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9486 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9488 break 2
9490 done
9491 done
9492 IFS=$as_save_IFS
9495 esac
9497 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9498 if test -n "$aros_kernel_ar"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9500 $as_echo "$aros_kernel_ar" >&6; }
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9507 else
9508 if test "$GCC" = "yes"; then
9509 aros_gcc_ar=`$CC -print-prog-name=ar`
9510 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9511 set dummy `basename $aros_gcc_ar`; ac_word=$2
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9513 $as_echo_n "checking for $ac_word... " >&6; }
9514 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 case $aros_kernel_ar in
9518 [\\/]* | ?:[\\/]*)
9519 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in `dirname $aros_gcc_ar`
9525 IFS=$as_save_IFS
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531 break 2
9533 done
9534 done
9535 IFS=$as_save_IFS
9538 esac
9540 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9541 if test -n "$aros_kernel_ar"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9543 $as_echo "$aros_kernel_ar" >&6; }
9544 else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 $as_echo "no" >&6; }
9551 if test "$aros_kernel_ar" = ""; then
9552 # Extract the first word of "ar", so it can be a program name with args.
9553 set dummy ar; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 case $aros_kernel_ar in
9560 [\\/]* | ?:[\\/]*)
9561 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9575 done
9576 done
9577 IFS=$as_save_IFS
9580 esac
9582 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9583 if test -n "$aros_kernel_ar"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9585 $as_echo "$aros_kernel_ar" >&6; }
9586 else
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9594 else
9595 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9596 set dummy $aros_kernel_ar; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 case $aros_kernel_ar in
9603 [\\/]* | ?:[\\/]*)
9604 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in $PATH
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9614 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9618 done
9619 done
9620 IFS=$as_save_IFS
9623 esac
9625 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9626 if test -n "$aros_kernel_ar"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9628 $as_echo "$aros_kernel_ar" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9637 if test "$aros_kernel_ar" = ""; then
9638 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9641 if test "$aros_kernel_ranlib" = ""; then
9642 if test "$cross_compiling" = "yes" ; then
9643 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9644 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 case $aros_kernel_ranlib in
9651 [\\/]* | ?:[\\/]*)
9652 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 for as_dir in $PATH
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
9660 for ac_exec_ext in '' $ac_executable_extensions; do
9661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9662 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 break 2
9666 done
9667 done
9668 IFS=$as_save_IFS
9671 esac
9673 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9674 if test -n "$aros_kernel_ranlib"; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9676 $as_echo "$aros_kernel_ranlib" >&6; }
9677 else
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9683 else
9684 if test "$GCC" = "yes"; then
9685 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9686 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9687 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 case $aros_kernel_ranlib in
9694 [\\/]* | ?:[\\/]*)
9695 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 for as_dir in `dirname $aros_gcc_ranlib`
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9705 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 break 2
9709 done
9710 done
9711 IFS=$as_save_IFS
9714 esac
9716 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9717 if test -n "$aros_kernel_ranlib"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9719 $as_echo "$aros_kernel_ranlib" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9727 if test "$aros_kernel_ranlib" = ""; then
9728 # Extract the first word of "ranlib", so it can be a program name with args.
9729 set dummy ranlib; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 case $aros_kernel_ranlib in
9736 [\\/]* | ?:[\\/]*)
9737 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9751 done
9752 done
9753 IFS=$as_save_IFS
9756 esac
9758 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9759 if test -n "$aros_kernel_ranlib"; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9761 $as_echo "$aros_kernel_ranlib" >&6; }
9762 else
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9770 else
9771 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9772 set dummy $aros_kernel_ranlib; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 case $aros_kernel_ranlib in
9779 [\\/]* | ?:[\\/]*)
9780 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9794 done
9795 done
9796 IFS=$as_save_IFS
9799 esac
9801 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9802 if test -n "$aros_kernel_ranlib"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9804 $as_echo "$aros_kernel_ranlib" >&6; }
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9813 if test "$aros_kernel_ranlib" = ""; then
9814 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9817 if test "$aros_kernel_nm" = ""; then
9818 if test "$cross_compiling" = "yes" ; then
9819 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9820 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 case $aros_kernel_nm in
9827 [\\/]* | ?:[\\/]*)
9828 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 break 2
9842 done
9843 done
9844 IFS=$as_save_IFS
9847 esac
9849 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9850 if test -n "$aros_kernel_nm"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9852 $as_echo "$aros_kernel_nm" >&6; }
9853 else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9859 else
9860 if test "$GCC" = "yes"; then
9861 aros_gcc_nm=`$CC -print-prog-name=nm`
9862 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9863 set dummy `basename $aros_gcc_nm`; ac_word=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 case $aros_kernel_nm in
9870 [\\/]* | ?:[\\/]*)
9871 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 for as_dir in `dirname $aros_gcc_nm`
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9885 done
9886 done
9887 IFS=$as_save_IFS
9890 esac
9892 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9893 if test -n "$aros_kernel_nm"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9895 $as_echo "$aros_kernel_nm" >&6; }
9896 else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9903 if test "$aros_kernel_nm" = ""; then
9904 # Extract the first word of "nm", so it can be a program name with args.
9905 set dummy nm; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 case $aros_kernel_nm in
9912 [\\/]* | ?:[\\/]*)
9913 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9923 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9927 done
9928 done
9929 IFS=$as_save_IFS
9932 esac
9934 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9935 if test -n "$aros_kernel_nm"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9937 $as_echo "$aros_kernel_nm" >&6; }
9938 else
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9946 else
9947 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9948 set dummy $aros_kernel_nm; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 case $aros_kernel_nm in
9955 [\\/]* | ?:[\\/]*)
9956 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9962 IFS=$as_save_IFS
9963 test -z "$as_dir" && as_dir=.
9964 for ac_exec_ext in '' $ac_executable_extensions; do
9965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9966 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 break 2
9970 done
9971 done
9972 IFS=$as_save_IFS
9975 esac
9977 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9978 if test -n "$aros_kernel_nm"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9980 $as_echo "$aros_kernel_nm" >&6; }
9981 else
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9989 if test "$aros_kernel_nm" = ""; then
9990 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9993 if test "$aros_kernel_strip" = ""; then
9994 if test "$cross_compiling" = "yes" ; then
9995 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
9996 set dummy ${kernel_tool_prefix}strip; ac_word=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 case $aros_kernel_strip in
10003 [\\/]* | ?:[\\/]*)
10004 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10014 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 break 2
10018 done
10019 done
10020 IFS=$as_save_IFS
10023 esac
10025 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10026 if test -n "$aros_kernel_strip"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10028 $as_echo "$aros_kernel_strip" >&6; }
10029 else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031 $as_echo "no" >&6; }
10035 else
10036 if test "$GCC" = "yes"; then
10037 aros_gcc_strip=`$CC -print-prog-name=strip`
10038 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10039 set dummy `basename $aros_gcc_strip`; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 case $aros_kernel_strip in
10046 [\\/]* | ?:[\\/]*)
10047 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in `dirname $aros_gcc_strip`
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10061 done
10062 done
10063 IFS=$as_save_IFS
10066 esac
10068 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10069 if test -n "$aros_kernel_strip"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10071 $as_echo "$aros_kernel_strip" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10079 if test "$aros_kernel_strip" = ""; then
10080 # Extract the first word of "strip", so it can be a program name with args.
10081 set dummy strip; ac_word=$2
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083 $as_echo_n "checking for $ac_word... " >&6; }
10084 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 case $aros_kernel_strip in
10088 [\\/]* | ?:[\\/]*)
10089 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10095 IFS=$as_save_IFS
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10099 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 break 2
10103 done
10104 done
10105 IFS=$as_save_IFS
10108 esac
10110 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10111 if test -n "$aros_kernel_strip"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10113 $as_echo "$aros_kernel_strip" >&6; }
10114 else
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10122 else
10123 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10124 set dummy $aros_kernel_strip; ac_word=$2
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 $as_echo_n "checking for $ac_word... " >&6; }
10127 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10128 $as_echo_n "(cached) " >&6
10129 else
10130 case $aros_kernel_strip in
10131 [\\/]* | ?:[\\/]*)
10132 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10142 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10146 done
10147 done
10148 IFS=$as_save_IFS
10151 esac
10153 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10154 if test -n "$aros_kernel_strip"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10156 $as_echo "$aros_kernel_strip" >&6; }
10157 else
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10165 if test "$aros_kernel_strip" = ""; then
10166 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10169 # Objcopy and objdump are not required for the kernel
10170 # toolchain on many architectures.
10171 # So we'll look for them, but not make them strictly required.
10173 if test "$aros_kernel_objcopy" = ""; then
10174 if test "$cross_compiling" = "yes" ; then
10175 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10176 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 case $aros_kernel_objcopy in
10183 [\\/]* | ?:[\\/]*)
10184 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10198 done
10199 done
10200 IFS=$as_save_IFS
10203 esac
10205 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10206 if test -n "$aros_kernel_objcopy"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10208 $as_echo "$aros_kernel_objcopy" >&6; }
10209 else
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10215 else
10216 if test "$GCC" = "yes"; then
10217 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10218 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10219 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10221 $as_echo_n "checking for $ac_word... " >&6; }
10222 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10223 $as_echo_n "(cached) " >&6
10224 else
10225 case $aros_kernel_objcopy in
10226 [\\/]* | ?:[\\/]*)
10227 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in `dirname $aros_gcc_objcopy`
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10237 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10241 done
10242 done
10243 IFS=$as_save_IFS
10246 esac
10248 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10249 if test -n "$aros_kernel_objcopy"; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10251 $as_echo "$aros_kernel_objcopy" >&6; }
10252 else
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10259 if test "$aros_kernel_objcopy" = ""; then
10260 # Extract the first word of "objcopy", so it can be a program name with args.
10261 set dummy objcopy; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 case $aros_kernel_objcopy in
10268 [\\/]* | ?:[\\/]*)
10269 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10279 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10283 done
10284 done
10285 IFS=$as_save_IFS
10288 esac
10290 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10291 if test -n "$aros_kernel_objcopy"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10293 $as_echo "$aros_kernel_objcopy" >&6; }
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10302 else
10303 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10304 set dummy $aros_kernel_objcopy; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 case $aros_kernel_objcopy in
10311 [\\/]* | ?:[\\/]*)
10312 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316 for as_dir in $PATH
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
10320 for ac_exec_ext in '' $ac_executable_extensions; do
10321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10322 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10326 done
10327 done
10328 IFS=$as_save_IFS
10331 esac
10333 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10334 if test -n "$aros_kernel_objcopy"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10336 $as_echo "$aros_kernel_objcopy" >&6; }
10337 else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10346 if test "$aros_kernel_objdump" = ""; then
10347 if test "$cross_compiling" = "yes" ; then
10348 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10349 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 case $aros_kernel_objdump in
10356 [\\/]* | ?:[\\/]*)
10357 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10371 done
10372 done
10373 IFS=$as_save_IFS
10376 esac
10378 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10379 if test -n "$aros_kernel_objdump"; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10381 $as_echo "$aros_kernel_objdump" >&6; }
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10388 else
10389 if test "$GCC" = "yes"; then
10390 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10391 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10392 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 case $aros_kernel_objdump in
10399 [\\/]* | ?:[\\/]*)
10400 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in `dirname $aros_gcc_objdump`
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10410 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10414 done
10415 done
10416 IFS=$as_save_IFS
10419 esac
10421 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10422 if test -n "$aros_kernel_objdump"; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10424 $as_echo "$aros_kernel_objdump" >&6; }
10425 else
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; }
10432 if test "$aros_kernel_objdump" = ""; then
10433 # Extract the first word of "objdump", so it can be a program name with args.
10434 set dummy objdump; ac_word=$2
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10436 $as_echo_n "checking for $ac_word... " >&6; }
10437 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 case $aros_kernel_objdump in
10441 [\\/]* | ?:[\\/]*)
10442 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10452 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 break 2
10456 done
10457 done
10458 IFS=$as_save_IFS
10461 esac
10463 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10464 if test -n "$aros_kernel_objdump"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10466 $as_echo "$aros_kernel_objdump" >&6; }
10467 else
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469 $as_echo "no" >&6; }
10475 else
10476 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10477 set dummy $aros_kernel_objdump; ac_word=$2
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 case $aros_kernel_objdump in
10484 [\\/]* | ?:[\\/]*)
10485 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10499 done
10500 done
10501 IFS=$as_save_IFS
10504 esac
10506 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10507 if test -n "$aros_kernel_objdump"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10509 $as_echo "$aros_kernel_objdump" >&6; }
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10518 if test "x${crosstools}" != "xyes" ; then
10519 if test "$aros_kernel_objcopy" = ""; then
10520 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10522 if test "$aros_kernel_objdump" = ""; then
10523 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10529 $as_echo_n "checking which target tools to use... " >&6; }
10530 if test "$crosstools" = "yes"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10532 $as_echo "$target_tool_prefix" >&6; }
10533 # We are are building AROS crosstools
10534 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10535 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10536 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10537 orig_target_cpp="${tmp_tool_prefix}cpp"
10538 orig_target_ld="${tmp_tool_prefix}ld"
10539 orig_target_as="${tmp_tool_prefix}as"
10540 orig_target_ar="${tmp_tool_prefix}ar"
10541 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10542 orig_target_nm="${tmp_tool_prefix}nm"
10543 orig_target_strip="${tmp_tool_prefix}strip"
10544 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10545 orig_target_objdump="${tmp_tool_prefix}objdump"
10546 else
10547 # We are *not* building AROS crosstools - use the kernel tools
10548 # However some ports (Windows-hosted for example) can't use kernel tools
10549 # to build AROS for sure. In this case we search for preinstalled AROS gcc
10550 # CHECKME: Currently i set need_crosstools only for mingw target, however
10551 # the same should be true for Android and Darwin ports.
10552 if test "$need_crosstools" = "yes" ; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu-aros" >&5
10554 $as_echo "$aros_target_cpu-aros" >&6; }
10555 # Extract the first word of ""$aros_target_cpu-aros-cpp"", so it can be a program name with args.
10556 set dummy "$aros_target_cpu-aros-cpp"; ac_word=$2
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558 $as_echo_n "checking for $ac_word... " >&6; }
10559 if test "${ac_cv_path_orig_target_cpp+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 case $orig_target_cpp in
10563 [\\/]* | ?:[\\/]*)
10564 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568 for as_dir in $PATH
10570 IFS=$as_save_IFS
10571 test -z "$as_dir" && as_dir=.
10572 for ac_exec_ext in '' $ac_executable_extensions; do
10573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10574 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576 break 2
10578 done
10579 done
10580 IFS=$as_save_IFS
10583 esac
10585 orig_target_cpp=$ac_cv_path_orig_target_cpp
10586 if test -n "$orig_target_cpp"; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10588 $as_echo "$orig_target_cpp" >&6; }
10589 else
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10595 # Extract the first word of ""$aros_target_cpu-aros-gcc"", so it can be a program name with args.
10596 set dummy "$aros_target_cpu-aros-gcc"; ac_word=$2
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 $as_echo_n "checking for $ac_word... " >&6; }
10599 if test "${ac_cv_path_orig_target_cc+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 case $orig_target_cc in
10603 [\\/]* | ?:[\\/]*)
10604 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10610 IFS=$as_save_IFS
10611 test -z "$as_dir" && as_dir=.
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10614 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 break 2
10618 done
10619 done
10620 IFS=$as_save_IFS
10623 esac
10625 orig_target_cc=$ac_cv_path_orig_target_cc
10626 if test -n "$orig_target_cc"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10628 $as_echo "$orig_target_cc" >&6; }
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10635 # Extract the first word of ""$aros_target_cpu-aros-g++"", so it can be a program name with args.
10636 set dummy "$aros_target_cpu-aros-g++"; ac_word=$2
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10638 $as_echo_n "checking for $ac_word... " >&6; }
10639 if test "${ac_cv_path_orig_target_cxx+set}" = set; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 case $orig_target_cxx in
10643 [\\/]* | ?:[\\/]*)
10644 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10648 for as_dir in $PATH
10650 IFS=$as_save_IFS
10651 test -z "$as_dir" && as_dir=.
10652 for ac_exec_ext in '' $ac_executable_extensions; do
10653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10654 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10656 break 2
10658 done
10659 done
10660 IFS=$as_save_IFS
10663 esac
10665 orig_target_cxx=$ac_cv_path_orig_target_cxx
10666 if test -n "$orig_target_cxx"; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
10668 $as_echo "$orig_target_cxx" >&6; }
10669 else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10675 # Extract the first word of ""$aros_target_cpu-aros-ld"", so it can be a program name with args.
10676 set dummy "$aros_target_cpu-aros-ld"; ac_word=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678 $as_echo_n "checking for $ac_word... " >&6; }
10679 if test "${ac_cv_path_orig_target_ld+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 case $orig_target_ld in
10683 [\\/]* | ?:[\\/]*)
10684 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10694 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10698 done
10699 done
10700 IFS=$as_save_IFS
10703 esac
10705 orig_target_ld=$ac_cv_path_orig_target_ld
10706 if test -n "$orig_target_ld"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
10708 $as_echo "$orig_target_ld" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10715 # Extract the first word of ""$aros_target_cpu-aros-as"", so it can be a program name with args.
10716 set dummy "$aros_target_cpu-aros-as"; ac_word=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if test "${ac_cv_path_orig_target_as+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 case $orig_target_as in
10723 [\\/]* | ?:[\\/]*)
10724 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10734 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10738 done
10739 done
10740 IFS=$as_save_IFS
10743 esac
10745 orig_target_as=$ac_cv_path_orig_target_as
10746 if test -n "$orig_target_as"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
10748 $as_echo "$orig_target_as" >&6; }
10749 else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; }
10755 # Extract the first word of ""$aros_target_cpu-aros-ar"", so it can be a program name with args.
10756 set dummy "$aros_target_cpu-aros-ar"; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if test "${ac_cv_path_orig_target_ar+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 case $orig_target_ar in
10763 [\\/]* | ?:[\\/]*)
10764 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10774 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10778 done
10779 done
10780 IFS=$as_save_IFS
10783 esac
10785 orig_target_ar=$ac_cv_path_orig_target_ar
10786 if test -n "$orig_target_ar"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
10788 $as_echo "$orig_target_ar" >&6; }
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10795 # Extract the first word of ""$aros_target_cpu-aros-ranlib"", so it can be a program name with args.
10796 set dummy "$aros_target_cpu-aros-ranlib"; ac_word=$2
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 $as_echo_n "checking for $ac_word... " >&6; }
10799 if test "${ac_cv_path_orig_target_ranlib+set}" = set; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 case $orig_target_ranlib in
10803 [\\/]* | ?:[\\/]*)
10804 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10814 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10818 done
10819 done
10820 IFS=$as_save_IFS
10823 esac
10825 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
10826 if test -n "$orig_target_ranlib"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
10828 $as_echo "$orig_target_ranlib" >&6; }
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10835 # Extract the first word of ""$aros_target_cpu-aros-nm"", so it can be a program name with args.
10836 set dummy "$aros_target_cpu-aros-nm"; ac_word=$2
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10838 $as_echo_n "checking for $ac_word... " >&6; }
10839 if test "${ac_cv_path_orig_target_nm+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 case $orig_target_nm in
10843 [\\/]* | ?:[\\/]*)
10844 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848 for as_dir in $PATH
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10854 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
10855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10858 done
10859 done
10860 IFS=$as_save_IFS
10863 esac
10865 orig_target_nm=$ac_cv_path_orig_target_nm
10866 if test -n "$orig_target_nm"; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
10868 $as_echo "$orig_target_nm" >&6; }
10869 else
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10875 # Extract the first word of ""$aros_target_cpu-aros-strip"", so it can be a program name with args.
10876 set dummy "$aros_target_cpu-aros-strip"; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if test "${ac_cv_path_orig_target_strip+set}" = set; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 case $orig_target_strip in
10883 [\\/]* | ?:[\\/]*)
10884 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10894 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10898 done
10899 done
10900 IFS=$as_save_IFS
10903 esac
10905 orig_target_strip=$ac_cv_path_orig_target_strip
10906 if test -n "$orig_target_strip"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
10908 $as_echo "$orig_target_strip" >&6; }
10909 else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10915 # Extract the first word of ""$aros_target_cpu-aros-objcopy"", so it can be a program name with args.
10916 set dummy "$aros_target_cpu-aros-objcopy"; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if test "${ac_cv_path_orig_target_objcopy+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 case $orig_target_objcopy in
10923 [\\/]* | ?:[\\/]*)
10924 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10943 esac
10945 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
10946 if test -n "$orig_target_objcopy"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
10948 $as_echo "$orig_target_objcopy" >&6; }
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10955 # Extract the first word of ""$aros_target_cpu-aros-objdump"", so it can be a program name with args.
10956 set dummy "$aros_target_cpu-aros-objdump"; ac_word=$2
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if test "${ac_cv_path_orig_target_objdump+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 case $orig_target_objdump in
10963 [\\/]* | ?:[\\/]*)
10964 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10974 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10978 done
10979 done
10980 IFS=$as_save_IFS
10983 esac
10985 orig_target_objdump=$ac_cv_path_orig_target_objdump
10986 if test -n "$orig_target_objdump"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
10988 $as_echo "$orig_target_objdump" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10995 if test "$aros_gcc_version" != ""; then
10996 orig_target_cpp="$orig_target_cpp-$aros_gcc_version"
10997 orig_target_cc="$orig_target_cc-$aros_gcc_version"
10998 orig_target_cxx="$orig_target_cxx-$aros_gcc_version"
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
11002 $as_echo "$kernel_tool_prefix" >&6; }
11003 orig_target_cpp="${aros_kernel_cpp}"
11004 orig_target_cc="${aros_kernel_cc}"
11005 orig_target_cxx="${aros_kernel_cxx}"
11006 orig_target_ld="${aros_kernel_ld}"
11007 orig_target_as="${aros_kernel_as}"
11008 orig_target_ar="${aros_kernel_ar}"
11009 orig_target_ranlib="${aros_kernel_ranlib}"
11010 orig_target_nm="${aros_kernel_nm}"
11011 orig_target_strip="${aros_kernel_strip}"
11012 orig_target_objcopy="${aros_kernel_objcopy}"
11013 orig_target_objdump="${aros_kernel_objdump}"
11016 if test "$orig_target_cpp" = ""; then
11017 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11019 if test "$orig_target_cc" = ""; then
11020 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11022 if test "x$orig_target_cxx" != "x" ; then
11023 if test "$orig_target_cxx" = ""; then
11024 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11027 if test "$orig_target_ld" = ""; then
11028 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11030 if test "$orig_target_as" = ""; then
11031 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11033 if test "$orig_target_ar" = ""; then
11034 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11036 if test "$orig_target_ranlib" = ""; then
11037 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11039 if test "$orig_target_nm" = ""; then
11040 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11042 if test "$orig_target_strip" = ""; then
11043 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11045 if test "$orig_target_objcopy" = ""; then
11046 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11048 if test "$orig_target_objdump" = ""; then
11049 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11053 # At this point, all aros_kernel_* and aros_target_*
11054 # tools should be set up correctly
11056 CC="$aros_kernel_cc $kernel_tool_flags"
11057 CPP="$aros_kernel_cpp"
11059 #-----------------------------------------------------------------------------
11061 # Disable pointer-signedness warnings if the compiler recognises the option
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
11064 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
11065 save_cflags="$CFLAGS"
11066 if test "$crosstools" != "yes" ; then
11067 CFLAGS="$CFLAGS -Wno-pointer-sign"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11072 main ()
11076 return 0;
11078 _ACEOF
11079 if ac_fn_c_try_compile "$LINENO"; then :
11080 use_no_sign_warning="yes"
11081 else
11082 use_no_sign_warning="no"
11084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085 else
11086 # we do know it is supported for the smallest version of gcc we are going to build
11087 # we assume it's also supported by later versions
11088 use_no_sign_warning=yes
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
11091 $as_echo "$use_no_sign_warning" >&6; }
11092 if test "x-$use_no_sign_warning" = "x-yes" ; then
11093 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
11095 CFLAGS="$save_cflags"
11097 #-----------------------------------------------------------------------------
11099 # Find all the tools we need to compile. This could be cross-compiling
11100 # though! If that is the case we use the GNU form of the target and
11101 # simply add this to the front of the binary name. This is rather simple,
11102 # but it should work under most circumstances.
11104 # The default tools are to use the same as the host, but only if the
11105 # host and target CPU are the same. With GCC this is normally enough.
11108 aros_cc_pre=""
11109 aros_shared_ld="$aros_host_ld"
11111 aros_target_mkdep="$aros_host_mkdep"
11113 # The default tools executables to be linked to.
11114 if test "$rescomp" != ""; then
11115 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
11116 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118 $as_echo_n "checking for $ac_word... " >&6; }
11119 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 case $aros_kernel_rescomp in
11123 [\\/]* | ?:[\\/]*)
11124 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11138 done
11139 done
11140 IFS=$as_save_IFS
11143 esac
11145 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
11146 if test -n "$aros_kernel_rescomp"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
11148 $as_echo "$aros_kernel_rescomp" >&6; }
11149 else
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11155 if test "$aros_kernel_rescomp" = ""; then
11156 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
11160 # Set up the sources for the symlink farm
11161 if test "$crosstools" = "yes"; then
11162 crosstools_target=tools-crosstools
11163 else
11164 crosstools_cxx_target=tools-crosstools
11167 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
11168 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
11171 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
11172 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
11173 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
11174 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
11175 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
11176 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
11177 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
11179 # aros_cc_pre is a variable that is added to the front of the compiler name
11180 # in the generated aros-gcc shell script. We need this to enable the cache
11181 # to work across cleaned builds. Also, support DISTCC using the correct
11182 # environment variable.
11185 if test "x${DISTCC}" != "x" ; then
11186 if test "x${CCACHE}" != "x" ; then
11187 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
11188 else
11189 aros_cc_pre="${DISTCC} "
11191 else
11192 if test "x${CCACHE}" != "x" ; then
11193 aros_cc_pre="${CCACHE} "
11197 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
11199 aros_target_nostdinc_cflags=-nostdinc
11201 aros_target_nostartup_ldflags=-nostartfiles
11203 aros_target_nix_ldflags=-nix
11205 aros_target_detach_ldflags=-detach
11207 aros_target_nostdlib_ldflags=-nostdlib
11210 # Target tools
11211 if test "$crosstools" != "yes"; then
11212 if test "$GCC" = "yes"; then
11213 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
11215 else
11216 # We do not know which gcc version we are going to build and what we need to know
11217 # here is different for different versions so this will be set later during the
11218 # build of crosstools.
11219 aros_target_cc_path=@aros_target_cc_path@
11221 aros_target_cpp="${prefix}cpp"
11222 aros_target_cc="${prefix}gcc"
11223 aros_target_cxx="${prefix}g++"
11224 aros_target_as="${prefix}as"
11225 aros_target_ld="${prefix}ld"
11226 aros_target_ar="${prefix}ar $aros_target_ar_flags"
11227 aros_target_objcopy="${prefix}objcopy"
11228 aros_target_objdump="${prefix}objdump"
11229 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
11230 aros_target_nm="${prefix}nm $aros_target_nm_flags"
11231 aros_target_strip="${prefix}strip"
11232 aros_plain_nm="${prefix}nm"
11233 aros_plain_ar="${prefix}ar"
11235 if test "$aros_kernel_includes" != "" ; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
11237 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
11238 if test "$aros_kernel_cc_includes" = "" ; then
11239 # Try to guess where the directory is.
11240 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
11241 if test -d $aros_kernel_cc_includes; then
11242 # Check if there is also an include-fixed directory and add it
11243 # to kernel compiler's include path as it may contain some of
11244 # the headers we need.
11245 if test -d "$aros_kernel_cc_includes"-fixed; then
11246 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
11248 # Check for specific includes directory. Neede for Ubuntu 11.10
11249 if test -d "/usr/include/i386-linux-gnu"; then
11250 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
11252 else
11253 # The directory doesn't exist, we need to do some more work.
11254 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
11256 # These are the headers we're looking for.
11257 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11258 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11259 zutil.h stdint.h"
11261 dirs=
11262 for h in $headers; do
11263 # Which other headers are needed by each of the above?
11264 deps=$(echo "#include <$h>" | \
11265 $aros_kernel_cc -E -M - 2>/dev/null | \
11266 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11268 # Copy all the needed headers to a directory beneath gendir.
11269 for d in $deps; do
11270 h=$(basename $d)
11271 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
11272 sed -n "s,^.*/include\(/.*\),\1,p")
11273 ! test -d $dir && mkdir -p $dir
11274 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11275 done
11276 done
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
11280 $as_echo "$aros_kernel_cc_includes" >&6; }
11281 # Adding -nostdinc to kernel includes as they are always used together.
11282 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
11285 if test "$crosstools" != "yes"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
11287 $as_echo_n "checking for the target compiler's include path... " >&6; }
11288 if test "$aros_target_cc_includes" = "" ; then
11289 #try to guess where the directory is
11290 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11291 if ! test -d $aros_target_cc_includes; then
11292 #the directory doesn't exist, we need to do some more work
11293 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11295 #these are the headers we're looking for
11296 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11297 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11298 zutil.h"
11300 dirs=
11301 for h in $headers; do
11302 #which other headers each of the above headers needs?
11303 deps=$(echo "#include <$h>" | \
11304 $orig_target_cc -E -M - 2>/dev/null | \
11305 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11307 #copy all the needed headers to a directory beneath gendir
11308 for d in $deps; do
11309 h=$(basename $d)
11310 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11311 sed -n "s,^.*/include\(/.*\),\1,p")
11312 ! test -d $dir && mkdir -p $dir
11313 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11314 done
11315 done
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
11319 $as_echo "$aros_target_cc_includes" >&6; }
11320 else
11321 # We do not know which gcc version we are going to build and what we need to know
11322 # here is different for different versions so this will be set later during the
11323 # build of crosstools.
11324 aros_target_cc_includes=@aros_target_cc_includes@
11328 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11329 # On GCC >= 4.0 -iquote should be used
11332 save_cc="$CC"
11333 save_cflags="$CFLAGS"
11334 CFLAGS="-iquote."
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11336 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11337 if test "x-$crosstools" != "x-yes"; then
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11342 main ()
11346 return 0;
11348 _ACEOF
11349 if ac_fn_c_try_compile "$LINENO"; then :
11350 has_iquote="yes"
11351 else
11352 has_iquote="no"
11354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11355 else
11356 # we do know it is supported for the smallest version of gcc we are going to build
11357 # we assume it's also supported by later versions
11358 has_iquote=yes
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11361 $as_echo "$has_iquote" >&6; }
11362 if test "x-$has_iquote" = "x-yes" ; then
11363 host_cflags_iquote=-iquote
11364 host_cflags_iquote_end=
11365 else
11366 host_cflags_iquote=-I
11367 host_cflags_iquote_end=-I-
11369 kernel_cflags_iquote=$host_cflags_iquote
11370 kernel_cflags_iquote_end=$host_cflags_iquote_end
11371 if test "x-$cross_compiling" = "x-yes"; then
11372 CC="$aros_kernel_cc"
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11374 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11375 if test "x-$crosstools" != "x-yes"; then
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11380 main ()
11384 return 0;
11386 _ACEOF
11387 if ac_fn_c_try_compile "$LINENO"; then :
11388 use_no_stack_protector="yes"
11389 else
11390 use_no_stack_protector="no"
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 else
11394 # we do know it is supported for the smallest version of gcc we are going to build
11395 # we assume it's also supported by later versions
11396 use_no_stack_protector=yes
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11399 $as_echo "$use_no_stack_protector" >&6; }
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11401 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11402 if test "x-$crosstools" != "x-yes"; then
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11407 main ()
11411 return 0;
11413 _ACEOF
11414 if ac_fn_c_try_compile "$LINENO"; then :
11415 has_iquote="yes"
11416 else
11417 has_iquote="no"
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 else
11421 # we do know it is supported for the smallest version of gcc we are going to build
11422 # we assume it's also supported by later versions
11423 has_iquote=yes
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11426 $as_echo "$has_iquote" >&6; }
11427 if test "x-$has_iquote" = "x-yes" ; then
11428 kernel_cflags_iquote=-iquote
11429 kernel_cflags_iquote_end=
11430 else
11431 kernel_cflags_iquote=-I
11432 kernel_cflags_iquote_end=-I-
11435 aros_cflags_iquote=$kernel_cflags_iquote
11436 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11437 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11438 CC="$orig_target_cc"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11440 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11441 if test "x-$crosstools" != "x-yes"; then
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11446 main ()
11450 return 0;
11452 _ACEOF
11453 if ac_fn_c_try_compile "$LINENO"; then :
11454 has_iquote="yes"
11455 else
11456 has_iquote="no"
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 else
11460 # we do know it is supported for the smallest version of gcc we are going to build
11461 # we assume it's also supported by later versions
11462 has_iquote=yes
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11465 $as_echo "$has_iquote" >&6; }
11466 if test "x-$has_iquote" = "x-yes" ; then
11467 aros_cflags_iquote=-iquote
11468 aros_cflags_iquote_end=
11469 else
11470 aros_cflags_iquote=-I
11471 aros_cflags_iquote_end=-I-
11474 if test "x-$use_no_stack_protector" = "x-yes" ; then
11475 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11479 #-----------------------------------------------------------------------------
11481 # Check if the target compiler supports some options used for delinting:
11482 # -Wunused-but-set-variable
11483 # -Warray-bounds
11484 # -Wenum-compare
11485 # -Wstrict-overflow
11486 # -Wformat-security
11488 if test "x-$crosstools" != "x-yes"; then
11489 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11490 CC="$orig_target_cc"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11493 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11494 CFLAGS=-Wunused-but-set-variable
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11499 main ()
11503 return 0;
11505 _ACEOF
11506 if ac_fn_c_try_compile "$LINENO"; then :
11507 aros_unused_but_set_variable="yes"
11508 else
11509 aros_unused_but_set_variable="no"
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11513 $as_echo "$aros_unused_but_set_variable" >&6; }
11514 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11515 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11519 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11520 CFLAGS=-Warray-bounds
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11525 main ()
11529 return 0;
11531 _ACEOF
11532 if ac_fn_c_try_compile "$LINENO"; then :
11533 aros_array_bounds="yes"
11534 else
11535 aros_array_bounds="no"
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11539 $as_echo "$aros_array_bounds" >&6; }
11540 if test "x-$aros_array_bounds" = "x-yes" ; then
11541 aros_cflags_array_bounds=-Wno-array-bounds
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11545 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11546 CFLAGS=-Wenum-compare
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11551 main ()
11555 return 0;
11557 _ACEOF
11558 if ac_fn_c_try_compile "$LINENO"; then :
11559 aros_enum_compare="yes"
11560 else
11561 aros_enum_compare="no"
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11565 $as_echo "$aros_enum_compare" >&6; }
11566 if test "x-$aros_enum_compare" = "x-yes" ; then
11567 aros_cflags_enum_compare=-Wno-enum-compare
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11571 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11572 CFLAGS=-Wstrict-overflow
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11577 main ()
11581 return 0;
11583 _ACEOF
11584 if ac_fn_c_try_compile "$LINENO"; then :
11585 aros_strict_overflow="yes"
11586 else
11587 aros_strict_overflow="no"
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11591 $as_echo "$aros_strict_overflow" >&6; }
11592 if test "x-$aros_strict_overflow" = "x-yes" ; then
11593 aros_cflags_strict_overflow=-Wno-strict-overflow
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11597 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11598 CFLAGS=-Wformat-security
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11603 main ()
11607 return 0;
11609 _ACEOF
11610 if ac_fn_c_try_compile "$LINENO"; then :
11611 aros_format_security="yes"
11612 else
11613 aros_format_security="no"
11615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11617 $as_echo "$aros_format_security" >&6; }
11618 if test "x-$aros_format_security" = "x-yes" ; then
11619 aros_cflags_format_security=-Wno-format-security
11621 else
11622 # We do not know which gcc version we are going to build and what we need to know
11623 # here is different for different versions so this will be set later during the
11624 # build of crosstools.
11625 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
11626 aros_cflags_array_bounds=@aros_cflags_array_bounds@
11627 aros_cflags_enum_compare=@aros_cflags_enum_compare@
11628 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
11629 aros_cflags_format_security=@aros_cflags_format_security@
11632 #-----------------------------------------------------------------------------
11634 # Check if we can explicitly choose older version of symbol hashing
11636 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11637 CC="$aros_kernel_cc"
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11639 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11644 main ()
11648 return 0;
11650 _ACEOF
11651 if ac_fn_c_try_link "$LINENO"; then :
11652 use_hash_style="yes"
11653 else
11654 use_hash_style="no"
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11659 $as_echo "$use_hash_style" >&6; }
11660 if test "x-$use_hash_style" = "x-yes" ; then
11661 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11663 CC="$save_cc"
11664 CFLAGS="$save_cflags"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11675 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11677 # Check whether --with-resolution was given.
11678 if test "${with_resolution+set}" = set; then :
11679 withval=$with_resolution; resolution=$withval
11680 else
11681 resolution=none
11684 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11685 if test "$resolution" = "yes" ; then
11686 resolution="none"
11688 if test "$resolution" = "no" ; then
11689 resolution="none"
11691 if test "$resolution" != "none" ; then
11692 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11693 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11694 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11697 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11698 aros_cv_default_wbwidth=$aros_default_wbwidth
11699 aros_cv_default_wbheight=$aros_default_wbheight
11700 aros_cv_default_wbdepth=$aros_default_wbdepth
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11703 $as_echo_n "checking if serial debug is enabled... " >&6; }
11705 # Check whether --with-serial-debug was given.
11706 if test "${with_serial_debug+set}" = set; then :
11707 withval=$with_serial_debug; serial_debug=$withval
11708 else
11709 serial_debug=none
11712 if test "$aros_serial_debug" = 0 ; then
11713 serial_debug_forced=""
11714 if test "$serial_debug" = "yes" ; then
11715 serial_debug="1"
11717 if test "$serial_debug" = "no" ; then
11718 serial_debug="none"
11720 else
11721 serial_debug_forced="(forced)"
11722 serial_debug=$aros_serial_debug
11724 if test "$serial_debug" != "none" ; then
11725 aros_serial_debug=$serial_debug
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11727 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11728 else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11734 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11735 # Check whether --enable-palm_debug_hack was given.
11736 if test "${enable_palm_debug_hack+set}" = set; then :
11737 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11738 else
11739 palm_debug_hack="no"
11742 if test "$palm_debug_hack" = "yes" ; then
11743 aros_palm_debug_hack="1"
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11746 $as_echo "$palm_debug_hack" >&6; }
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11749 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11750 # Check whether --enable-nesting_supervisor was given.
11751 if test "${enable_nesting_supervisor+set}" = set; then :
11752 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11753 else
11754 nesting_supervisor="no"
11757 if test "$nesting_supervisor" = "yes" ; then
11758 aros_nesting_supervisor="1"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11761 $as_echo "$nesting_supervisor" >&6; }
11763 if test "$aros_enable_mmu" = "" ; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11765 $as_echo_n "checking if MMU support is enabled... " >&6; }
11766 # Check whether --enable-mmu was given.
11767 if test "${enable_mmu+set}" = set; then :
11768 enableval=$enable_mmu; aros_enable_mmu=$enableval
11769 else
11770 aros_enable_mmu="yes"
11773 if test "$aros_enable_mmu" = "" ; then
11774 aros_enable_mmu="yes"
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11777 $as_echo "$aros_enable_mmu" >&6; }
11779 if test "$aros_enable_mmu" = "no" ; then
11780 aros_enable_mmu="0"
11781 else
11782 aros_enable_mmu="1"
11786 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11788 if test "x-$need_dlopen" != "x-no" ; then
11789 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11790 if test "x$ac_cv_func_dlopen" = x""yes; then :
11791 have_dl="yes"
11792 else
11793 have_dl="no"
11796 if test "x-$have_dl" = "x-no" ; then
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-ldl $LIBS"
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 char dlopen ();
11815 main ()
11817 return dlopen ();
11819 return 0;
11821 _ACEOF
11822 if ac_fn_c_try_link "$LINENO"; then :
11823 ac_cv_lib_dl_dlopen=yes
11824 else
11825 ac_cv_lib_dl_dlopen=no
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11833 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11834 have_dl="yes"
11835 aros_host_ldflags="$aros_host_ldflags -ldl"
11836 else
11837 have_dl="no"
11841 if test "x-$have_dl" = "x-no" ; then
11842 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11847 # Check whether --enable-x11_hidd was given.
11848 if test "${enable_x11_hidd+set}" = set; then :
11849 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11850 else
11851 x11_hidd="$need_x11"
11854 case "x-$x11_hidd" in
11855 x-yes|x-no|x-auto) ;;
11856 *) x11_hidd="$need_x11" ;;
11857 esac
11859 ENABLE_X11=0
11861 if test "x-$x11_hidd" != "x-no" ; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11864 $as_echo_n "checking for X... " >&6; }
11867 # Check whether --with-x was given.
11868 if test "${with_x+set}" = set; then :
11869 withval=$with_x;
11872 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11873 if test "x$with_x" = xno; then
11874 # The user explicitly disabled X.
11875 have_x=disabled
11876 else
11877 case $x_includes,$x_libraries in #(
11878 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
11879 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 # One or both of the vars are not set, and there is no cached value.
11883 ac_x_includes=no ac_x_libraries=no
11884 rm -f -r conftest.dir
11885 if mkdir conftest.dir; then
11886 cd conftest.dir
11887 cat >Imakefile <<'_ACEOF'
11888 incroot:
11889 @echo incroot='${INCROOT}'
11890 usrlibdir:
11891 @echo usrlibdir='${USRLIBDIR}'
11892 libdir:
11893 @echo libdir='${LIBDIR}'
11894 _ACEOF
11895 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11896 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11897 for ac_var in incroot usrlibdir libdir; do
11898 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11899 done
11900 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11901 for ac_extension in a so sl dylib la dll; do
11902 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11903 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11904 ac_im_usrlibdir=$ac_im_libdir; break
11906 done
11907 # Screen out bogus values from the imake configuration. They are
11908 # bogus both because they are the default anyway, and because
11909 # using them would break gcc on systems where it needs fixed includes.
11910 case $ac_im_incroot in
11911 /usr/include) ac_x_includes= ;;
11912 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11913 esac
11914 case $ac_im_usrlibdir in
11915 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11916 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11917 esac
11919 cd ..
11920 rm -f -r conftest.dir
11923 # Standard set of common directories for X headers.
11924 # Check X11 before X11Rn because it is often a symlink to the current release.
11925 ac_x_header_dirs='
11926 /usr/X11/include
11927 /usr/X11R7/include
11928 /usr/X11R6/include
11929 /usr/X11R5/include
11930 /usr/X11R4/include
11932 /usr/include/X11
11933 /usr/include/X11R7
11934 /usr/include/X11R6
11935 /usr/include/X11R5
11936 /usr/include/X11R4
11938 /usr/local/X11/include
11939 /usr/local/X11R7/include
11940 /usr/local/X11R6/include
11941 /usr/local/X11R5/include
11942 /usr/local/X11R4/include
11944 /usr/local/include/X11
11945 /usr/local/include/X11R7
11946 /usr/local/include/X11R6
11947 /usr/local/include/X11R5
11948 /usr/local/include/X11R4
11950 /usr/X386/include
11951 /usr/x386/include
11952 /usr/XFree86/include/X11
11954 /usr/include
11955 /usr/local/include
11956 /usr/unsupported/include
11957 /usr/athena/include
11958 /usr/local/x11r5/include
11959 /usr/lpp/Xamples/include
11961 /usr/openwin/include
11962 /usr/openwin/share/include'
11964 if test "$ac_x_includes" = no; then
11965 # Guess where to find include files, by looking for Xlib.h.
11966 # First, try using that file with no special directory specified.
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 #include <X11/Xlib.h>
11970 _ACEOF
11971 if ac_fn_c_try_cpp "$LINENO"; then :
11972 # We can compile using X headers with no special include directory.
11973 ac_x_includes=
11974 else
11975 for ac_dir in $ac_x_header_dirs; do
11976 if test -r "$ac_dir/X11/Xlib.h"; then
11977 ac_x_includes=$ac_dir
11978 break
11980 done
11982 rm -f conftest.err conftest.i conftest.$ac_ext
11983 fi # $ac_x_includes = no
11985 if test "$ac_x_libraries" = no; then
11986 # Check for the libraries.
11987 # See if we find them without any special options.
11988 # Don't add to $LIBS permanently.
11989 ac_save_LIBS=$LIBS
11990 LIBS="-lX11 $LIBS"
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #include <X11/Xlib.h>
11995 main ()
11997 XrmInitialize ()
11999 return 0;
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003 LIBS=$ac_save_LIBS
12004 # We can link X programs with no special library path.
12005 ac_x_libraries=
12006 else
12007 LIBS=$ac_save_LIBS
12008 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12010 # Don't even attempt the hair of trying to link an X program!
12011 for ac_extension in a so sl dylib la dll; do
12012 if test -r "$ac_dir/libX11.$ac_extension"; then
12013 ac_x_libraries=$ac_dir
12014 break 2
12016 done
12017 done
12019 rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021 fi # $ac_x_libraries = no
12023 case $ac_x_includes,$ac_x_libraries in #(
12024 no,* | *,no | *\'*)
12025 # Didn't find X, or a directory has "'" in its name.
12026 ac_cv_have_x="have_x=no";; #(
12028 # Record where we found X for the cache.
12029 ac_cv_have_x="have_x=yes\
12030 ac_x_includes='$ac_x_includes'\
12031 ac_x_libraries='$ac_x_libraries'"
12032 esac
12034 ;; #(
12035 *) have_x=yes;;
12036 esac
12037 eval "$ac_cv_have_x"
12038 fi # $with_x != no
12040 if test "$have_x" != yes; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12042 $as_echo "$have_x" >&6; }
12043 no_x=yes
12044 else
12045 # If each of the values was on the command line, it overrides each guess.
12046 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12047 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12048 # Update the cache value to reflect the command line values.
12049 ac_cv_have_x="have_x=yes\
12050 ac_x_includes='$x_includes'\
12051 ac_x_libraries='$x_libraries'"
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12053 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12057 x_cflags=
12058 for path in $x_libraries
12060 x_cflags="$x_cflags -L$path"
12061 done
12063 for path in $x_includes
12065 x_cflags="$x_cflags -I$path"
12066 done
12068 if test "x-$no_x" = "x-yes" ; then
12070 if test "x-$x11_hidd" != "x-auto" ; then
12071 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
12074 else
12075 x11_hidd_target=kernel-x11gfx-kobj
12076 ENABLE_X11=1
12078 # Check whether --enable-x11_shm was given.
12079 if test "${enable_x11_shm+set}" = set; then :
12080 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
12081 else
12082 x11_hidd_shm="auto"
12085 case "x-$x11_hidd_shm" in
12086 x-yes|x-no|x-auto) ;;
12087 *) x11_hidd_shm="auto" ;;
12088 esac
12090 have_xshm=no
12092 if test "x-$x11_hidd_shm" != "x-no" ; then
12094 for ac_header in sys/ipc.h
12095 do :
12096 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
12097 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
12098 cat >>confdefs.h <<_ACEOF
12099 #define HAVE_SYS_IPC_H 1
12100 _ACEOF
12104 done
12106 for ac_header in sys/shm.h
12107 do :
12108 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
12109 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
12110 cat >>confdefs.h <<_ACEOF
12111 #define HAVE_SYS_SHM_H 1
12112 _ACEOF
12116 done
12119 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12121 save_cflags="$CFLAGS"
12122 CFLAGS="$CFLAGS $x_cflags"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
12124 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
12125 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lXext $LIBS"
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12133 /* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 char XShmQueryExtension ();
12141 main ()
12143 return XShmQueryExtension ();
12145 return 0;
12147 _ACEOF
12148 if ac_fn_c_try_link "$LINENO"; then :
12149 ac_cv_lib_Xext_XShmQueryExtension=yes
12150 else
12151 ac_cv_lib_Xext_XShmQueryExtension=no
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12158 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12159 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
12160 have_xshm=yes
12163 CFLAGS="$save_cflags"
12167 if test "x-$have_xshm" = "x-yes" ; then
12168 DO_XSHM_SUPPORT="1"
12169 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12170 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
12171 else
12172 DO_XSHM_SUPPORT="0"
12176 # Check whether --enable-x11_vidmode was given.
12177 if test "${enable_x11_vidmode+set}" = set; then :
12178 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12179 else
12180 x11_hidd_vidmode="auto"
12183 case "x-$x11_hidd_vidmode" in
12184 x-yes|x-no|x-auto) ;;
12185 *) x11_hidd_vidmode="auto" ;;
12186 esac
12188 have_vidmode=no
12190 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12192 save_cflags="$CFLAGS"
12193 CFLAGS="$CFLAGS $x_cflags"
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12195 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
12196 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 ac_check_lib_save_LIBS=$LIBS
12200 LIBS="-lXxf86vm $LIBS"
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12207 #ifdef __cplusplus
12208 extern "C"
12209 #endif
12210 char XF86VidModeQueryExtension ();
12212 main ()
12214 return XF86VidModeQueryExtension ();
12216 return 0;
12218 _ACEOF
12219 if ac_fn_c_try_link "$LINENO"; then :
12220 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12221 else
12222 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12224 rm -f core conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12229 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12230 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
12231 have_vidmode=yes
12234 CFLAGS="$save_cflags"
12237 if test "x-$have_vidmode" = "x-yes" ; then
12238 DO_VIDMODE_SUPPORT="1"
12239 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12240 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
12241 else
12242 DO_VIDMODE_SUPPORT="0"
12246 aros_host_x11_includes=$x_includes
12247 aros_host_x11_libdirs=$x_libraries
12251 # Check whether --enable-sdl_hidd was given.
12252 if test "${enable_sdl_hidd+set}" = set; then :
12253 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12254 else
12255 sdl_hidd="auto"
12258 case "x-$sdl_hidd" in
12259 x-yes|x-no|x-auto) ;;
12260 *) sdl_hidd="auto" ;;
12261 esac
12263 if test "x-$sdl_hidd" != "x-no" ; then
12266 # Check whether --with-sdl-prefix was given.
12267 if test "${with_sdl_prefix+set}" = set; then :
12268 withval=$with_sdl_prefix; sdl_prefix="$withval"
12269 else
12270 sdl_prefix=""
12274 # Check whether --with-sdl-exec-prefix was given.
12275 if test "${with_sdl_exec_prefix+set}" = set; then :
12276 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12277 else
12278 sdl_exec_prefix=""
12281 # Check whether --enable-sdltest was given.
12282 if test "${enable_sdltest+set}" = set; then :
12283 enableval=$enable_sdltest;
12284 else
12285 enable_sdltest=yes
12289 if test x$sdl_exec_prefix != x ; then
12290 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12291 if test x${SDL_CONFIG+set} != xset ; then
12292 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12295 if test x$sdl_prefix != x ; then
12296 sdl_args="$sdl_args --prefix=$sdl_prefix"
12297 if test x${SDL_CONFIG+set} != xset ; then
12298 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12302 if test "x$prefix" != xNONE; then
12303 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12305 # Extract the first word of "sdl-config", so it can be a program name with args.
12306 set dummy sdl-config; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 case $SDL_CONFIG in
12313 [\\/]* | ?:[\\/]*)
12314 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326 break 2
12328 done
12329 done
12330 IFS=$as_save_IFS
12332 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12334 esac
12336 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12337 if test -n "$SDL_CONFIG"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12339 $as_echo "$SDL_CONFIG" >&6; }
12340 else
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12346 min_sdl_version=1.2.10
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12348 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12349 no_sdl=""
12350 if test "$SDL_CONFIG" = "no" ; then
12351 no_sdl=yes
12352 else
12353 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12354 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12356 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12357 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12358 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12359 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12360 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12361 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12362 if test "x$enable_sdltest" = "xyes" ; then
12363 ac_save_CFLAGS="$CFLAGS"
12364 ac_save_CXXFLAGS="$CXXFLAGS"
12365 ac_save_LIBS="$LIBS"
12366 CFLAGS="$CFLAGS $SDL_CFLAGS"
12367 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12368 LIBS="$LIBS $SDL_LIBS"
12369 rm -f conf.sdltest
12370 if test "$cross_compiling" = yes; then :
12371 echo $ac_n "cross compiling; assumed OK... $ac_c"
12372 else
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12376 #include <stdio.h>
12377 #include <stdlib.h>
12378 #include <string.h>
12379 #include "SDL.h"
12381 char*
12382 my_strdup (char *str)
12384 char *new_str;
12386 if (str)
12388 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12389 strcpy (new_str, str);
12391 else
12392 new_str = NULL;
12394 return new_str;
12397 int main (int argc, char *argv[])
12399 int major, minor, micro;
12400 char *tmp_version;
12402 /* This hangs on some systems (?)
12403 system ("touch conf.sdltest");
12405 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12407 /* HP/UX 9 (%@#!) writes to sscanf strings */
12408 tmp_version = my_strdup("$min_sdl_version");
12409 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12410 printf("%s, bad version string\n", "$min_sdl_version");
12411 exit(1);
12414 if (($sdl_major_version > major) ||
12415 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12416 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12418 return 0;
12420 else
12422 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12423 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12424 printf("*** best to upgrade to the required version.\n");
12425 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12426 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12427 printf("*** config.cache before re-running configure\n");
12428 return 1;
12433 _ACEOF
12434 if ac_fn_c_try_run "$LINENO"; then :
12436 else
12437 no_sdl=yes
12439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12440 conftest.$ac_objext conftest.beam conftest.$ac_ext
12443 CFLAGS="$ac_save_CFLAGS"
12444 CXXFLAGS="$ac_save_CXXFLAGS"
12445 LIBS="$ac_save_LIBS"
12448 if test "x$no_sdl" = x ; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12450 $as_echo "yes" >&6; }
12451 have_sdl="yes"
12452 else
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454 $as_echo "no" >&6; }
12455 if test "$SDL_CONFIG" = "no" ; then
12456 echo "*** The sdl-config script installed by SDL could not be found"
12457 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12458 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12459 echo "*** full path to sdl-config."
12460 else
12461 if test -f conf.sdltest ; then
12463 else
12464 echo "*** Could not run SDL test program, checking why..."
12465 CFLAGS="$CFLAGS $SDL_CFLAGS"
12466 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12467 LIBS="$LIBS $SDL_LIBS"
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12471 #include <stdio.h>
12472 #include "SDL.h"
12474 int main(int argc, char *argv[])
12475 { return 0; }
12476 #undef main
12477 #define main K_and_R_C_main
12480 main ()
12482 return 0;
12484 return 0;
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 echo "*** The test program compiled, but did not run. This usually means"
12489 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12490 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12491 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12492 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12493 echo "*** is required on your system"
12494 echo "***"
12495 echo "*** If you have an old version installed, it is best to remove it, although"
12496 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12497 else
12498 echo "*** The test program failed to compile or link. See the file config.log for the"
12499 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12500 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12501 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 CFLAGS="$ac_save_CFLAGS"
12506 CXXFLAGS="$ac_save_CXXFLAGS"
12507 LIBS="$ac_save_LIBS"
12510 SDL_CFLAGS=""
12511 SDL_LIBS=""
12512 have_sdl="no"
12516 rm -f conf.sdltest
12519 if test "x-$have_sdl" != "x-yes" ; then
12521 if test "x-$sdl_hidd" != "x-auto" ; then
12522 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12525 else
12526 sdl_hidd_target=kernel-hidd-sdl
12527 aros_host_sdl_cflags=SDL_CFLAGS
12528 aros_host_sdl_libs=SDL_LIBS
12532 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12533 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
12538 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12539 oss_library_target=workbench-libs-oss-unix
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12545 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12546 # Check whether --enable-dbus was given.
12547 if test "${enable_dbus+set}" = set; then :
12548 enableval=$enable_dbus; dbus="yes"
12549 else
12550 dbus="no"
12553 if test "$dbus" = "yes" ; then
12554 ENABLE_DBUS=1
12555 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12556 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12557 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12558 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12559 else
12560 ENABLE_DBUS=0
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12563 $as_echo "$dbus" >&6; }
12565 if test "$use_kernel_cc_wrapper" = "yes" ; then
12566 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12569 if test "${crosstools}" != "yes" ; then
12570 aros_target_toolchain=no
12571 else
12572 aros_target_toolchain=yes
12576 # Generic
12588 # Compatability with other Amiga-like operation systems
12591 # Host related
12619 # Target Related
12683 # Delinting target compiler flags
12690 # Graphics Related
12707 # Native version related
12710 # Palm native version related
12713 # Unix/Hosted version related
12716 # MMU related
12719 # Apple iOS related
12724 # Android related
12728 # DBUS related
12735 #X11 related
12738 # Debug related
12744 # Collect-aros stuff: "-ius" to ignore undefined symbols
12747 # C compiler related
12750 case "$aros_flavour" in
12751 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12752 aros_flavour="emulation" ;;
12753 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12754 aros_flavour="emulation" ;;
12755 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12756 aros_flavour="standalone";;
12757 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12758 aros_flavour="standalone";;
12759 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12760 aros_flavour="native" ;;
12761 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12762 aros_flavour="native" ;;
12763 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12764 aros_flavour="linklib" ;;
12765 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12766 aros_flavour="palmnative" ;;
12767 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12768 aros_flavour="mac68knative" ;;
12769 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12770 aros_flavour="ppcnative" ;;
12771 esac
12773 if test ! -d ${aros_inc_dir} ; then
12774 ${MKDIR} ${aros_inc_dir}
12776 if test ! -d ${aros_geninc_dir} ; then
12777 ${MKDIR} ${aros_geninc_dir}
12779 if test ! -d ${aros_hostcfg_dir} ; then
12780 ${MKDIR} ${aros_hostcfg_dir}
12782 if test ! -d ${aros_targetcfg_dir} ; then
12783 ${MKDIR} ${aros_targetcfg_dir}
12785 if test ! -d ${aros_tools_dir} ; then
12786 ${MKDIR} ${aros_tools_dir}
12788 if test ! -d ${aros_scripts_dir} ; then
12789 ${MKDIR} ${aros_scripts_dir}
12792 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12795 ac_config_commands="$ac_config_commands compiler_executable"
12797 ac_config_commands="$ac_config_commands genmf_executable"
12800 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"
12803 cat >confcache <<\_ACEOF
12804 # This file is a shell script that caches the results of configure
12805 # tests run on this system so they can be shared between configure
12806 # scripts and configure runs, see configure's option --config-cache.
12807 # It is not useful on other systems. If it contains results you don't
12808 # want to keep, you may remove or edit it.
12810 # config.status only pays attention to the cache file if you give it
12811 # the --recheck option to rerun configure.
12813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12815 # following values.
12817 _ACEOF
12819 # The following way of writing the cache mishandles newlines in values,
12820 # but we know of no workaround that is simple, portable, and efficient.
12821 # So, we kill variables containing newlines.
12822 # Ultrix sh set writes to stderr and can't be redirected directly,
12823 # and sets the high bit in the cache file unless we assign to the vars.
12825 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12826 eval ac_val=\$$ac_var
12827 case $ac_val in #(
12828 *${as_nl}*)
12829 case $ac_var in #(
12830 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12832 esac
12833 case $ac_var in #(
12834 _ | IFS | as_nl) ;; #(
12835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12836 *) { eval $ac_var=; unset $ac_var;} ;;
12837 esac ;;
12838 esac
12839 done
12841 (set) 2>&1 |
12842 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12843 *${as_nl}ac_space=\ *)
12844 # `set' does not quote correctly, so add quotes: double-quote
12845 # substitution turns \\\\ into \\, and sed turns \\ into \.
12846 sed -n \
12847 "s/'/'\\\\''/g;
12848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12849 ;; #(
12851 # `set' quotes correctly as required by POSIX, so do not add quotes.
12852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12854 esac |
12855 sort
12857 sed '
12858 /^ac_cv_env_/b end
12859 t clear
12860 :clear
12861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12862 t end
12863 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12864 :end' >>confcache
12865 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12866 if test -w "$cache_file"; then
12867 test "x$cache_file" != "x/dev/null" &&
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12869 $as_echo "$as_me: updating cache $cache_file" >&6;}
12870 cat confcache >$cache_file
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12873 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12876 rm -f confcache
12878 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12879 # Let make expand exec_prefix.
12880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12882 DEFS=-DHAVE_CONFIG_H
12884 ac_libobjs=
12885 ac_ltlibobjs=
12887 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12888 # 1. Remove the extension, and $U if already installed.
12889 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12890 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12891 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12892 # will be set to the directory where LIBOBJS objects are built.
12893 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12894 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12895 done
12896 LIBOBJS=$ac_libobjs
12898 LTLIBOBJS=$ac_ltlibobjs
12902 : ${CONFIG_STATUS=./config.status}
12903 ac_write_fail=0
12904 ac_clean_files_save=$ac_clean_files
12905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12907 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12908 as_write_fail=0
12909 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12910 #! $SHELL
12911 # Generated by $as_me.
12912 # Run this file to recreate the current configuration.
12913 # Compiler output produced by configure, useful for debugging
12914 # configure, is in config.log if it exists.
12916 debug=false
12917 ac_cs_recheck=false
12918 ac_cs_silent=false
12920 SHELL=\${CONFIG_SHELL-$SHELL}
12921 export SHELL
12922 _ASEOF
12923 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12924 ## -------------------- ##
12925 ## M4sh Initialization. ##
12926 ## -------------------- ##
12928 # Be more Bourne compatible
12929 DUALCASE=1; export DUALCASE # for MKS sh
12930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12931 emulate sh
12932 NULLCMD=:
12933 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12934 # is contrary to our usage. Disable this feature.
12935 alias -g '${1+"$@"}'='"$@"'
12936 setopt NO_GLOB_SUBST
12937 else
12938 case `(set -o) 2>/dev/null` in #(
12939 *posix*) :
12940 set -o posix ;; #(
12941 *) :
12943 esac
12947 as_nl='
12949 export as_nl
12950 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12951 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12953 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12954 # Prefer a ksh shell builtin over an external printf program on Solaris,
12955 # but without wasting forks for bash or zsh.
12956 if test -z "$BASH_VERSION$ZSH_VERSION" \
12957 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12958 as_echo='print -r --'
12959 as_echo_n='print -rn --'
12960 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12961 as_echo='printf %s\n'
12962 as_echo_n='printf %s'
12963 else
12964 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12965 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12966 as_echo_n='/usr/ucb/echo -n'
12967 else
12968 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12969 as_echo_n_body='eval
12970 arg=$1;
12971 case $arg in #(
12972 *"$as_nl"*)
12973 expr "X$arg" : "X\\(.*\\)$as_nl";
12974 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12975 esac;
12976 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12978 export as_echo_n_body
12979 as_echo_n='sh -c $as_echo_n_body as_echo'
12981 export as_echo_body
12982 as_echo='sh -c $as_echo_body as_echo'
12985 # The user is always right.
12986 if test "${PATH_SEPARATOR+set}" != set; then
12987 PATH_SEPARATOR=:
12988 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12989 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12990 PATH_SEPARATOR=';'
12995 # IFS
12996 # We need space, tab and new line, in precisely that order. Quoting is
12997 # there to prevent editors from complaining about space-tab.
12998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12999 # splitting by setting IFS to empty value.)
13000 IFS=" "" $as_nl"
13002 # Find who we are. Look in the path if we contain no directory separator.
13003 case $0 in #((
13004 *[\\/]* ) as_myself=$0 ;;
13005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13011 done
13012 IFS=$as_save_IFS
13015 esac
13016 # We did not find ourselves, most probably we were run as `sh COMMAND'
13017 # in which case we are not to be found in the path.
13018 if test "x$as_myself" = x; then
13019 as_myself=$0
13021 if test ! -f "$as_myself"; then
13022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13023 exit 1
13026 # Unset variables that we do not need and which cause bugs (e.g. in
13027 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13028 # suppresses any "Segmentation fault" message there. '((' could
13029 # trigger a bug in pdksh 5.2.14.
13030 for as_var in BASH_ENV ENV MAIL MAILPATH
13031 do eval test x\${$as_var+set} = xset \
13032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13033 done
13034 PS1='$ '
13035 PS2='> '
13036 PS4='+ '
13038 # NLS nuisances.
13039 LC_ALL=C
13040 export LC_ALL
13041 LANGUAGE=C
13042 export LANGUAGE
13044 # CDPATH.
13045 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13048 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13049 # ----------------------------------------
13050 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13051 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13052 # script with STATUS, using 1 if that was 0.
13053 as_fn_error ()
13055 as_status=$1; test $as_status -eq 0 && as_status=1
13056 if test "$4"; then
13057 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13060 $as_echo "$as_me: error: $2" >&2
13061 as_fn_exit $as_status
13062 } # as_fn_error
13065 # as_fn_set_status STATUS
13066 # -----------------------
13067 # Set $? to STATUS, without forking.
13068 as_fn_set_status ()
13070 return $1
13071 } # as_fn_set_status
13073 # as_fn_exit STATUS
13074 # -----------------
13075 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13076 as_fn_exit ()
13078 set +e
13079 as_fn_set_status $1
13080 exit $1
13081 } # as_fn_exit
13083 # as_fn_unset VAR
13084 # ---------------
13085 # Portably unset VAR.
13086 as_fn_unset ()
13088 { eval $1=; unset $1;}
13090 as_unset=as_fn_unset
13091 # as_fn_append VAR VALUE
13092 # ----------------------
13093 # Append the text in VALUE to the end of the definition contained in VAR. Take
13094 # advantage of any shell optimizations that allow amortized linear growth over
13095 # repeated appends, instead of the typical quadratic growth present in naive
13096 # implementations.
13097 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13098 eval 'as_fn_append ()
13100 eval $1+=\$2
13102 else
13103 as_fn_append ()
13105 eval $1=\$$1\$2
13107 fi # as_fn_append
13109 # as_fn_arith ARG...
13110 # ------------------
13111 # Perform arithmetic evaluation on the ARGs, and store the result in the
13112 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13113 # must be portable across $(()) and expr.
13114 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13115 eval 'as_fn_arith ()
13117 as_val=$(( $* ))
13119 else
13120 as_fn_arith ()
13122 as_val=`expr "$@" || test $? -eq 1`
13124 fi # as_fn_arith
13127 if expr a : '\(a\)' >/dev/null 2>&1 &&
13128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13129 as_expr=expr
13130 else
13131 as_expr=false
13134 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13135 as_basename=basename
13136 else
13137 as_basename=false
13140 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13141 as_dirname=dirname
13142 else
13143 as_dirname=false
13146 as_me=`$as_basename -- "$0" ||
13147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13148 X"$0" : 'X\(//\)$' \| \
13149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13150 $as_echo X/"$0" |
13151 sed '/^.*\/\([^/][^/]*\)\/*$/{
13152 s//\1/
13155 /^X\/\(\/\/\)$/{
13156 s//\1/
13159 /^X\/\(\/\).*/{
13160 s//\1/
13163 s/.*/./; q'`
13165 # Avoid depending upon Character Ranges.
13166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13169 as_cr_digits='0123456789'
13170 as_cr_alnum=$as_cr_Letters$as_cr_digits
13172 ECHO_C= ECHO_N= ECHO_T=
13173 case `echo -n x` in #(((((
13174 -n*)
13175 case `echo 'xy\c'` in
13176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13177 xy) ECHO_C='\c';;
13178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13179 ECHO_T=' ';;
13180 esac;;
13182 ECHO_N='-n';;
13183 esac
13185 rm -f conf$$ conf$$.exe conf$$.file
13186 if test -d conf$$.dir; then
13187 rm -f conf$$.dir/conf$$.file
13188 else
13189 rm -f conf$$.dir
13190 mkdir conf$$.dir 2>/dev/null
13192 if (echo >conf$$.file) 2>/dev/null; then
13193 if ln -s conf$$.file conf$$ 2>/dev/null; then
13194 as_ln_s='ln -s'
13195 # ... but there are two gotchas:
13196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13198 # In both cases, we have to default to `cp -p'.
13199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13200 as_ln_s='cp -p'
13201 elif ln conf$$.file conf$$ 2>/dev/null; then
13202 as_ln_s=ln
13203 else
13204 as_ln_s='cp -p'
13206 else
13207 as_ln_s='cp -p'
13209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13210 rmdir conf$$.dir 2>/dev/null
13213 # as_fn_mkdir_p
13214 # -------------
13215 # Create "$as_dir" as a directory, including parents if necessary.
13216 as_fn_mkdir_p ()
13219 case $as_dir in #(
13220 -*) as_dir=./$as_dir;;
13221 esac
13222 test -d "$as_dir" || eval $as_mkdir_p || {
13223 as_dirs=
13224 while :; do
13225 case $as_dir in #(
13226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13227 *) as_qdir=$as_dir;;
13228 esac
13229 as_dirs="'$as_qdir' $as_dirs"
13230 as_dir=`$as_dirname -- "$as_dir" ||
13231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13232 X"$as_dir" : 'X\(//\)[^/]' \| \
13233 X"$as_dir" : 'X\(//\)$' \| \
13234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13235 $as_echo X"$as_dir" |
13236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13237 s//\1/
13240 /^X\(\/\/\)[^/].*/{
13241 s//\1/
13244 /^X\(\/\/\)$/{
13245 s//\1/
13248 /^X\(\/\).*/{
13249 s//\1/
13252 s/.*/./; q'`
13253 test -d "$as_dir" && break
13254 done
13255 test -z "$as_dirs" || eval "mkdir $as_dirs"
13256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13259 } # as_fn_mkdir_p
13260 if mkdir -p . 2>/dev/null; then
13261 as_mkdir_p='mkdir -p "$as_dir"'
13262 else
13263 test -d ./-p && rmdir ./-p
13264 as_mkdir_p=false
13267 if test -x / >/dev/null 2>&1; then
13268 as_test_x='test -x'
13269 else
13270 if ls -dL / >/dev/null 2>&1; then
13271 as_ls_L_option=L
13272 else
13273 as_ls_L_option=
13275 as_test_x='
13276 eval sh -c '\''
13277 if test -d "$1"; then
13278 test -d "$1/.";
13279 else
13280 case $1 in #(
13281 -*)set "./$1";;
13282 esac;
13283 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13284 ???[sx]*):;;*)false;;esac;fi
13285 '\'' sh
13288 as_executable_p=$as_test_x
13290 # Sed expression to map a string onto a valid CPP name.
13291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13293 # Sed expression to map a string onto a valid variable name.
13294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13297 exec 6>&1
13298 ## ----------------------------------- ##
13299 ## Main body of $CONFIG_STATUS script. ##
13300 ## ----------------------------------- ##
13301 _ASEOF
13302 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13305 # Save the log message, to keep $0 and so on meaningful, and to
13306 # report actual input values of CONFIG_FILES etc. instead of their
13307 # values after options handling.
13308 ac_log="
13309 This file was extended by $as_me, which was
13310 generated by GNU Autoconf 2.67. Invocation command line was
13312 CONFIG_FILES = $CONFIG_FILES
13313 CONFIG_HEADERS = $CONFIG_HEADERS
13314 CONFIG_LINKS = $CONFIG_LINKS
13315 CONFIG_COMMANDS = $CONFIG_COMMANDS
13316 $ $0 $@
13318 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13321 _ACEOF
13323 case $ac_config_files in *"
13324 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13325 esac
13327 case $ac_config_headers in *"
13328 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13329 esac
13332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13333 # Files that config.status was made for.
13334 config_files="$ac_config_files"
13335 config_headers="$ac_config_headers"
13336 config_commands="$ac_config_commands"
13338 _ACEOF
13340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341 ac_cs_usage="\
13342 \`$as_me' instantiates files and other configuration actions
13343 from templates according to the current configuration. Unless the files
13344 and actions are specified as TAGs, all are instantiated by default.
13346 Usage: $0 [OPTION]... [TAG]...
13348 -h, --help print this help, then exit
13349 -V, --version print version number and configuration settings, then exit
13350 --config print configuration, then exit
13351 -q, --quiet, --silent
13352 do not print progress messages
13353 -d, --debug don't remove temporary files
13354 --recheck update $as_me by reconfiguring in the same conditions
13355 --file=FILE[:TEMPLATE]
13356 instantiate the configuration file FILE
13357 --header=FILE[:TEMPLATE]
13358 instantiate the configuration header FILE
13360 Configuration files:
13361 $config_files
13363 Configuration headers:
13364 $config_headers
13366 Configuration commands:
13367 $config_commands
13369 Report bugs to the package provider."
13371 _ACEOF
13372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13373 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13374 ac_cs_version="\\
13375 config.status
13376 configured by $0, generated by GNU Autoconf 2.67,
13377 with options \\"\$ac_cs_config\\"
13379 Copyright (C) 2010 Free Software Foundation, Inc.
13380 This config.status script is free software; the Free Software Foundation
13381 gives unlimited permission to copy, distribute and modify it."
13383 ac_pwd='$ac_pwd'
13384 srcdir='$srcdir'
13385 test -n "\$AWK" || AWK=awk
13386 _ACEOF
13388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13389 # The default lists apply if the user does not specify any file.
13390 ac_need_defaults=:
13391 while test $# != 0
13393 case $1 in
13394 --*=?*)
13395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13397 ac_shift=:
13399 --*=)
13400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13401 ac_optarg=
13402 ac_shift=:
13405 ac_option=$1
13406 ac_optarg=$2
13407 ac_shift=shift
13409 esac
13411 case $ac_option in
13412 # Handling of the options.
13413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13414 ac_cs_recheck=: ;;
13415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13416 $as_echo "$ac_cs_version"; exit ;;
13417 --config | --confi | --conf | --con | --co | --c )
13418 $as_echo "$ac_cs_config"; exit ;;
13419 --debug | --debu | --deb | --de | --d | -d )
13420 debug=: ;;
13421 --file | --fil | --fi | --f )
13422 $ac_shift
13423 case $ac_optarg in
13424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13425 '') as_fn_error $? "missing file argument" ;;
13426 esac
13427 as_fn_append CONFIG_FILES " '$ac_optarg'"
13428 ac_need_defaults=false;;
13429 --header | --heade | --head | --hea )
13430 $ac_shift
13431 case $ac_optarg in
13432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13433 esac
13434 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13435 ac_need_defaults=false;;
13436 --he | --h)
13437 # Conflict between --help and --header
13438 as_fn_error $? "ambiguous option: \`$1'
13439 Try \`$0 --help' for more information.";;
13440 --help | --hel | -h )
13441 $as_echo "$ac_cs_usage"; exit ;;
13442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13444 ac_cs_silent=: ;;
13446 # This is an error.
13447 -*) as_fn_error $? "unrecognized option: \`$1'
13448 Try \`$0 --help' for more information." ;;
13450 *) as_fn_append ac_config_targets " $1"
13451 ac_need_defaults=false ;;
13453 esac
13454 shift
13455 done
13457 ac_configure_extra_args=
13459 if $ac_cs_silent; then
13460 exec 6>/dev/null
13461 ac_configure_extra_args="$ac_configure_extra_args --silent"
13464 _ACEOF
13465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13466 if \$ac_cs_recheck; then
13467 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13468 shift
13469 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13470 CONFIG_SHELL='$SHELL'
13471 export CONFIG_SHELL
13472 exec "\$@"
13475 _ACEOF
13476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13477 exec 5>>config.log
13479 echo
13480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13481 ## Running $as_me. ##
13482 _ASBOX
13483 $as_echo "$ac_log"
13484 } >&5
13486 _ACEOF
13487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489 # INIT-COMMANDS
13492 aros_host_exe_suffix=${aros_host_exe_suffix}
13493 aros_tools_dir=${aros_tools_dir}
13494 aros_target_cpu=${aros_target_cpu}
13495 aros_target_arch=${aros_target_arch}
13496 aros_target_suffix=${aros_target_suffix}
13497 orig_target_nm=${orig_target_nm}
13498 orig_target_as=${orig_target_as}
13499 orig_target_ar=${orig_target_ar}
13500 orig_target_ranlib=${orig_target_ranlib}
13501 orig_target_objdump=${orig_target_objdump}
13502 orig_target_objcopy=${orig_target_objcopy}
13503 orig_target_strip=${orig_target_strip}
13504 aros_kernel_ld=${aros_kernel_ld}
13507 aros_tools_dir=${aros_tools_dir}
13510 _ACEOF
13512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13514 # Handling of arguments.
13515 for ac_config_target in $ac_config_targets
13517 case $ac_config_target in
13518 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13519 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13520 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13521 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13522 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13523 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13524 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13525 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13526 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13527 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13528 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13529 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13530 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13531 "${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" ;;
13532 "${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" ;;
13533 "${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" ;;
13534 "${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" ;;
13535 "${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" ;;
13536 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13537 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13538 "${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" ;;
13540 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13541 esac
13542 done
13545 # If the user did not use the arguments to specify the items to instantiate,
13546 # then the envvar interface is used. Set only those that are not.
13547 # We use the long form for the default assignment because of an extremely
13548 # bizarre bug on SunOS 4.1.3.
13549 if $ac_need_defaults; then
13550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13552 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13555 # Have a temporary directory for convenience. Make it in the build tree
13556 # simply because there is no reason against having it here, and in addition,
13557 # creating and moving files from /tmp can sometimes cause problems.
13558 # Hook for its removal unless debugging.
13559 # Note that there is a small window in which the directory will not be cleaned:
13560 # after its creation but before its name has been assigned to `$tmp'.
13561 $debug ||
13563 tmp=
13564 trap 'exit_status=$?
13565 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13567 trap 'as_fn_exit 1' 1 2 13 15
13569 # Create a (secure) tmp directory for tmp files.
13572 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13573 test -n "$tmp" && test -d "$tmp"
13574 } ||
13576 tmp=./conf$$-$RANDOM
13577 (umask 077 && mkdir "$tmp")
13578 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13580 # Set up the scripts for CONFIG_FILES section.
13581 # No need to generate them if there are no CONFIG_FILES.
13582 # This happens for instance with `./config.status config.h'.
13583 if test -n "$CONFIG_FILES"; then
13586 ac_cr=`echo X | tr X '\015'`
13587 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13588 # But we know of no other shell where ac_cr would be empty at this
13589 # point, so we can use a bashism as a fallback.
13590 if test "x$ac_cr" = x; then
13591 eval ac_cr=\$\'\\r\'
13593 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13594 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13595 ac_cs_awk_cr='\\r'
13596 else
13597 ac_cs_awk_cr=$ac_cr
13600 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13601 _ACEOF
13605 echo "cat >conf$$subs.awk <<_ACEOF" &&
13606 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13607 echo "_ACEOF"
13608 } >conf$$subs.sh ||
13609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13610 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13611 ac_delim='%!_!# '
13612 for ac_last_try in false false false false false :; do
13613 . ./conf$$subs.sh ||
13614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13616 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13617 if test $ac_delim_n = $ac_delim_num; then
13618 break
13619 elif $ac_last_try; then
13620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13621 else
13622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13624 done
13625 rm -f conf$$subs.sh
13627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13628 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13629 _ACEOF
13630 sed -n '
13632 s/^/S["/; s/!.*/"]=/
13635 s/^[^!]*!//
13636 :repl
13637 t repl
13638 s/'"$ac_delim"'$//
13639 t delim
13642 s/\(.\{148\}\)..*/\1/
13643 t more1
13644 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13647 b repl
13648 :more1
13649 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13652 s/.\{148\}//
13653 t nl
13654 :delim
13656 s/\(.\{148\}\)..*/\1/
13657 t more2
13658 s/["\\]/\\&/g; s/^/"/; s/$/"/
13661 :more2
13662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13665 s/.\{148\}//
13666 t delim
13667 ' <conf$$subs.awk | sed '
13668 /^[^""]/{
13670 s/\n//
13672 ' >>$CONFIG_STATUS || ac_write_fail=1
13673 rm -f conf$$subs.awk
13674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13675 _ACAWK
13676 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13677 for (key in S) S_is_set[key] = 1
13678 FS = "\a"
13682 line = $ 0
13683 nfields = split(line, field, "@")
13684 substed = 0
13685 len = length(field[1])
13686 for (i = 2; i < nfields; i++) {
13687 key = field[i]
13688 keylen = length(key)
13689 if (S_is_set[key]) {
13690 value = S[key]
13691 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13692 len += length(value) + length(field[++i])
13693 substed = 1
13694 } else
13695 len += 1 + keylen
13698 print line
13701 _ACAWK
13702 _ACEOF
13703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13704 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13705 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13706 else
13708 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13709 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13710 _ACEOF
13712 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13713 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13714 # trailing colons and then remove the whole line if VPATH becomes empty
13715 # (actually we leave an empty line to preserve line numbers).
13716 if test "x$srcdir" = x.; then
13717 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13719 s///
13720 s/^/:/
13721 s/[ ]*$/:/
13722 s/:\$(srcdir):/:/g
13723 s/:\${srcdir}:/:/g
13724 s/:@srcdir@:/:/g
13725 s/^:*//
13726 s/:*$//
13728 s/\(=[ ]*\).*/\1/
13730 s/\n//
13731 s/^[^=]*=[ ]*$//
13735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13736 fi # test -n "$CONFIG_FILES"
13738 # Set up the scripts for CONFIG_HEADERS section.
13739 # No need to generate them if there are no CONFIG_HEADERS.
13740 # This happens for instance with `./config.status Makefile'.
13741 if test -n "$CONFIG_HEADERS"; then
13742 cat >"$tmp/defines.awk" <<\_ACAWK ||
13743 BEGIN {
13744 _ACEOF
13746 # Transform confdefs.h into an awk script `defines.awk', embedded as
13747 # here-document in config.status, that substitutes the proper values into
13748 # config.h.in to produce config.h.
13750 # Create a delimiter string that does not exist in confdefs.h, to ease
13751 # handling of long lines.
13752 ac_delim='%!_!# '
13753 for ac_last_try in false false :; do
13754 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13755 if test -z "$ac_t"; then
13756 break
13757 elif $ac_last_try; then
13758 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13759 else
13760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13762 done
13764 # For the awk script, D is an array of macro values keyed by name,
13765 # likewise P contains macro parameters if any. Preserve backslash
13766 # newline sequences.
13768 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13769 sed -n '
13770 s/.\{148\}/&'"$ac_delim"'/g
13771 t rset
13772 :rset
13773 s/^[ ]*#[ ]*define[ ][ ]*/ /
13774 t def
13776 :def
13777 s/\\$//
13778 t bsnl
13779 s/["\\]/\\&/g
13780 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13781 D["\1"]=" \3"/p
13782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13784 :bsnl
13785 s/["\\]/\\&/g
13786 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13787 D["\1"]=" \3\\\\\\n"\\/p
13788 t cont
13789 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13790 t cont
13792 :cont
13794 s/.\{148\}/&'"$ac_delim"'/g
13795 t clear
13796 :clear
13797 s/\\$//
13798 t bsnlc
13799 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13801 :bsnlc
13802 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13803 b cont
13804 ' <confdefs.h | sed '
13805 s/'"$ac_delim"'/"\\\
13806 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13809 for (key in D) D_is_set[key] = 1
13810 FS = "\a"
13812 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13813 line = \$ 0
13814 split(line, arg, " ")
13815 if (arg[1] == "#") {
13816 defundef = arg[2]
13817 mac1 = arg[3]
13818 } else {
13819 defundef = substr(arg[1], 2)
13820 mac1 = arg[2]
13822 split(mac1, mac2, "(") #)
13823 macro = mac2[1]
13824 prefix = substr(line, 1, index(line, defundef) - 1)
13825 if (D_is_set[macro]) {
13826 # Preserve the white space surrounding the "#".
13827 print prefix "define", macro P[macro] D[macro]
13828 next
13829 } else {
13830 # Replace #undef with comments. This is necessary, for example,
13831 # in the case of _POSIX_SOURCE, which is predefined and required
13832 # on some systems where configure will not decide to define it.
13833 if (defundef == "undef") {
13834 print "/*", prefix defundef, macro, "*/"
13835 next
13839 { print }
13840 _ACAWK
13841 _ACEOF
13842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13844 fi # test -n "$CONFIG_HEADERS"
13847 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13848 shift
13849 for ac_tag
13851 case $ac_tag in
13852 :[FHLC]) ac_mode=$ac_tag; continue;;
13853 esac
13854 case $ac_mode$ac_tag in
13855 :[FHL]*:*);;
13856 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13857 :[FH]-) ac_tag=-:-;;
13858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13859 esac
13860 ac_save_IFS=$IFS
13861 IFS=:
13862 set x $ac_tag
13863 IFS=$ac_save_IFS
13864 shift
13865 ac_file=$1
13866 shift
13868 case $ac_mode in
13869 :L) ac_source=$1;;
13870 :[FH])
13871 ac_file_inputs=
13872 for ac_f
13874 case $ac_f in
13875 -) ac_f="$tmp/stdin";;
13876 *) # Look for the file first in the build tree, then in the source tree
13877 # (if the path is not absolute). The absolute path cannot be DOS-style,
13878 # because $ac_f cannot contain `:'.
13879 test -f "$ac_f" ||
13880 case $ac_f in
13881 [\\/$]*) false;;
13882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13883 esac ||
13884 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13885 esac
13886 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13887 as_fn_append ac_file_inputs " '$ac_f'"
13888 done
13890 # Let's still pretend it is `configure' which instantiates (i.e., don't
13891 # use $as_me), people would be surprised to read:
13892 # /* config.h. Generated by config.status. */
13893 configure_input='Generated from '`
13894 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13895 `' by configure.'
13896 if test x"$ac_file" != x-; then
13897 configure_input="$ac_file. $configure_input"
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13899 $as_echo "$as_me: creating $ac_file" >&6;}
13901 # Neutralize special characters interpreted by sed in replacement strings.
13902 case $configure_input in #(
13903 *\&* | *\|* | *\\* )
13904 ac_sed_conf_input=`$as_echo "$configure_input" |
13905 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13906 *) ac_sed_conf_input=$configure_input;;
13907 esac
13909 case $ac_tag in
13910 *:-:* | *:-) cat >"$tmp/stdin" \
13911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13912 esac
13914 esac
13916 ac_dir=`$as_dirname -- "$ac_file" ||
13917 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13918 X"$ac_file" : 'X\(//\)[^/]' \| \
13919 X"$ac_file" : 'X\(//\)$' \| \
13920 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13921 $as_echo X"$ac_file" |
13922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13923 s//\1/
13926 /^X\(\/\/\)[^/].*/{
13927 s//\1/
13930 /^X\(\/\/\)$/{
13931 s//\1/
13934 /^X\(\/\).*/{
13935 s//\1/
13938 s/.*/./; q'`
13939 as_dir="$ac_dir"; as_fn_mkdir_p
13940 ac_builddir=.
13942 case "$ac_dir" in
13943 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13945 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13946 # A ".." for each directory in $ac_dir_suffix.
13947 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13948 case $ac_top_builddir_sub in
13949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13951 esac ;;
13952 esac
13953 ac_abs_top_builddir=$ac_pwd
13954 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13955 # for backward compatibility:
13956 ac_top_builddir=$ac_top_build_prefix
13958 case $srcdir in
13959 .) # We are building in place.
13960 ac_srcdir=.
13961 ac_top_srcdir=$ac_top_builddir_sub
13962 ac_abs_top_srcdir=$ac_pwd ;;
13963 [\\/]* | ?:[\\/]* ) # Absolute name.
13964 ac_srcdir=$srcdir$ac_dir_suffix;
13965 ac_top_srcdir=$srcdir
13966 ac_abs_top_srcdir=$srcdir ;;
13967 *) # Relative name.
13968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13969 ac_top_srcdir=$ac_top_build_prefix$srcdir
13970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13971 esac
13972 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13975 case $ac_mode in
13978 # CONFIG_FILE
13981 _ACEOF
13983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984 # If the template does not know about datarootdir, expand it.
13985 # FIXME: This hack should be removed a few years after 2.60.
13986 ac_datarootdir_hack=; ac_datarootdir_seen=
13987 ac_sed_dataroot='
13988 /datarootdir/ {
13992 /@datadir@/p
13993 /@docdir@/p
13994 /@infodir@/p
13995 /@localedir@/p
13996 /@mandir@/p'
13997 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13998 *datarootdir*) ac_datarootdir_seen=yes;;
13999 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14001 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14002 _ACEOF
14003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14004 ac_datarootdir_hack='
14005 s&@datadir@&$datadir&g
14006 s&@docdir@&$docdir&g
14007 s&@infodir@&$infodir&g
14008 s&@localedir@&$localedir&g
14009 s&@mandir@&$mandir&g
14010 s&\\\${datarootdir}&$datarootdir&g' ;;
14011 esac
14012 _ACEOF
14014 # Neutralize VPATH when `$srcdir' = `.'.
14015 # Shell code in configure.ac might set extrasub.
14016 # FIXME: do we really want to maintain this feature?
14017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14018 ac_sed_extra="$ac_vpsub
14019 $extrasub
14020 _ACEOF
14021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14024 s|@configure_input@|$ac_sed_conf_input|;t t
14025 s&@top_builddir@&$ac_top_builddir_sub&;t t
14026 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14027 s&@srcdir@&$ac_srcdir&;t t
14028 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14029 s&@top_srcdir@&$ac_top_srcdir&;t t
14030 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14031 s&@builddir@&$ac_builddir&;t t
14032 s&@abs_builddir@&$ac_abs_builddir&;t t
14033 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14034 $ac_datarootdir_hack
14036 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14039 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14040 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14041 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14043 which seems to be undefined. Please make sure it is defined" >&5
14044 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14045 which seems to be undefined. Please make sure it is defined" >&2;}
14047 rm -f "$tmp/stdin"
14048 case $ac_file in
14049 -) cat "$tmp/out" && rm -f "$tmp/out";;
14050 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14051 esac \
14052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14056 # CONFIG_HEADER
14058 if test x"$ac_file" != x-; then
14060 $as_echo "/* $configure_input */" \
14061 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14062 } >"$tmp/config.h" \
14063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14064 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14066 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14067 else
14068 rm -f "$ac_file"
14069 mv "$tmp/config.h" "$ac_file" \
14070 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14072 else
14073 $as_echo "/* $configure_input */" \
14074 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14075 || as_fn_error $? "could not create -" "$LINENO" 5
14079 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14080 $as_echo "$as_me: executing $ac_file commands" >&6;}
14082 esac
14085 case $ac_file$ac_mode in
14086 "compiler_executable":C)
14087 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14088 mkdir -p $prefix
14089 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14090 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
14092 echo ${prefix2}
14093 echo ${prefix3}
14094 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
14096 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
14097 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
14098 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
14099 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
14100 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
14101 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
14102 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
14104 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
14106 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14108 esac
14109 done # for ac_tag
14112 as_fn_exit 0
14113 _ACEOF
14114 ac_clean_files=$ac_clean_files_save
14116 test $ac_write_fail = 0 ||
14117 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14120 # configure is writing to config.log, and then calls config.status.
14121 # config.status does its own redirection, appending to config.log.
14122 # Unfortunately, on DOS this fails, as config.log is still kept open
14123 # by configure, so config.status won't be able to write to it; its
14124 # output is simply discarded. So we exec the FD to /dev/null,
14125 # effectively closing config.log, so it can be properly (re)opened and
14126 # appended to by config.status. When coming back to configure, we
14127 # need to make the FD available again.
14128 if test "$no_create" != yes; then
14129 ac_cs_success=:
14130 ac_config_status_args=
14131 test "$silent" = yes &&
14132 ac_config_status_args="$ac_config_status_args --quiet"
14133 exec 5>/dev/null
14134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14135 exec 5>>config.log
14136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14137 # would make configure fail if this is the last instruction.
14138 $ac_cs_success || as_fn_exit 1
14140 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14142 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14147 #XXX compatability...
14148 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14150 if test -n "$aros_shared_cflags" ; then
14151 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14152 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg