Call CloseDevice() before DeleteIORequest(), and don't call
[AROS.git] / configure
blobb8d2ec3c78453bbcb2e16d50c09dfee1a92c95b0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 gcc_default_cpu
621 gcc_default_fpu
622 gcc_default_float_abi
623 aros_enable_mmu
624 aros_nesting_supervisor
625 aros_palm_debug_hack
626 aros_serial_debug
627 aros_host_sdl_libs
628 aros_host_sdl_cflags
629 aros_host_x11_libdirs
630 aros_host_x11_includes
631 DO_VIDMODE_SUPPORT
632 DO_XSHM_SUPPORT
633 aros_default_wbdepth
634 aros_default_wbheight
635 aros_default_wbwidth
636 oss_library_target
637 pci_hidd_target
638 sdl_hidd_target
639 x11_hidd_target
640 aros_cflags_format_security
641 aros_cflags_strict_overflow
642 aros_cflags_enum_compare
643 aros_cflags_array_bounds
644 aros_cflags_unused_but_set_variable
645 crosstools_cxx_target
646 crosstools_target
647 aros_target_strip_flags
648 aros_target_genmap
649 aros_debug_ldflags
650 aros_debug_aflags
651 aros_debug_cflags
652 aros_target_cflags
653 aros_kernel_ldflags
654 aros_kernel_objcflags
655 aros_kernel_includes
656 aros_kernel_cflags
657 aros_shared_ldflags
658 aros_shared_aflags
659 aros_shared_cflags
660 aros_config_ldflags
661 aros_config_aflags
662 aros_config_cflags
663 aros_arch_libs
664 aros_compiler_libs
665 aros_object_format
666 aros_shared_ld
667 aros_shared_default
668 aros_target_nm
669 aros_target_strip
670 aros_target_objcopy
671 aros_target_objdump
672 aros_target_cc_path
673 aros_target_cc_includes
674 aros_target_ld
675 aros_target_as
676 aros_target_cpp
677 aros_target_cxx
678 aros_target_cc
679 aros_plain_ar
680 aros_plain_nm
681 aros_target_ranlib
682 aros_target_ar
683 aros_target_suffix
684 aros_target_variant
685 aros_target_cpu
686 aros_target_family
687 aros_target_arch
688 aros_target_bootloader
689 aros_target_iconset
690 aros_target_guitheme
691 aros_tools_dir
692 aros_host_lib_suffix
693 aros_host_exe_suffix
694 aros_host_mkargs
695 aros_host_mkdep
696 aros_host_debug
697 aros_host_ldflags
698 gnu89_inline
699 aros_host_cxxflags
700 aros_host_cflags
701 aros_host_make
702 aros_host_cxx
703 aros_host_cc
704 aros_host_cpp
705 aros_host_cpu
706 aros_host_arch
707 aros_cc_pre
708 aros_amigaos_compliance
709 AROS_PORTSSRCDIR
710 AROS_CROSSTOOLSDIR
711 SRCDIR
712 AROS_BUILDDIR_UNIX
713 AROS_BUILDDIR
714 aros_target_toolchain
715 aros_flavour_uc
716 aros_flavour
717 aros_cpu
718 aros_arch
719 SDL_LIBS
720 SDL_CFLAGS
721 SDL_CONFIG
722 XMKMF
723 aros_cflags_iquote_end
724 aros_cflags_iquote
725 kernel_cflags_iquote_end
726 kernel_cflags_iquote
727 host_cflags_iquote_end
728 host_cflags_iquote
729 aros_target_nostdlib_ldflags
730 aros_target_detach_ldflags
731 aros_target_nix_ldflags
732 aros_target_nostartup_ldflags
733 aros_target_nostdinc_cflags
734 aros_kernel_rescomp
735 orig_target_objdump
736 orig_target_objcopy
737 orig_target_strip
738 orig_target_nm
739 orig_target_ranlib
740 orig_target_ar
741 orig_target_as
742 orig_target_ld
743 orig_target_cxx
744 orig_target_cc
745 orig_target_cpp
746 aros_kernel_objdump
747 aros_kernel_objcopy
748 aros_kernel_strip
749 aros_kernel_nm
750 aros_kernel_ranlib
751 aros_kernel_ar
752 aros_kernel_as
753 aros_kernel_ld
754 aros_kernel_cxx
755 aros_kernel_cc
756 aros_kernel_cpp
758 android_tool
759 CCACHE
760 DISTCC
761 LIBOBJS
762 EGREP
763 GREP
765 TEST
768 pkgpyexecdir
769 pyexecdir
770 pkgpythondir
771 pythondir
772 PYTHON_PLATFORM
773 PYTHON_EXEC_PREFIX
774 PYTHON_PREFIX
775 PYTHON_VERSION
776 PYTHON
777 PATCH
778 CHMOD
780 PPMTOILBM
781 PNGTOPNM
782 FLEX
783 BISON
786 UNIQ
787 SORT
788 TOUCH
789 MKDIR
790 ECHO
794 aros_host_strip
795 aros_host_ranlib
796 aros_host_ar
797 aros_host_automake
798 aros_host_autoheader
799 aros_host_autoconf
800 aros_host_aclocal
801 aros_host_ld
802 MMAKE
805 ac_ct_CXX
806 CXXFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files=''
862 ac_user_opts='
863 enable_option_checking
864 enable_build_type
865 enable_debug
866 enable_distcc
867 enable_ccache
868 with_gcc_version
869 with_optimization
870 with_paranoia
871 enable_target_variant
872 with_xcode
873 with_sdk_version
874 with_sdk
875 with_ndk
876 with_ndk_version
877 enable_amigaos_compliance
878 with_kernel_toolchain_prefix
879 with_elf_toolchain_prefix
880 with_aros_toolchain
881 enable_crosstools
882 with_aros_toolchain_install
883 with_cpu
884 with_fpu
885 with_float
886 with_aros_gcc
887 with_portssources
888 with_bootloader
889 with_iconset
890 with_theme
891 enable_includes
892 with_resolution
893 with_serial_debug
894 enable_palm_debug_hack
895 enable_nesting_supervisor
896 enable_mmu
897 enable_x11_hidd
898 with_x
899 enable_x11_shm
900 enable_x11_vidmode
901 enable_sdl_hidd
902 with_sdl_prefix
903 with_sdl_exec_prefix
904 enable_sdltest
905 enable_dbus
907 ac_precious_vars='build_alias
908 host_alias
909 target_alias
911 CFLAGS
912 LDFLAGS
913 LIBS
914 CPPFLAGS
916 CXXFLAGS
919 PYTHON
920 XMKMF'
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 ac_unrecognized_opts=
927 ac_unrecognized_sep=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE}'
962 infodir='${datarootdir}/info'
963 htmldir='${docdir}'
964 dvidir='${docdir}'
965 pdfdir='${docdir}'
966 psdir='${docdir}'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
971 ac_prev=
972 ac_dashdash=
973 for ac_option
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
978 ac_prev=
979 continue
982 case $ac_option in
983 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 *=) ac_optarg= ;;
985 *) ac_optarg=yes ;;
986 esac
988 # Accept the important Cygnus configure options, so we can diagnose typos.
990 case $ac_dashdash$ac_option in
992 ac_dashdash=yes ;;
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 ac_prev=bindir ;;
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 bindir=$ac_optarg ;;
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1014 -datadir | --datadir | --datadi | --datad)
1015 ac_prev=datadir ;;
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1026 -disable-* | --disable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=\$ac_optarg ;;
1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070 | --exec | --exe | --ex)
1071 ac_prev=exec_prefix ;;
1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074 | --exec=* | --exe=* | --ex=*)
1075 exec_prefix=$ac_optarg ;;
1077 -gas | --gas | --ga | --g)
1078 # Obsolete; use --with-gas.
1079 with_gas=yes ;;
1081 -help | --help | --hel | --he | -h)
1082 ac_init_help=long ;;
1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084 ac_init_help=recursive ;;
1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086 ac_init_help=short ;;
1088 -host | --host | --hos | --ho)
1089 ac_prev=host_alias ;;
1090 -host=* | --host=* | --hos=* | --ho=*)
1091 host_alias=$ac_optarg ;;
1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 ac_prev=htmldir ;;
1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 | --ht=*)
1097 htmldir=$ac_optarg ;;
1099 -includedir | --includedir | --includedi | --included | --include \
1100 | --includ | --inclu | --incl | --inc)
1101 ac_prev=includedir ;;
1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103 | --includ=* | --inclu=* | --incl=* | --inc=*)
1104 includedir=$ac_optarg ;;
1106 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 ac_prev=infodir ;;
1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109 infodir=$ac_optarg ;;
1111 -libdir | --libdir | --libdi | --libd)
1112 ac_prev=libdir ;;
1113 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114 libdir=$ac_optarg ;;
1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117 | --libexe | --libex | --libe)
1118 ac_prev=libexecdir ;;
1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120 | --libexe=* | --libex=* | --libe=*)
1121 libexecdir=$ac_optarg ;;
1123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1128 -localstatedir | --localstatedir | --localstatedi | --localstated \
1129 | --localstate | --localstat | --localsta | --localst | --locals)
1130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133 localstatedir=$ac_optarg ;;
1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 ac_prev=mandir ;;
1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138 mandir=$ac_optarg ;;
1140 -nfp | --nfp | --nf)
1141 # Obsolete; use --without-fp.
1142 with_fp=no ;;
1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145 | --no-cr | --no-c | -n)
1146 no_create=yes ;;
1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150 no_recursion=yes ;;
1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154 | --oldin | --oldi | --old | --ol | --o)
1155 ac_prev=oldincludedir ;;
1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159 oldincludedir=$ac_optarg ;;
1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 ac_prev=prefix ;;
1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164 prefix=$ac_optarg ;;
1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167 | --program-pre | --program-pr | --program-p)
1168 ac_prev=program_prefix ;;
1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171 program_prefix=$ac_optarg ;;
1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174 | --program-suf | --program-su | --program-s)
1175 ac_prev=program_suffix ;;
1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178 program_suffix=$ac_optarg ;;
1180 -program-transform-name | --program-transform-name \
1181 | --program-transform-nam | --program-transform-na \
1182 | --program-transform-n | --program-transform- \
1183 | --program-transform | --program-transfor \
1184 | --program-transfo | --program-transf \
1185 | --program-trans | --program-tran \
1186 | --progr-tra | --program-tr | --program-t)
1187 ac_prev=program_transform_name ;;
1188 -program-transform-name=* | --program-transform-name=* \
1189 | --program-transform-nam=* | --program-transform-na=* \
1190 | --program-transform-n=* | --program-transform-=* \
1191 | --program-transform=* | --program-transfor=* \
1192 | --program-transfo=* | --program-transf=* \
1193 | --program-trans=* | --program-tran=* \
1194 | --progr-tra=* | --program-tr=* | --program-t=*)
1195 program_transform_name=$ac_optarg ;;
1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 ac_prev=pdfdir ;;
1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200 pdfdir=$ac_optarg ;;
1202 -psdir | --psdir | --psdi | --psd | --ps)
1203 ac_prev=psdir ;;
1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205 psdir=$ac_optarg ;;
1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1209 silent=yes ;;
1211 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 ac_prev=sbindir ;;
1213 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 | --sbi=* | --sb=*)
1215 sbindir=$ac_optarg ;;
1217 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219 | --sharedst | --shareds | --shared | --share | --shar \
1220 | --sha | --sh)
1221 ac_prev=sharedstatedir ;;
1222 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 | --sha=* | --sh=*)
1226 sharedstatedir=$ac_optarg ;;
1228 -site | --site | --sit)
1229 ac_prev=site ;;
1230 -site=* | --site=* | --sit=*)
1231 site=$ac_optarg ;;
1233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 ac_prev=srcdir ;;
1235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236 srcdir=$ac_optarg ;;
1238 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239 | --syscon | --sysco | --sysc | --sys | --sy)
1240 ac_prev=sysconfdir ;;
1241 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243 sysconfdir=$ac_optarg ;;
1245 -target | --target | --targe | --targ | --tar | --ta | --t)
1246 ac_prev=target_alias ;;
1247 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248 target_alias=$ac_optarg ;;
1250 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251 verbose=yes ;;
1253 -version | --version | --versio | --versi | --vers | -V)
1254 ac_init_version=: ;;
1256 -with-* | --with-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid package name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1265 "with_$ac_useropt"
1266 "*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=\$ac_optarg ;;
1272 -without-* | --without-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error $? "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1281 "with_$ac_useropt"
1282 "*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=no ;;
1288 --x)
1289 # Obsolete; use --with-x.
1290 with_x=yes ;;
1292 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293 | --x-incl | --x-inc | --x-in | --x-i)
1294 ac_prev=x_includes ;;
1295 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297 x_includes=$ac_optarg ;;
1299 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301 ac_prev=x_libraries ;;
1302 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304 x_libraries=$ac_optarg ;;
1306 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1307 Try \`$0 --help' for more information"
1310 *=*)
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 case $ac_envvar in #(
1314 '' | [0-9]* | *[!_$as_cr_alnum]* )
1315 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316 esac
1317 eval $ac_envvar=\$ac_optarg
1318 export $ac_envvar ;;
1321 # FIXME: should be removed in autoconf 3.0.
1322 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 esac
1329 done
1331 if test -n "$ac_prev"; then
1332 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333 as_fn_error $? "missing argument to $ac_option"
1336 if test -n "$ac_unrecognized_opts"; then
1337 case $enable_option_checking in
1338 no) ;;
1339 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 esac
1344 # Check all directory arguments for consistency.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1351 # Remove trailing slashes.
1352 case $ac_val in
1353 */ )
1354 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355 eval $ac_var=\$ac_val;;
1356 esac
1357 # Be sure to have absolute directory names.
1358 case $ac_val in
1359 [\\/$]* | ?:[\\/]* ) continue;;
1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361 esac
1362 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1363 done
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1368 build=$build_alias
1369 host=$host_alias
1370 target=$target_alias
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374 if test "x$build_alias" = x; then
1375 cross_compiling=maybe
1376 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1377 If a cross compiler is detected then cross compile mode will be used" >&2
1378 elif test "x$build_alias" != "x$host_alias"; then
1379 cross_compiling=yes
1383 ac_tool_prefix=
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386 test "$silent" = yes && exec 6>/dev/null
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392 as_fn_error $? "working directory cannot be determined"
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 as_fn_error $? "pwd does not report name of working directory"
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
1400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$as_myself" ||
1402 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$as_myself" : 'X\(//\)[^/]' \| \
1404 X"$as_myself" : 'X\(//\)$' \| \
1405 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406 $as_echo X"$as_myself" |
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 s//\1/
1411 /^X\(\/\/\)[^/].*/{
1412 s//\1/
1415 /^X\(\/\/\)$/{
1416 s//\1/
1419 /^X\(\/\).*/{
1420 s//\1/
1423 s/.*/./; q'`
1424 srcdir=$ac_confdir
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 srcdir=..
1428 else
1429 ac_srcdir_defaulted=no
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438 pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
1463 \`configure' configures this package to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1472 Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 [PREFIX]
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF
1518 cat <<\_ACEOF
1520 X features:
1521 --x-includes=DIR X include files are in DIR
1522 --x-libraries=DIR X library files are in DIR
1524 System types:
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527 _ACEOF
1530 if test -n "$ac_init_help"; then
1532 cat <<\_ACEOF
1534 Optional Features:
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-build-type=TYPE
1539 Select the build type. Available types are:
1540 personal, nightly, snapshot, milestone, release. Do
1541 NOT use this option unless you know what you are
1542 doing! (default=personal)
1543 --enable-debug=list Enable different types of debug. Commas or
1544 whitespaces can be used to separate the items in the
1545 list. Available types of debug are: all, none,
1546 messages, stack, mungwall, modules, symbols. If no
1547 list is provided then "all" is assumed.
1548 (default=none)
1549 --enable-distcc Use distcc as a front end to the compiler
1550 (default=no).
1551 --enable-ccache Use ccache as a front end to the compiler
1552 (default=no).
1553 --enable-target-variant=NAME
1554 Enable a specific target variant(default=none)
1555 --enable-amigaos-compliance=VERSION
1556 Enforce userspace AmigaOS compliance to a specific
1557 KickStart version (default=none).
1558 --disable-crosstools Do not build cross-compiler toolchain
1559 --enable-includes=dir Alternative system include directory
1560 --enable-palm-debug-hack
1561 Enable palm debug output hack in palm native
1562 (default=no)
1563 --enable-nesting-supervisor
1564 Enable nesting supervisor support in unix
1565 (default=no)
1566 --disable-mmu Disable MMU support (default=enabled)
1567 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1568 --enable-x11-shm use X11 shared memory (default=auto)
1569 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1570 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1571 --disable-sdltest Do not try to compile and run a test SDL program
1572 --enable-dbus Enable DBUS support via dbus.library (default=no)
1574 Optional Packages:
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-kernel-gcc-version=VERSION
1578 Use host gcc-VERSION for building AROS
1579 --with-gcc-version=VERSION
1580 Use host gcc-VERSION for building AROS
1581 --with-optimization=FLAGS
1582 Use optimization flags FLAGS (default=-O2).
1583 --with-paranoia=FLAGS CC flags to enable paranoia
1584 --with-xcode=PATH Specify XCode path for iOS targets
1585 (default=/Developer).
1586 --with-sdk-version=VERSION
1587 Use iOS SDK version VERSION (default=4.1).
1588 --with-sdk=PATH Specify Android SDK path
1589 (default=$default_android_sdk).
1590 --with-ndk=PATH Specify Android NDK path (default=none).
1591 --with-sdk-version=LEVEL
1592 Use Android SDK for API LEVEL (default=12).
1593 --with-ndk-version=LEVEL
1594 Use Android NDK for API LEVEL (default=9).
1595 --with-kernel-toolchain-prefix=...
1596 Specify crosscompile toolchain prefix for kernel
1597 objects
1598 --with-elf-toolchain-prefix=...
1599 Specify crosscompile toolchain prefix to wrap for
1600 AROS objects
1601 --with-aros-toolchain=PREFIX
1602 Specify prebuilt AROS toolchain
1603 --with-aros-toolchain-install=DIR
1604 Where to install or search for cross tools binaries
1605 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1606 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1607 --with-float=<spec> Specify floating point ABI
1608 (default=$gcc_default_float_abi).
1609 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1610 --with-portssources=DIR Where to download sourcecode for external ports
1611 --with-bootloader=NAME Use a specific bootloader
1612 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1613 --with-theme=NAME Use a specific GUI Theme
1614 --with-resolution=XRESxYRESxDEPTH
1615 Default resolution of the initial WorkbenchScreen
1616 --with-serial-debug Enable serial debug output in native (default=no)
1617 --with-x use the X Window System
1618 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1619 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1621 Some influential environment variables:
1622 CC C compiler command
1623 CFLAGS C compiler flags
1624 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1625 nonstandard directory <lib dir>
1626 LIBS libraries to pass to the linker, e.g. -l<library>
1627 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1628 you have headers in a nonstandard directory <include dir>
1629 CXX C++ compiler command
1630 CXXFLAGS C++ compiler flags
1631 CPP C preprocessor
1632 PYTHON the Python interpreter
1633 XMKMF Path to xmkmf, Makefile generator for X Window System
1635 Use these variables to override the choices made by `configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1638 Report bugs to the package provider.
1639 _ACEOF
1640 ac_status=$?
1643 if test "$ac_init_help" = "recursive"; then
1644 # If there are subdirs, report their specific --help.
1645 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646 test -d "$ac_dir" ||
1647 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 continue
1649 ac_builddir=.
1651 case "$ac_dir" in
1652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1655 # A ".." for each directory in $ac_dir_suffix.
1656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1657 case $ac_top_builddir_sub in
1658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660 esac ;;
1661 esac
1662 ac_abs_top_builddir=$ac_pwd
1663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664 # for backward compatibility:
1665 ac_top_builddir=$ac_top_build_prefix
1667 case $srcdir in
1668 .) # We are building in place.
1669 ac_srcdir=.
1670 ac_top_srcdir=$ac_top_builddir_sub
1671 ac_abs_top_srcdir=$ac_pwd ;;
1672 [\\/]* | ?:[\\/]* ) # Absolute name.
1673 ac_srcdir=$srcdir$ac_dir_suffix;
1674 ac_top_srcdir=$srcdir
1675 ac_abs_top_srcdir=$srcdir ;;
1676 *) # Relative name.
1677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678 ac_top_srcdir=$ac_top_build_prefix$srcdir
1679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680 esac
1681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683 cd "$ac_dir" || { ac_status=$?; continue; }
1684 # Check for guested configure.
1685 if test -f "$ac_srcdir/configure.gnu"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1688 elif test -f "$ac_srcdir/configure"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure" --help=recursive
1691 else
1692 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1693 fi || ac_status=$?
1694 cd "$ac_pwd" || { ac_status=$?; break; }
1695 done
1698 test -n "$ac_init_help" && exit $ac_status
1699 if $ac_init_version; then
1700 cat <<\_ACEOF
1701 configure
1702 generated by GNU Autoconf 2.68
1704 Copyright (C) 2010 Free Software Foundation, Inc.
1705 This configure script is free software; the Free Software Foundation
1706 gives unlimited permission to copy, distribute and modify it.
1707 _ACEOF
1708 exit
1711 ## ------------------------ ##
1712 ## Autoconf initialization. ##
1713 ## ------------------------ ##
1715 # ac_fn_c_try_compile LINENO
1716 # --------------------------
1717 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_compile ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext
1722 if { { ac_try="$ac_compile"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_compile") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest.$ac_objext; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=1
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1751 } # ac_fn_c_try_compile
1753 # ac_fn_cxx_try_compile LINENO
1754 # ----------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_compile ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_cxx_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_cxx_try_compile
1791 # ac_fn_c_try_cpp LINENO
1792 # ----------------------
1793 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_cpp ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } > conftest.i && {
1813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=1
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1826 } # ac_fn_c_try_cpp
1828 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1831 # the include files in INCLUDES and setting the cache variable VAR
1832 # accordingly.
1833 ac_fn_c_check_header_mongrel ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if eval \${$3+:} false; then :
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 else
1846 # Is the header compilable?
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1848 $as_echo_n "checking $2 usability... " >&6; }
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 ac_header_compiler=yes
1856 else
1857 ac_header_compiler=no
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1861 $as_echo "$ac_header_compiler" >&6; }
1863 # Is the header present?
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1865 $as_echo_n "checking $2 presence... " >&6; }
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_cpp "$LINENO"; then :
1871 ac_header_preproc=yes
1872 else
1873 ac_header_preproc=no
1875 rm -f conftest.err conftest.i conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1877 $as_echo "$ac_header_preproc" >&6; }
1879 # So? What about this header?
1880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881 yes:no: )
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1883 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 no:yes:* )
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1889 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1891 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1893 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1895 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1899 esac
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 eval "$3=\$ac_header_compiler"
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_check_header_mongrel
1915 # ac_fn_c_try_run LINENO
1916 # ----------------------
1917 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1918 # that executables *can* be run.
1919 ac_fn_c_try_run ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_link"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_link") 2>&5
1930 ac_status=$?
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1933 { { case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_try") 2>&5
1940 ac_status=$?
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; }; }; then :
1943 ac_retval=0
1944 else
1945 $as_echo "$as_me: program exited with status $ac_status" >&5
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1949 ac_retval=$ac_status
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1955 } # ac_fn_c_try_run
1957 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1958 # -------------------------------------------------------
1959 # Tests whether HEADER exists and can be compiled using the include files in
1960 # INCLUDES, setting the cache variable VAR accordingly.
1961 ac_fn_c_check_header_compile ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1972 #include <$2>
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 eval "$3=yes"
1976 else
1977 eval "$3=no"
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_header_compile
1988 # ac_fn_c_try_link LINENO
1989 # -----------------------
1990 # Try to link conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_link ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext conftest$ac_exeext
1995 if { { ac_try="$ac_link"
1996 case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_link") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest$ac_exeext && {
2014 test "$cross_compiling" = yes ||
2015 $as_test_x conftest$ac_exeext
2016 }; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2022 ac_retval=1
2024 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2025 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2026 # interfere with the next link command; also delete a directory that is
2027 # left behind by Apple's compiler. We do this before executing the actions.
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2032 } # ac_fn_c_try_link
2034 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2035 # ----------------------------------------------------
2036 # Tries to find if the field MEMBER exists in type AGGR, after including
2037 # INCLUDES, setting cache variable VAR accordingly.
2038 ac_fn_c_check_member ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2042 $as_echo_n "checking for $2.$3... " >&6; }
2043 if eval \${$4+:} false; then :
2044 $as_echo_n "(cached) " >&6
2045 else
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2050 main ()
2052 static $2 ac_aggr;
2053 if (ac_aggr.$3)
2054 return 0;
2056 return 0;
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 eval "$4=yes"
2061 else
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2066 main ()
2068 static $2 ac_aggr;
2069 if (sizeof ac_aggr.$3)
2070 return 0;
2072 return 0;
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 eval "$4=yes"
2077 else
2078 eval "$4=no"
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 eval ac_res=\$$4
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 } # ac_fn_c_check_member
2091 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2092 # ---------------------------------------------
2093 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2094 # accordingly.
2095 ac_fn_c_check_decl ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 as_decl_name=`echo $2|sed 's/ *(.*//'`
2099 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2101 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2102 if eval \${$3+:} false; then :
2103 $as_echo_n "(cached) " >&6
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 main ()
2111 #ifndef $as_decl_name
2112 #ifdef __cplusplus
2113 (void) $as_decl_use;
2114 #else
2115 (void) $as_decl_name;
2116 #endif
2117 #endif
2120 return 0;
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124 eval "$3=yes"
2125 else
2126 eval "$3=no"
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 eval ac_res=\$$3
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 } # ac_fn_c_check_decl
2137 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2138 # -------------------------------------------
2139 # Tests whether TYPE exists after having included INCLUDES, setting cache
2140 # variable VAR accordingly.
2141 ac_fn_c_check_type ()
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145 $as_echo_n "checking for $2... " >&6; }
2146 if eval \${$3+:} false; then :
2147 $as_echo_n "(cached) " >&6
2148 else
2149 eval "$3=no"
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2154 main ()
2156 if (sizeof ($2))
2157 return 0;
2159 return 0;
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2167 main ()
2169 if (sizeof (($2)))
2170 return 0;
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2177 else
2178 eval "$3=yes"
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } # ac_fn_c_check_type
2191 # ac_fn_c_check_func LINENO FUNC VAR
2192 # ----------------------------------
2193 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2194 ac_fn_c_check_func ()
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2198 $as_echo_n "checking for $2... " >&6; }
2199 if eval \${$3+:} false; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2206 #define $2 innocuous_$2
2208 /* System header to define __stub macros and hopefully few prototypes,
2209 which can conflict with char $2 (); below.
2210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2211 <limits.h> exists even on freestanding compilers. */
2213 #ifdef __STDC__
2214 # include <limits.h>
2215 #else
2216 # include <assert.h>
2217 #endif
2219 #undef $2
2221 /* Override any GCC internal prototype to avoid an error.
2222 Use char because int might match the return type of a GCC
2223 builtin and then its argument prototype would still apply. */
2224 #ifdef __cplusplus
2225 extern "C"
2226 #endif
2227 char $2 ();
2228 /* The GNU C library defines this for functions which it implements
2229 to always fail with ENOSYS. Some functions are actually named
2230 something starting with __ and the normal name is an alias. */
2231 #if defined __stub_$2 || defined __stub___$2
2232 choke me
2233 #endif
2236 main ()
2238 return $2 ();
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_link "$LINENO"; then :
2244 eval "$3=yes"
2245 else
2246 eval "$3=no"
2248 rm -f core conftest.err conftest.$ac_objext \
2249 conftest$ac_exeext conftest.$ac_ext
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 } # ac_fn_c_check_func
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2261 It was created by $as_me, which was
2262 generated by GNU Autoconf 2.68. Invocation command line was
2264 $ $0 $@
2266 _ACEOF
2267 exec 5>>config.log
2269 cat <<_ASUNAME
2270 ## --------- ##
2271 ## Platform. ##
2272 ## --------- ##
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2291 _ASUNAME
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2299 done
2300 IFS=$as_save_IFS
2302 } >&5
2304 cat >&5 <<_ACEOF
2307 ## ----------- ##
2308 ## Core tests. ##
2309 ## ----------- ##
2311 _ACEOF
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_configure_args=
2320 ac_configure_args0=
2321 ac_configure_args1=
2322 ac_must_keep_next=false
2323 for ac_pass in 1 2
2325 for ac_arg
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 esac
2335 case $ac_pass in
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2354 as_fn_append ac_configure_args " '$ac_arg'"
2356 esac
2357 done
2358 done
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2370 echo
2372 $as_echo "## ---------------- ##
2373 ## Cache variables. ##
2374 ## ---------------- ##"
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 esac |
2404 sort
2406 echo
2408 $as_echo "## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##"
2411 echo
2412 for ac_var in $ac_subst_vars
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 $as_echo "$ac_var='\''$ac_val'\''"
2419 done | sort
2420 echo
2422 if test -n "$ac_subst_files"; then
2423 $as_echo "## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##"
2426 echo
2427 for ac_var in $ac_subst_files
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2438 if test -s confdefs.h; then
2439 $as_echo "## ----------- ##
2440 ## confdefs.h. ##
2441 ## ----------- ##"
2442 echo
2443 cat confdefs.h
2444 echo
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2449 } >&5
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 exit $exit_status
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 done
2457 ac_signal=0
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2462 $as_echo "/* confdefs.h */" > confdefs.h
2464 # Predefined preprocessor variables.
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 _ACEOF
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 _ACEOF
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2488 _ACEOF
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2493 ac_site_file1=NONE
2494 ac_site_file2=NONE
2495 if test -n "$CONFIG_SITE"; then
2496 # We do not want a PATH search for config.site.
2497 case $CONFIG_SITE in #((
2498 -*) ac_site_file1=./$CONFIG_SITE;;
2499 */*) ac_site_file1=$CONFIG_SITE;;
2500 *) ac_site_file1=./$CONFIG_SITE;;
2501 esac
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 test "x$ac_site_file" = xNONE && continue
2512 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file" \
2517 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 as_fn_error $? "failed to load site script $ac_site_file
2520 See \`config.log' for more details" "$LINENO" 5; }
2522 done
2524 if test -r "$cache_file"; then
2525 # Some versions of bash will fail to source /dev/null (special files
2526 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2527 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 case $cache_file in
2531 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532 *) . "./$cache_file";;
2533 esac
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537 $as_echo "$as_me: creating cache $cache_file" >&6;}
2538 >$cache_file
2541 as_fn_append ac_header_list " stdlib.h"
2542 as_fn_append ac_header_list " unistd.h"
2543 as_fn_append ac_header_list " sys/param.h"
2544 # Check that the precious variables saved in the cache have kept the same
2545 # value.
2546 ac_cache_corrupted=false
2547 for ac_var in $ac_precious_vars; do
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2553 set,)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2557 ,set)
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2561 ,);;
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2580 fi;;
2581 esac
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2584 case $ac_new_val in
2585 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2587 esac
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591 esac
2593 done
2594 if $ac_cache_corrupted; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2601 ## -------------------- ##
2602 ## Main body of script. ##
2603 ## -------------------- ##
2605 ac_ext=c
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 ac_aux_dir=
2614 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2615 if test -f "$ac_dir/install-sh"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/install-sh -c"
2618 break
2619 elif test -f "$ac_dir/install.sh"; then
2620 ac_aux_dir=$ac_dir
2621 ac_install_sh="$ac_aux_dir/install.sh -c"
2622 break
2623 elif test -f "$ac_dir/shtool"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/shtool install -c"
2626 break
2628 done
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2643 # Check what host we are running on.
2644 # If a target is not suggested, we use this one.
2645 # Note that what we call a target, Autoconf calls a host.
2646 # Make sure we can run config.sub.
2647 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2648 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2651 $as_echo_n "checking build system type... " >&6; }
2652 if ${ac_cv_build+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 ac_build_alias=$build_alias
2656 test "x$ac_build_alias" = x &&
2657 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2658 test "x$ac_build_alias" = x &&
2659 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2660 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2661 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2665 $as_echo "$ac_cv_build" >&6; }
2666 case $ac_cv_build in
2667 *-*-*) ;;
2668 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2669 esac
2670 build=$ac_cv_build
2671 ac_save_IFS=$IFS; IFS='-'
2672 set x $ac_cv_build
2673 shift
2674 build_cpu=$1
2675 build_vendor=$2
2676 shift; shift
2677 # Remember, the first character of IFS is used to create $*,
2678 # except with old shells:
2679 build_os=$*
2680 IFS=$ac_save_IFS
2681 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2685 $as_echo_n "checking host system type... " >&6; }
2686 if ${ac_cv_host+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test "x$host_alias" = x; then
2690 ac_cv_host=$ac_cv_build
2691 else
2692 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2693 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2698 $as_echo "$ac_cv_host" >&6; }
2699 case $ac_cv_host in
2700 *-*-*) ;;
2701 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2702 esac
2703 host=$ac_cv_host
2704 ac_save_IFS=$IFS; IFS='-'
2705 set x $ac_cv_host
2706 shift
2707 host_cpu=$1
2708 host_vendor=$2
2709 shift; shift
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2712 host_os=$*
2713 IFS=$ac_save_IFS
2714 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2718 # The AROS target is slightly different to the normal GNU style
2719 # format. We don't have the middle part, and we reverse the order
2720 # of the $(CPU) and $(OS) bits.
2722 # Don't strip the version of the target yet, it might be
2723 # useful on some systems.
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2726 $as_echo_n "checking for AROS style target... " >&6; }
2728 if test "$target" = "NONE" ; then
2729 target=$host_os-$host_cpu
2730 else
2731 if test "$target" = "" ; then
2732 target=$host_os-$host_cpu
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2736 $as_echo "$target" >&6; }
2738 if test "$host_os" = "mingw32" ; then
2739 PWDCMD="pwd -W"
2742 # Don't know where else to put this...
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2744 $as_echo_n "checking building AROS in... " >&6; }
2745 AROS_BUILDDIR=`${PWDCMD-pwd}`
2746 AROS_BUILDDIR_UNIX=${PWD}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2748 $as_echo "$AROS_BUILDDIR" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2751 $as_echo_n "checking AROS source in... " >&6; }
2752 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2753 SRCDIR=${srcpwd}
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2755 $as_echo "$SRCDIR" >&6; }
2757 # Parse the target field into something useful.
2759 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2760 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2763 # Some debug output, to be removed again.
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2765 $as_echo_n "checking for target system (debug output)... " >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2767 $as_echo "$target_os" >&6; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2769 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2771 $as_echo "$target_cpu" >&6; }
2773 aros_default_wbwidth=800
2774 aros_default_wbheight=600
2775 aros_default_wbdepth=4
2778 # The first step is to find the host binaries.
2779 # Check for a compiler.
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_CC+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2809 IFS=$as_save_IFS
2813 CC=$ac_cv_prog_CC
2814 if test -n "$CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816 $as_echo "$CC" >&6; }
2817 else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2824 if test -z "$ac_cv_prog_CC"; then
2825 ac_ct_CC=$CC
2826 # Extract the first word of "gcc", so it can be a program name with args.
2827 set dummy gcc; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test -n "$ac_ct_CC"; then
2834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_CC="gcc"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2849 IFS=$as_save_IFS
2853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854 if test -n "$ac_ct_CC"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2856 $as_echo "$ac_ct_CC" >&6; }
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2862 if test "x$ac_ct_CC" = x; then
2863 CC=""
2864 else
2865 case $cross_compiling:$ac_tool_warned in
2866 yes:)
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2869 ac_tool_warned=yes ;;
2870 esac
2871 CC=$ac_ct_CC
2873 else
2874 CC="$ac_cv_prog_CC"
2877 if test -z "$CC"; then
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2880 set dummy ${ac_tool_prefix}cc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_CC="${ac_tool_prefix}cc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2900 done
2901 done
2902 IFS=$as_save_IFS
2906 CC=$ac_cv_prog_CC
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2918 if test -z "$CC"; then
2919 # Extract the first word of "cc", so it can be a program name with args.
2920 set dummy cc; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if ${ac_cv_prog_CC+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 ac_prog_rejected=no
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2938 ac_prog_rejected=yes
2939 continue
2941 ac_cv_prog_CC="cc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2945 done
2946 done
2947 IFS=$as_save_IFS
2949 if test $ac_prog_rejected = yes; then
2950 # We found a bogon in the path, so make sure we never use it.
2951 set dummy $ac_cv_prog_CC
2952 shift
2953 if test $# != 0; then
2954 # We chose a different compiler from the bogus one.
2955 # However, it has the same basename, so the bogon will be chosen
2956 # first if we set CC to just the basename; use the full file name.
2957 shift
2958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966 $as_echo "$CC" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2974 if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
2976 for ac_prog in cl.exe
2978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_CC+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3001 IFS=$as_save_IFS
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3015 test -n "$CC" && break
3016 done
3018 if test -z "$CC"; then
3019 ac_ct_CC=$CC
3020 for ac_prog in cl.exe
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_ac_ct_CC="$ac_prog"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3045 IFS=$as_save_IFS
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 $as_echo "$ac_ct_CC" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3059 test -n "$ac_ct_CC" && break
3060 done
3062 if test "x$ac_ct_CC" = x; then
3063 CC=""
3064 else
3065 case $cross_compiling:$ac_tool_warned in
3066 yes:)
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069 ac_tool_warned=yes ;;
3070 esac
3071 CC=$ac_ct_CC
3078 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 as_fn_error $? "no acceptable C compiler found in \$PATH
3081 See \`config.log' for more details" "$LINENO" 5; }
3083 # Provide some information about the compiler.
3084 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3085 set X $ac_compile
3086 ac_compiler=$2
3087 for ac_option in --version -v -V -qversion; do
3088 { { ac_try="$ac_compiler $ac_option >&5"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3096 ac_status=$?
3097 if test -s conftest.err; then
3098 sed '10a\
3099 ... rest of stderr output deleted ...
3100 10q' conftest.err >conftest.er1
3101 cat conftest.er1 >&5
3103 rm -f conftest.er1 conftest.err
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }
3106 done
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3112 main ()
3116 return 0;
3118 _ACEOF
3119 ac_clean_files_save=$ac_clean_files
3120 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3121 # Try to create an executable without -o first, disregard a.out.
3122 # It will help us diagnose broken compilers, and finding out an intuition
3123 # of exeext.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3125 $as_echo_n "checking whether the C compiler works... " >&6; }
3126 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3128 # The possible output files:
3129 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3131 ac_rmfiles=
3132 for ac_file in $ac_files
3134 case $ac_file in
3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3136 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3137 esac
3138 done
3139 rm -f $ac_rmfiles
3141 if { { ac_try="$ac_link_default"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_link_default") 2>&5
3149 ac_status=$?
3150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3151 test $ac_status = 0; }; then :
3152 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3153 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3154 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3155 # so that the user can short-circuit this test for compilers unknown to
3156 # Autoconf.
3157 for ac_file in $ac_files ''
3159 test -f "$ac_file" || continue
3160 case $ac_file in
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3163 [ab].out )
3164 # We found the default executable, but exeext='' is most
3165 # certainly right.
3166 break;;
3167 *.* )
3168 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3169 then :; else
3170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172 # We set ac_cv_exeext here because the later test for it is not
3173 # safe: cross compilers may not add the suffix if given an `-o'
3174 # argument, so we may need to know it at that point already.
3175 # Even if this section looks crufty: it has the advantage of
3176 # actually working.
3177 break;;
3179 break;;
3180 esac
3181 done
3182 test "$ac_cv_exeext" = no && ac_cv_exeext=
3184 else
3185 ac_file=''
3187 if test -z "$ac_file"; then :
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error 77 "C compiler cannot create executables
3196 See \`config.log' for more details" "$LINENO" 5; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3202 $as_echo_n "checking for C compiler default output file name... " >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3204 $as_echo "$ac_file" >&6; }
3205 ac_exeext=$ac_cv_exeext
3207 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3208 ac_clean_files=$ac_clean_files_save
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3210 $as_echo_n "checking for suffix of executables... " >&6; }
3211 if { { ac_try="$ac_link"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_link") 2>&5
3219 ac_status=$?
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; then :
3222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3223 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3224 # work properly (i.e., refer to `conftest.exe'), while it won't with
3225 # `rm'.
3226 for ac_file in conftest.exe conftest conftest.*; do
3227 test -f "$ac_file" || continue
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231 break;;
3232 * ) break;;
3233 esac
3234 done
3235 else
3236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3239 See \`config.log' for more details" "$LINENO" 5; }
3241 rm -f conftest conftest$ac_cv_exeext
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3243 $as_echo "$ac_cv_exeext" >&6; }
3245 rm -f conftest.$ac_ext
3246 EXEEXT=$ac_cv_exeext
3247 ac_exeext=$EXEEXT
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250 #include <stdio.h>
3252 main ()
3254 FILE *f = fopen ("conftest.out", "w");
3255 return ferror (f) || fclose (f) != 0;
3258 return 0;
3260 _ACEOF
3261 ac_clean_files="$ac_clean_files conftest.out"
3262 # Check that the compiler produces executables we can run. If not, either
3263 # the compiler is broken, or we cross compile.
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3265 $as_echo_n "checking whether we are cross compiling... " >&6; }
3266 if test "$cross_compiling" != yes; then
3267 { { ac_try="$ac_link"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_link") 2>&5
3275 ac_status=$?
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }
3278 if { ac_try='./conftest$ac_cv_exeext'
3279 { { case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285 (eval "$ac_try") 2>&5
3286 ac_status=$?
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }; }; then
3289 cross_compiling=no
3290 else
3291 if test "$cross_compiling" = maybe; then
3292 cross_compiling=yes
3293 else
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "cannot run C compiled programs.
3297 If you meant to cross compile, use \`--host'.
3298 See \`config.log' for more details" "$LINENO" 5; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3303 $as_echo "$cross_compiling" >&6; }
3305 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3306 ac_clean_files=$ac_clean_files_save
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3308 $as_echo_n "checking for suffix of object files... " >&6; }
3309 if ${ac_cv_objext+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3316 main ()
3320 return 0;
3322 _ACEOF
3323 rm -f conftest.o conftest.obj
3324 if { { ac_try="$ac_compile"
3325 case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328 esac
3329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330 $as_echo "$ac_try_echo"; } >&5
3331 (eval "$ac_compile") 2>&5
3332 ac_status=$?
3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 test $ac_status = 0; }; then :
3335 for ac_file in conftest.o conftest.obj conftest.*; do
3336 test -f "$ac_file" || continue;
3337 case $ac_file in
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3340 break;;
3341 esac
3342 done
3343 else
3344 $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot compute suffix of object files: cannot compile
3350 See \`config.log' for more details" "$LINENO" 5; }
3352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3355 $as_echo "$ac_cv_objext" >&6; }
3356 OBJEXT=$ac_cv_objext
3357 ac_objext=$OBJEXT
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3359 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3360 if ${ac_cv_c_compiler_gnu+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 main ()
3369 #ifndef __GNUC__
3370 choke me
3371 #endif
3374 return 0;
3376 _ACEOF
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378 ac_compiler_gnu=yes
3379 else
3380 ac_compiler_gnu=no
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3387 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3388 if test $ac_compiler_gnu = yes; then
3389 GCC=yes
3390 else
3391 GCC=
3393 ac_test_CFLAGS=${CFLAGS+set}
3394 ac_save_CFLAGS=$CFLAGS
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3396 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3397 if ${ac_cv_prog_cc_g+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 ac_save_c_werror_flag=$ac_c_werror_flag
3401 ac_c_werror_flag=yes
3402 ac_cv_prog_cc_g=no
3403 CFLAGS="-g"
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3408 main ()
3412 return 0;
3414 _ACEOF
3415 if ac_fn_c_try_compile "$LINENO"; then :
3416 ac_cv_prog_cc_g=yes
3417 else
3418 CFLAGS=""
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3423 main ()
3427 return 0;
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3432 else
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3434 CFLAGS="-g"
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3439 main ()
3443 return 0;
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447 ac_cv_prog_cc_g=yes
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 ac_c_werror_flag=$ac_save_c_werror_flag
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3457 $as_echo "$ac_cv_prog_cc_g" >&6; }
3458 if test "$ac_test_CFLAGS" = set; then
3459 CFLAGS=$ac_save_CFLAGS
3460 elif test $ac_cv_prog_cc_g = yes; then
3461 if test "$GCC" = yes; then
3462 CFLAGS="-g -O2"
3463 else
3464 CFLAGS="-g"
3466 else
3467 if test "$GCC" = yes; then
3468 CFLAGS="-O2"
3469 else
3470 CFLAGS=
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3474 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3475 if ${ac_cv_prog_cc_c89+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 ac_cv_prog_cc_c89=no
3479 ac_save_CC=$CC
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482 #include <stdarg.h>
3483 #include <stdio.h>
3484 #include <sys/types.h>
3485 #include <sys/stat.h>
3486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3487 struct buf { int x; };
3488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3489 static char *e (p, i)
3490 char **p;
3491 int i;
3493 return p[i];
3495 static char *f (char * (*g) (char **, int), char **p, ...)
3497 char *s;
3498 va_list v;
3499 va_start (v,p);
3500 s = g (p, va_arg (v,int));
3501 va_end (v);
3502 return s;
3505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3506 function prototypes and stuff, but not '\xHH' hex character constants.
3507 These don't provoke an error unfortunately, instead are silently treated
3508 as 'x'. The following induces an error, until -std is added to get
3509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3510 array size at least. It's necessary to write '\x00'==0 to get something
3511 that's true only with -std. */
3512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3514 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3515 inside strings and character constants. */
3516 #define FOO(x) 'x'
3517 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3519 int test (int i, double x);
3520 struct s1 {int (*f) (int a);};
3521 struct s2 {int (*f) (double a);};
3522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3523 int argc;
3524 char **argv;
3526 main ()
3528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3530 return 0;
3532 _ACEOF
3533 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3534 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3536 CC="$ac_save_CC $ac_arg"
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_cv_prog_cc_c89=$ac_arg
3540 rm -f core conftest.err conftest.$ac_objext
3541 test "x$ac_cv_prog_cc_c89" != "xno" && break
3542 done
3543 rm -f conftest.$ac_ext
3544 CC=$ac_save_CC
3547 # AC_CACHE_VAL
3548 case "x$ac_cv_prog_cc_c89" in
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3551 $as_echo "none needed" >&6; } ;;
3552 xno)
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3554 $as_echo "unsupported" >&6; } ;;
3556 CC="$CC $ac_cv_prog_cc_c89"
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3558 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3559 esac
3560 if test "x$ac_cv_prog_cc_c89" != xno; then :
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 case $ac_cv_prog_cc_stdc in #(
3571 no) :
3572 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3573 *) :
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3575 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3576 if ${ac_cv_prog_cc_c99+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 ac_cv_prog_cc_c99=no
3580 ac_save_CC=$CC
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583 #include <stdarg.h>
3584 #include <stdbool.h>
3585 #include <stdlib.h>
3586 #include <wchar.h>
3587 #include <stdio.h>
3589 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3590 #define debug(...) fprintf (stderr, __VA_ARGS__)
3591 #define showlist(...) puts (#__VA_ARGS__)
3592 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3593 static void
3594 test_varargs_macros (void)
3596 int x = 1234;
3597 int y = 5678;
3598 debug ("Flag");
3599 debug ("X = %d\n", x);
3600 showlist (The first, second, and third items.);
3601 report (x>y, "x is %d but y is %d", x, y);
3604 // Check long long types.
3605 #define BIG64 18446744073709551615ull
3606 #define BIG32 4294967295ul
3607 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3608 #if !BIG_OK
3609 your preprocessor is broken;
3610 #endif
3611 #if BIG_OK
3612 #else
3613 your preprocessor is broken;
3614 #endif
3615 static long long int bignum = -9223372036854775807LL;
3616 static unsigned long long int ubignum = BIG64;
3618 struct incomplete_array
3620 int datasize;
3621 double data[];
3624 struct named_init {
3625 int number;
3626 const wchar_t *name;
3627 double average;
3630 typedef const char *ccp;
3632 static inline int
3633 test_restrict (ccp restrict text)
3635 // See if C++-style comments work.
3636 // Iterate through items via the restricted pointer.
3637 // Also check for declarations in for loops.
3638 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3639 continue;
3640 return 0;
3643 // Check varargs and va_copy.
3644 static void
3645 test_varargs (const char *format, ...)
3647 va_list args;
3648 va_start (args, format);
3649 va_list args_copy;
3650 va_copy (args_copy, args);
3652 const char *str;
3653 int number;
3654 float fnumber;
3656 while (*format)
3658 switch (*format++)
3660 case 's': // string
3661 str = va_arg (args_copy, const char *);
3662 break;
3663 case 'd': // int
3664 number = va_arg (args_copy, int);
3665 break;
3666 case 'f': // float
3667 fnumber = va_arg (args_copy, double);
3668 break;
3669 default:
3670 break;
3673 va_end (args_copy);
3674 va_end (args);
3678 main ()
3681 // Check bool.
3682 _Bool success = false;
3684 // Check restrict.
3685 if (test_restrict ("String literal") == 0)
3686 success = true;
3687 char *restrict newvar = "Another string";
3689 // Check varargs.
3690 test_varargs ("s, d' f .", "string", 65, 34.234);
3691 test_varargs_macros ();
3693 // Check flexible array members.
3694 struct incomplete_array *ia =
3695 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3696 ia->datasize = 10;
3697 for (int i = 0; i < ia->datasize; ++i)
3698 ia->data[i] = i * 1.234;
3700 // Check named initializers.
3701 struct named_init ni = {
3702 .number = 34,
3703 .name = L"Test wide string",
3704 .average = 543.34343,
3707 ni.number = 58;
3709 int dynamic_array[ni.number];
3710 dynamic_array[ni.number - 1] = 543;
3712 // work around unused variable warnings
3713 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3714 || dynamic_array[ni.number - 1] != 543);
3717 return 0;
3719 _ACEOF
3720 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3722 CC="$ac_save_CC $ac_arg"
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_prog_cc_c99=$ac_arg
3726 rm -f core conftest.err conftest.$ac_objext
3727 test "x$ac_cv_prog_cc_c99" != "xno" && break
3728 done
3729 rm -f conftest.$ac_ext
3730 CC=$ac_save_CC
3733 # AC_CACHE_VAL
3734 case "x$ac_cv_prog_cc_c99" in
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 $as_echo "none needed" >&6; } ;;
3738 xno)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;;
3742 CC="$CC $ac_cv_prog_cc_c99"
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3744 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3745 esac
3746 if test "x$ac_cv_prog_cc_c99" != xno; then :
3747 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3748 else
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3750 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751 if ${ac_cv_prog_cc_c89+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 ac_cv_prog_cc_c89=no
3755 ac_save_CC=$CC
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <stdarg.h>
3759 #include <stdio.h>
3760 #include <sys/types.h>
3761 #include <sys/stat.h>
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3766 char **p;
3767 int i;
3769 return p[i];
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3773 char *s;
3774 va_list v;
3775 va_start (v,p);
3776 s = g (p, va_arg (v,int));
3777 va_end (v);
3778 return s;
3781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3782 function prototypes and stuff, but not '\xHH' hex character constants.
3783 These don't provoke an error unfortunately, instead are silently treated
3784 as 'x'. The following induces an error, until -std is added to get
3785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3786 array size at least. It's necessary to write '\x00'==0 to get something
3787 that's true only with -std. */
3788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791 inside strings and character constants. */
3792 #define FOO(x) 'x'
3793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3795 int test (int i, double x);
3796 struct s1 {int (*f) (int a);};
3797 struct s2 {int (*f) (double a);};
3798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3799 int argc;
3800 char **argv;
3802 main ()
3804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3806 return 0;
3808 _ACEOF
3809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3812 CC="$ac_save_CC $ac_arg"
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814 ac_cv_prog_cc_c89=$ac_arg
3816 rm -f core conftest.err conftest.$ac_objext
3817 test "x$ac_cv_prog_cc_c89" != "xno" && break
3818 done
3819 rm -f conftest.$ac_ext
3820 CC=$ac_save_CC
3823 # AC_CACHE_VAL
3824 case "x$ac_cv_prog_cc_c89" in
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3827 $as_echo "none needed" >&6; } ;;
3828 xno)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3830 $as_echo "unsupported" >&6; } ;;
3832 CC="$CC $ac_cv_prog_cc_c89"
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3834 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3835 esac
3836 if test "x$ac_cv_prog_cc_c89" != xno; then :
3837 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3838 else
3839 ac_cv_prog_cc_stdc=no
3844 esac
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3846 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3847 if ${ac_cv_prog_cc_stdc+:} false; then :
3848 $as_echo_n "(cached) " >&6
3851 case $ac_cv_prog_cc_stdc in #(
3852 no) :
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;; #(
3855 '') :
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;; #(
3858 *) :
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3860 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3861 esac
3863 ac_ext=cpp
3864 ac_cpp='$CXXCPP $CPPFLAGS'
3865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3868 if test -z "$CXX"; then
3869 if test -n "$CCC"; then
3870 CXX=$CCC
3871 else
3872 if test -n "$ac_tool_prefix"; then
3873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_prog_CXX+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 if test -n "$CXX"; then
3883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3896 done
3897 done
3898 IFS=$as_save_IFS
3902 CXX=$ac_cv_prog_CXX
3903 if test -n "$CXX"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3905 $as_echo "$CXX" >&6; }
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3912 test -n "$CXX" && break
3913 done
3915 if test -z "$CXX"; then
3916 ac_ct_CXX=$CXX
3917 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -n "$ac_ct_CXX"; then
3927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_ac_ct_CXX="$ac_prog"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3942 IFS=$as_save_IFS
3946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3947 if test -n "$ac_ct_CXX"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3949 $as_echo "$ac_ct_CXX" >&6; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3956 test -n "$ac_ct_CXX" && break
3957 done
3959 if test "x$ac_ct_CXX" = x; then
3960 CXX="g++"
3961 else
3962 case $cross_compiling:$ac_tool_warned in
3963 yes:)
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3966 ac_tool_warned=yes ;;
3967 esac
3968 CXX=$ac_ct_CXX
3974 # Provide some information about the compiler.
3975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3976 set X $ac_compile
3977 ac_compiler=$2
3978 for ac_option in --version -v -V -qversion; do
3979 { { ac_try="$ac_compiler $ac_option >&5"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3987 ac_status=$?
3988 if test -s conftest.err; then
3989 sed '10a\
3990 ... rest of stderr output deleted ...
3991 10q' conftest.err >conftest.er1
3992 cat conftest.er1 >&5
3994 rm -f conftest.er1 conftest.err
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }
3997 done
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4001 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4008 main ()
4010 #ifndef __GNUC__
4011 choke me
4012 #endif
4015 return 0;
4017 _ACEOF
4018 if ac_fn_cxx_try_compile "$LINENO"; then :
4019 ac_compiler_gnu=yes
4020 else
4021 ac_compiler_gnu=no
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4028 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4030 GXX=yes
4031 else
4032 GXX=
4034 ac_test_CXXFLAGS=${CXXFLAGS+set}
4035 ac_save_CXXFLAGS=$CXXFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4037 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4038 if ${ac_cv_prog_cxx_g+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4042 ac_cxx_werror_flag=yes
4043 ac_cv_prog_cxx_g=no
4044 CXXFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4049 main ()
4053 return 0;
4055 _ACEOF
4056 if ac_fn_cxx_try_compile "$LINENO"; then :
4057 ac_cv_prog_cxx_g=yes
4058 else
4059 CXXFLAGS=""
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4064 main ()
4068 return 0;
4070 _ACEOF
4071 if ac_fn_cxx_try_compile "$LINENO"; then :
4073 else
4074 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4075 CXXFLAGS="-g"
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 if ac_fn_cxx_try_compile "$LINENO"; then :
4088 ac_cv_prog_cxx_g=yes
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4098 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4099 if test "$ac_test_CXXFLAGS" = set; then
4100 CXXFLAGS=$ac_save_CXXFLAGS
4101 elif test $ac_cv_prog_cxx_g = yes; then
4102 if test "$GXX" = yes; then
4103 CXXFLAGS="-g -O2"
4104 else
4105 CXXFLAGS="-g"
4107 else
4108 if test "$GXX" = yes; then
4109 CXXFLAGS="-O2"
4110 else
4111 CXXFLAGS=
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 ac_ext=c
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4126 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4127 # On Suns, sometimes $CPP names a directory.
4128 if test -n "$CPP" && test -d "$CPP"; then
4129 CPP=
4131 if test -z "$CPP"; then
4132 if ${ac_cv_prog_CPP+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 # Double quotes because CPP needs to be expanded
4136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4138 ac_preproc_ok=false
4139 for ac_c_preproc_warn_flag in '' yes
4141 # Use a header file that comes with gcc, so configuring glibc
4142 # with a fresh cross-compiler works.
4143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 # <limits.h> exists even on freestanding compilers.
4145 # On the NeXT, cc -E runs the code through the compiler's parser,
4146 # not just through cpp. "Syntax error" is here to catch this case.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #ifdef __STDC__
4150 # include <limits.h>
4151 #else
4152 # include <assert.h>
4153 #endif
4154 Syntax error
4155 _ACEOF
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4158 else
4159 # Broken: fails on valid input.
4160 continue
4162 rm -f conftest.err conftest.i conftest.$ac_ext
4164 # OK, works on sane cases. Now check whether nonexistent headers
4165 # can be detected and how.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <ac_nonexistent.h>
4169 _ACEOF
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171 # Broken: success on invalid input.
4172 continue
4173 else
4174 # Passes both tests.
4175 ac_preproc_ok=:
4176 break
4178 rm -f conftest.err conftest.i conftest.$ac_ext
4180 done
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.i conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then :
4184 break
4187 done
4188 ac_cv_prog_CPP=$CPP
4191 CPP=$ac_cv_prog_CPP
4192 else
4193 ac_cv_prog_CPP=$CPP
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4196 $as_echo "$CPP" >&6; }
4197 ac_preproc_ok=false
4198 for ac_c_preproc_warn_flag in '' yes
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
4204 # On the NeXT, cc -E runs the code through the compiler's parser,
4205 # not just through cpp. "Syntax error" is here to catch this case.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #ifdef __STDC__
4209 # include <limits.h>
4210 #else
4211 # include <assert.h>
4212 #endif
4213 Syntax error
4214 _ACEOF
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4217 else
4218 # Broken: fails on valid input.
4219 continue
4221 rm -f conftest.err conftest.i conftest.$ac_ext
4223 # OK, works on sane cases. Now check whether nonexistent headers
4224 # can be detected and how.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4228 _ACEOF
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4230 # Broken: success on invalid input.
4231 continue
4232 else
4233 # Passes both tests.
4234 ac_preproc_ok=:
4235 break
4237 rm -f conftest.err conftest.i conftest.$ac_ext
4239 done
4240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241 rm -f conftest.i conftest.err conftest.$ac_ext
4242 if $ac_preproc_ok; then :
4244 else
4245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4247 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4248 See \`config.log' for more details" "$LINENO" 5; }
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 # Check for a compatible awk
4259 for ac_prog in gawk nawk
4261 # Extract the first word of "$ac_prog", so it can be a program name with args.
4262 set dummy $ac_prog; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if ${ac_cv_prog_AWK+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if test -n "$AWK"; then
4269 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_AWK="$ac_prog"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4282 done
4283 done
4284 IFS=$as_save_IFS
4288 AWK=$ac_cv_prog_AWK
4289 if test -n "$AWK"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4291 $as_echo "$AWK" >&6; }
4292 else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4298 test -n "$AWK" && break
4299 done
4301 if test "$AWK" = ""; then
4302 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4304 # Extract the first word of "mmake", so it can be a program name with args.
4305 set dummy mmake; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_prog_MMAKE+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -n "$MMAKE"; then
4312 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_MMAKE="mmake "
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4325 done
4326 done
4327 IFS=$as_save_IFS
4331 MMAKE=$ac_cv_prog_MMAKE
4332 if test -n "$MMAKE"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4334 $as_echo "$MMAKE" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4342 # Perform some default variable assignments. Note all of these will be
4343 # Regenerated from the script, so there is no need to cache them.
4345 aros_host_cpp="$CPP"
4346 aros_host_cc="$CC"
4347 aros_host_cxx="$CXX"
4348 if test "$GCC" = "yes"; then
4349 aros_gcc_ld=`$CC -print-prog-name=ld`
4350 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4351 set dummy `basename $aros_gcc_ld`; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_path_aros_host_ld+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 case $aros_host_ld in
4358 [\\/]* | ?:[\\/]*)
4359 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in `dirname $aros_gcc_ld`
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4375 IFS=$as_save_IFS
4378 esac
4380 aros_host_ld=$ac_cv_path_aros_host_ld
4381 if test -n "$aros_host_ld"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4383 $as_echo "$aros_host_ld" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4391 if test "$aros_host_ld" = ""; then
4392 # Extract the first word of "ld", so it can be a program name with args.
4393 set dummy ld; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if ${ac_cv_path_aros_host_ld+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 case $aros_host_ld in
4400 [\\/]* | ?:[\\/]*)
4401 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4420 esac
4422 aros_host_ld=$ac_cv_path_aros_host_ld
4423 if test -n "$aros_host_ld"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4425 $as_echo "$aros_host_ld" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4433 if test "$aros_host_ld" = ""; then
4434 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4436 aros_host_make="make"
4437 aros_host_cflags=$CFLAGS
4438 aros_host_cxxflags=$CXXFLAGS
4439 aros_host_ldflags=$LDFLAGS
4440 aros_host_debug="-g -O0"
4441 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4442 aros_host_mkargs="--no-print-directory"
4443 aros_host_exe_suffix="$EXEEXT"
4444 aros_host_lib_suffix=""
4446 # Ignore all compliance, AROS ROMs = 0
4447 # KickStart v1.0 = 30
4448 # KickStart v1.3 = 34
4449 # KickStart v2.0 = 37
4450 # KickStart v3.0 = 39
4451 # KickStart v3.1 = 40
4452 # AmigaOS v3.5 = 44
4453 aros_amigaos_compliance=0
4455 for ac_prog in aclocal aclocal19 aclocal-1.9
4457 # Extract the first word of "$ac_prog", so it can be a program name with args.
4458 set dummy $ac_prog; ac_word=$2
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460 $as_echo_n "checking for $ac_word... " >&6; }
4461 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -n "$aros_host_aclocal"; then
4465 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_aros_host_aclocal="$ac_prog"
4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4478 done
4479 done
4480 IFS=$as_save_IFS
4484 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4485 if test -n "$aros_host_aclocal"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4487 $as_echo "$aros_host_aclocal" >&6; }
4488 else
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 $as_echo "no" >&6; }
4494 test -n "$aros_host_aclocal" && break
4495 done
4497 for ac_prog in autoconf autoconf259 autoconf253
4499 # Extract the first word of "$ac_prog", so it can be a program name with args.
4500 set dummy $ac_prog; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if test -n "$aros_host_autoconf"; then
4507 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_aros_host_autoconf="$ac_prog"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4520 done
4521 done
4522 IFS=$as_save_IFS
4526 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4527 if test -n "$aros_host_autoconf"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4529 $as_echo "$aros_host_autoconf" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4536 test -n "$aros_host_autoconf" && break
4537 done
4539 for ac_prog in autoheader autoheader259 autoheader253
4541 # Extract the first word of "$ac_prog", so it can be a program name with args.
4542 set dummy $ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$aros_host_autoheader"; then
4549 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_aros_host_autoheader="$ac_prog"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4562 done
4563 done
4564 IFS=$as_save_IFS
4568 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4569 if test -n "$aros_host_autoheader"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4571 $as_echo "$aros_host_autoheader" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4578 test -n "$aros_host_autoheader" && break
4579 done
4581 for ac_prog in automake automake19 automake-1.9
4583 # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_aros_host_automake+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -n "$aros_host_automake"; then
4591 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_aros_host_automake="$ac_prog"
4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4604 done
4605 done
4606 IFS=$as_save_IFS
4610 aros_host_automake=$ac_cv_prog_aros_host_automake
4611 if test -n "$aros_host_automake"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4613 $as_echo "$aros_host_automake" >&6; }
4614 else
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4620 test -n "$aros_host_automake" && break
4621 done
4624 if test "$aros_host_aclocal" = ""; then
4625 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4627 if test "$aros_host_automake" = ""; then
4628 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4631 case "$aros_host_cc" in
4632 *gcc*)
4633 aros_host_cc_pipe="-pipe"
4635 icc)
4636 aros_host_cc_pipe=""
4639 aros_host_cc_pipe=""
4641 esac
4643 aros_kernel_cc_includes=""
4644 aros_target_cc_includes=""
4645 host_cc_elf=yes
4647 # ----------------------------------------------------------------------------------------
4648 # Host-specific defaults
4650 # This is the main host configuration section. It is where the host
4651 # can change the values of any variables it needs to change. We do
4652 # not look at anything that compiles to the target yet, we'll get
4653 # to that later.
4655 case "$host_os" in
4656 aros*)
4657 aros_host_arch="aros"
4658 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4659 case "$host_cpu" in
4660 *i?86*)
4661 aros_host_cpu="i386"
4663 *x86_64*)
4664 aros_host_cpu="x86_64"
4666 *powerpc*)
4667 aros_host_cpu="ppc"
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4671 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4672 aros_host_cpu="$host_cpu"
4674 esac
4677 linux*)
4678 aros_host_arch="linux"
4679 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4680 android_build_os="linux-x86"
4681 android_tool="android"
4682 default_android_sdk="/opt/android-sdk-linux_x86"
4683 case "$host_cpu" in
4684 *i?86*)
4685 aros_host_cpu="i386"
4687 *x86_64*)
4688 aros_host_cpu="x86_64"
4690 *m68k*)
4691 aros_host_cpu="m68k"
4693 *powerpc*)
4694 aros_host_cpu="ppc"
4696 *arm*)
4697 aros_host_cpu="arm"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4701 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4702 aros_host_cpu="$host_cpu"
4704 esac
4707 freebsd*)
4708 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4709 aros_host_make="gmake"
4710 aros_host_arch="freebsd"
4711 aros_host_cpu="i386"
4713 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4715 case $host_os in
4716 freebsd[234]*)
4717 aros_object_format="elf_i386"
4721 aros_object_format="elf_i386_fbsd"
4723 esac
4727 darwin*)
4728 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4729 aros_host_arch="darwin"
4730 host_cc_elf=no
4731 android_build_os="darwin-x86"
4732 android_tool="android"
4733 default_android_sdk="/android-sdk-mac_x86"
4734 case "$host_cpu" in
4735 *i?86*)
4736 aros_host_cpu="i386"
4738 *x86_64*)
4739 aros_host_cpu="x86_64"
4741 *powerpc*)
4742 aros_host_cpu="ppc"
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4746 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4747 aros_host_cpu="$host_cpu"
4749 esac
4751 aros_host_ldflags="$aros_host_ldflags -liconv"
4755 dragonfly*)
4756 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4757 aros_host_make="gmake"
4758 aros_host_arch="dragonfly"
4759 case $host_cpu in
4760 *i?86*)
4761 aros_host_cpu="i386"
4763 *amd64*)
4764 aros_host_cpu="x86_64"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4768 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4769 aros_host_cpu="$host_cpu"
4771 esac
4774 netbsd*)
4775 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4776 aros_host_make="gmake"
4777 aros_host_arch="netbsd"
4778 case "$host_cpu" in
4779 *i?86*)
4780 aros_host_cpu="i386"
4782 *m68k*)
4783 aros_host_cpu="m68k"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4787 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4788 aros_host_cpu="$host_cpu"
4790 esac
4791 aros_host_lib_suffix=".0.0"
4794 openbsd*)
4795 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4796 aros_host_make="gmake"
4797 aros_host_arch="openbsd"
4798 case "$host_cpu" in
4799 *i?86*)
4800 aros_host_cpu="i386"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4804 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4805 aros_host_cpu="$host_cpu"
4807 esac
4810 solaris*)
4811 aros_host_arch="solaris"
4812 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4813 case "$host_cpu" in
4814 *i?86*)
4815 aros_host_cpu="i386"
4817 *sparc*)
4818 aros_host_cpu="sparc"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4822 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4823 aros_host_cpu="$host_cpu"
4825 esac
4828 morphos*)
4829 aros_host_arch="morphos"
4830 aros_host_cpu="ppc"
4831 host_cc_elf=no
4834 amiga*)
4835 aros_host_arch="amiga"
4836 host_cc_elf=no
4837 SORT="/gg/bin/sort"
4838 TEST="/gg/bin/test"
4839 UNIQ="/gg/bin/uniq"
4840 FOR="for"
4841 TOUCH="/gg/bin/touch"
4842 case "$host_cpu" in
4843 *m68k*)
4844 aros_host_cpu="m68k"
4846 *powerpc*)
4847 aros_host_cpu="ppc"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4851 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4852 aros_host_cpu="$host_cpu"
4854 esac
4857 cygwin*)
4858 aros_host_arch="cygwin"
4859 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4860 host_cc_elf=no
4861 android_build_os="windows"
4862 android_tool="android.bat"
4863 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4865 case "$host_cpu" in
4866 *i?86*)
4867 aros_host_cpu="i386"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4871 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4872 aros_host_cpu="$host_cpu"
4874 esac
4877 mingw32*)
4878 aros_host_arch="mingw32"
4879 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4880 host_cc_elf=no
4881 android_build_os="windows"
4882 android_tool="android.bat"
4883 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4885 case "$host_cpu" in
4886 *i?86*)
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4889 $as_echo_n "checking for Windows native gcc target... " >&6; }
4890 host_cpu=`gcc -dumpmachine`
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4892 $as_echo "$host_cpu" >&6; }
4895 esac
4897 case "$host_cpu" in
4898 *i?86*)
4899 aros_host_cpu="i386"
4902 mingw32*)
4903 aros_host_cpu="i386"
4906 *x86_64*)
4907 aros_host_cpu="x86_64"
4908 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4913 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4914 aros_host_cpu="$host_cpu"
4916 esac
4919 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4921 esac
4923 # Extract the first word of "ar", so it can be a program name with args.
4924 set dummy ar; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if ${ac_cv_prog_aros_host_ar+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$aros_host_ar"; then
4931 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_prog_aros_host_ar="ar cr"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4950 aros_host_ar=$ac_cv_prog_aros_host_ar
4951 if test -n "$aros_host_ar"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4953 $as_echo "$aros_host_ar" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4960 if test "$aros_host_ar" = ""; then
4961 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4963 # Extract the first word of "ranlib", so it can be a program name with args.
4964 set dummy ranlib; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if test -n "$aros_host_ranlib"; then
4971 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_prog_aros_host_ranlib="ranlib "
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4984 done
4985 done
4986 IFS=$as_save_IFS
4990 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4991 if test -n "$aros_host_ranlib"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4993 $as_echo "$aros_host_ranlib" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
5000 if test "$aros_host_ranlib" = ""; then
5001 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5003 # Extract the first word of "strip", so it can be a program name with args.
5004 set dummy strip; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if ${ac_cv_prog_aros_host_strip+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 if test -n "$aros_host_strip"; then
5011 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_prog_aros_host_strip="strip "
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5024 done
5025 done
5026 IFS=$as_save_IFS
5030 aros_host_strip=$ac_cv_prog_aros_host_strip
5031 if test -n "$aros_host_strip"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5033 $as_echo "$aros_host_strip" >&6; }
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5040 if test "$aros_host_strip" = ""; then
5041 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5044 # Extract the first word of "rm", so it can be a program name with args.
5045 set dummy rm; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_RM+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$RM"; then
5052 ac_cv_prog_RM="$RM" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_RM="rm -rf"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5067 IFS=$as_save_IFS
5071 RM=$ac_cv_prog_RM
5072 if test -n "$RM"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5074 $as_echo "$RM" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5081 if test "$RM" = ""; then
5082 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5084 # Extract the first word of "cp", so it can be a program name with args.
5085 set dummy cp; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_prog_CP+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$CP"; then
5092 ac_cv_prog_CP="$CP" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_CP="cp "
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5107 IFS=$as_save_IFS
5111 CP=$ac_cv_prog_CP
5112 if test -n "$CP"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5114 $as_echo "$CP" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5121 if test "$CP" = ""; then
5122 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5124 # Extract the first word of "mv", so it can be a program name with args.
5125 set dummy mv; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_MV+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$MV"; then
5132 ac_cv_prog_MV="$MV" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_MV="mv "
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 MV=$ac_cv_prog_MV
5152 if test -n "$MV"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5154 $as_echo "$MV" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5161 if test "$MV" = ""; then
5162 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5164 # Extract the first word of "echo", so it can be a program name with args.
5165 set dummy echo; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_ECHO+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$ECHO"; then
5172 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_ECHO="echo "
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 ECHO=$ac_cv_prog_ECHO
5192 if test -n "$ECHO"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5194 $as_echo "$ECHO" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5201 if test "$ECHO" = ""; then
5202 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5204 # Extract the first word of "mkdir", so it can be a program name with args.
5205 set dummy mkdir; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_prog_MKDIR+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$MKDIR"; then
5212 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_MKDIR="mkdir -p"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5231 MKDIR=$ac_cv_prog_MKDIR
5232 if test -n "$MKDIR"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5234 $as_echo "$MKDIR" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5241 if test "$MKDIR" = ""; then
5242 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5244 # Extract the first word of "touch", so it can be a program name with args.
5245 set dummy touch; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_TOUCH+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$TOUCH"; then
5252 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_TOUCH="touch "
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5265 done
5266 done
5267 IFS=$as_save_IFS
5271 TOUCH=$ac_cv_prog_TOUCH
5272 if test -n "$TOUCH"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5274 $as_echo "$TOUCH" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 if test "$TOUCH" = ""; then
5282 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5284 # Extract the first word of "sort", so it can be a program name with args.
5285 set dummy sort; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_SORT+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 if test -n "$SORT"; then
5292 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_prog_SORT="sort "
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5311 SORT=$ac_cv_prog_SORT
5312 if test -n "$SORT"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5314 $as_echo "$SORT" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 if test "$SORT" = ""; then
5322 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5324 # Extract the first word of "uniq", so it can be a program name with args.
5325 set dummy uniq; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_UNIQ+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$UNIQ"; then
5332 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_UNIQ="uniq "
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5345 done
5346 done
5347 IFS=$as_save_IFS
5351 UNIQ=$ac_cv_prog_UNIQ
5352 if test -n "$UNIQ"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5354 $as_echo "$UNIQ" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5361 if test "$UNIQ" = ""; then
5362 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5364 # Extract the first word of "true", so it can be a program name with args.
5365 set dummy true; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_NOP+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$NOP"; then
5372 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_NOP="true "
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5387 IFS=$as_save_IFS
5391 NOP=$ac_cv_prog_NOP
5392 if test -n "$NOP"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5394 $as_echo "$NOP" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5401 if test "$NOP" = ""; then
5402 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5404 # Extract the first word of "cat", so it can be a program name with args.
5405 set dummy cat; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if ${ac_cv_prog_CAT+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -n "$CAT"; then
5412 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421 ac_cv_prog_CAT="cat "
5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5425 done
5426 done
5427 IFS=$as_save_IFS
5431 CAT=$ac_cv_prog_CAT
5432 if test -n "$CAT"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5434 $as_echo "$CAT" >&6; }
5435 else
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5441 if test "$CAT" = ""; then
5442 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5444 # Extract the first word of "bison", so it can be a program name with args.
5445 set dummy bison; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_BISON+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -n "$BISON"; then
5452 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_prog_BISON="bison "
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5465 done
5466 done
5467 IFS=$as_save_IFS
5471 BISON=$ac_cv_prog_BISON
5472 if test -n "$BISON"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5474 $as_echo "$BISON" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5481 if test "$BISON" = ""; then
5482 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5484 # Extract the first word of "flex", so it can be a program name with args.
5485 set dummy flex; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_FLEX+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$FLEX"; then
5492 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_prog_FLEX="flex "
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5505 done
5506 done
5507 IFS=$as_save_IFS
5511 FLEX=$ac_cv_prog_FLEX
5512 if test -n "$FLEX"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5514 $as_echo "$FLEX" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 if test "$FLEX" = ""; then
5522 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5524 # Extract the first word of "pngtopnm", so it can be a program name with args.
5525 set dummy pngtopnm; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$PNGTOPNM"; then
5532 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_prog_PNGTOPNM="pngtopnm "
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5547 IFS=$as_save_IFS
5551 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5552 if test -n "$PNGTOPNM"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5554 $as_echo "$PNGTOPNM" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5561 if test "$PNGTOPNM" = ""; then
5562 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5564 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5565 set dummy ppmtoilbm; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$PPMTOILBM"; then
5572 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5585 done
5586 done
5587 IFS=$as_save_IFS
5591 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5592 if test -n "$PPMTOILBM"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5594 $as_echo "$PPMTOILBM" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5601 if test "$PPMTOILBM" = ""; then
5602 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5604 # Extract the first word of "sed", so it can be a program name with args.
5605 set dummy sed; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_SED+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$SED"; then
5612 ac_cv_prog_SED="$SED" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_SED="sed "
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5625 done
5626 done
5627 IFS=$as_save_IFS
5631 SED=$ac_cv_prog_SED
5632 if test -n "$SED"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5634 $as_echo "$SED" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5641 if test "$SED" = ""; then
5642 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5644 # Extract the first word of "chmod", so it can be a program name with args.
5645 set dummy chmod; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_CHMOD+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if test -n "$CHMOD"; then
5652 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_prog_CHMOD="chmod "
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5665 done
5666 done
5667 IFS=$as_save_IFS
5671 CHMOD=$ac_cv_prog_CHMOD
5672 if test -n "$CHMOD"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5674 $as_echo "$CHMOD" >&6; }
5675 else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5681 if test "$CHMOD" = ""; then
5682 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5684 # Extract the first word of "patch", so it can be a program name with args.
5685 set dummy patch; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_prog_PATCH+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$PATCH"; then
5692 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701 ac_cv_prog_PATCH="patch "
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5705 done
5706 done
5707 IFS=$as_save_IFS
5711 PATCH=$ac_cv_prog_PATCH
5712 if test -n "$PATCH"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5714 $as_echo "$PATCH" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5721 if test "$PATCH" = ""; then
5722 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5731 if test -n "$PYTHON"; then
5732 # If the user set $PYTHON, use it and don't search something else.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5734 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5735 prog="import sys
5736 # split strings by '.' and convert to numeric. Append some zeros
5737 # because we need at least 4 digits for the hex conversion.
5738 # map returns an iterator in Python 3.0 and a list in 2.x
5739 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5740 minverhex = 0
5741 # xrange is not present in Python 3.0 and range returns an iterator
5742 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5743 sys.exit(sys.hexversion < minverhex)"
5744 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5745 ($PYTHON -c "$prog") >&5 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5750 $as_echo "yes" >&6; }
5751 else
5752 as_fn_error $? "too old" "$LINENO" 5
5754 am_display_PYTHON=$PYTHON
5755 else
5756 # Otherwise, try each interpreter until we find one that satisfies
5757 # VERSION.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5759 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5760 if ${am_cv_pathless_PYTHON+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5764 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5765 test "$am_cv_pathless_PYTHON" = none && break
5766 prog="import sys
5767 # split strings by '.' and convert to numeric. Append some zeros
5768 # because we need at least 4 digits for the hex conversion.
5769 # map returns an iterator in Python 3.0 and a list in 2.x
5770 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5771 minverhex = 0
5772 # xrange is not present in Python 3.0 and range returns an iterator
5773 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5774 sys.exit(sys.hexversion < minverhex)"
5775 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5776 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; then :
5780 break
5782 done
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5785 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5786 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5787 if test "$am_cv_pathless_PYTHON" = none; then
5788 PYTHON=:
5789 else
5790 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5791 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_path_PYTHON+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 case $PYTHON in
5798 [\\/]* | ?:[\\/]*)
5799 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5813 done
5814 done
5815 IFS=$as_save_IFS
5818 esac
5820 PYTHON=$ac_cv_path_PYTHON
5821 if test -n "$PYTHON"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5823 $as_echo "$PYTHON" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5831 am_display_PYTHON=$am_cv_pathless_PYTHON
5835 if test "$PYTHON" = :; then
5836 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5837 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5841 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5842 if ${am_cv_python_version+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5848 $as_echo "$am_cv_python_version" >&6; }
5849 PYTHON_VERSION=$am_cv_python_version
5853 PYTHON_PREFIX='${prefix}'
5855 PYTHON_EXEC_PREFIX='${exec_prefix}'
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5860 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5861 if ${am_cv_python_platform+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5867 $as_echo "$am_cv_python_platform" >&6; }
5868 PYTHON_PLATFORM=$am_cv_python_platform
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5874 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5875 if ${am_cv_python_pythondir+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if test "x$prefix" = xNONE
5879 then
5880 am_py_prefix=$ac_default_prefix
5881 else
5882 am_py_prefix=$prefix
5884 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
5885 case $am_cv_python_pythondir in
5886 $am_py_prefix*)
5887 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5888 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5891 case $am_py_prefix in
5892 /usr|/System*) ;;
5894 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5896 esac
5898 esac
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5902 $as_echo "$am_cv_python_pythondir" >&6; }
5903 pythondir=$am_cv_python_pythondir
5907 pkgpythondir=\${pythondir}/$PACKAGE
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5911 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5912 if ${am_cv_python_pyexecdir+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test "x$exec_prefix" = xNONE
5916 then
5917 am_py_exec_prefix=$am_py_prefix
5918 else
5919 am_py_exec_prefix=$exec_prefix
5921 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
5922 case $am_cv_python_pyexecdir in
5923 $am_py_exec_prefix*)
5924 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5925 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5928 case $am_py_exec_prefix in
5929 /usr|/System*) ;;
5931 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5933 esac
5935 esac
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5939 $as_echo "$am_cv_python_pyexecdir" >&6; }
5940 pyexecdir=$am_cv_python_pyexecdir
5944 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5952 FOR=for
5954 IF=if
5956 TEST=test
5958 CMP=cmp
5962 # Check for some includes for the X11 HIDD and the kernel
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5966 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5967 if ${ac_cv_path_GREP+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 if test -z "$GREP"; then
5971 ac_path_GREP_found=false
5972 # Loop through the user's path and test for each of PROGNAME-LIST
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_prog in grep ggrep; do
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5982 # Check for GNU ac_path_GREP and select it if it is found.
5983 # Check for GNU $ac_path_GREP
5984 case `"$ac_path_GREP" --version 2>&1` in
5985 *GNU*)
5986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5988 ac_count=0
5989 $as_echo_n 0123456789 >"conftest.in"
5990 while :
5992 cat "conftest.in" "conftest.in" >"conftest.tmp"
5993 mv "conftest.tmp" "conftest.in"
5994 cp "conftest.in" "conftest.nl"
5995 $as_echo 'GREP' >> "conftest.nl"
5996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5998 as_fn_arith $ac_count + 1 && ac_count=$as_val
5999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6000 # Best one so far, save it but keep looking for a better one
6001 ac_cv_path_GREP="$ac_path_GREP"
6002 ac_path_GREP_max=$ac_count
6004 # 10*(2^10) chars as input seems more than enough
6005 test $ac_count -gt 10 && break
6006 done
6007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6008 esac
6010 $ac_path_GREP_found && break 3
6011 done
6012 done
6013 done
6014 IFS=$as_save_IFS
6015 if test -z "$ac_cv_path_GREP"; then
6016 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6018 else
6019 ac_cv_path_GREP=$GREP
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6024 $as_echo "$ac_cv_path_GREP" >&6; }
6025 GREP="$ac_cv_path_GREP"
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6029 $as_echo_n "checking for egrep... " >&6; }
6030 if ${ac_cv_path_EGREP+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6034 then ac_cv_path_EGREP="$GREP -E"
6035 else
6036 if test -z "$EGREP"; then
6037 ac_path_EGREP_found=false
6038 # Loop through the user's path and test for each of PROGNAME-LIST
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_prog in egrep; do
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6047 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6048 # Check for GNU ac_path_EGREP and select it if it is found.
6049 # Check for GNU $ac_path_EGREP
6050 case `"$ac_path_EGREP" --version 2>&1` in
6051 *GNU*)
6052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6054 ac_count=0
6055 $as_echo_n 0123456789 >"conftest.in"
6056 while :
6058 cat "conftest.in" "conftest.in" >"conftest.tmp"
6059 mv "conftest.tmp" "conftest.in"
6060 cp "conftest.in" "conftest.nl"
6061 $as_echo 'EGREP' >> "conftest.nl"
6062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6064 as_fn_arith $ac_count + 1 && ac_count=$as_val
6065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6066 # Best one so far, save it but keep looking for a better one
6067 ac_cv_path_EGREP="$ac_path_EGREP"
6068 ac_path_EGREP_max=$ac_count
6070 # 10*(2^10) chars as input seems more than enough
6071 test $ac_count -gt 10 && break
6072 done
6073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6074 esac
6076 $ac_path_EGREP_found && break 3
6077 done
6078 done
6079 done
6080 IFS=$as_save_IFS
6081 if test -z "$ac_cv_path_EGREP"; then
6082 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6084 else
6085 ac_cv_path_EGREP=$EGREP
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6091 $as_echo "$ac_cv_path_EGREP" >&6; }
6092 EGREP="$ac_cv_path_EGREP"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6096 $as_echo_n "checking for ANSI C header files... " >&6; }
6097 if ${ac_cv_header_stdc+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 #include <stdlib.h>
6103 #include <stdarg.h>
6104 #include <string.h>
6105 #include <float.h>
6108 main ()
6112 return 0;
6114 _ACEOF
6115 if ac_fn_c_try_compile "$LINENO"; then :
6116 ac_cv_header_stdc=yes
6117 else
6118 ac_cv_header_stdc=no
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 if test $ac_cv_header_stdc = yes; then
6123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <string.h>
6128 _ACEOF
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 $EGREP "memchr" >/dev/null 2>&1; then :
6132 else
6133 ac_cv_header_stdc=no
6135 rm -f conftest*
6139 if test $ac_cv_header_stdc = yes; then
6140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 #include <stdlib.h>
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "free" >/dev/null 2>&1; then :
6149 else
6150 ac_cv_header_stdc=no
6152 rm -f conftest*
6156 if test $ac_cv_header_stdc = yes; then
6157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6158 if test "$cross_compiling" = yes; then :
6160 else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 #include <ctype.h>
6164 #include <stdlib.h>
6165 #if ((' ' & 0x0FF) == 0x020)
6166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6168 #else
6169 # define ISLOWER(c) \
6170 (('a' <= (c) && (c) <= 'i') \
6171 || ('j' <= (c) && (c) <= 'r') \
6172 || ('s' <= (c) && (c) <= 'z'))
6173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6174 #endif
6176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6178 main ()
6180 int i;
6181 for (i = 0; i < 256; i++)
6182 if (XOR (islower (i), ISLOWER (i))
6183 || toupper (i) != TOUPPER (i))
6184 return 2;
6185 return 0;
6187 _ACEOF
6188 if ac_fn_c_try_run "$LINENO"; then :
6190 else
6191 ac_cv_header_stdc=no
6193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6194 conftest.$ac_objext conftest.beam conftest.$ac_ext
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6200 $as_echo "$ac_cv_header_stdc" >&6; }
6201 if test $ac_cv_header_stdc = yes; then
6203 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6208 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6209 inttypes.h stdint.h unistd.h
6210 do :
6211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6212 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6214 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6215 cat >>confdefs.h <<_ACEOF
6216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 _ACEOF
6221 done
6224 for ac_header in sys/ipc.h sys/shm.h \
6225 sys/mmap.h sys/mman.h sysexits.h \
6226 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6228 do :
6229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6230 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6231 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6232 cat >>confdefs.h <<_ACEOF
6233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6234 _ACEOF
6238 done
6241 for ac_header in sys/mount.h
6242 do :
6243 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6245 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6246 cat >>confdefs.h <<_ACEOF
6247 #define HAVE_SYS_MOUNT_H 1
6248 _ACEOF
6252 done
6255 ac_header_dirent=no
6256 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6257 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6259 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6260 if eval \${$as_ac_Header+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 #include <sys/types.h>
6266 #include <$ac_hdr>
6269 main ()
6271 if ((DIR *) 0)
6272 return 0;
6274 return 0;
6276 _ACEOF
6277 if ac_fn_c_try_compile "$LINENO"; then :
6278 eval "$as_ac_Header=yes"
6279 else
6280 eval "$as_ac_Header=no"
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 eval ac_res=\$$as_ac_Header
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6286 $as_echo "$ac_res" >&6; }
6287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6288 cat >>confdefs.h <<_ACEOF
6289 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6290 _ACEOF
6292 ac_header_dirent=$ac_hdr; break
6295 done
6296 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6297 if test $ac_header_dirent = dirent.h; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6299 $as_echo_n "checking for library containing opendir... " >&6; }
6300 if ${ac_cv_search_opendir+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 ac_func_search_save_LIBS=$LIBS
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6307 /* Override any GCC internal prototype to avoid an error.
6308 Use char because int might match the return type of a GCC
6309 builtin and then its argument prototype would still apply. */
6310 #ifdef __cplusplus
6311 extern "C"
6312 #endif
6313 char opendir ();
6315 main ()
6317 return opendir ();
6319 return 0;
6321 _ACEOF
6322 for ac_lib in '' dir; do
6323 if test -z "$ac_lib"; then
6324 ac_res="none required"
6325 else
6326 ac_res=-l$ac_lib
6327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6329 if ac_fn_c_try_link "$LINENO"; then :
6330 ac_cv_search_opendir=$ac_res
6332 rm -f core conftest.err conftest.$ac_objext \
6333 conftest$ac_exeext
6334 if ${ac_cv_search_opendir+:} false; then :
6335 break
6337 done
6338 if ${ac_cv_search_opendir+:} false; then :
6340 else
6341 ac_cv_search_opendir=no
6343 rm conftest.$ac_ext
6344 LIBS=$ac_func_search_save_LIBS
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6347 $as_echo "$ac_cv_search_opendir" >&6; }
6348 ac_res=$ac_cv_search_opendir
6349 if test "$ac_res" != no; then :
6350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6356 $as_echo_n "checking for library containing opendir... " >&6; }
6357 if ${ac_cv_search_opendir+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 ac_func_search_save_LIBS=$LIBS
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6364 /* Override any GCC internal prototype to avoid an error.
6365 Use char because int might match the return type of a GCC
6366 builtin and then its argument prototype would still apply. */
6367 #ifdef __cplusplus
6368 extern "C"
6369 #endif
6370 char opendir ();
6372 main ()
6374 return opendir ();
6376 return 0;
6378 _ACEOF
6379 for ac_lib in '' x; do
6380 if test -z "$ac_lib"; then
6381 ac_res="none required"
6382 else
6383 ac_res=-l$ac_lib
6384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6386 if ac_fn_c_try_link "$LINENO"; then :
6387 ac_cv_search_opendir=$ac_res
6389 rm -f core conftest.err conftest.$ac_objext \
6390 conftest$ac_exeext
6391 if ${ac_cv_search_opendir+:} false; then :
6392 break
6394 done
6395 if ${ac_cv_search_opendir+:} false; then :
6397 else
6398 ac_cv_search_opendir=no
6400 rm conftest.$ac_ext
6401 LIBS=$ac_func_search_save_LIBS
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6404 $as_echo "$ac_cv_search_opendir" >&6; }
6405 ac_res=$ac_cv_search_opendir
6406 if test "$ac_res" != no; then :
6407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6414 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6415 if ${ac_cv_header_stat_broken+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 #include <sys/types.h>
6421 #include <sys/stat.h>
6423 #if defined S_ISBLK && defined S_IFDIR
6424 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6425 #endif
6427 #if defined S_ISBLK && defined S_IFCHR
6428 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6429 #endif
6431 #if defined S_ISLNK && defined S_IFREG
6432 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6433 #endif
6435 #if defined S_ISSOCK && defined S_IFREG
6436 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6437 #endif
6439 _ACEOF
6440 if ac_fn_c_try_compile "$LINENO"; then :
6441 ac_cv_header_stat_broken=no
6442 else
6443 ac_cv_header_stat_broken=yes
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6448 $as_echo "$ac_cv_header_stat_broken" >&6; }
6449 if test $ac_cv_header_stat_broken = yes; then
6451 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6456 $as_echo_n "checking for ANSI C header files... " >&6; }
6457 if ${ac_cv_header_stdc+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <stdlib.h>
6463 #include <stdarg.h>
6464 #include <string.h>
6465 #include <float.h>
6468 main ()
6472 return 0;
6474 _ACEOF
6475 if ac_fn_c_try_compile "$LINENO"; then :
6476 ac_cv_header_stdc=yes
6477 else
6478 ac_cv_header_stdc=no
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 if test $ac_cv_header_stdc = yes; then
6483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 #include <string.h>
6488 _ACEOF
6489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6490 $EGREP "memchr" >/dev/null 2>&1; then :
6492 else
6493 ac_cv_header_stdc=no
6495 rm -f conftest*
6499 if test $ac_cv_header_stdc = yes; then
6500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #include <stdlib.h>
6505 _ACEOF
6506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6507 $EGREP "free" >/dev/null 2>&1; then :
6509 else
6510 ac_cv_header_stdc=no
6512 rm -f conftest*
6516 if test $ac_cv_header_stdc = yes; then
6517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6518 if test "$cross_compiling" = yes; then :
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 #include <ctype.h>
6524 #include <stdlib.h>
6525 #if ((' ' & 0x0FF) == 0x020)
6526 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6527 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6528 #else
6529 # define ISLOWER(c) \
6530 (('a' <= (c) && (c) <= 'i') \
6531 || ('j' <= (c) && (c) <= 'r') \
6532 || ('s' <= (c) && (c) <= 'z'))
6533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6534 #endif
6536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6538 main ()
6540 int i;
6541 for (i = 0; i < 256; i++)
6542 if (XOR (islower (i), ISLOWER (i))
6543 || toupper (i) != TOUPPER (i))
6544 return 2;
6545 return 0;
6547 _ACEOF
6548 if ac_fn_c_try_run "$LINENO"; then :
6550 else
6551 ac_cv_header_stdc=no
6553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6554 conftest.$ac_objext conftest.beam conftest.$ac_ext
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6560 $as_echo "$ac_cv_header_stdc" >&6; }
6561 if test $ac_cv_header_stdc = yes; then
6563 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6568 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6569 if ${ac_cv_header_sys_wait_h+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 #include <sys/types.h>
6575 #include <sys/wait.h>
6576 #ifndef WEXITSTATUS
6577 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6578 #endif
6579 #ifndef WIFEXITED
6580 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6581 #endif
6584 main ()
6586 int s;
6587 wait (&s);
6588 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6590 return 0;
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 ac_cv_header_sys_wait_h=yes
6595 else
6596 ac_cv_header_sys_wait_h=no
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6601 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6602 if test $ac_cv_header_sys_wait_h = yes; then
6604 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6609 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6610 if ${ac_cv_header_time+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 #include <sys/types.h>
6616 #include <sys/time.h>
6617 #include <time.h>
6620 main ()
6622 if ((struct tm *) 0)
6623 return 0;
6625 return 0;
6627 _ACEOF
6628 if ac_fn_c_try_compile "$LINENO"; then :
6629 ac_cv_header_time=yes
6630 else
6631 ac_cv_header_time=no
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6636 $as_echo "$ac_cv_header_time" >&6; }
6637 if test $ac_cv_header_time = yes; then
6639 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6643 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6644 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6648 _ACEOF
6651 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6656 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6657 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6659 cat >>confdefs.h <<_ACEOF
6660 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6661 _ACEOF
6664 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6666 else
6667 case " $LIBOBJS " in
6668 *" fileblocks.$ac_objext "* ) ;;
6669 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6671 esac
6676 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6677 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6679 cat >>confdefs.h <<_ACEOF
6680 #define HAVE_STRUCT_STAT_ST_RDEV 1
6681 _ACEOF
6684 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6690 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6691 if ${ac_cv_struct_tm+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 #include <sys/types.h>
6697 #include <time.h>
6700 main ()
6702 struct tm tm;
6703 int *p = &tm.tm_sec;
6704 return !p;
6706 return 0;
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"; then :
6710 ac_cv_struct_tm=time.h
6711 else
6712 ac_cv_struct_tm=sys/time.h
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6717 $as_echo "$ac_cv_struct_tm" >&6; }
6718 if test $ac_cv_struct_tm = sys/time.h; then
6720 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6724 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6725 #include <$ac_cv_struct_tm>
6728 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6730 cat >>confdefs.h <<_ACEOF
6731 #define HAVE_STRUCT_TM_TM_ZONE 1
6732 _ACEOF
6737 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6739 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6741 else
6742 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6744 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6745 ac_have_decl=1
6746 else
6747 ac_have_decl=0
6750 cat >>confdefs.h <<_ACEOF
6751 #define HAVE_DECL_TZNAME $ac_have_decl
6752 _ACEOF
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6755 $as_echo_n "checking for tzname... " >&6; }
6756 if ${ac_cv_var_tzname+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 #include <time.h>
6762 #if !HAVE_DECL_TZNAME
6763 extern char *tzname[];
6764 #endif
6767 main ()
6769 return tzname[0][0];
6771 return 0;
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 ac_cv_var_tzname=yes
6776 else
6777 ac_cv_var_tzname=no
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6783 $as_echo "$ac_cv_var_tzname" >&6; }
6784 if test $ac_cv_var_tzname = yes; then
6786 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6791 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6792 if test "x$ac_cv_type_off_t" = xyes; then :
6794 else
6796 cat >>confdefs.h <<_ACEOF
6797 #define off_t long int
6798 _ACEOF
6802 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6803 if test "x$ac_cv_type_pid_t" = xyes; then :
6805 else
6807 cat >>confdefs.h <<_ACEOF
6808 #define pid_t int
6809 _ACEOF
6813 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6814 if test "x$ac_cv_type_size_t" = xyes; then :
6816 else
6818 cat >>confdefs.h <<_ACEOF
6819 #define size_t unsigned int
6820 _ACEOF
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6825 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6826 if ${ac_cv_type_uid_t+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <sys/types.h>
6833 _ACEOF
6834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835 $EGREP "uid_t" >/dev/null 2>&1; then :
6836 ac_cv_type_uid_t=yes
6837 else
6838 ac_cv_type_uid_t=no
6840 rm -f conftest*
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6844 $as_echo "$ac_cv_type_uid_t" >&6; }
6845 if test $ac_cv_type_uid_t = no; then
6847 $as_echo "#define uid_t int" >>confdefs.h
6850 $as_echo "#define gid_t int" >>confdefs.h
6855 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6856 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6858 cat >>confdefs.h <<_ACEOF
6859 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6860 _ACEOF
6866 # Look for some functions
6867 for ac_func in getpagesize kqueue statfs statvfs \
6868 clone kse_create rfork_thread thr_create sa_register \
6869 getcontext makecontext setcontext sigaltstack swapcontext
6870 do :
6871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6873 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6874 cat >>confdefs.h <<_ACEOF
6875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6876 _ACEOF
6879 done
6885 for ac_header in $ac_header_list
6886 do :
6887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6888 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6891 cat >>confdefs.h <<_ACEOF
6892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6893 _ACEOF
6897 done
6906 for ac_func in getpagesize
6907 do :
6908 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6909 if test "x$ac_cv_func_getpagesize" = xyes; then :
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_GETPAGESIZE 1
6912 _ACEOF
6915 done
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6918 $as_echo_n "checking for working mmap... " >&6; }
6919 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test "$cross_compiling" = yes; then :
6923 ac_cv_func_mmap_fixed_mapped=no
6924 else
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 $ac_includes_default
6928 /* malloc might have been renamed as rpl_malloc. */
6929 #undef malloc
6931 /* Thanks to Mike Haertel and Jim Avera for this test.
6932 Here is a matrix of mmap possibilities:
6933 mmap private not fixed
6934 mmap private fixed at somewhere currently unmapped
6935 mmap private fixed at somewhere already mapped
6936 mmap shared not fixed
6937 mmap shared fixed at somewhere currently unmapped
6938 mmap shared fixed at somewhere already mapped
6939 For private mappings, we should verify that changes cannot be read()
6940 back from the file, nor mmap's back from the file at a different
6941 address. (There have been systems where private was not correctly
6942 implemented like the infamous i386 svr4.0, and systems where the
6943 VM page cache was not coherent with the file system buffer cache
6944 like early versions of FreeBSD and possibly contemporary NetBSD.)
6945 For shared mappings, we should conversely verify that changes get
6946 propagated back to all the places they're supposed to be.
6948 Grep wants private fixed already mapped.
6949 The main things grep needs to know about mmap are:
6950 * does it exist and is it safe to write into the mmap'd area
6951 * how to use it (BSD variants) */
6953 #include <fcntl.h>
6954 #include <sys/mman.h>
6956 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6957 char *malloc ();
6958 #endif
6960 /* This mess was copied from the GNU getpagesize.h. */
6961 #ifndef HAVE_GETPAGESIZE
6962 # ifdef _SC_PAGESIZE
6963 # define getpagesize() sysconf(_SC_PAGESIZE)
6964 # else /* no _SC_PAGESIZE */
6965 # ifdef HAVE_SYS_PARAM_H
6966 # include <sys/param.h>
6967 # ifdef EXEC_PAGESIZE
6968 # define getpagesize() EXEC_PAGESIZE
6969 # else /* no EXEC_PAGESIZE */
6970 # ifdef NBPG
6971 # define getpagesize() NBPG * CLSIZE
6972 # ifndef CLSIZE
6973 # define CLSIZE 1
6974 # endif /* no CLSIZE */
6975 # else /* no NBPG */
6976 # ifdef NBPC
6977 # define getpagesize() NBPC
6978 # else /* no NBPC */
6979 # ifdef PAGESIZE
6980 # define getpagesize() PAGESIZE
6981 # endif /* PAGESIZE */
6982 # endif /* no NBPC */
6983 # endif /* no NBPG */
6984 # endif /* no EXEC_PAGESIZE */
6985 # else /* no HAVE_SYS_PARAM_H */
6986 # define getpagesize() 8192 /* punt totally */
6987 # endif /* no HAVE_SYS_PARAM_H */
6988 # endif /* no _SC_PAGESIZE */
6990 #endif /* no HAVE_GETPAGESIZE */
6993 main ()
6995 char *data, *data2, *data3;
6996 const char *cdata2;
6997 int i, pagesize;
6998 int fd, fd2;
7000 pagesize = getpagesize ();
7002 /* First, make a file with some known garbage in it. */
7003 data = (char *) malloc (pagesize);
7004 if (!data)
7005 return 1;
7006 for (i = 0; i < pagesize; ++i)
7007 *(data + i) = rand ();
7008 umask (0);
7009 fd = creat ("conftest.mmap", 0600);
7010 if (fd < 0)
7011 return 2;
7012 if (write (fd, data, pagesize) != pagesize)
7013 return 3;
7014 close (fd);
7016 /* Next, check that the tail of a page is zero-filled. File must have
7017 non-zero length, otherwise we risk SIGBUS for entire page. */
7018 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7019 if (fd2 < 0)
7020 return 4;
7021 cdata2 = "";
7022 if (write (fd2, cdata2, 1) != 1)
7023 return 5;
7024 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7025 if (data2 == MAP_FAILED)
7026 return 6;
7027 for (i = 0; i < pagesize; ++i)
7028 if (*(data2 + i))
7029 return 7;
7030 close (fd2);
7031 if (munmap (data2, pagesize))
7032 return 8;
7034 /* Next, try to mmap the file at a fixed address which already has
7035 something else allocated at it. If we can, also make sure that
7036 we see the same garbage. */
7037 fd = open ("conftest.mmap", O_RDWR);
7038 if (fd < 0)
7039 return 9;
7040 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7041 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7042 return 10;
7043 for (i = 0; i < pagesize; ++i)
7044 if (*(data + i) != *(data2 + i))
7045 return 11;
7047 /* Finally, make sure that changes to the mapped area do not
7048 percolate back to the file as seen by read(). (This is a bug on
7049 some variants of i386 svr4.0.) */
7050 for (i = 0; i < pagesize; ++i)
7051 *(data2 + i) = *(data2 + i) + 1;
7052 data3 = (char *) malloc (pagesize);
7053 if (!data3)
7054 return 12;
7055 if (read (fd, data3, pagesize) != pagesize)
7056 return 13;
7057 for (i = 0; i < pagesize; ++i)
7058 if (*(data + i) != *(data3 + i))
7059 return 14;
7060 close (fd);
7061 return 0;
7063 _ACEOF
7064 if ac_fn_c_try_run "$LINENO"; then :
7065 ac_cv_func_mmap_fixed_mapped=yes
7066 else
7067 ac_cv_func_mmap_fixed_mapped=no
7069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7070 conftest.$ac_objext conftest.beam conftest.$ac_ext
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7075 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7076 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7078 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7081 rm -f conftest.mmap conftest.txt
7086 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7087 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7088 aros_config_ldflags=""
7090 aros_shared_default=yes
7092 aros_shared_cflags="-fPIC"
7093 aros_shared_aflags=""
7094 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7095 aros_kernel_ldflags="-Wl,-rpath,./lib"
7097 aros_kernel_ar_flags="cr"
7098 aros_target_ar_flags="cr"
7099 aros_target_nm_flags="-C -ul"
7100 aros_target_strip_flags="--strip-unneeded -R.comment"
7102 aros_compiler_libs=
7103 aros_arch_libs=
7105 aros_target_genmap="-Wl,-Map -Xlinker"
7107 # Native flavour stuff
7108 aros_serial_debug="0"
7110 # Palm native flavour stuff
7111 aros_palm_debug_hack="0"
7113 # Unix flavour stuff
7114 aros_nesting_supervisor="0"
7116 # Collect-aros stuff: "-ius" to ignore undefined symbols
7117 ignore_undefined_symbols=""
7119 # Check for X11 by default
7120 need_x11="auto"
7122 #-----------------------------------------------------------------------------
7125 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7126 # it switched on by default, and we use the host compiler, so it compiles AROS
7127 # code with this enabled resulting in link failures as we don't have support
7128 # for it.
7130 # We use two methods to disable it. For the host compiler (used to compile
7131 # some hosted modules), we test to see if the compiler supports stack
7132 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7133 # work on all platforms.
7135 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7136 # (this is done unconditionally, as it should have no effect on compilers
7137 # without the stack protection feature). This may be specific to the way that
7138 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7139 # strong enough to disable it in a generic way though, so we'll live with it
7140 # until another vendor ships GCC with it enabled in a different way, and deal
7141 # with it then.
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7145 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7146 save_cflags="$CFLAGS"
7147 CFLAGS="$CFLAGS -fno-stack-protector"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7152 main ()
7156 return 0;
7158 _ACEOF
7159 if ac_fn_c_try_compile "$LINENO"; then :
7160 use_no_stack_protector="yes"
7161 else
7162 use_no_stack_protector="no"
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7166 $as_echo "$use_no_stack_protector" >&6; }
7167 if test "x-$use_no_stack_protector" = "x-yes" ; then
7168 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7170 CFLAGS="$save_cflags"
7172 #-----------------------------------------------------------------------------
7174 # Disable pointer-signedness warnings if the compiler recognises the option
7175 # (this only works for the host compiler at the moment)
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7178 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7179 save_cflags="$CFLAGS"
7180 CFLAGS="$CFLAGS -Wno-pointer-sign"
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7185 main ()
7189 return 0;
7191 _ACEOF
7192 if ac_fn_c_try_compile "$LINENO"; then :
7193 use_no_sign_warning="yes"
7194 else
7195 use_no_sign_warning="no"
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7199 $as_echo "$use_no_sign_warning" >&6; }
7200 if test "x-$use_no_sign_warning" = "x-yes" ; then
7201 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7203 CFLAGS="$save_cflags"
7205 #-----------------------------------------------------------------------------
7207 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7210 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7211 save_cflags="$CFLAGS"
7212 CFLAGS="$CFLAGS -fgnu89-inline"
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7217 main ()
7221 return 0;
7223 _ACEOF
7224 if ac_fn_c_try_compile "$LINENO"; then :
7225 use_gnu89_inline="yes"
7226 else
7227 use_gnu89_inline="no"
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7231 $as_echo "$use_gnu89_inline" >&6; }
7232 if test "x-$use_gnu89_inline" = "x-yes" ; then
7233 gnu89_inline="-fgnu89-inline"
7235 CFLAGS="$save_cflags"
7237 #-----------------------------------------------------------------------------
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7240 $as_echo_n "checking for type of build... " >&6; }
7241 # Check whether --enable-build_type was given.
7242 if test "${enable_build_type+set}" = set; then :
7243 enableval=$enable_build_type; build_type=$enableval
7244 else
7245 build_type="personal"
7249 if test "$build_type" = "nightly"; then
7250 build_type_string="NIGHTLY"
7251 elif test "$build_type" = "snapshot"; then
7252 build_type_string="SNAPSHOT"
7253 elif test "$build_type" = "milestone"; then
7254 build_type_string="MILESTONE"
7255 elif test "$build_type" = "release"; then
7256 build_type_string="RELEASE"
7257 else
7258 build_type_string="PERSONAL"
7259 build_type="personal"
7262 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7265 $as_echo "$build_type" >&6; }
7267 #-----------------------------------------------------------------------------
7268 all_debug_types="messages stack modules mungwall symbols"
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7271 $as_echo_n "checking which debug types to enable... " >&6; }
7272 # Check whether --enable-debug was given.
7273 if test "${enable_debug+set}" = set; then :
7274 enableval=$enable_debug; debug="$enableval"
7275 else
7276 debug=""
7280 if test "$debug" = "" -o "$debug" = "no"; then
7281 debug="none"
7282 elif test "$debug" = "yes"; then
7283 debug="all"
7286 if test "$debug" = "all" ; then
7287 debug="messages stack modules symbols"
7288 for d in $all_debug_types; do
7289 export aros_${d}_debug="1"
7290 done
7291 else
7292 for d in $all_debug_types; do
7293 export aros_${d}_debug="0"
7294 done
7297 if test "$debug" != "none"; then
7298 debug=`echo $debug | sed s/,/\ /g`
7299 for d in $debug; do
7300 found="0"
7301 for d2 in $all_debug_types; do
7302 if test "$d2" = "$d"; then
7303 found="1"
7304 break
7306 done
7307 if test "$found" = "0"; then
7308 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7310 export aros_${d}_debug="1"
7311 done
7312 aros_debug="yes"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7315 $as_echo "$debug" >&6; }
7317 if test "$aros_messages_debug" = "1"; then
7318 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7319 else
7320 aros_messages_debug=""
7322 if test "$aros_symbols_debug" = "1"; then
7323 aros_symbols_debug="-g"
7324 else
7325 aros_symbols_debug=""
7328 # These are the flags to pass when compiling debugged programs
7329 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7330 aros_debug_aflags=""
7331 aros_debug_ldflags="$aros_symbols_debug"
7333 #-----------------------------------------------------------------------------
7334 # Checking for distcc and ccache.
7336 # Always apply the transforms in this particular order. Basically you should
7337 # always run 'ccache distcc compiler' in that order for the best performance.
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7340 $as_echo_n "checking whether to enable distcc... " >&6; }
7341 # Check whether --enable-distcc was given.
7342 if test "${enable_distcc+set}" = set; then :
7343 enableval=$enable_distcc; distcc="$enableval"
7344 else
7345 distcc="no"
7348 if test "$distcc" != "" -a "$distcc" != "no"; then
7349 # AC_CHECK_PROG will print out the result in this case
7350 # Extract the first word of "distcc", so it can be a program name with args.
7351 set dummy distcc; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_path_DISTCC+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 case $DISTCC in
7358 [\\/]* | ?:[\\/]*)
7359 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7373 done
7374 done
7375 IFS=$as_save_IFS
7377 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7379 esac
7381 DISTCC=$ac_cv_path_DISTCC
7382 if test -n "$DISTCC"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7384 $as_echo "$DISTCC" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7397 $as_echo_n "checking whether to enable ccache... " >&6; }
7398 # Check whether --enable-ccache was given.
7399 if test "${enable_ccache+set}" = set; then :
7400 enableval=$enable_ccache; ccache="$enableval"
7401 else
7402 ccache="no"
7405 if test "$ccache" != "" -a "$ccache" != "no"; then
7406 # AC_CHECK_PROG will print out the result in this case
7407 # Extract the first word of "ccache", so it can be a program name with args.
7408 set dummy ccache; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_CCACHE+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$CCACHE"; then
7415 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_CCACHE="ccache"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7428 done
7429 done
7430 IFS=$as_save_IFS
7434 CCACHE=$ac_cv_prog_CCACHE
7435 if test -n "$CCACHE"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7437 $as_echo "$CCACHE" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7449 #-----------------------------------------------------------------------------
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7451 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7453 # Check whether --with-gcc-version was given.
7454 if test "${with_gcc_version+set}" = set; then :
7455 withval=$with_gcc_version; kernel_tool_version="$withval"
7456 else
7457 kernel_tool_version="default"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7461 $as_echo "$kernel_tool_version" >&6; }
7463 #-----------------------------------------------------------------------------
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7465 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7467 # Check whether --with-gcc-version was given.
7468 if test "${with_gcc_version+set}" = set; then :
7469 withval=$with_gcc_version; target_tool_version="$withval"
7470 else
7471 target_tool_version="default"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7475 $as_echo "$target_tool_version" >&6; }
7477 #-----------------------------------------------------------------------------
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7479 $as_echo_n "checking what optimization flags to use... " >&6; }
7481 # Check whether --with-optimization was given.
7482 if test "${with_optimization+set}" = set; then :
7483 withval=$with_optimization; optimization="$withval"
7484 else
7485 optimization="unknown"
7488 if test "$optimization" = "unknown"; then
7489 if test "$debug" != "none"; then
7490 optimization="-O0"
7491 else
7492 optimization="-O2"
7495 aros_config_cflags="$aros_config_cflags $optimization"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7497 $as_echo "$optimization" >&6; }
7499 #-----------------------------------------------------------------------------
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7501 $as_echo_n "checking what paranoia flags to use... " >&6; }
7503 # Check whether --with-paranoia was given.
7504 if test "${with_paranoia+set}" = set; then :
7505 withval=$with_paranoia; paranoia_flags="$withval"
7506 else
7507 paranoia_flags="default"
7510 if test "$paranoia_flags" = "default"; then
7511 paranoia_flags=""
7512 else if test "$paranoia_flags" = "yes"; then
7513 paranoia_flags="-Wall -Werror"
7514 fi fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7516 $as_echo "$paranoia_flags" >&6; }
7517 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7519 #-----------------------------------------------------------------------------
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7521 $as_echo_n "checking what target variant to enable... " >&6; }
7522 # Check whether --enable-target_variant was given.
7523 if test "${enable_target_variant+set}" = set; then :
7524 enableval=$enable_target_variant; target_variant=$enableval
7525 else
7526 target_variant=""
7529 if test "$target_variant" = ""; then
7530 aros_target_variant=""
7531 aros_target_suffix=""
7532 enableval="none"
7533 else
7534 aros_target_variant="$target_variant"
7535 aros_target_suffix="-$target_variant"
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7538 $as_echo "$enableval" >&6; }
7540 #-----------------------------------------------------------------------------
7541 # Target-specific defaults. You can override then on a per-target basis.
7543 # Bootloader name. Currently used by PC target.
7544 target_bootloader="none"
7546 #-----------------------------------------------------------------------------
7547 # Additional options for some specific targets
7549 case "$aros_target_variant" in
7550 ios)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7552 $as_echo_n "checking XCode path... " >&6; }
7554 # Check whether --with-xcode was given.
7555 if test "${with_xcode+set}" = set; then :
7556 withval=$with_xcode; aros_xcode_path="$withval"
7557 else
7558 aros_xcode_path="/Developer"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7562 $as_echo "$aros_xcode_path" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7565 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7567 # Check whether --with-sdk-version was given.
7568 if test "${with_sdk_version+set}" = set; then :
7569 withval=$with_sdk_version; aros_sdk_version="$withval"
7570 else
7571 aros_sdk_version="4.1"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7575 $as_echo "$aros_sdk_version" >&6; }
7579 "android")
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7581 $as_echo_n "checking Android SDK path... " >&6; }
7583 # Check whether --with-sdk was given.
7584 if test "${with_sdk+set}" = set; then :
7585 withval=$with_sdk; aros_android_sdk="$withval"
7586 else
7587 aros_android_sdk=$default_android_sdk
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7591 $as_echo "$aros_android_sdk" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7594 $as_echo_n "checking Android NDK path... " >&6; }
7596 # Check whether --with-ndk was given.
7597 if test "${with_ndk+set}" = set; then :
7598 withval=$with_ndk; aros_android_ndk="$withval"
7599 else
7600 aros_android_ndk="none"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7604 $as_echo "$aros_android_ndk" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7607 $as_echo_n "checking what Android SDK version to use... " >&6; }
7609 # Check whether --with-sdk-version was given.
7610 if test "${with_sdk_version+set}" = set; then :
7611 withval=$with_sdk_version; aros_sdk_version="$withval"
7612 else
7613 aros_sdk_version="12"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7617 $as_echo "$aros_sdk_version" >&6; }
7619 if test "$aros_android_ndk" != "none"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7621 $as_echo_n "checking what Android NDK version to use... " >&6; }
7623 # Check whether --with-ndk-version was given.
7624 if test "${with_ndk_version+set}" = set; then :
7625 withval=$with_ndk_version; aros_ndk_version="$withval"
7626 else
7627 aros_ndk_version="9"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7631 $as_echo "$aros_ndk_version" >&6; }
7634 export PATH="$aros_android_sdk/tools:$PATH"
7635 # Extract the first word of "$android_tool", so it can be a program name with args.
7636 set dummy $android_tool; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_path_android_tool+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 case $android_tool in
7643 [\\/]* | ?:[\\/]*)
7644 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7658 done
7659 done
7660 IFS=$as_save_IFS
7663 esac
7665 android_tool=$ac_cv_path_android_tool
7666 if test -n "$android_tool"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7668 $as_echo "$android_tool" >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7675 if test "$android_tool" = ""; then
7676 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7679 aros_android_level=android-$aros_sdk_version
7680 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7681 echo "Platform $aros_android_level is not installed in your SDK"
7682 echo "Use --with-sdk-version=<API level number> to select another platform version"
7683 echo "You can check what plaform versions are installed in your SDK"
7684 echo "by examining contents of $aros_android_sdk/platforms directory"
7685 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7688 # Extract the first word of "ant", so it can be a program name with args.
7689 set dummy ant; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_path_ant+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 case $ant in
7696 [\\/]* | ?:[\\/]*)
7697 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7711 done
7712 done
7713 IFS=$as_save_IFS
7716 esac
7718 ant=$ac_cv_path_ant
7719 if test -n "$ant"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7721 $as_echo "$ant" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7728 if test "$ant" = ""; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7730 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7733 if test "$host_os" = "mingw32"; then
7734 android_tool="cmd //c $android_tool"
7738 esac
7740 #-----------------------------------------------------------------------------
7741 # External toolchains
7742 kernel_tool_prefix="none"
7743 aros_tool_prefix="none"
7744 elf_tool_prefix="${target_cpu}-elf-"
7746 # This is the target configuration switch.
7747 case "$target_os" in
7748 linux*)
7749 aros_target_arch="linux"
7750 aros_target_family="unix"
7751 case "$target_cpu" in
7752 *m68k*)
7753 aros_target_cpu="m68k"
7754 aros_object_format="m68kelf"
7755 aros_flavour="emulcompat"
7756 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7757 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7758 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7759 gcc_target_cpu="mc68000"
7761 *i?86*)
7762 aros_target_cpu="i386"
7763 aros_object_format="elf_i386"
7764 aros_flavour="emulation"
7765 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7766 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7767 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7768 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7769 aros_config_ldflags="-m32 -march=i486"
7770 aros_kernel_ldflags="-melf_i386"
7771 aros_default_wbdepth=8
7772 gcc_target_cpu="i386"
7773 pci_hidd_target="hidd-pci-linux"
7774 android_tool_dir_prefix="x86"
7775 android_tool_prefix="i686-android-linux"
7776 android_ndk_arch="x86"
7778 *x86_64*)
7779 aros_target_cpu="x86_64"
7780 aros_object_format="elf_x86_64"
7781 aros_flavour="emulation"
7782 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7783 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7784 aros_default_wbdepth=8
7785 pci_hidd_target="hidd-pci-linux"
7787 *powerpc*)
7788 aros_target_cpu="ppc"
7789 aros_object_format="elf32ppc"
7790 aros_flavour="emulation"
7791 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7792 aros_default_wbdepth=8
7793 gcc_target_cpu="ppc"
7795 # TODO
7796 # Same as powerpc, but I need this for the nightly build to work again.
7797 # Actually, the nightly should be made working with powerpc target.
7798 # That just was too much work for the moment, another week or two.
7799 *ppc*)
7800 aros_target_cpu="ppc"
7801 aros_object_format="elf32ppc"
7802 aros_flavour="emulation"
7803 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7804 aros_default_wbdepth=8
7805 gcc_target_cpu="ppc"
7807 *armhf*)
7808 aros_target_cpu="arm"
7809 target_cpu="arm"
7810 aros_object_format="armelf_linux_eabi"
7811 aros_flavour="emulation"
7812 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7813 gcc_target_cpu="arm"
7814 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7815 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7816 aros_arch_libs="-laeabi"
7817 gcc_default_fpu="vfpv3-d16"
7818 gcc_default_float_abi="hard"
7819 gcc_default_cpu="armv7-a"
7820 android_tool_dir_prefix="arm-linux-androideabi"
7821 android_tool_prefix="arm-linux-androideabi"
7822 android_ndk_arch="arm"
7823 kernel_tool_prefix="arm-linux-gnueabihf-"
7825 *arm*)
7826 aros_target_cpu="arm"
7827 aros_object_format="armelf_linux_eabi"
7828 aros_flavour="emulation"
7829 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7830 gcc_target_cpu="arm"
7831 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7832 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7833 aros_arch_libs="-laeabi"
7834 android_tool_dir_prefix="arm-linux-androideabi"
7835 android_tool_prefix="arm-linux-androideabi"
7836 android_ndk_arch="arm"
7837 kernel_tool_prefix="arm-linux-gnueabi-"
7840 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7842 esac
7843 case "$aros_target_variant" in
7844 android)
7846 if test "$android_ndk_arch" = ""; then
7847 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7850 aros_default_wbwidth=320
7851 aros_default_wbheight=480
7852 if test "$aros_android_ndk" = "none"; then
7853 aros_kernel_cflags="-mandroid"
7854 aros_kernel_ldflags="-mandroid"
7855 CFLAGS="-mandroid"
7856 else
7857 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7858 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7859 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7860 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7861 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7862 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7864 need_x11=no
7865 x11_hidd_target=kernel-hidd-androidgfx-kobj
7866 # Disable implicit PIC mode
7867 aros_target_cflags="$aros_target_cflags -fno-pic"
7868 kernel_tool_prefix="$android_tool_prefix-"
7870 esac
7874 aros_target_arch="pc"
7875 aros_shared_default="no"
7876 target_bootloader="grub2"
7877 case "$target_cpu" in
7878 *i?86*)
7879 aros_target_cpu="i386"
7882 if test "$aros_object_format" = "" ; then
7883 aros_object_format="elf_i386"
7885 aros_flavour="standalone"
7886 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7887 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7888 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7889 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7890 aros_config_ldflags="-m32 -march=i486"
7891 aros_kernel_ldflags="-melf_i386"
7892 aros_default_wbwidth=640
7893 aros_default_wbheight=480
7894 gcc_target_cpu="i386"
7896 *x86_64*)
7897 aros_target_cpu="x86_64"
7898 aros_serial_debug=1
7899 if test "$aros_object_format" = "" ; then
7900 aros_object_format="elf_x86_64"
7902 aros_flavour="standalone"
7903 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7904 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7905 aros_kernel_ldflags=""
7906 aros_default_wbwidth=640
7907 aros_default_wbheight=480
7910 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7912 esac
7915 prep)
7916 aros_target_arch="prep"
7917 aros_shared_default="no"
7918 aros_target_cpu="ppc"
7919 aros_object_format="elf32ppc"
7920 aros_flavour="ppcnative"
7921 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7922 aros_kernel_ldflags=""
7923 aros_default_wbwidth=640
7924 aros_default_wbheight=480
7925 gcc_target_cpu="ppc"
7928 freebsd*)
7929 aros_target_arch="freebsd"
7930 aros_target_family="unix"
7931 aros_target_cpu="i386"
7932 aros_flavour="emulation"
7933 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7934 gcc_target_cpu="i386"
7936 aros_target_strip_flags="-x"
7939 darwin*)
7940 aros_target_arch="darwin"
7941 aros_target_family="unix"
7942 aros_flavour="emulation"
7943 case "$target_cpu" in
7944 *i?86*)
7945 aros_ios_platform="iPhoneSimulator"
7946 aros_target_cpu="i386"
7947 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7948 aros_kernel_ldflags=""
7949 aros_macosx_version="10.4"
7950 aros_default_wbdepth=8
7951 gcc_target_cpu="i386"
7952 aros_object_format="elf_i386"
7953 aros_kernel_ar_flags="-cr"
7954 aros_target_strip_flags="-x"
7955 kernel_tool_flags="-m32"
7957 *x86_64*)
7958 aros_target_cpu="x86_64"
7959 aros_object_format="elf_x86_64"
7960 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7961 aros_macosx_version="10.6"
7962 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7963 aros_kernel_cflags="-m64"
7964 aros_kernel_ldflags="-m64"
7965 aros_target_cflags="-mcmodel=large"
7966 aros_default_wbdepth=8
7967 aros_kernel_ar="ar"
7968 aros_kernel_ar_flags="-cr"
7969 aros_kernel_ld="ld"
7970 aros_kernel_ranlib="ranlib"
7972 *ppc*)
7973 aros_target_cpu="ppc"
7974 aros_object_format="elf32ppc"
7975 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7976 aros_kernel_ldflags=""
7977 aros_macosx_version="10.0"
7978 aros_default_wbdepth=8
7979 gcc_target_cpu="ppc"
7980 aros_kernel_ar="ar"
7981 aros_kernel_ar_flags="-cr"
7982 aros_kernel_ld="ld -arch ppc"
7983 aros_kernel_ranlib="ranlib -arch ppc"
7984 kernel_tool_prefix="powerpc-apple-darwin10-"
7986 *arm*)
7987 aros_ios_platform="iPhoneOS"
7988 aros_target_cpu="arm"
7989 aros_object_format="armelf_linux_eabi"
7990 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7991 aros_arch_libs="-laeabi"
7992 aros_default_wbdepth=8
7993 gcc_target_cpu="arm"
7994 aros_kernel_ar="ar"
7995 aros_kernel_ar_flags="-cr"
7996 aros_kernel_ld="ld -arch arm"
7997 aros_kernel_ranlib="ranlib -arch arm"
7998 kernel_tool_prefix="arm-apple-darwin10-"
7999 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8002 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8004 esac
8005 case "$aros_target_variant" in
8006 ios)
8007 aros_ios_version="3.0"
8008 aros_default_wbwidth=320
8009 aros_default_wbheight=480
8010 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8011 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8012 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8013 need_x11=no
8014 # This is here because it may depend on iOS or SDK version
8015 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8016 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8017 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8020 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8021 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8023 esac
8026 dragonfly*)
8027 aros_target_arch="dragonfly"
8028 aros_target_family="unix"
8029 aros_flavour="emulation"
8030 case "$target_cpu" in
8031 *i?86*)
8032 aros_target_cpu="i386"
8033 aros_object_format="elf_i386"
8034 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8036 *x86_64*)
8037 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8038 aros_target_cpu="x86_64"
8039 aros_object_format="elf_x86_64"
8040 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8043 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8045 esac
8048 netbsd*)
8049 aros_target_arch="netbsd"
8050 aros_target_family="unix"
8051 case "$target_cpu" in
8052 *m68k*)
8053 aros_target_cpu="m68k"
8054 aros_object_format="m68kelf"
8055 aros_flavour="emulcompat"
8056 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8057 gcc_target_cpu="mc68000"
8059 *i?86*)
8060 aros_target_cpu="i386"
8061 aros_object_format="elf_i386"
8062 aros_flavour="emulation"
8063 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8064 aros_default_wbdepth=8
8065 gcc_target_cpu="i386"
8068 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8070 esac
8071 aros_target_genmap="-Wl,-M -Xlinker >"
8072 aros_flavour="emulation"
8073 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8076 openbsd*)
8077 aros_target_arch="openbsd"
8078 aros_target_family="unix"
8079 case "$target_cpu" in
8080 *i?86*)
8081 aros_target_cpu="i386"
8082 aros_object_format="elf_i386"
8083 aros_flavour="emulation"
8084 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8085 gcc_target_cpu="i386"
8088 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8090 esac
8091 aros_target_genmap="-Wl,-M -Xlinker >"
8092 aros_target_nm_flags="-u"
8093 aros_flavour="emulation"
8096 solaris*)
8097 aros_target_arch="solaris"
8098 aros_target_family="unix"
8099 case "$target_cpu" in
8100 *i?86*)
8101 aros_target_cpu="i386"
8102 aros_object_format="elf_i386"
8103 aros_flavour="emulation"
8104 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8105 aros_default_wbdepth=8
8106 gcc_target_cpu="i386"
8108 *sparc*)
8109 aros_target_cpu="sparc"
8110 aros_object_format="elf_sparc"
8111 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8112 gcc_target_cpu="sparc"
8115 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8117 esac
8118 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8119 aros_flavour="emulation"
8122 morphos*)
8123 aros_target_arch="morphos"
8124 aros_shared_default="no"
8125 aros_target_cpu="ppc"
8126 aros_object_format="elf_ppc"
8127 aros_flavour="nativecompat"
8128 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8129 gcc_target_cpu="ppc"
8132 sam440)
8133 aros_target_arch="sam440"
8134 aros_shared_default="no"
8135 aros_target_cpu="ppc"
8136 aros_object_format="elf32ppc"
8137 aros_flavour="ppcnative"
8138 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8139 aros_kernel_ldflags=""
8140 aros_default_wbwidth=1024
8141 aros_default_wbheight=768
8142 aros_default_wbdepth=24
8143 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8144 gcc_target_cpu="powerpc"
8147 efika)
8148 aros_target_arch="efika"
8149 aros_shared_default="no"
8150 aros_target_cpu="arm"
8151 aros_object_format="armelf_linux_eabi"
8152 aros_flavour="standalone"
8153 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8154 aros_kernel_ldflags=""
8155 aros_default_wbwidth=1024
8156 aros_default_wbheight=600
8157 aros_arch_libs="-laeabi"
8158 gcc_default_cpu="armv7-a"
8159 gcc_default_fpu="vfpv3"
8160 gcc_default_float_abi="softfp"
8161 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8162 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8165 chrp)
8166 aros_target_arch="chrp"
8167 aros_shared_default="no"
8168 aros_target_cpu="ppc"
8169 aros_object_format="elf32ppc"
8170 aros_flavour="ppcnative"
8171 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8172 aros_kernel_ldflags=""
8173 aros_default_wbwidth=640
8174 aros_default_wbheight=480
8175 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8176 gcc_target_cpu="powerpc"
8177 case "$aros_target_variant" in
8178 efika)
8179 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8181 esac
8184 amiga*)
8185 aros_target_arch="amiga"
8186 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8187 aros_shared_default="no"
8189 case "$target_cpu" in
8190 *m68k*)
8191 # Check whether --enable-amigaos_compliance was given.
8192 if test "${enable_amigaos_compliance+set}" = set; then :
8193 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8196 aros_enable_mmu=no
8197 aros_target_cpu="m68k"
8198 aros_object_format="m68kelf"
8199 aros_flavour="standcompat"
8200 gcc_target_cpu="m68000"
8201 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os"
8202 aros_config_aflags="$aros_config_aflags"
8203 aros_target_strip_flags="-R.comment --strip-debug"
8204 aros_default_wbwidth=640
8205 aros_default_wbheight=256
8206 aros_default_wbdepth=2
8208 *ppc*)
8209 aros_cpu="ppc"
8210 aros_flavour="native"
8211 gcc_target_cpu="ppc"
8214 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8216 esac
8219 mingw*)
8220 aros_target_arch="mingw32"
8221 aros_shared_default="no"
8222 aros_flavour="emulation"
8223 aros_shared_cflags=""
8224 need_crosstools="yes"
8225 need_dlopen="no"
8226 rescomp="windres"
8227 case "$target_cpu" in
8228 *i?86*)
8229 aros_target_cpu="i386"
8230 aros_object_format="elf_i386"
8231 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8232 aros_default_wbdepth=8
8233 gcc_target_cpu="i386"
8235 kernel_tool_prefix="i386-mingw32-"
8237 *x86_64*)
8238 aros_target_cpu="x86_64"
8239 aros_object_format="elf_x86_64"
8240 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8241 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8242 aros_default_wbdepth=8
8243 kernel_tool_prefix="x86_64-w64-mingw32-"
8245 *arm*)
8246 aros_target_cpu="arm"
8247 aros_object_format="armelf_linux_eabi"
8248 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8249 aros_arch_libs="-laeabi"
8250 aros_default_wbdepth=8
8251 gcc_target_cpu="arm"
8252 gcc_default_float_abi="soft"
8253 kernel_tool_prefix="arm-mingw32ce-"
8254 aros_default_wbwidth=160
8255 aros_default_wbheight=160
8258 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8260 esac
8261 if test $host_os = "cygwin"; then
8262 aros_kernel_cflags="-mno-cygwin"
8265 pp*)
8266 aros_target_arch="pp"
8267 aros_shared_default="no"
8268 case "$target_cpu" in
8269 *m68k*)
8270 aros_target_cpu="m68k"
8271 aros_object_format="m68kelf"
8272 aros_flavour="palmnative"
8273 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8274 aros_default_wbwidth=160
8275 aros_default_wbheight=160
8276 aros_default_wbdepth=1
8277 aros_target_ar_flags="cru"
8278 aros_compiler_libs="-lgcc1"
8279 aros_shared_default=no
8280 aros_shared_cflags="-fpic"
8281 aros_shared_aflags=""
8282 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8283 aros_kernel_ldflags="-Wl,-rpath,./lib"
8284 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8285 aros_debug_aflags=""
8286 aros_debug_ldflags="$aros_symbols_debug"
8287 aros_mungwall_debug="0"
8288 aros_modules_debug="0"
8289 gcc_target_cpu="mc68000"
8290 ignore_undefined_symbols="-ius"
8293 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8295 esac
8298 mac*)
8299 aros_target_arch="mac"
8300 aros_shared_default="no"
8301 case "$target_cpu" in
8302 *m68k*)
8303 aros_target_cpu="m68k"
8304 aros_object_format="m68kelf"
8305 aros_flavour="mac68knative"
8306 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8307 aros_default_wbwidth=512
8308 aros_default_wbheight=384
8309 aros_default_wbdepth=8
8310 aros_target_ar_flags="cru"
8311 aros_compiler_libs="-lgcc1"
8312 aros_shared_default=no
8313 aros_shared_cflags="-fpic"
8314 aros_shared_aflags=""
8315 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8316 aros_kernel_ldflags="-Wl,-rpath,./lib"
8317 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8318 aros_debug_aflags=""
8319 aros_debug_ldflags="$aros_symbols_debug"
8320 aros_mungwall_debug="0"
8321 aros_modules_debug="0"
8322 gcc_target_cpu="mc68000"
8323 ignore_undefined_symbols="-ius"
8326 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8328 esac
8332 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8334 esac
8336 #-----------------------------------------------------------------------------
8337 crosstools_guess=yes
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8340 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8342 # Check whether --with-kernel-toolchain-prefix was given.
8343 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8344 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8348 $as_echo "$kernel_tool_prefix" >&6; }
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8351 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8353 # Check whether --with-elf-toolchain-prefix was given.
8354 if test "${with_elf_toolchain_prefix+set}" = set; then :
8355 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8356 crosstools_guess=no
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8360 $as_echo "$elf_tool_prefix" >&6; }
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8363 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8365 # Check whether --with-aros-toolchain was given.
8366 if test "${with_aros_toolchain+set}" = set; then :
8367 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8368 crosstools_guess=no
8371 if test "$aros_tool_prefix" = "yes" ; then
8372 aros_tool_prefix=$aros_target_cpu-aros-
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8375 $as_echo "$aros_tool_prefix" >&6; }
8377 #-----------------------------------------------------------------------------
8378 # Checking if we should build crosstools..
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8380 $as_echo_n "checking whether to build crosstools... " >&6; }
8381 # Check whether --enable-crosstools was given.
8382 if test "${enable_crosstools+set}" = set; then :
8383 enableval=$enable_crosstools; crosstools="$enableval"
8384 else
8385 crosstools="$crosstools_guess"
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8389 $as_echo "$crosstools" >&6; }
8391 if test "${crosstools}" = "yes"; then
8392 if test "${crosstools_guess}" = "no"; then
8393 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8398 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8400 # Check whether --with-aros-toolchain-install was given.
8401 if test "${with_aros_toolchain_install+set}" = set; then :
8402 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8405 if test "x$aros_toolchain_install" = "x"; then
8406 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8407 else
8408 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8409 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8412 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8415 # Now process extra architecture-specific options.
8416 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8417 # as well as floating-point ABI.
8418 case "$aros_target_cpu" in
8419 arm)
8420 if test "$gcc_default_cpu" = ""; then
8421 gcc_default_cpu="armv6"
8423 if test "$gcc_default_fpu" = ""; then
8424 gcc_default_fpu="vfp"
8426 if test "$gcc_default_float_abi" = ""; then
8427 gcc_default_float_abi="softfp"
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8431 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8433 # Check whether --with-cpu was given.
8434 if test "${with_cpu+set}" = set; then :
8435 withval=$with_cpu; aros_gcc_cpu="$withval"
8436 else
8437 aros_gcc_cpu=$gcc_default_cpu
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8441 $as_echo "$aros_gcc_cpu" >&6; }
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8444 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8446 # Check whether --with-fpu was given.
8447 if test "${with_fpu+set}" = set; then :
8448 withval=$with_fpu; aros_gcc_fpu="$withval"
8449 else
8450 aros_gcc_fpu=$gcc_default_fpu
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8454 $as_echo "$aros_gcc_fpu" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8457 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8459 # Check whether --with-float was given.
8460 if test "${with_float+set}" = set; then :
8461 withval=$with_float; aros_gcc_float_abi="$withval"
8462 else
8463 aros_gcc_float_abi=$gcc_default_float_abi
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8467 $as_echo "$aros_gcc_float_abi" >&6; }
8469 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"
8470 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"
8472 esac
8474 # Some formats need custom ELF specs.
8475 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8476 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8477 elf_specs_in=config/${aros_object_format}-specs.in
8478 else
8479 elf_specs_in=config/elf-specs.in
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8483 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8485 # Check whether --with-aros-gcc was given.
8486 if test "${with_aros_gcc+set}" = set; then :
8487 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8488 else
8489 aros_gcc_version=""
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8493 $as_echo "$aros_gcc_version" >&6; }
8495 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8496 # Since we override specs, we may need to put these defines there
8497 if test "$gcc_target_cpu" != ""; then
8498 gcc_target_cpu="-D__${gcc_target_cpu}__"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8502 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8504 # Check whether --with-portssources was given.
8505 if test "${with_portssources+set}" = set; then :
8506 withval=$with_portssources; with_portssrcdir=$withval
8507 else
8508 with_portssrcdir="default"
8511 if test "$with_portssrcdir" = "default"; then
8512 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8513 else
8514 AROS_PORTSSRCDIR="$with_portssrcdir"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8517 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8520 $as_echo_n "checking which bootloader to use... " >&6; }
8522 # Check whether --with-bootloader was given.
8523 if test "${with_bootloader+set}" = set; then :
8524 withval=$with_bootloader; target_bootloader=$withval
8525 else
8526 target_bootloader=$target_bootloader
8529 if test "$target_bootloader" = "none"; then
8530 aros_target_bootloader=""
8531 else
8532 aros_target_bootloader="$target_bootloader"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8535 $as_echo "$target_bootloader" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8538 $as_echo_n "checking which icon-set to use... " >&6; }
8540 # Check whether --with-iconset was given.
8541 if test "${with_iconset+set}" = set; then :
8542 withval=$with_iconset; target_iconset=$withval
8543 else
8544 target_iconset="default"
8547 if test "$target_iconset" = "default"; then
8548 aros_target_iconset="Gorilla"
8549 target_iconset="default (Gorilla)"
8550 else
8551 aros_target_iconset="$target_iconset"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8554 $as_echo "$target_iconset" >&6; }
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8557 $as_echo_n "checking which GUI Theme to use... " >&6; }
8559 # Check whether --with-theme was given.
8560 if test "${with_theme+set}" = set; then :
8561 withval=$with_theme; target_guitheme=$withval
8562 else
8563 target_guitheme="default"
8566 if test "$target_guitheme" = "default"; then
8567 aros_target_guitheme="Ice"
8568 else
8569 aros_target_guitheme="$target_guitheme"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8572 $as_echo "$aros_target_guitheme" >&6; }
8574 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8575 # for target code)
8576 cross_compiling=no
8578 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8579 cross_compiling=yes
8582 if test "$aros_host_cpu" == "x86_64" ; then
8583 if test "$aros_target_cpu" == "i386" ; then
8584 cross_compiling=no
8588 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8589 if test "$aros_host_arch" != "$aros_target_arch" ; then
8590 cross_compiling=yes
8592 else
8593 if test "$host_cc_elf" = "no" ; then
8594 cross_compiling=yes
8598 if test "$cross_compiling" = "no" ; then
8599 kernel_tool_prefix=""
8600 if test "$host_cc_elf" = "yes" ; then
8601 elf_tool_prefix=""
8605 #######################################################################
8606 ## Compute what toolchains to use, and their paths ##
8607 #######################################################################
8609 # This takes, as input:
8610 # crosstools {yes,no}
8611 # aros_gcc_version {default,[version]}
8612 # kernel_tool_prefix {none,[some-arch-os-]}
8613 # aros_tool_prefix ${target_cpu}-aros-
8615 # The output is
8616 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8617 # Where the 'kernel' binaries are located
8618 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8619 # Where the 'target' binaries are located
8620 # (not the symlink farm - that is aros_target_*!)
8622 # The rules are:
8623 # if crosstools then
8624 # if kernel_tools_prefix = "no-kernel-prefix-"
8625 # aros_kernel_* = crosstools cc paths
8626 # aros_kernel_cc = elf cc wrapper around crosstools cc
8627 # else
8628 # VALIDATE(${kernel_tools_prefix}*)
8629 # aros_kernel_* = ${kernel_tools_prefix}*
8630 # if ${kernel_tools_prefix}cc is an AROS gcc
8631 # aros_kernel_cc = ${kernel_tools_prefix}cc
8632 # else
8633 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8634 # fi
8635 # fi
8637 # orig_target_* = aros built crosstools
8638 # orig_target_cc = elf cc wrapper around crosstools cc
8639 # else
8640 # VALIDATE(${kernel_tools_prefix}*)
8642 # orig_target_* = aros_kernel_*
8643 # if aros_kernel_cc is an AROS gcc
8644 # orig_target_cc = aros_kernel_cc
8645 # else
8646 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8647 # fi
8648 # fi
8650 target_tool_prefix="${target_cpu}-aros-"
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8653 $as_echo_n "checking which kernel tools... " >&6; }
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8655 $as_echo "$kernel_tool_prefix" >&6; };
8657 if test "$kernel_tool_prefix" = "none" ; then
8658 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8659 as_fn_error $? "--with-kernel-tool-prefix= is required for this arch" "$LINENO" 5
8661 else
8662 # Kernel tools required - find them
8663 # Note that 'normally', aros_kernel_* overrides will
8664 # empty, unless specified in the per-arch sections above.
8666 if test "$aros_kernel_cpp" = ""; then
8667 if test "$cross_compiling" = "yes" ; then
8668 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8669 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671 $as_echo_n "checking for $ac_word... " >&6; }
8672 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 case $aros_kernel_cpp in
8676 [\\/]* | ?:[\\/]*)
8677 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 break 2
8691 done
8692 done
8693 IFS=$as_save_IFS
8696 esac
8698 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8699 if test -n "$aros_kernel_cpp"; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8701 $as_echo "$aros_kernel_cpp" >&6; }
8702 else
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8708 else
8709 if test "$GCC" = "yes"; then
8710 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8711 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8712 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 case $aros_kernel_cpp in
8719 [\\/]* | ?:[\\/]*)
8720 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in `dirname $aros_gcc_cpp`
8726 IFS=$as_save_IFS
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8730 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 break 2
8734 done
8735 done
8736 IFS=$as_save_IFS
8739 esac
8741 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8742 if test -n "$aros_kernel_cpp"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8744 $as_echo "$aros_kernel_cpp" >&6; }
8745 else
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8752 if test "$aros_kernel_cpp" = ""; then
8753 # Extract the first word of "cpp", so it can be a program name with args.
8754 set dummy cpp; ac_word=$2
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756 $as_echo_n "checking for $ac_word... " >&6; }
8757 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 case $aros_kernel_cpp in
8761 [\\/]* | ?:[\\/]*)
8762 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 break 2
8776 done
8777 done
8778 IFS=$as_save_IFS
8781 esac
8783 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8784 if test -n "$aros_kernel_cpp"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8786 $as_echo "$aros_kernel_cpp" >&6; }
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8795 else
8796 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8797 set dummy $aros_kernel_cpp; ac_word=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 case $aros_kernel_cpp in
8804 [\\/]* | ?:[\\/]*)
8805 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809 for as_dir in $PATH
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 break 2
8819 done
8820 done
8821 IFS=$as_save_IFS
8824 esac
8826 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8827 if test -n "$aros_kernel_cpp"; then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8829 $as_echo "$aros_kernel_cpp" >&6; }
8830 else
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8838 if test "$aros_kernel_cpp" = ""; then
8839 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8841 if test "x$aros_kernel_cc" = "x"; then
8842 aros_kernel_cc=${kernel_tool_prefix}gcc
8845 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8846 if test "$cross_compiling" = "yes" ; then
8847 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8848 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 case $aros_kernel_cc in
8855 [\\/]* | ?:[\\/]*)
8856 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8866 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8870 done
8871 done
8872 IFS=$as_save_IFS
8875 esac
8877 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8878 if test -n "$aros_kernel_cc"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8880 $as_echo "$aros_kernel_cc" >&6; }
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8887 else
8888 if test "$GCC" = "yes"; then
8889 aros_gcc_cc=`$CC -print-prog-name=cc`
8890 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8891 set dummy `basename $aros_gcc_cc`; ac_word=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 case $aros_kernel_cc in
8898 [\\/]* | ?:[\\/]*)
8899 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in `dirname $aros_gcc_cc`
8905 IFS=$as_save_IFS
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 break 2
8913 done
8914 done
8915 IFS=$as_save_IFS
8918 esac
8920 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8921 if test -n "$aros_kernel_cc"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8923 $as_echo "$aros_kernel_cc" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8931 if test "$aros_kernel_cc" = ""; then
8932 # Extract the first word of "cc", so it can be a program name with args.
8933 set dummy cc; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 case $aros_kernel_cc in
8940 [\\/]* | ?:[\\/]*)
8941 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8960 esac
8962 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8963 if test -n "$aros_kernel_cc"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8965 $as_echo "$aros_kernel_cc" >&6; }
8966 else
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8974 else
8975 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8976 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 case $aros_kernel_cc in
8983 [\\/]* | ?:[\\/]*)
8984 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 for as_dir in $PATH
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 break 2
8998 done
8999 done
9000 IFS=$as_save_IFS
9003 esac
9005 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9006 if test -n "$aros_kernel_cc"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9008 $as_echo "$aros_kernel_cc" >&6; }
9009 else
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9017 if test "$aros_kernel_cc" = ""; then
9018 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9020 if test "x$aros_kernel_cxx" = "x"; then
9021 aros_kernel_cxx=${kernel_tool_prefix}g++
9024 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
9025 if test "$cross_compiling" = "yes" ; then
9026 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9027 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 case $aros_kernel_cxx in
9034 [\\/]* | ?:[\\/]*)
9035 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9049 done
9050 done
9051 IFS=$as_save_IFS
9054 esac
9056 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9057 if test -n "$aros_kernel_cxx"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9059 $as_echo "$aros_kernel_cxx" >&6; }
9060 else
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9066 else
9067 if test "$GCC" = "yes"; then
9068 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9069 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9070 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072 $as_echo_n "checking for $ac_word... " >&6; }
9073 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 case $aros_kernel_cxx in
9077 [\\/]* | ?:[\\/]*)
9078 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in `dirname $aros_gcc_cxx`
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9092 done
9093 done
9094 IFS=$as_save_IFS
9097 esac
9099 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9100 if test -n "$aros_kernel_cxx"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9102 $as_echo "$aros_kernel_cxx" >&6; }
9103 else
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9110 if test "$aros_kernel_cxx" = ""; then
9111 # Extract the first word of "cxx", so it can be a program name with args.
9112 set dummy cxx; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 case $aros_kernel_cxx in
9119 [\\/]* | ?:[\\/]*)
9120 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9130 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 break 2
9134 done
9135 done
9136 IFS=$as_save_IFS
9139 esac
9141 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9142 if test -n "$aros_kernel_cxx"; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9144 $as_echo "$aros_kernel_cxx" >&6; }
9145 else
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 $as_echo "no" >&6; }
9153 else
9154 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9155 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 case $aros_kernel_cxx in
9162 [\\/]* | ?:[\\/]*)
9163 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9173 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 break 2
9177 done
9178 done
9179 IFS=$as_save_IFS
9182 esac
9184 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9185 if test -n "$aros_kernel_cxx"; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9187 $as_echo "$aros_kernel_cxx" >&6; }
9188 else
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190 $as_echo "no" >&6; }
9196 # If it's set, make sure it's really there
9197 if test "x$aros_kernel_cxx" != "x" ; then
9198 if test "$aros_kernel_cxx" = ""; then
9199 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9203 if test "$aros_kernel_ld" = ""; then
9204 if test "$cross_compiling" = "yes" ; then
9205 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9206 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208 $as_echo_n "checking for $ac_word... " >&6; }
9209 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 case $aros_kernel_ld in
9213 [\\/]* | ?:[\\/]*)
9214 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9224 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 break 2
9228 done
9229 done
9230 IFS=$as_save_IFS
9233 esac
9235 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9236 if test -n "$aros_kernel_ld"; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9238 $as_echo "$aros_kernel_ld" >&6; }
9239 else
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9245 else
9246 if test "$GCC" = "yes"; then
9247 aros_gcc_ld=`$CC -print-prog-name=ld`
9248 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9249 set dummy `basename $aros_gcc_ld`; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 case $aros_kernel_ld in
9256 [\\/]* | ?:[\\/]*)
9257 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in `dirname $aros_gcc_ld`
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9271 done
9272 done
9273 IFS=$as_save_IFS
9276 esac
9278 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9279 if test -n "$aros_kernel_ld"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9281 $as_echo "$aros_kernel_ld" >&6; }
9282 else
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9289 if test "$aros_kernel_ld" = ""; then
9290 # Extract the first word of "ld", so it can be a program name with args.
9291 set dummy ld; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 case $aros_kernel_ld in
9298 [\\/]* | ?:[\\/]*)
9299 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in $PATH
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 break 2
9313 done
9314 done
9315 IFS=$as_save_IFS
9318 esac
9320 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9321 if test -n "$aros_kernel_ld"; then
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9323 $as_echo "$aros_kernel_ld" >&6; }
9324 else
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9326 $as_echo "no" >&6; }
9332 else
9333 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9334 set dummy $aros_kernel_ld; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 case $aros_kernel_ld in
9341 [\\/]* | ?:[\\/]*)
9342 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 for as_dir in $PATH
9348 IFS=$as_save_IFS
9349 test -z "$as_dir" && as_dir=.
9350 for ac_exec_ext in '' $ac_executable_extensions; do
9351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9352 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9354 break 2
9356 done
9357 done
9358 IFS=$as_save_IFS
9361 esac
9363 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9364 if test -n "$aros_kernel_ld"; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9366 $as_echo "$aros_kernel_ld" >&6; }
9367 else
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 $as_echo "no" >&6; }
9375 if test "$aros_kernel_ld" = ""; then
9376 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9379 if test "$aros_kernel_as" = ""; then
9380 if test "$cross_compiling" = "yes" ; then
9381 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9382 set dummy ${kernel_tool_prefix}as; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if ${ac_cv_path_aros_kernel_as+:} false; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 case $aros_kernel_as in
9389 [\\/]* | ?:[\\/]*)
9390 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9400 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 break 2
9404 done
9405 done
9406 IFS=$as_save_IFS
9409 esac
9411 aros_kernel_as=$ac_cv_path_aros_kernel_as
9412 if test -n "$aros_kernel_as"; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9414 $as_echo "$aros_kernel_as" >&6; }
9415 else
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9421 else
9422 if test "$GCC" = "yes"; then
9423 aros_gcc_as=`$CC -print-prog-name=as`
9424 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9425 set dummy `basename $aros_gcc_as`; ac_word=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if ${ac_cv_path_aros_kernel_as+:} false; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 case $aros_kernel_as in
9432 [\\/]* | ?:[\\/]*)
9433 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in `dirname $aros_gcc_as`
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9443 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9447 done
9448 done
9449 IFS=$as_save_IFS
9452 esac
9454 aros_kernel_as=$ac_cv_path_aros_kernel_as
9455 if test -n "$aros_kernel_as"; then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9457 $as_echo "$aros_kernel_as" >&6; }
9458 else
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9465 if test "$aros_kernel_as" = ""; then
9466 # Extract the first word of "as", so it can be a program name with args.
9467 set dummy as; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if ${ac_cv_path_aros_kernel_as+:} false; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 case $aros_kernel_as in
9474 [\\/]* | ?:[\\/]*)
9475 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 for as_dir in $PATH
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9485 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9489 done
9490 done
9491 IFS=$as_save_IFS
9494 esac
9496 aros_kernel_as=$ac_cv_path_aros_kernel_as
9497 if test -n "$aros_kernel_as"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9499 $as_echo "$aros_kernel_as" >&6; }
9500 else
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 $as_echo "no" >&6; }
9508 else
9509 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9510 set dummy $aros_kernel_as; ac_word=$2
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512 $as_echo_n "checking for $ac_word... " >&6; }
9513 if ${ac_cv_path_aros_kernel_as+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 case $aros_kernel_as in
9517 [\\/]* | ?:[\\/]*)
9518 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 for as_dir in $PATH
9524 IFS=$as_save_IFS
9525 test -z "$as_dir" && as_dir=.
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9528 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9530 break 2
9532 done
9533 done
9534 IFS=$as_save_IFS
9537 esac
9539 aros_kernel_as=$ac_cv_path_aros_kernel_as
9540 if test -n "$aros_kernel_as"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9542 $as_echo "$aros_kernel_as" >&6; }
9543 else
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9551 if test "$aros_kernel_as" = ""; then
9552 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9555 if test "$aros_kernel_ar" = ""; then
9556 if test "$cross_compiling" = "yes" ; then
9557 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9558 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 case $aros_kernel_ar in
9565 [\\/]* | ?:[\\/]*)
9566 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 for as_dir in $PATH
9572 IFS=$as_save_IFS
9573 test -z "$as_dir" && as_dir=.
9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9576 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9578 break 2
9580 done
9581 done
9582 IFS=$as_save_IFS
9585 esac
9587 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9588 if test -n "$aros_kernel_ar"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9590 $as_echo "$aros_kernel_ar" >&6; }
9591 else
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 $as_echo "no" >&6; }
9597 else
9598 if test "$GCC" = "yes"; then
9599 aros_gcc_ar=`$CC -print-prog-name=ar`
9600 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9601 set dummy `basename $aros_gcc_ar`; ac_word=$2
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 $as_echo_n "checking for $ac_word... " >&6; }
9604 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 case $aros_kernel_ar in
9608 [\\/]* | ?:[\\/]*)
9609 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in `dirname $aros_gcc_ar`
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9619 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9623 done
9624 done
9625 IFS=$as_save_IFS
9628 esac
9630 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9631 if test -n "$aros_kernel_ar"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9633 $as_echo "$aros_kernel_ar" >&6; }
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9641 if test "$aros_kernel_ar" = ""; then
9642 # Extract the first word of "ar", so it can be a program name with args.
9643 set dummy ar; ac_word=$2
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 case $aros_kernel_ar in
9650 [\\/]* | ?:[\\/]*)
9651 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9657 IFS=$as_save_IFS
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9661 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663 break 2
9665 done
9666 done
9667 IFS=$as_save_IFS
9670 esac
9672 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9673 if test -n "$aros_kernel_ar"; then
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9675 $as_echo "$aros_kernel_ar" >&6; }
9676 else
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678 $as_echo "no" >&6; }
9684 else
9685 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9686 set dummy $aros_kernel_ar; ac_word=$2
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 $as_echo_n "checking for $ac_word... " >&6; }
9689 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 case $aros_kernel_ar in
9693 [\\/]* | ?:[\\/]*)
9694 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698 for as_dir in $PATH
9700 IFS=$as_save_IFS
9701 test -z "$as_dir" && as_dir=.
9702 for ac_exec_ext in '' $ac_executable_extensions; do
9703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9704 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706 break 2
9708 done
9709 done
9710 IFS=$as_save_IFS
9713 esac
9715 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9716 if test -n "$aros_kernel_ar"; then
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9718 $as_echo "$aros_kernel_ar" >&6; }
9719 else
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721 $as_echo "no" >&6; }
9727 if test "$aros_kernel_ar" = ""; then
9728 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9731 if test "$aros_kernel_ranlib" = ""; then
9732 if test "$cross_compiling" = "yes" ; then
9733 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9734 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736 $as_echo_n "checking for $ac_word... " >&6; }
9737 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739 else
9740 case $aros_kernel_ranlib in
9741 [\\/]* | ?:[\\/]*)
9742 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9752 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9756 done
9757 done
9758 IFS=$as_save_IFS
9761 esac
9763 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9764 if test -n "$aros_kernel_ranlib"; then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9766 $as_echo "$aros_kernel_ranlib" >&6; }
9767 else
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 $as_echo "no" >&6; }
9773 else
9774 if test "$GCC" = "yes"; then
9775 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9776 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9777 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779 $as_echo_n "checking for $ac_word... " >&6; }
9780 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9781 $as_echo_n "(cached) " >&6
9782 else
9783 case $aros_kernel_ranlib in
9784 [\\/]* | ?:[\\/]*)
9785 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in `dirname $aros_gcc_ranlib`
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9795 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9799 done
9800 done
9801 IFS=$as_save_IFS
9804 esac
9806 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9807 if test -n "$aros_kernel_ranlib"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9809 $as_echo "$aros_kernel_ranlib" >&6; }
9810 else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9817 if test "$aros_kernel_ranlib" = ""; then
9818 # Extract the first word of "ranlib", so it can be a program name with args.
9819 set dummy ranlib; ac_word=$2
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821 $as_echo_n "checking for $ac_word... " >&6; }
9822 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 case $aros_kernel_ranlib in
9826 [\\/]* | ?:[\\/]*)
9827 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in $PATH
9833 IFS=$as_save_IFS
9834 test -z "$as_dir" && as_dir=.
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9837 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 break 2
9841 done
9842 done
9843 IFS=$as_save_IFS
9846 esac
9848 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9849 if test -n "$aros_kernel_ranlib"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9851 $as_echo "$aros_kernel_ranlib" >&6; }
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9860 else
9861 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9862 set dummy $aros_kernel_ranlib; ac_word=$2
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864 $as_echo_n "checking for $ac_word... " >&6; }
9865 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 case $aros_kernel_ranlib in
9869 [\\/]* | ?:[\\/]*)
9870 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874 for as_dir in $PATH
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 break 2
9884 done
9885 done
9886 IFS=$as_save_IFS
9889 esac
9891 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9892 if test -n "$aros_kernel_ranlib"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9894 $as_echo "$aros_kernel_ranlib" >&6; }
9895 else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9903 if test "$aros_kernel_ranlib" = ""; then
9904 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9907 if test "$aros_kernel_nm" = ""; then
9908 if test "$cross_compiling" = "yes" ; then
9909 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9910 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 $as_echo_n "checking for $ac_word... " >&6; }
9913 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 case $aros_kernel_nm in
9917 [\\/]* | ?:[\\/]*)
9918 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9924 IFS=$as_save_IFS
9925 test -z "$as_dir" && as_dir=.
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9928 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 break 2
9932 done
9933 done
9934 IFS=$as_save_IFS
9937 esac
9939 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9940 if test -n "$aros_kernel_nm"; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9942 $as_echo "$aros_kernel_nm" >&6; }
9943 else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9949 else
9950 if test "$GCC" = "yes"; then
9951 aros_gcc_nm=`$CC -print-prog-name=nm`
9952 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9953 set dummy `basename $aros_gcc_nm`; ac_word=$2
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9955 $as_echo_n "checking for $ac_word... " >&6; }
9956 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959 case $aros_kernel_nm in
9960 [\\/]* | ?:[\\/]*)
9961 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965 for as_dir in `dirname $aros_gcc_nm`
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9971 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9975 done
9976 done
9977 IFS=$as_save_IFS
9980 esac
9982 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9983 if test -n "$aros_kernel_nm"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9985 $as_echo "$aros_kernel_nm" >&6; }
9986 else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9993 if test "$aros_kernel_nm" = ""; then
9994 # Extract the first word of "nm", so it can be a program name with args.
9995 set dummy nm; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 case $aros_kernel_nm in
10002 [\\/]* | ?:[\\/]*)
10003 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10017 done
10018 done
10019 IFS=$as_save_IFS
10022 esac
10024 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10025 if test -n "$aros_kernel_nm"; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10027 $as_echo "$aros_kernel_nm" >&6; }
10028 else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10036 else
10037 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10038 set dummy $aros_kernel_nm; ac_word=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 $as_echo_n "checking for $ac_word... " >&6; }
10041 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 case $aros_kernel_nm in
10045 [\\/]* | ?:[\\/]*)
10046 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10060 done
10061 done
10062 IFS=$as_save_IFS
10065 esac
10067 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10068 if test -n "$aros_kernel_nm"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10070 $as_echo "$aros_kernel_nm" >&6; }
10071 else
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073 $as_echo "no" >&6; }
10079 if test "$aros_kernel_nm" = ""; then
10080 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10083 if test "$aros_kernel_strip" = ""; then
10084 if test "$cross_compiling" = "yes" ; then
10085 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10086 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088 $as_echo_n "checking for $ac_word... " >&6; }
10089 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 case $aros_kernel_strip in
10093 [\\/]* | ?:[\\/]*)
10094 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10104 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10108 done
10109 done
10110 IFS=$as_save_IFS
10113 esac
10115 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10116 if test -n "$aros_kernel_strip"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10118 $as_echo "$aros_kernel_strip" >&6; }
10119 else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10125 else
10126 if test "$GCC" = "yes"; then
10127 aros_gcc_strip=`$CC -print-prog-name=strip`
10128 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10129 set dummy `basename $aros_gcc_strip`; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 case $aros_kernel_strip in
10136 [\\/]* | ?:[\\/]*)
10137 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in `dirname $aros_gcc_strip`
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10147 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10151 done
10152 done
10153 IFS=$as_save_IFS
10156 esac
10158 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10159 if test -n "$aros_kernel_strip"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10161 $as_echo "$aros_kernel_strip" >&6; }
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10169 if test "$aros_kernel_strip" = ""; then
10170 # Extract the first word of "strip", so it can be a program name with args.
10171 set dummy strip; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 case $aros_kernel_strip in
10178 [\\/]* | ?:[\\/]*)
10179 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10185 IFS=$as_save_IFS
10186 test -z "$as_dir" && as_dir=.
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10189 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 break 2
10193 done
10194 done
10195 IFS=$as_save_IFS
10198 esac
10200 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10201 if test -n "$aros_kernel_strip"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10203 $as_echo "$aros_kernel_strip" >&6; }
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10212 else
10213 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10214 set dummy $aros_kernel_strip; ac_word=$2
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216 $as_echo_n "checking for $ac_word... " >&6; }
10217 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 case $aros_kernel_strip in
10221 [\\/]* | ?:[\\/]*)
10222 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10236 done
10237 done
10238 IFS=$as_save_IFS
10241 esac
10243 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10244 if test -n "$aros_kernel_strip"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10246 $as_echo "$aros_kernel_strip" >&6; }
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10255 if test "$aros_kernel_strip" = ""; then
10256 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10259 # Objcopy and objdump are not required for the kernel
10260 # toolchain on many architectures.
10261 # So we'll look for them, but not make them strictly required.
10263 if test "$aros_kernel_objcopy" = ""; then
10264 if test "$cross_compiling" = "yes" ; then
10265 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10266 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268 $as_echo_n "checking for $ac_word... " >&6; }
10269 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 case $aros_kernel_objcopy in
10273 [\\/]* | ?:[\\/]*)
10274 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in $PATH
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10284 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 break 2
10288 done
10289 done
10290 IFS=$as_save_IFS
10293 esac
10295 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10296 if test -n "$aros_kernel_objcopy"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10298 $as_echo "$aros_kernel_objcopy" >&6; }
10299 else
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10305 else
10306 if test "$GCC" = "yes"; then
10307 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10308 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10309 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 case $aros_kernel_objcopy in
10316 [\\/]* | ?:[\\/]*)
10317 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in `dirname $aros_gcc_objcopy`
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10327 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10331 done
10332 done
10333 IFS=$as_save_IFS
10336 esac
10338 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10339 if test -n "$aros_kernel_objcopy"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10341 $as_echo "$aros_kernel_objcopy" >&6; }
10342 else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10349 if test "$aros_kernel_objcopy" = ""; then
10350 # Extract the first word of "objcopy", so it can be a program name with args.
10351 set dummy objcopy; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 case $aros_kernel_objcopy in
10358 [\\/]* | ?:[\\/]*)
10359 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10369 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10373 done
10374 done
10375 IFS=$as_save_IFS
10378 esac
10380 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10381 if test -n "$aros_kernel_objcopy"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10383 $as_echo "$aros_kernel_objcopy" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10392 else
10393 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10394 set dummy $aros_kernel_objcopy; ac_word=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 case $aros_kernel_objcopy in
10401 [\\/]* | ?:[\\/]*)
10402 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10416 done
10417 done
10418 IFS=$as_save_IFS
10421 esac
10423 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10424 if test -n "$aros_kernel_objcopy"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10426 $as_echo "$aros_kernel_objcopy" >&6; }
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10436 if test "$aros_kernel_objdump" = ""; then
10437 if test "$cross_compiling" = "yes" ; then
10438 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10439 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 case $aros_kernel_objdump in
10446 [\\/]* | ?:[\\/]*)
10447 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10453 IFS=$as_save_IFS
10454 test -z "$as_dir" && as_dir=.
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10457 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459 break 2
10461 done
10462 done
10463 IFS=$as_save_IFS
10466 esac
10468 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10469 if test -n "$aros_kernel_objdump"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10471 $as_echo "$aros_kernel_objdump" >&6; }
10472 else
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10478 else
10479 if test "$GCC" = "yes"; then
10480 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10481 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10482 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 $as_echo_n "checking for $ac_word... " >&6; }
10485 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 case $aros_kernel_objdump in
10489 [\\/]* | ?:[\\/]*)
10490 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in `dirname $aros_gcc_objdump`
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10500 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 break 2
10504 done
10505 done
10506 IFS=$as_save_IFS
10509 esac
10511 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10512 if test -n "$aros_kernel_objdump"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10514 $as_echo "$aros_kernel_objdump" >&6; }
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10522 if test "$aros_kernel_objdump" = ""; then
10523 # Extract the first word of "objdump", so it can be a program name with args.
10524 set dummy objdump; ac_word=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526 $as_echo_n "checking for $ac_word... " >&6; }
10527 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 case $aros_kernel_objdump in
10531 [\\/]* | ?:[\\/]*)
10532 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10542 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10546 done
10547 done
10548 IFS=$as_save_IFS
10551 esac
10553 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10554 if test -n "$aros_kernel_objdump"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10556 $as_echo "$aros_kernel_objdump" >&6; }
10557 else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10565 else
10566 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10567 set dummy $aros_kernel_objdump; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 case $aros_kernel_objdump in
10574 [\\/]* | ?:[\\/]*)
10575 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10585 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10589 done
10590 done
10591 IFS=$as_save_IFS
10594 esac
10596 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10597 if test -n "$aros_kernel_objdump"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10599 $as_echo "$aros_kernel_objdump" >&6; }
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10608 if test "x${crosstools}" != "xyes" ; then
10609 if test "$aros_kernel_objcopy" = ""; then
10610 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10612 if test "$aros_kernel_objdump" = ""; then
10613 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10619 $as_echo_n "checking which target tools to use... " >&6; }
10620 if test "$crosstools" = "yes"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10622 $as_echo "$target_tool_prefix" >&6; }
10623 # We are are building AROS crosstools
10624 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10625 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10626 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10627 orig_target_cpp="${tmp_tool_prefix}cpp"
10628 orig_target_ld="${tmp_tool_prefix}ld"
10629 orig_target_as="${tmp_tool_prefix}as"
10630 orig_target_ar="${tmp_tool_prefix}ar"
10631 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10632 orig_target_nm="${tmp_tool_prefix}nm"
10633 orig_target_strip="${tmp_tool_prefix}strip"
10634 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10635 orig_target_objdump="${tmp_tool_prefix}objdump"
10636 else
10637 # Determine whether AROS or ELF tools should be used
10638 if test "$aros_tool_prefix" = "none"; then
10639 aros_tool_prefix="${elf_tool_prefix}"
10640 crosstools_cxx_target=tools-crosstools
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10644 $as_echo "$aros_tool_prefix" >&6; }
10645 # We are *not* building AROS crosstools - use the AROS or ELF tools
10647 if test "${aros_tool_prefix}cpp" = ""; then
10648 if test "$cross_compiling" = "yes" ; then
10649 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10650 set dummy ${target_tool_prefix}cpp; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if ${ac_cv_path_orig_target_cpp+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 case $orig_target_cpp in
10657 [\\/]* | ?:[\\/]*)
10658 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10668 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10672 done
10673 done
10674 IFS=$as_save_IFS
10677 esac
10679 orig_target_cpp=$ac_cv_path_orig_target_cpp
10680 if test -n "$orig_target_cpp"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10682 $as_echo "$orig_target_cpp" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10689 else
10690 if test "$GCC" = "yes"; then
10691 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10692 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10693 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if ${ac_cv_path_orig_target_cpp+:} false; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 case $orig_target_cpp in
10700 [\\/]* | ?:[\\/]*)
10701 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in `dirname $aros_gcc_cpp`
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10711 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10715 done
10716 done
10717 IFS=$as_save_IFS
10720 esac
10722 orig_target_cpp=$ac_cv_path_orig_target_cpp
10723 if test -n "$orig_target_cpp"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10725 $as_echo "$orig_target_cpp" >&6; }
10726 else
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10733 if test "$orig_target_cpp" = ""; then
10734 # Extract the first word of "cpp", so it can be a program name with args.
10735 set dummy cpp; ac_word=$2
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737 $as_echo_n "checking for $ac_word... " >&6; }
10738 if ${ac_cv_path_orig_target_cpp+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 case $orig_target_cpp in
10742 [\\/]* | ?:[\\/]*)
10743 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747 for as_dir in $PATH
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10753 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10757 done
10758 done
10759 IFS=$as_save_IFS
10762 esac
10764 orig_target_cpp=$ac_cv_path_orig_target_cpp
10765 if test -n "$orig_target_cpp"; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10767 $as_echo "$orig_target_cpp" >&6; }
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10776 else
10777 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10778 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10780 $as_echo_n "checking for $ac_word... " >&6; }
10781 if ${ac_cv_path_orig_target_cpp+:} false; then :
10782 $as_echo_n "(cached) " >&6
10783 else
10784 case $orig_target_cpp in
10785 [\\/]* | ?:[\\/]*)
10786 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10790 for as_dir in $PATH
10792 IFS=$as_save_IFS
10793 test -z "$as_dir" && as_dir=.
10794 for ac_exec_ext in '' $ac_executable_extensions; do
10795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10796 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10798 break 2
10800 done
10801 done
10802 IFS=$as_save_IFS
10805 esac
10807 orig_target_cpp=$ac_cv_path_orig_target_cpp
10808 if test -n "$orig_target_cpp"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10810 $as_echo "$orig_target_cpp" >&6; }
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10819 if test "$orig_target_cpp" = ""; then
10820 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10823 if test "${aros_tool_prefix}gcc" = ""; then
10824 if test "$cross_compiling" = "yes" ; then
10825 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10826 set dummy ${target_tool_prefix}gcc; ac_word=$2
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 $as_echo_n "checking for $ac_word... " >&6; }
10829 if ${ac_cv_path_orig_target_cc+:} false; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 case $orig_target_cc in
10833 [\\/]* | ?:[\\/]*)
10834 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10844 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10848 done
10849 done
10850 IFS=$as_save_IFS
10853 esac
10855 orig_target_cc=$ac_cv_path_orig_target_cc
10856 if test -n "$orig_target_cc"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10858 $as_echo "$orig_target_cc" >&6; }
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10865 else
10866 if test "$GCC" = "yes"; then
10867 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10868 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10869 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871 $as_echo_n "checking for $ac_word... " >&6; }
10872 if ${ac_cv_path_orig_target_cc+:} false; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10875 case $orig_target_cc in
10876 [\\/]* | ?:[\\/]*)
10877 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in `dirname $aros_gcc_gcc`
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10887 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10891 done
10892 done
10893 IFS=$as_save_IFS
10896 esac
10898 orig_target_cc=$ac_cv_path_orig_target_cc
10899 if test -n "$orig_target_cc"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10901 $as_echo "$orig_target_cc" >&6; }
10902 else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10909 if test "$orig_target_cc" = ""; then
10910 # Extract the first word of "gcc", so it can be a program name with args.
10911 set dummy gcc; ac_word=$2
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913 $as_echo_n "checking for $ac_word... " >&6; }
10914 if ${ac_cv_path_orig_target_cc+:} false; then :
10915 $as_echo_n "(cached) " >&6
10916 else
10917 case $orig_target_cc in
10918 [\\/]* | ?:[\\/]*)
10919 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10933 done
10934 done
10935 IFS=$as_save_IFS
10938 esac
10940 orig_target_cc=$ac_cv_path_orig_target_cc
10941 if test -n "$orig_target_cc"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10943 $as_echo "$orig_target_cc" >&6; }
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10952 else
10953 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10954 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if ${ac_cv_path_orig_target_cc+:} false; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 case $orig_target_cc in
10961 [\\/]* | ?:[\\/]*)
10962 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966 for as_dir in $PATH
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10972 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 break 2
10976 done
10977 done
10978 IFS=$as_save_IFS
10981 esac
10983 orig_target_cc=$ac_cv_path_orig_target_cc
10984 if test -n "$orig_target_cc"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10986 $as_echo "$orig_target_cc" >&6; }
10987 else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10995 if test "$orig_target_cc" = ""; then
10996 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10998 if test "x${crosstools_cxx_target}" = "x" ; then
11000 if test "${aros_tool_prefix}g++" = ""; then
11001 if test "$cross_compiling" = "yes" ; then
11002 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11003 set dummy ${target_tool_prefix}g++; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if ${ac_cv_path_orig_target_cxx+:} false; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 case $orig_target_cxx in
11010 [\\/]* | ?:[\\/]*)
11011 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11017 IFS=$as_save_IFS
11018 test -z "$as_dir" && as_dir=.
11019 for ac_exec_ext in '' $ac_executable_extensions; do
11020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11021 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023 break 2
11025 done
11026 done
11027 IFS=$as_save_IFS
11030 esac
11032 orig_target_cxx=$ac_cv_path_orig_target_cxx
11033 if test -n "$orig_target_cxx"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11035 $as_echo "$orig_target_cxx" >&6; }
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11042 else
11043 if test "$GCC" = "yes"; then
11044 aros_gcc_g++=`$CC -print-prog-name=g++`
11045 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11046 set dummy `basename $aros_gcc_g++`; ac_word=$2
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11048 $as_echo_n "checking for $ac_word... " >&6; }
11049 if ${ac_cv_path_orig_target_cxx+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 case $orig_target_cxx in
11053 [\\/]* | ?:[\\/]*)
11054 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in `dirname $aros_gcc_g++`
11060 IFS=$as_save_IFS
11061 test -z "$as_dir" && as_dir=.
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11064 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11066 break 2
11068 done
11069 done
11070 IFS=$as_save_IFS
11073 esac
11075 orig_target_cxx=$ac_cv_path_orig_target_cxx
11076 if test -n "$orig_target_cxx"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11078 $as_echo "$orig_target_cxx" >&6; }
11079 else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11086 if test "$orig_target_cxx" = ""; then
11087 # Extract the first word of "g++", so it can be a program name with args.
11088 set dummy g++; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if ${ac_cv_path_orig_target_cxx+:} false; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 case $orig_target_cxx in
11095 [\\/]* | ?:[\\/]*)
11096 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11106 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11110 done
11111 done
11112 IFS=$as_save_IFS
11115 esac
11117 orig_target_cxx=$ac_cv_path_orig_target_cxx
11118 if test -n "$orig_target_cxx"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11120 $as_echo "$orig_target_cxx" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11129 else
11130 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11131 set dummy ${aros_tool_prefix}g++; ac_word=$2
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133 $as_echo_n "checking for $ac_word... " >&6; }
11134 if ${ac_cv_path_orig_target_cxx+:} false; then :
11135 $as_echo_n "(cached) " >&6
11136 else
11137 case $orig_target_cxx in
11138 [\\/]* | ?:[\\/]*)
11139 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143 for as_dir in $PATH
11145 IFS=$as_save_IFS
11146 test -z "$as_dir" && as_dir=.
11147 for ac_exec_ext in '' $ac_executable_extensions; do
11148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11149 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11151 break 2
11153 done
11154 done
11155 IFS=$as_save_IFS
11158 esac
11160 orig_target_cxx=$ac_cv_path_orig_target_cxx
11161 if test -n "$orig_target_cxx"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11163 $as_echo "$orig_target_cxx" >&6; }
11164 else
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 $as_echo "no" >&6; }
11172 if test "$orig_target_cxx" = ""; then
11173 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11177 if test "${aros_tool_prefix}ld" = ""; then
11178 if test "$cross_compiling" = "yes" ; then
11179 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11180 set dummy ${target_tool_prefix}gcc; ac_word=$2
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 $as_echo_n "checking for $ac_word... " >&6; }
11183 if ${ac_cv_path_orig_target_ld+:} false; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 case $orig_target_ld in
11187 [\\/]* | ?:[\\/]*)
11188 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11194 IFS=$as_save_IFS
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11198 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 break 2
11202 done
11203 done
11204 IFS=$as_save_IFS
11207 esac
11209 orig_target_ld=$ac_cv_path_orig_target_ld
11210 if test -n "$orig_target_ld"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11212 $as_echo "$orig_target_ld" >&6; }
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11219 else
11220 if test "$GCC" = "yes"; then
11221 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11222 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11223 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if ${ac_cv_path_orig_target_ld+:} false; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 case $orig_target_ld in
11230 [\\/]* | ?:[\\/]*)
11231 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11235 for as_dir in `dirname $aros_gcc_gcc`
11237 IFS=$as_save_IFS
11238 test -z "$as_dir" && as_dir=.
11239 for ac_exec_ext in '' $ac_executable_extensions; do
11240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11241 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11243 break 2
11245 done
11246 done
11247 IFS=$as_save_IFS
11250 esac
11252 orig_target_ld=$ac_cv_path_orig_target_ld
11253 if test -n "$orig_target_ld"; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11255 $as_echo "$orig_target_ld" >&6; }
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; }
11263 if test "$orig_target_ld" = ""; then
11264 # Extract the first word of "gcc", so it can be a program name with args.
11265 set dummy gcc; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_path_orig_target_ld+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 case $orig_target_ld in
11272 [\\/]* | ?:[\\/]*)
11273 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $PATH
11279 IFS=$as_save_IFS
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 break 2
11287 done
11288 done
11289 IFS=$as_save_IFS
11292 esac
11294 orig_target_ld=$ac_cv_path_orig_target_ld
11295 if test -n "$orig_target_ld"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11297 $as_echo "$orig_target_ld" >&6; }
11298 else
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11306 else
11307 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11308 set dummy ${aros_tool_prefix}ld; ac_word=$2
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11310 $as_echo_n "checking for $ac_word... " >&6; }
11311 if ${ac_cv_path_orig_target_ld+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 case $orig_target_ld in
11315 [\\/]* | ?:[\\/]*)
11316 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320 for as_dir in $PATH
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11326 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 break 2
11330 done
11331 done
11332 IFS=$as_save_IFS
11335 esac
11337 orig_target_ld=$ac_cv_path_orig_target_ld
11338 if test -n "$orig_target_ld"; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11340 $as_echo "$orig_target_ld" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11349 if test "$orig_target_ld" = ""; then
11350 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11353 if test "${aros_tool_prefix}as" = ""; then
11354 if test "$cross_compiling" = "yes" ; then
11355 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11356 set dummy ${target_tool_prefix}as; ac_word=$2
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11358 $as_echo_n "checking for $ac_word... " >&6; }
11359 if ${ac_cv_path_orig_target_as+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 case $orig_target_as in
11363 [\\/]* | ?:[\\/]*)
11364 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
11372 for ac_exec_ext in '' $ac_executable_extensions; do
11373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11374 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 break 2
11378 done
11379 done
11380 IFS=$as_save_IFS
11383 esac
11385 orig_target_as=$ac_cv_path_orig_target_as
11386 if test -n "$orig_target_as"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11388 $as_echo "$orig_target_as" >&6; }
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11395 else
11396 if test "$GCC" = "yes"; then
11397 aros_gcc_as=`$CC -print-prog-name=as`
11398 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11399 set dummy `basename $aros_gcc_as`; ac_word=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if ${ac_cv_path_orig_target_as+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 case $orig_target_as in
11406 [\\/]* | ?:[\\/]*)
11407 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in `dirname $aros_gcc_as`
11413 IFS=$as_save_IFS
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11417 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11419 break 2
11421 done
11422 done
11423 IFS=$as_save_IFS
11426 esac
11428 orig_target_as=$ac_cv_path_orig_target_as
11429 if test -n "$orig_target_as"; then
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11431 $as_echo "$orig_target_as" >&6; }
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434 $as_echo "no" >&6; }
11439 if test "$orig_target_as" = ""; then
11440 # Extract the first word of "as", so it can be a program name with args.
11441 set dummy as; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_path_orig_target_as+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 case $orig_target_as in
11448 [\\/]* | ?:[\\/]*)
11449 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11463 done
11464 done
11465 IFS=$as_save_IFS
11468 esac
11470 orig_target_as=$ac_cv_path_orig_target_as
11471 if test -n "$orig_target_as"; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11473 $as_echo "$orig_target_as" >&6; }
11474 else
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11482 else
11483 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11484 set dummy ${aros_tool_prefix}as; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_path_orig_target_as+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 case $orig_target_as in
11491 [\\/]* | ?:[\\/]*)
11492 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11502 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11506 done
11507 done
11508 IFS=$as_save_IFS
11511 esac
11513 orig_target_as=$ac_cv_path_orig_target_as
11514 if test -n "$orig_target_as"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11516 $as_echo "$orig_target_as" >&6; }
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11525 if test "$orig_target_as" = ""; then
11526 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11529 if test "${aros_tool_prefix}ar" = ""; then
11530 if test "$cross_compiling" = "yes" ; then
11531 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11532 set dummy ${target_tool_prefix}ar; ac_word=$2
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534 $as_echo_n "checking for $ac_word... " >&6; }
11535 if ${ac_cv_path_orig_target_ar+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 case $orig_target_ar in
11539 [\\/]* | ?:[\\/]*)
11540 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11552 break 2
11554 done
11555 done
11556 IFS=$as_save_IFS
11559 esac
11561 orig_target_ar=$ac_cv_path_orig_target_ar
11562 if test -n "$orig_target_ar"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11564 $as_echo "$orig_target_ar" >&6; }
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11571 else
11572 if test "$GCC" = "yes"; then
11573 aros_gcc_ar=`$CC -print-prog-name=ar`
11574 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11575 set dummy `basename $aros_gcc_ar`; ac_word=$2
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577 $as_echo_n "checking for $ac_word... " >&6; }
11578 if ${ac_cv_path_orig_target_ar+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 case $orig_target_ar in
11582 [\\/]* | ?:[\\/]*)
11583 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587 for as_dir in `dirname $aros_gcc_ar`
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
11591 for ac_exec_ext in '' $ac_executable_extensions; do
11592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11593 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11595 break 2
11597 done
11598 done
11599 IFS=$as_save_IFS
11602 esac
11604 orig_target_ar=$ac_cv_path_orig_target_ar
11605 if test -n "$orig_target_ar"; then
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11607 $as_echo "$orig_target_ar" >&6; }
11608 else
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11615 if test "$orig_target_ar" = ""; then
11616 # Extract the first word of "ar", so it can be a program name with args.
11617 set dummy ar; ac_word=$2
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619 $as_echo_n "checking for $ac_word... " >&6; }
11620 if ${ac_cv_path_orig_target_ar+:} false; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 case $orig_target_ar in
11624 [\\/]* | ?:[\\/]*)
11625 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629 for as_dir in $PATH
11631 IFS=$as_save_IFS
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11635 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11637 break 2
11639 done
11640 done
11641 IFS=$as_save_IFS
11644 esac
11646 orig_target_ar=$ac_cv_path_orig_target_ar
11647 if test -n "$orig_target_ar"; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11649 $as_echo "$orig_target_ar" >&6; }
11650 else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; }
11658 else
11659 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11660 set dummy ${aros_tool_prefix}ar; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if ${ac_cv_path_orig_target_ar+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 case $orig_target_ar in
11667 [\\/]* | ?:[\\/]*)
11668 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11682 done
11683 done
11684 IFS=$as_save_IFS
11687 esac
11689 orig_target_ar=$ac_cv_path_orig_target_ar
11690 if test -n "$orig_target_ar"; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11692 $as_echo "$orig_target_ar" >&6; }
11693 else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11701 if test "$orig_target_ar" = ""; then
11702 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11705 if test "${aros_tool_prefix}ranlib" = ""; then
11706 if test "$cross_compiling" = "yes" ; then
11707 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11708 set dummy ${target_tool_prefix}ar; ac_word=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11712 $as_echo_n "(cached) " >&6
11713 else
11714 case $orig_target_ranlib in
11715 [\\/]* | ?:[\\/]*)
11716 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11730 done
11731 done
11732 IFS=$as_save_IFS
11735 esac
11737 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11738 if test -n "$orig_target_ranlib"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11740 $as_echo "$orig_target_ranlib" >&6; }
11741 else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11747 else
11748 if test "$GCC" = "yes"; then
11749 aros_gcc_ar=`$CC -print-prog-name=ar`
11750 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11751 set dummy `basename $aros_gcc_ar`; ac_word=$2
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753 $as_echo_n "checking for $ac_word... " >&6; }
11754 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11755 $as_echo_n "(cached) " >&6
11756 else
11757 case $orig_target_ranlib in
11758 [\\/]* | ?:[\\/]*)
11759 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in `dirname $aros_gcc_ar`
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11769 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11771 break 2
11773 done
11774 done
11775 IFS=$as_save_IFS
11778 esac
11780 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11781 if test -n "$orig_target_ranlib"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11783 $as_echo "$orig_target_ranlib" >&6; }
11784 else
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11791 if test "$orig_target_ranlib" = ""; then
11792 # Extract the first word of "ar", so it can be a program name with args.
11793 set dummy ar; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 case $orig_target_ranlib in
11800 [\\/]* | ?:[\\/]*)
11801 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11815 done
11816 done
11817 IFS=$as_save_IFS
11820 esac
11822 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11823 if test -n "$orig_target_ranlib"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11825 $as_echo "$orig_target_ranlib" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11834 else
11835 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11836 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 case $orig_target_ranlib in
11843 [\\/]* | ?:[\\/]*)
11844 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 break 2
11858 done
11859 done
11860 IFS=$as_save_IFS
11863 esac
11865 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11866 if test -n "$orig_target_ranlib"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11868 $as_echo "$orig_target_ranlib" >&6; }
11869 else
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11877 if test "$orig_target_ranlib" = ""; then
11878 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11881 if test "${aros_tool_prefix}nm" = ""; then
11882 if test "$cross_compiling" = "yes" ; then
11883 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11884 set dummy ${target_tool_prefix}nm; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if ${ac_cv_path_orig_target_nm+:} false; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 case $orig_target_nm in
11891 [\\/]* | ?:[\\/]*)
11892 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11898 IFS=$as_save_IFS
11899 test -z "$as_dir" && as_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11902 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904 break 2
11906 done
11907 done
11908 IFS=$as_save_IFS
11911 esac
11913 orig_target_nm=$ac_cv_path_orig_target_nm
11914 if test -n "$orig_target_nm"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11916 $as_echo "$orig_target_nm" >&6; }
11917 else
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11923 else
11924 if test "$GCC" = "yes"; then
11925 aros_gcc_nm=`$CC -print-prog-name=nm`
11926 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11927 set dummy `basename $aros_gcc_nm`; ac_word=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if ${ac_cv_path_orig_target_nm+:} false; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 case $orig_target_nm in
11934 [\\/]* | ?:[\\/]*)
11935 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939 for as_dir in `dirname $aros_gcc_nm`
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11945 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11947 break 2
11949 done
11950 done
11951 IFS=$as_save_IFS
11954 esac
11956 orig_target_nm=$ac_cv_path_orig_target_nm
11957 if test -n "$orig_target_nm"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11959 $as_echo "$orig_target_nm" >&6; }
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11967 if test "$orig_target_nm" = ""; then
11968 # Extract the first word of "nm", so it can be a program name with args.
11969 set dummy nm; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if ${ac_cv_path_orig_target_nm+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 case $orig_target_nm in
11976 [\\/]* | ?:[\\/]*)
11977 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11987 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989 break 2
11991 done
11992 done
11993 IFS=$as_save_IFS
11996 esac
11998 orig_target_nm=$ac_cv_path_orig_target_nm
11999 if test -n "$orig_target_nm"; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12001 $as_echo "$orig_target_nm" >&6; }
12002 else
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12010 else
12011 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12012 set dummy ${aros_tool_prefix}nm; ac_word=$2
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014 $as_echo_n "checking for $ac_word... " >&6; }
12015 if ${ac_cv_path_orig_target_nm+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 case $orig_target_nm in
12019 [\\/]* | ?:[\\/]*)
12020 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12030 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12034 done
12035 done
12036 IFS=$as_save_IFS
12039 esac
12041 orig_target_nm=$ac_cv_path_orig_target_nm
12042 if test -n "$orig_target_nm"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12044 $as_echo "$orig_target_nm" >&6; }
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12053 if test "$orig_target_nm" = ""; then
12054 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12057 if test "${aros_tool_prefix}strip" = ""; then
12058 if test "$cross_compiling" = "yes" ; then
12059 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12060 set dummy ${target_tool_prefix}strip; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_path_orig_target_strip+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 case $orig_target_strip in
12067 [\\/]* | ?:[\\/]*)
12068 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12074 IFS=$as_save_IFS
12075 test -z "$as_dir" && as_dir=.
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12078 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080 break 2
12082 done
12083 done
12084 IFS=$as_save_IFS
12087 esac
12089 orig_target_strip=$ac_cv_path_orig_target_strip
12090 if test -n "$orig_target_strip"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12092 $as_echo "$orig_target_strip" >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12099 else
12100 if test "$GCC" = "yes"; then
12101 aros_gcc_strip=`$CC -print-prog-name=strip`
12102 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12103 set dummy `basename $aros_gcc_strip`; ac_word=$2
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105 $as_echo_n "checking for $ac_word... " >&6; }
12106 if ${ac_cv_path_orig_target_strip+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 case $orig_target_strip in
12110 [\\/]* | ?:[\\/]*)
12111 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in `dirname $aros_gcc_strip`
12117 IFS=$as_save_IFS
12118 test -z "$as_dir" && as_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12121 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123 break 2
12125 done
12126 done
12127 IFS=$as_save_IFS
12130 esac
12132 orig_target_strip=$ac_cv_path_orig_target_strip
12133 if test -n "$orig_target_strip"; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12135 $as_echo "$orig_target_strip" >&6; }
12136 else
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12143 if test "$orig_target_strip" = ""; then
12144 # Extract the first word of "strip", so it can be a program name with args.
12145 set dummy strip; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if ${ac_cv_path_orig_target_strip+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 case $orig_target_strip in
12152 [\\/]* | ?:[\\/]*)
12153 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12159 IFS=$as_save_IFS
12160 test -z "$as_dir" && as_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12163 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 break 2
12167 done
12168 done
12169 IFS=$as_save_IFS
12172 esac
12174 orig_target_strip=$ac_cv_path_orig_target_strip
12175 if test -n "$orig_target_strip"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12177 $as_echo "$orig_target_strip" >&6; }
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12186 else
12187 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12188 set dummy ${aros_tool_prefix}strip; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_path_orig_target_strip+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 case $orig_target_strip in
12195 [\\/]* | ?:[\\/]*)
12196 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12202 IFS=$as_save_IFS
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12206 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208 break 2
12210 done
12211 done
12212 IFS=$as_save_IFS
12215 esac
12217 orig_target_strip=$ac_cv_path_orig_target_strip
12218 if test -n "$orig_target_strip"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12220 $as_echo "$orig_target_strip" >&6; }
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12229 if test "$orig_target_strip" = ""; then
12230 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12233 if test "${aros_tool_prefix}objcopy" = ""; then
12234 if test "$cross_compiling" = "yes" ; then
12235 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12236 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 case $orig_target_objcopy in
12243 [\\/]* | ?:[\\/]*)
12244 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12250 IFS=$as_save_IFS
12251 test -z "$as_dir" && as_dir=.
12252 for ac_exec_ext in '' $ac_executable_extensions; do
12253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 break 2
12258 done
12259 done
12260 IFS=$as_save_IFS
12263 esac
12265 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12266 if test -n "$orig_target_objcopy"; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12268 $as_echo "$orig_target_objcopy" >&6; }
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12275 else
12276 if test "$GCC" = "yes"; then
12277 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12278 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12279 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 case $orig_target_objcopy in
12286 [\\/]* | ?:[\\/]*)
12287 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in `dirname $aros_gcc_objcopy`
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
12295 for ac_exec_ext in '' $ac_executable_extensions; do
12296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12297 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299 break 2
12301 done
12302 done
12303 IFS=$as_save_IFS
12306 esac
12308 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12309 if test -n "$orig_target_objcopy"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12311 $as_echo "$orig_target_objcopy" >&6; }
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12319 if test "$orig_target_objcopy" = ""; then
12320 # Extract the first word of "objcopy", so it can be a program name with args.
12321 set dummy objcopy; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323 $as_echo_n "checking for $ac_word... " >&6; }
12324 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 case $orig_target_objcopy in
12328 [\\/]* | ?:[\\/]*)
12329 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12339 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12343 done
12344 done
12345 IFS=$as_save_IFS
12348 esac
12350 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12351 if test -n "$orig_target_objcopy"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12353 $as_echo "$orig_target_objcopy" >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12362 else
12363 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12364 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 case $orig_target_objcopy in
12371 [\\/]* | ?:[\\/]*)
12372 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12382 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12384 break 2
12386 done
12387 done
12388 IFS=$as_save_IFS
12391 esac
12393 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12394 if test -n "$orig_target_objcopy"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12396 $as_echo "$orig_target_objcopy" >&6; }
12397 else
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12405 if test "$orig_target_objcopy" = ""; then
12406 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12409 if test "${aros_tool_prefix}objdump" = ""; then
12410 if test "$cross_compiling" = "yes" ; then
12411 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12412 set dummy ${target_tool_prefix}objdump; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if ${ac_cv_path_orig_target_objdump+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 case $orig_target_objdump in
12419 [\\/]* | ?:[\\/]*)
12420 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12434 done
12435 done
12436 IFS=$as_save_IFS
12439 esac
12441 orig_target_objdump=$ac_cv_path_orig_target_objdump
12442 if test -n "$orig_target_objdump"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12444 $as_echo "$orig_target_objdump" >&6; }
12445 else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12451 else
12452 if test "$GCC" = "yes"; then
12453 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12454 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12455 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457 $as_echo_n "checking for $ac_word... " >&6; }
12458 if ${ac_cv_path_orig_target_objdump+:} false; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 case $orig_target_objdump in
12462 [\\/]* | ?:[\\/]*)
12463 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in `dirname $aros_gcc_objdump`
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12473 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 break 2
12477 done
12478 done
12479 IFS=$as_save_IFS
12482 esac
12484 orig_target_objdump=$ac_cv_path_orig_target_objdump
12485 if test -n "$orig_target_objdump"; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12487 $as_echo "$orig_target_objdump" >&6; }
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12495 if test "$orig_target_objdump" = ""; then
12496 # Extract the first word of "objdump", so it can be a program name with args.
12497 set dummy objdump; ac_word=$2
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499 $as_echo_n "checking for $ac_word... " >&6; }
12500 if ${ac_cv_path_orig_target_objdump+:} false; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 case $orig_target_objdump in
12504 [\\/]* | ?:[\\/]*)
12505 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12515 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12519 done
12520 done
12521 IFS=$as_save_IFS
12524 esac
12526 orig_target_objdump=$ac_cv_path_orig_target_objdump
12527 if test -n "$orig_target_objdump"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12529 $as_echo "$orig_target_objdump" >&6; }
12530 else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12538 else
12539 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12540 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_path_orig_target_objdump+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 case $orig_target_objdump in
12547 [\\/]* | ?:[\\/]*)
12548 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12562 done
12563 done
12564 IFS=$as_save_IFS
12567 esac
12569 orig_target_objdump=$ac_cv_path_orig_target_objdump
12570 if test -n "$orig_target_objdump"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12572 $as_echo "$orig_target_objdump" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12581 if test "$orig_target_objdump" = ""; then
12582 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12586 if test "$kernel_tool_prefix" = "none" ; then
12587 # No kernel tools specified
12588 # Assume target tools == kernel tools with ELF wrapper
12589 aros_kernel_cc=$orig_target_cc
12590 aros_kernel_cxx=$orig_target_cxx
12591 aros_kernel_cpp=$orig_target_cpp
12592 aros_kernel_ld=$orig_target_ld
12593 aros_kernel_as=$orig_target_as
12594 aros_kernel_ar=$orig_target_ar
12595 aros_kernel_ranlib=$orig_target_ranlib
12596 aros_kernel_nm=$orig_target_nm
12597 aros_kernel_strip=$orig_target_strip
12598 aros_kernel_objcopy=$orig_target_objcopy
12599 aros_kernel_objdump=$orig_target_objdump
12600 use_kernel_cc_wrapper=yes
12603 # At this point, all aros_kernel_* and aros_target_*
12604 # tools should be set up correctly
12606 CC="$aros_kernel_cc $kernel_tool_flags"
12607 CPP="$aros_kernel_cpp"
12609 #-----------------------------------------------------------------------------
12611 # Disable pointer-signedness warnings if the compiler recognises the option
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12614 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12615 save_cflags="$CFLAGS"
12616 if test "$crosstools" != "yes" ; then
12617 CFLAGS="$CFLAGS -Wno-pointer-sign"
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12622 main ()
12626 return 0;
12628 _ACEOF
12629 if ac_fn_c_try_compile "$LINENO"; then :
12630 use_no_sign_warning="yes"
12631 else
12632 use_no_sign_warning="no"
12634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 else
12636 # we do know it is supported for the smallest version of gcc we are going to build
12637 # we assume it's also supported by later versions
12638 use_no_sign_warning=yes
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12641 $as_echo "$use_no_sign_warning" >&6; }
12642 if test "x-$use_no_sign_warning" = "x-yes" ; then
12643 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12645 CFLAGS="$save_cflags"
12647 #-----------------------------------------------------------------------------
12649 # Find all the tools we need to compile. This could be cross-compiling
12650 # though! If that is the case we use the GNU form of the target and
12651 # simply add this to the front of the binary name. This is rather simple,
12652 # but it should work under most circumstances.
12654 # The default tools are to use the same as the host, but only if the
12655 # host and target CPU are the same. With GCC this is normally enough.
12658 aros_cc_pre=""
12659 aros_shared_ld="$aros_host_ld"
12661 aros_target_mkdep="$aros_host_mkdep"
12663 # The default tools executables to be linked to.
12664 if test "$rescomp" != ""; then
12665 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12666 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668 $as_echo_n "checking for $ac_word... " >&6; }
12669 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 case $aros_kernel_rescomp in
12673 [\\/]* | ?:[\\/]*)
12674 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $PATH
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12684 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 break 2
12688 done
12689 done
12690 IFS=$as_save_IFS
12693 esac
12695 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12696 if test -n "$aros_kernel_rescomp"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12698 $as_echo "$aros_kernel_rescomp" >&6; }
12699 else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12705 if test "$aros_kernel_rescomp" = ""; then
12706 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12710 # Set up the sources for the symlink farm
12711 if test "$crosstools" = "yes"; then
12712 crosstools_target=tools-crosstools
12715 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12716 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12719 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12720 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12721 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12722 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12723 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12724 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12725 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12727 # aros_cc_pre is a variable that is added to the front of the compiler name
12728 # in the generated aros-gcc shell script. We need this to enable the cache
12729 # to work across cleaned builds. Also, support DISTCC using the correct
12730 # environment variable.
12733 if test "x${DISTCC}" != "x" ; then
12734 if test "x${CCACHE}" != "x" ; then
12735 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12736 else
12737 aros_cc_pre="${DISTCC} "
12739 else
12740 if test "x${CCACHE}" != "x" ; then
12741 aros_cc_pre="${CCACHE} "
12745 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12747 aros_target_nostdinc_cflags=-nostdinc
12749 aros_target_nostartup_ldflags=-nostartfiles
12751 aros_target_nix_ldflags=-nix
12753 aros_target_detach_ldflags=-detach
12755 aros_target_nostdlib_ldflags=-nostdlib
12758 # Target tools
12759 if test "$crosstools" != "yes"; then
12760 if test "$GCC" = "yes"; then
12761 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12763 else
12764 # We do not know which gcc version we are going to build and what we need to know
12765 # here is different for different versions so this will be set later during the
12766 # build of crosstools.
12767 aros_target_cc_path=@aros_target_cc_path@
12769 aros_target_cpp="${prefix}cpp"
12770 aros_target_cc="${prefix}gcc"
12771 aros_target_cxx="${prefix}g++"
12772 aros_target_as="${prefix}as"
12773 aros_target_ld="${prefix}ld"
12774 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12775 aros_target_objcopy="${prefix}objcopy"
12776 aros_target_objdump="${prefix}objdump"
12777 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12778 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12779 aros_target_strip="${prefix}strip"
12780 aros_plain_nm="${prefix}nm"
12781 aros_plain_ar="${prefix}ar"
12783 # Check whether --enable-includes was given.
12784 if test "${enable_includes+set}" = set; then :
12785 enableval=$enable_includes; aros_target_incl=$enable_includes
12786 else
12787 aros_target_incl="/usr/include"
12791 if test "$aros_kernel_includes" = ""; then
12792 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12793 aros_kernel_includes="-isystem $aros_target_incl"
12797 if test "$aros_kernel_includes" != "" ; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12799 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12800 if test "$aros_kernel_cc_includes" = "" ; then
12801 # Try to guess where the directory is.
12802 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12803 if test -d $aros_kernel_cc_includes; then
12804 # Check if there is also an include-fixed directory and add it
12805 # to kernel compiler's include path as it may contain some of
12806 # the headers we need.
12807 if test -d "$aros_kernel_cc_includes"-fixed; then
12808 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12810 # Check for specific includes directory. Neede for Ubuntu 11.10
12811 if test -d "/usr/include/i386-linux-gnu"; then
12812 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12814 else
12815 # The directory doesn't exist, we need to do some more work.
12816 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12818 # These are the headers we're looking for.
12819 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12820 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12821 zutil.h stdint.h"
12823 dirs=
12824 for h in $headers; do
12825 # Which other headers are needed by each of the above?
12826 deps=$(echo "#include <$h>" | \
12827 $aros_kernel_cc -E -M - 2>/dev/null | \
12828 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12830 # Copy all the needed headers to a directory beneath gendir.
12831 for d in $deps; do
12832 h=$(basename $d)
12833 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12834 sed -n "s,^.*/include\(/.*\),\1,p")
12835 ! test -d $dir && mkdir -p $dir
12836 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12837 done
12838 done
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12842 $as_echo "$aros_kernel_cc_includes" >&6; }
12843 # Adding -nostdinc to kernel includes as they are always used together.
12844 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12847 if test "$crosstools" != "yes"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12849 $as_echo_n "checking for the target compiler's include path... " >&6; }
12850 if test "$aros_target_cc_includes" = "" ; then
12851 #try to guess where the directory is
12852 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12853 if ! test -d $aros_target_cc_includes; then
12854 #the directory doesn't exist, we need to do some more work
12855 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12857 #these are the headers we're looking for
12858 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12859 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12860 zutil.h"
12862 dirs=
12863 for h in $headers; do
12864 #which other headers each of the above headers needs?
12865 deps=$(echo "#include <$h>" | \
12866 $orig_target_cc -E -M - 2>/dev/null | \
12867 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12869 #copy all the needed headers to a directory beneath gendir
12870 for d in $deps; do
12871 h=$(basename $d)
12872 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12873 sed -n "s,^.*/include\(/.*\),\1,p")
12874 ! test -d $dir && mkdir -p $dir
12875 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12876 done
12877 done
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12881 $as_echo "$aros_target_cc_includes" >&6; }
12882 else
12883 # We do not know which gcc version we are going to build and what we need to know
12884 # here is different for different versions so this will be set later during the
12885 # build of crosstools.
12886 aros_target_cc_includes=@aros_target_cc_includes@
12890 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12891 # On GCC >= 4.0 -iquote should be used
12894 save_cc="$CC"
12895 save_cflags="$CFLAGS"
12896 CFLAGS="-iquote."
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12898 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12899 if test "x-$crosstools" != "x-yes"; then
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12904 main ()
12908 return 0;
12910 _ACEOF
12911 if ac_fn_c_try_compile "$LINENO"; then :
12912 has_iquote="yes"
12913 else
12914 has_iquote="no"
12916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917 else
12918 # we do know it is supported for the smallest version of gcc we are going to build
12919 # we assume it's also supported by later versions
12920 has_iquote=yes
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12923 $as_echo "$has_iquote" >&6; }
12924 if test "x-$has_iquote" = "x-yes" ; then
12925 host_cflags_iquote=-iquote
12926 host_cflags_iquote_end=
12927 else
12928 host_cflags_iquote=-I
12929 host_cflags_iquote_end=-I-
12931 kernel_cflags_iquote=$host_cflags_iquote
12932 kernel_cflags_iquote_end=$host_cflags_iquote_end
12933 if test "x-$cross_compiling" = "x-yes"; then
12934 CC="$aros_kernel_cc"
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12936 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12937 if test "x-$crosstools" != "x-yes"; then
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12942 main ()
12946 return 0;
12948 _ACEOF
12949 if ac_fn_c_try_compile "$LINENO"; then :
12950 use_no_stack_protector="yes"
12951 else
12952 use_no_stack_protector="no"
12954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955 else
12956 # we do know it is supported for the smallest version of gcc we are going to build
12957 # we assume it's also supported by later versions
12958 use_no_stack_protector=yes
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
12961 $as_echo "$use_no_stack_protector" >&6; }
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12963 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12964 if test "x-$crosstools" != "x-yes"; then
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12969 main ()
12973 return 0;
12975 _ACEOF
12976 if ac_fn_c_try_compile "$LINENO"; then :
12977 has_iquote="yes"
12978 else
12979 has_iquote="no"
12981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12982 else
12983 # we do know it is supported for the smallest version of gcc we are going to build
12984 # we assume it's also supported by later versions
12985 has_iquote=yes
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12988 $as_echo "$has_iquote" >&6; }
12989 if test "x-$has_iquote" = "x-yes" ; then
12990 kernel_cflags_iquote=-iquote
12991 kernel_cflags_iquote_end=
12992 else
12993 kernel_cflags_iquote=-I
12994 kernel_cflags_iquote_end=-I-
12997 aros_cflags_iquote=$kernel_cflags_iquote
12998 aros_cflags_iquote_end=$kernel_cflags_iquote_end
12999 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13000 CC="$orig_target_cc"
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13002 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13003 if test "x-$crosstools" != "x-yes"; then
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13008 main ()
13012 return 0;
13014 _ACEOF
13015 if ac_fn_c_try_compile "$LINENO"; then :
13016 has_iquote="yes"
13017 else
13018 has_iquote="no"
13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021 else
13022 # we do know it is supported for the smallest version of gcc we are going to build
13023 # we assume it's also supported by later versions
13024 has_iquote=yes
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13027 $as_echo "$has_iquote" >&6; }
13028 if test "x-$has_iquote" = "x-yes" ; then
13029 aros_cflags_iquote=-iquote
13030 aros_cflags_iquote_end=
13031 else
13032 aros_cflags_iquote=-I
13033 aros_cflags_iquote_end=-I-
13036 if test "x-$use_no_stack_protector" = "x-yes" ; then
13037 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13041 #-----------------------------------------------------------------------------
13043 # Check if the target compiler supports some options used for delinting:
13044 # -Wunused-but-set-variable
13045 # -Warray-bounds
13046 # -Wenum-compare
13047 # -Wstrict-overflow
13048 # -Wformat-security
13050 if test "x-$crosstools" != "x-yes"; then
13051 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13052 CC="$orig_target_cc"
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13055 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13056 CFLAGS=-Wunused-but-set-variable
13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13061 main ()
13065 return 0;
13067 _ACEOF
13068 if ac_fn_c_try_compile "$LINENO"; then :
13069 aros_unused_but_set_variable="yes"
13070 else
13071 aros_unused_but_set_variable="no"
13073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13075 $as_echo "$aros_unused_but_set_variable" >&6; }
13076 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13077 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13081 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13082 CFLAGS=-Warray-bounds
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13087 main ()
13091 return 0;
13093 _ACEOF
13094 if ac_fn_c_try_compile "$LINENO"; then :
13095 aros_array_bounds="yes"
13096 else
13097 aros_array_bounds="no"
13099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13101 $as_echo "$aros_array_bounds" >&6; }
13102 if test "x-$aros_array_bounds" = "x-yes" ; then
13103 aros_cflags_array_bounds=-Wno-array-bounds
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13107 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13108 CFLAGS=-Wenum-compare
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13113 main ()
13117 return 0;
13119 _ACEOF
13120 if ac_fn_c_try_compile "$LINENO"; then :
13121 aros_enum_compare="yes"
13122 else
13123 aros_enum_compare="no"
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13127 $as_echo "$aros_enum_compare" >&6; }
13128 if test "x-$aros_enum_compare" = "x-yes" ; then
13129 aros_cflags_enum_compare=-Wno-enum-compare
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13133 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13134 CFLAGS=-Wstrict-overflow
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13139 main ()
13143 return 0;
13145 _ACEOF
13146 if ac_fn_c_try_compile "$LINENO"; then :
13147 aros_strict_overflow="yes"
13148 else
13149 aros_strict_overflow="no"
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13153 $as_echo "$aros_strict_overflow" >&6; }
13154 if test "x-$aros_strict_overflow" = "x-yes" ; then
13155 aros_cflags_strict_overflow=-Wno-strict-overflow
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13159 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13160 CFLAGS=-Wformat-security
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13165 main ()
13169 return 0;
13171 _ACEOF
13172 if ac_fn_c_try_compile "$LINENO"; then :
13173 aros_format_security="yes"
13174 else
13175 aros_format_security="no"
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13179 $as_echo "$aros_format_security" >&6; }
13180 if test "x-$aros_format_security" = "x-yes" ; then
13181 aros_cflags_format_security=-Wno-format-security
13183 else
13184 # We do not know which gcc version we are going to build and what we need to know
13185 # here is different for different versions so this will be set later during the
13186 # build of crosstools.
13187 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13188 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13189 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13190 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13191 aros_cflags_format_security=@aros_cflags_format_security@
13194 #-----------------------------------------------------------------------------
13196 # Check if we can explicitly choose older version of symbol hashing
13198 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13199 CC="$aros_kernel_cc"
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13201 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13206 main ()
13210 return 0;
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13214 use_hash_style="yes"
13215 else
13216 use_hash_style="no"
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13221 $as_echo "$use_hash_style" >&6; }
13222 if test "x-$use_hash_style" = "x-yes" ; then
13223 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13225 CC="$save_cc"
13226 CFLAGS="$save_cflags"
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13237 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13239 # Check whether --with-resolution was given.
13240 if test "${with_resolution+set}" = set; then :
13241 withval=$with_resolution; resolution=$withval
13242 else
13243 resolution=none
13246 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13247 if test "$resolution" = "yes" ; then
13248 resolution="none"
13250 if test "$resolution" = "no" ; then
13251 resolution="none"
13253 if test "$resolution" != "none" ; then
13254 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13255 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13256 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13259 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13260 aros_cv_default_wbwidth=$aros_default_wbwidth
13261 aros_cv_default_wbheight=$aros_default_wbheight
13262 aros_cv_default_wbdepth=$aros_default_wbdepth
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13265 $as_echo_n "checking if serial debug is enabled... " >&6; }
13267 # Check whether --with-serial-debug was given.
13268 if test "${with_serial_debug+set}" = set; then :
13269 withval=$with_serial_debug; serial_debug=$withval
13270 else
13271 serial_debug=none
13274 if test "$aros_serial_debug" = 0 ; then
13275 serial_debug_forced=""
13276 if test "$serial_debug" = "yes" ; then
13277 serial_debug="1"
13279 if test "$serial_debug" = "no" ; then
13280 serial_debug="none"
13282 else
13283 serial_debug_forced="(forced)"
13284 serial_debug=$aros_serial_debug
13286 if test "$serial_debug" != "none" ; then
13287 aros_serial_debug=$serial_debug
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13289 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13290 else
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 $as_echo "no" >&6; }
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13296 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13297 # Check whether --enable-palm_debug_hack was given.
13298 if test "${enable_palm_debug_hack+set}" = set; then :
13299 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13300 else
13301 palm_debug_hack="no"
13304 if test "$palm_debug_hack" = "yes" ; then
13305 aros_palm_debug_hack="1"
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13308 $as_echo "$palm_debug_hack" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13311 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13312 # Check whether --enable-nesting_supervisor was given.
13313 if test "${enable_nesting_supervisor+set}" = set; then :
13314 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13315 else
13316 nesting_supervisor="no"
13319 if test "$nesting_supervisor" = "yes" ; then
13320 aros_nesting_supervisor="1"
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13323 $as_echo "$nesting_supervisor" >&6; }
13325 if test "$aros_enable_mmu" = "" ; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13327 $as_echo_n "checking if MMU support is enabled... " >&6; }
13328 # Check whether --enable-mmu was given.
13329 if test "${enable_mmu+set}" = set; then :
13330 enableval=$enable_mmu; aros_enable_mmu=$enableval
13331 else
13332 aros_enable_mmu="yes"
13335 if test "$aros_enable_mmu" = "" ; then
13336 aros_enable_mmu="yes"
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13339 $as_echo "$aros_enable_mmu" >&6; }
13341 if test "$aros_enable_mmu" = "no" ; then
13342 aros_enable_mmu="0"
13343 else
13344 aros_enable_mmu="1"
13348 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13350 if test "x-$need_dlopen" != "x-no" ; then
13351 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13352 if test "x$ac_cv_func_dlopen" = xyes; then :
13353 have_dl="yes"
13354 else
13355 have_dl="no"
13358 if test "x-$have_dl" = "x-no" ; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13360 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13361 if ${ac_cv_lib_dl_dlopen+:} false; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 ac_check_lib_save_LIBS=$LIBS
13365 LIBS="-ldl $LIBS"
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13369 /* Override any GCC internal prototype to avoid an error.
13370 Use char because int might match the return type of a GCC
13371 builtin and then its argument prototype would still apply. */
13372 #ifdef __cplusplus
13373 extern "C"
13374 #endif
13375 char dlopen ();
13377 main ()
13379 return dlopen ();
13381 return 0;
13383 _ACEOF
13384 if ac_fn_c_try_link "$LINENO"; then :
13385 ac_cv_lib_dl_dlopen=yes
13386 else
13387 ac_cv_lib_dl_dlopen=no
13389 rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13394 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13395 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13396 have_dl="yes"
13397 aros_host_ldflags="$aros_host_ldflags -ldl"
13398 else
13399 have_dl="no"
13403 if test "x-$have_dl" = "x-no" ; then
13404 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13409 # Check whether --enable-x11_hidd was given.
13410 if test "${enable_x11_hidd+set}" = set; then :
13411 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13412 else
13413 x11_hidd="$need_x11"
13416 case "x-$x11_hidd" in
13417 x-yes|x-no|x-auto) ;;
13418 *) x11_hidd="$need_x11" ;;
13419 esac
13421 ENABLE_X11=0
13423 if test "x-$x11_hidd" != "x-no" ; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13426 $as_echo_n "checking for X... " >&6; }
13429 # Check whether --with-x was given.
13430 if test "${with_x+set}" = set; then :
13431 withval=$with_x;
13434 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13435 if test "x$with_x" = xno; then
13436 # The user explicitly disabled X.
13437 have_x=disabled
13438 else
13439 case $x_includes,$x_libraries in #(
13440 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13441 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 # One or both of the vars are not set, and there is no cached value.
13445 ac_x_includes=no ac_x_libraries=no
13446 rm -f -r conftest.dir
13447 if mkdir conftest.dir; then
13448 cd conftest.dir
13449 cat >Imakefile <<'_ACEOF'
13450 incroot:
13451 @echo incroot='${INCROOT}'
13452 usrlibdir:
13453 @echo usrlibdir='${USRLIBDIR}'
13454 libdir:
13455 @echo libdir='${LIBDIR}'
13456 _ACEOF
13457 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13458 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13459 for ac_var in incroot usrlibdir libdir; do
13460 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13461 done
13462 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13463 for ac_extension in a so sl dylib la dll; do
13464 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13465 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13466 ac_im_usrlibdir=$ac_im_libdir; break
13468 done
13469 # Screen out bogus values from the imake configuration. They are
13470 # bogus both because they are the default anyway, and because
13471 # using them would break gcc on systems where it needs fixed includes.
13472 case $ac_im_incroot in
13473 /usr/include) ac_x_includes= ;;
13474 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13475 esac
13476 case $ac_im_usrlibdir in
13477 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13478 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13479 esac
13481 cd ..
13482 rm -f -r conftest.dir
13485 # Standard set of common directories for X headers.
13486 # Check X11 before X11Rn because it is often a symlink to the current release.
13487 ac_x_header_dirs='
13488 /usr/X11/include
13489 /usr/X11R7/include
13490 /usr/X11R6/include
13491 /usr/X11R5/include
13492 /usr/X11R4/include
13494 /usr/include/X11
13495 /usr/include/X11R7
13496 /usr/include/X11R6
13497 /usr/include/X11R5
13498 /usr/include/X11R4
13500 /usr/local/X11/include
13501 /usr/local/X11R7/include
13502 /usr/local/X11R6/include
13503 /usr/local/X11R5/include
13504 /usr/local/X11R4/include
13506 /usr/local/include/X11
13507 /usr/local/include/X11R7
13508 /usr/local/include/X11R6
13509 /usr/local/include/X11R5
13510 /usr/local/include/X11R4
13512 /usr/X386/include
13513 /usr/x386/include
13514 /usr/XFree86/include/X11
13516 /usr/include
13517 /usr/local/include
13518 /usr/unsupported/include
13519 /usr/athena/include
13520 /usr/local/x11r5/include
13521 /usr/lpp/Xamples/include
13523 /usr/openwin/include
13524 /usr/openwin/share/include'
13526 if test "$ac_x_includes" = no; then
13527 # Guess where to find include files, by looking for Xlib.h.
13528 # First, try using that file with no special directory specified.
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13531 #include <X11/Xlib.h>
13532 _ACEOF
13533 if ac_fn_c_try_cpp "$LINENO"; then :
13534 # We can compile using X headers with no special include directory.
13535 ac_x_includes=
13536 else
13537 for ac_dir in $ac_x_header_dirs; do
13538 if test -r "$ac_dir/X11/Xlib.h"; then
13539 ac_x_includes=$ac_dir
13540 break
13542 done
13544 rm -f conftest.err conftest.i conftest.$ac_ext
13545 fi # $ac_x_includes = no
13547 if test "$ac_x_libraries" = no; then
13548 # Check for the libraries.
13549 # See if we find them without any special options.
13550 # Don't add to $LIBS permanently.
13551 ac_save_LIBS=$LIBS
13552 LIBS="-lX11 $LIBS"
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555 #include <X11/Xlib.h>
13557 main ()
13559 XrmInitialize ()
13561 return 0;
13563 _ACEOF
13564 if ac_fn_c_try_link "$LINENO"; then :
13565 LIBS=$ac_save_LIBS
13566 # We can link X programs with no special library path.
13567 ac_x_libraries=
13568 else
13569 LIBS=$ac_save_LIBS
13570 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13572 # Don't even attempt the hair of trying to link an X program!
13573 for ac_extension in a so sl dylib la dll; do
13574 if test -r "$ac_dir/libX11.$ac_extension"; then
13575 ac_x_libraries=$ac_dir
13576 break 2
13578 done
13579 done
13581 rm -f core conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13583 fi # $ac_x_libraries = no
13585 case $ac_x_includes,$ac_x_libraries in #(
13586 no,* | *,no | *\'*)
13587 # Didn't find X, or a directory has "'" in its name.
13588 ac_cv_have_x="have_x=no";; #(
13590 # Record where we found X for the cache.
13591 ac_cv_have_x="have_x=yes\
13592 ac_x_includes='$ac_x_includes'\
13593 ac_x_libraries='$ac_x_libraries'"
13594 esac
13596 ;; #(
13597 *) have_x=yes;;
13598 esac
13599 eval "$ac_cv_have_x"
13600 fi # $with_x != no
13602 if test "$have_x" != yes; then
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13604 $as_echo "$have_x" >&6; }
13605 no_x=yes
13606 else
13607 # If each of the values was on the command line, it overrides each guess.
13608 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13609 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13610 # Update the cache value to reflect the command line values.
13611 ac_cv_have_x="have_x=yes\
13612 ac_x_includes='$x_includes'\
13613 ac_x_libraries='$x_libraries'"
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13615 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13619 x_cflags=
13620 for path in $x_libraries
13622 x_cflags="$x_cflags -L$path"
13623 done
13625 for path in $x_includes
13627 x_cflags="$x_cflags -I$path"
13628 done
13630 if test "x-$no_x" = "x-yes" ; then
13632 if test "x-$x11_hidd" != "x-auto" ; then
13633 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13636 else
13637 x11_hidd_target=kernel-x11gfx-kobj
13638 ENABLE_X11=1
13640 # Check whether --enable-x11_shm was given.
13641 if test "${enable_x11_shm+set}" = set; then :
13642 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13643 else
13644 x11_hidd_shm="auto"
13647 case "x-$x11_hidd_shm" in
13648 x-yes|x-no|x-auto) ;;
13649 *) x11_hidd_shm="auto" ;;
13650 esac
13652 have_xshm=no
13654 if test "x-$x11_hidd_shm" != "x-no" ; then
13656 for ac_header in sys/ipc.h
13657 do :
13658 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13659 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13660 cat >>confdefs.h <<_ACEOF
13661 #define HAVE_SYS_IPC_H 1
13662 _ACEOF
13666 done
13668 for ac_header in sys/shm.h
13669 do :
13670 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13671 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13672 cat >>confdefs.h <<_ACEOF
13673 #define HAVE_SYS_SHM_H 1
13674 _ACEOF
13678 done
13681 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13683 save_cflags="$CFLAGS"
13684 CFLAGS="$CFLAGS $x_cflags"
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13686 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13687 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 ac_check_lib_save_LIBS=$LIBS
13691 LIBS="-lXext $LIBS"
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13695 /* Override any GCC internal prototype to avoid an error.
13696 Use char because int might match the return type of a GCC
13697 builtin and then its argument prototype would still apply. */
13698 #ifdef __cplusplus
13699 extern "C"
13700 #endif
13701 char XShmQueryExtension ();
13703 main ()
13705 return XShmQueryExtension ();
13707 return 0;
13709 _ACEOF
13710 if ac_fn_c_try_link "$LINENO"; then :
13711 ac_cv_lib_Xext_XShmQueryExtension=yes
13712 else
13713 ac_cv_lib_Xext_XShmQueryExtension=no
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13720 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13721 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13722 have_xshm=yes
13725 CFLAGS="$save_cflags"
13729 if test "x-$have_xshm" = "x-yes" ; then
13730 DO_XSHM_SUPPORT="1"
13731 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13732 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13733 else
13734 DO_XSHM_SUPPORT="0"
13738 # Check whether --enable-x11_vidmode was given.
13739 if test "${enable_x11_vidmode+set}" = set; then :
13740 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13741 else
13742 x11_hidd_vidmode="auto"
13745 case "x-$x11_hidd_vidmode" in
13746 x-yes|x-no|x-auto) ;;
13747 *) x11_hidd_vidmode="auto" ;;
13748 esac
13750 have_vidmode=no
13752 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13754 save_cflags="$CFLAGS"
13755 CFLAGS="$CFLAGS $x_cflags"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13757 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13758 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 ac_check_lib_save_LIBS=$LIBS
13762 LIBS="-lXxf86vm $LIBS"
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13766 /* Override any GCC internal prototype to avoid an error.
13767 Use char because int might match the return type of a GCC
13768 builtin and then its argument prototype would still apply. */
13769 #ifdef __cplusplus
13770 extern "C"
13771 #endif
13772 char XF86VidModeQueryExtension ();
13774 main ()
13776 return XF86VidModeQueryExtension ();
13778 return 0;
13780 _ACEOF
13781 if ac_fn_c_try_link "$LINENO"; then :
13782 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13783 else
13784 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13786 rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13788 LIBS=$ac_check_lib_save_LIBS
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13791 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13792 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13793 have_vidmode=yes
13796 CFLAGS="$save_cflags"
13799 if test "x-$have_vidmode" = "x-yes" ; then
13800 DO_VIDMODE_SUPPORT="1"
13801 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13802 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13803 else
13804 DO_VIDMODE_SUPPORT="0"
13808 aros_host_x11_includes=$x_includes
13809 aros_host_x11_libdirs=$x_libraries
13813 # Check whether --enable-sdl_hidd was given.
13814 if test "${enable_sdl_hidd+set}" = set; then :
13815 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13816 else
13817 sdl_hidd="auto"
13820 case "x-$sdl_hidd" in
13821 x-yes|x-no|x-auto) ;;
13822 *) sdl_hidd="auto" ;;
13823 esac
13825 if test "x-$sdl_hidd" != "x-no" ; then
13828 # Check whether --with-sdl-prefix was given.
13829 if test "${with_sdl_prefix+set}" = set; then :
13830 withval=$with_sdl_prefix; sdl_prefix="$withval"
13831 else
13832 sdl_prefix=""
13836 # Check whether --with-sdl-exec-prefix was given.
13837 if test "${with_sdl_exec_prefix+set}" = set; then :
13838 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13839 else
13840 sdl_exec_prefix=""
13843 # Check whether --enable-sdltest was given.
13844 if test "${enable_sdltest+set}" = set; then :
13845 enableval=$enable_sdltest;
13846 else
13847 enable_sdltest=yes
13851 if test x$sdl_exec_prefix != x ; then
13852 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13853 if test x${SDL_CONFIG+set} != xset ; then
13854 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13857 if test x$sdl_prefix != x ; then
13858 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13859 if test x${SDL_CONFIG+set} != xset ; then
13860 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13864 as_save_PATH="$PATH"
13865 if test "x$prefix" != xNONE; then
13866 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13868 # Extract the first word of "sdl-config", so it can be a program name with args.
13869 set dummy sdl-config; ac_word=$2
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13871 $as_echo_n "checking for $ac_word... " >&6; }
13872 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 case $SDL_CONFIG in
13876 [\\/]* | ?:[\\/]*)
13877 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13887 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13891 done
13892 done
13893 IFS=$as_save_IFS
13895 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13897 esac
13899 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13900 if test -n "$SDL_CONFIG"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13902 $as_echo "$SDL_CONFIG" >&6; }
13903 else
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905 $as_echo "no" >&6; }
13909 PATH="$as_save_PATH"
13910 min_sdl_version=1.2.10
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13912 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13913 no_sdl=""
13914 if test "$SDL_CONFIG" = "no" ; then
13915 no_sdl=yes
13916 else
13917 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13918 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13920 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13921 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13922 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13923 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13924 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13926 if test "x$enable_sdltest" = "xyes" ; then
13927 ac_save_CFLAGS="$CFLAGS"
13928 ac_save_CXXFLAGS="$CXXFLAGS"
13929 ac_save_LIBS="$LIBS"
13930 CFLAGS="$CFLAGS $SDL_CFLAGS"
13931 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13932 LIBS="$LIBS $SDL_LIBS"
13933 rm -f conf.sdltest
13934 if test "$cross_compiling" = yes; then :
13935 echo $ac_n "cross compiling; assumed OK... $ac_c"
13936 else
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13940 #include <stdio.h>
13941 #include <stdlib.h>
13942 #include <string.h>
13943 #include "SDL.h"
13945 char*
13946 my_strdup (char *str)
13948 char *new_str;
13950 if (str)
13952 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13953 strcpy (new_str, str);
13955 else
13956 new_str = NULL;
13958 return new_str;
13961 int main (int argc, char *argv[])
13963 int major, minor, micro;
13964 char *tmp_version;
13966 /* This hangs on some systems (?)
13967 system ("touch conf.sdltest");
13969 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13971 /* HP/UX 9 (%@#!) writes to sscanf strings */
13972 tmp_version = my_strdup("$min_sdl_version");
13973 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13974 printf("%s, bad version string\n", "$min_sdl_version");
13975 exit(1);
13978 if (($sdl_major_version > major) ||
13979 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13980 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13982 return 0;
13984 else
13986 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13987 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13988 printf("*** best to upgrade to the required version.\n");
13989 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13990 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13991 printf("*** config.cache before re-running configure\n");
13992 return 1;
13997 _ACEOF
13998 if ac_fn_c_try_run "$LINENO"; then :
14000 else
14001 no_sdl=yes
14003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14004 conftest.$ac_objext conftest.beam conftest.$ac_ext
14007 CFLAGS="$ac_save_CFLAGS"
14008 CXXFLAGS="$ac_save_CXXFLAGS"
14009 LIBS="$ac_save_LIBS"
14012 if test "x$no_sdl" = x ; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14014 $as_echo "yes" >&6; }
14015 have_sdl="yes"
14016 else
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 $as_echo "no" >&6; }
14019 if test "$SDL_CONFIG" = "no" ; then
14020 echo "*** The sdl-config script installed by SDL could not be found"
14021 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14022 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14023 echo "*** full path to sdl-config."
14024 else
14025 if test -f conf.sdltest ; then
14027 else
14028 echo "*** Could not run SDL test program, checking why..."
14029 CFLAGS="$CFLAGS $SDL_CFLAGS"
14030 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14031 LIBS="$LIBS $SDL_LIBS"
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14035 #include <stdio.h>
14036 #include "SDL.h"
14038 int main(int argc, char *argv[])
14039 { return 0; }
14040 #undef main
14041 #define main K_and_R_C_main
14044 main ()
14046 return 0;
14048 return 0;
14050 _ACEOF
14051 if ac_fn_c_try_link "$LINENO"; then :
14052 echo "*** The test program compiled, but did not run. This usually means"
14053 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14054 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14055 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14056 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14057 echo "*** is required on your system"
14058 echo "***"
14059 echo "*** If you have an old version installed, it is best to remove it, although"
14060 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14061 else
14062 echo "*** The test program failed to compile or link. See the file config.log for the"
14063 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14064 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14065 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14067 rm -f core conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14069 CFLAGS="$ac_save_CFLAGS"
14070 CXXFLAGS="$ac_save_CXXFLAGS"
14071 LIBS="$ac_save_LIBS"
14074 SDL_CFLAGS=""
14075 SDL_LIBS=""
14076 have_sdl="no"
14080 rm -f conf.sdltest
14083 if test "x-$have_sdl" != "x-yes" ; then
14085 if test "x-$sdl_hidd" != "x-auto" ; then
14086 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14089 else
14090 sdl_hidd_target=kernel-hidd-sdl
14091 aros_host_sdl_cflags=SDL_CFLAGS
14092 aros_host_sdl_libs=SDL_LIBS
14096 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14097 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14102 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14103 oss_library_target=workbench-libs-oss-unix
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14109 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14110 # Check whether --enable-dbus was given.
14111 if test "${enable_dbus+set}" = set; then :
14112 enableval=$enable_dbus; dbus="yes"
14113 else
14114 dbus="no"
14117 if test "$dbus" = "yes" ; then
14118 ENABLE_DBUS=1
14119 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14120 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14121 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14122 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14123 else
14124 ENABLE_DBUS=0
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14127 $as_echo "$dbus" >&6; }
14129 if test "$use_kernel_cc_wrapper" = "yes" ; then
14130 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14133 if test "${crosstools}" != "yes" ; then
14134 aros_target_toolchain=no
14135 else
14136 aros_target_toolchain=yes
14140 # Generic
14152 # Compatability with other Amiga-like operation systems
14155 # Host related
14183 # Target Related
14247 # Delinting target compiler flags
14254 # Graphics Related
14271 # Native version related
14274 # Palm native version related
14277 # Unix/Hosted version related
14280 # MMU related
14283 # Apple iOS related
14288 # Android related
14292 # DBUS related
14299 #X11 related
14302 # Debug related
14308 # Collect-aros stuff: "-ius" to ignore undefined symbols
14311 # C compiler related
14314 case "$aros_flavour" in
14315 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14316 aros_flavour="emulation" ;;
14317 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14318 aros_flavour="emulation" ;;
14319 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14320 aros_flavour="standalone";;
14321 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14322 aros_flavour="standalone";;
14323 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14324 aros_flavour="native" ;;
14325 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14326 aros_flavour="native" ;;
14327 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14328 aros_flavour="linklib" ;;
14329 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14330 aros_flavour="palmnative" ;;
14331 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14332 aros_flavour="mac68knative" ;;
14333 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14334 aros_flavour="ppcnative" ;;
14335 esac
14337 if test ! -d ${aros_inc_dir} ; then
14338 ${MKDIR} ${aros_inc_dir}
14340 if test ! -d ${aros_geninc_dir} ; then
14341 ${MKDIR} ${aros_geninc_dir}
14343 if test ! -d ${aros_hostcfg_dir} ; then
14344 ${MKDIR} ${aros_hostcfg_dir}
14346 if test ! -d ${aros_targetcfg_dir} ; then
14347 ${MKDIR} ${aros_targetcfg_dir}
14349 if test ! -d ${aros_tools_dir} ; then
14350 ${MKDIR} ${aros_tools_dir}
14352 if test ! -d ${aros_scripts_dir} ; then
14353 ${MKDIR} ${aros_scripts_dir}
14356 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14359 ac_config_commands="$ac_config_commands compiler_executable"
14361 ac_config_commands="$ac_config_commands genmf_executable"
14364 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"
14367 cat >confcache <<\_ACEOF
14368 # This file is a shell script that caches the results of configure
14369 # tests run on this system so they can be shared between configure
14370 # scripts and configure runs, see configure's option --config-cache.
14371 # It is not useful on other systems. If it contains results you don't
14372 # want to keep, you may remove or edit it.
14374 # config.status only pays attention to the cache file if you give it
14375 # the --recheck option to rerun configure.
14377 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14378 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14379 # following values.
14381 _ACEOF
14383 # The following way of writing the cache mishandles newlines in values,
14384 # but we know of no workaround that is simple, portable, and efficient.
14385 # So, we kill variables containing newlines.
14386 # Ultrix sh set writes to stderr and can't be redirected directly,
14387 # and sets the high bit in the cache file unless we assign to the vars.
14389 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14390 eval ac_val=\$$ac_var
14391 case $ac_val in #(
14392 *${as_nl}*)
14393 case $ac_var in #(
14394 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14395 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14396 esac
14397 case $ac_var in #(
14398 _ | IFS | as_nl) ;; #(
14399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14400 *) { eval $ac_var=; unset $ac_var;} ;;
14401 esac ;;
14402 esac
14403 done
14405 (set) 2>&1 |
14406 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14407 *${as_nl}ac_space=\ *)
14408 # `set' does not quote correctly, so add quotes: double-quote
14409 # substitution turns \\\\ into \\, and sed turns \\ into \.
14410 sed -n \
14411 "s/'/'\\\\''/g;
14412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14413 ;; #(
14415 # `set' quotes correctly as required by POSIX, so do not add quotes.
14416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14418 esac |
14419 sort
14421 sed '
14422 /^ac_cv_env_/b end
14423 t clear
14424 :clear
14425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14426 t end
14427 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14428 :end' >>confcache
14429 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14430 if test -w "$cache_file"; then
14431 if test "x$cache_file" != "x/dev/null"; then
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14433 $as_echo "$as_me: updating cache $cache_file" >&6;}
14434 if test ! -f "$cache_file" || test -h "$cache_file"; then
14435 cat confcache >"$cache_file"
14436 else
14437 case $cache_file in #(
14438 */* | ?:*)
14439 mv -f confcache "$cache_file"$$ &&
14440 mv -f "$cache_file"$$ "$cache_file" ;; #(
14442 mv -f confcache "$cache_file" ;;
14443 esac
14446 else
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14448 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14451 rm -f confcache
14453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14454 # Let make expand exec_prefix.
14455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14457 DEFS=-DHAVE_CONFIG_H
14459 ac_libobjs=
14460 ac_ltlibobjs=
14462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14463 # 1. Remove the extension, and $U if already installed.
14464 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14465 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14466 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14467 # will be set to the directory where LIBOBJS objects are built.
14468 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14469 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14470 done
14471 LIBOBJS=$ac_libobjs
14473 LTLIBOBJS=$ac_ltlibobjs
14477 : "${CONFIG_STATUS=./config.status}"
14478 ac_write_fail=0
14479 ac_clean_files_save=$ac_clean_files
14480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14482 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14483 as_write_fail=0
14484 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14485 #! $SHELL
14486 # Generated by $as_me.
14487 # Run this file to recreate the current configuration.
14488 # Compiler output produced by configure, useful for debugging
14489 # configure, is in config.log if it exists.
14491 debug=false
14492 ac_cs_recheck=false
14493 ac_cs_silent=false
14495 SHELL=\${CONFIG_SHELL-$SHELL}
14496 export SHELL
14497 _ASEOF
14498 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14499 ## -------------------- ##
14500 ## M4sh Initialization. ##
14501 ## -------------------- ##
14503 # Be more Bourne compatible
14504 DUALCASE=1; export DUALCASE # for MKS sh
14505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14506 emulate sh
14507 NULLCMD=:
14508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14509 # is contrary to our usage. Disable this feature.
14510 alias -g '${1+"$@"}'='"$@"'
14511 setopt NO_GLOB_SUBST
14512 else
14513 case `(set -o) 2>/dev/null` in #(
14514 *posix*) :
14515 set -o posix ;; #(
14516 *) :
14518 esac
14522 as_nl='
14524 export as_nl
14525 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14526 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14529 # Prefer a ksh shell builtin over an external printf program on Solaris,
14530 # but without wasting forks for bash or zsh.
14531 if test -z "$BASH_VERSION$ZSH_VERSION" \
14532 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14533 as_echo='print -r --'
14534 as_echo_n='print -rn --'
14535 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14536 as_echo='printf %s\n'
14537 as_echo_n='printf %s'
14538 else
14539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14540 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14541 as_echo_n='/usr/ucb/echo -n'
14542 else
14543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14544 as_echo_n_body='eval
14545 arg=$1;
14546 case $arg in #(
14547 *"$as_nl"*)
14548 expr "X$arg" : "X\\(.*\\)$as_nl";
14549 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14550 esac;
14551 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14553 export as_echo_n_body
14554 as_echo_n='sh -c $as_echo_n_body as_echo'
14556 export as_echo_body
14557 as_echo='sh -c $as_echo_body as_echo'
14560 # The user is always right.
14561 if test "${PATH_SEPARATOR+set}" != set; then
14562 PATH_SEPARATOR=:
14563 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14564 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14565 PATH_SEPARATOR=';'
14570 # IFS
14571 # We need space, tab and new line, in precisely that order. Quoting is
14572 # there to prevent editors from complaining about space-tab.
14573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14574 # splitting by setting IFS to empty value.)
14575 IFS=" "" $as_nl"
14577 # Find who we are. Look in the path if we contain no directory separator.
14578 as_myself=
14579 case $0 in #((
14580 *[\\/]* ) as_myself=$0 ;;
14581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14582 for as_dir in $PATH
14584 IFS=$as_save_IFS
14585 test -z "$as_dir" && as_dir=.
14586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14587 done
14588 IFS=$as_save_IFS
14591 esac
14592 # We did not find ourselves, most probably we were run as `sh COMMAND'
14593 # in which case we are not to be found in the path.
14594 if test "x$as_myself" = x; then
14595 as_myself=$0
14597 if test ! -f "$as_myself"; then
14598 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14599 exit 1
14602 # Unset variables that we do not need and which cause bugs (e.g. in
14603 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14604 # suppresses any "Segmentation fault" message there. '((' could
14605 # trigger a bug in pdksh 5.2.14.
14606 for as_var in BASH_ENV ENV MAIL MAILPATH
14607 do eval test x\${$as_var+set} = xset \
14608 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14609 done
14610 PS1='$ '
14611 PS2='> '
14612 PS4='+ '
14614 # NLS nuisances.
14615 LC_ALL=C
14616 export LC_ALL
14617 LANGUAGE=C
14618 export LANGUAGE
14620 # CDPATH.
14621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14624 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14625 # ----------------------------------------
14626 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14627 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14628 # script with STATUS, using 1 if that was 0.
14629 as_fn_error ()
14631 as_status=$1; test $as_status -eq 0 && as_status=1
14632 if test "$4"; then
14633 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14634 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14636 $as_echo "$as_me: error: $2" >&2
14637 as_fn_exit $as_status
14638 } # as_fn_error
14641 # as_fn_set_status STATUS
14642 # -----------------------
14643 # Set $? to STATUS, without forking.
14644 as_fn_set_status ()
14646 return $1
14647 } # as_fn_set_status
14649 # as_fn_exit STATUS
14650 # -----------------
14651 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14652 as_fn_exit ()
14654 set +e
14655 as_fn_set_status $1
14656 exit $1
14657 } # as_fn_exit
14659 # as_fn_unset VAR
14660 # ---------------
14661 # Portably unset VAR.
14662 as_fn_unset ()
14664 { eval $1=; unset $1;}
14666 as_unset=as_fn_unset
14667 # as_fn_append VAR VALUE
14668 # ----------------------
14669 # Append the text in VALUE to the end of the definition contained in VAR. Take
14670 # advantage of any shell optimizations that allow amortized linear growth over
14671 # repeated appends, instead of the typical quadratic growth present in naive
14672 # implementations.
14673 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14674 eval 'as_fn_append ()
14676 eval $1+=\$2
14678 else
14679 as_fn_append ()
14681 eval $1=\$$1\$2
14683 fi # as_fn_append
14685 # as_fn_arith ARG...
14686 # ------------------
14687 # Perform arithmetic evaluation on the ARGs, and store the result in the
14688 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14689 # must be portable across $(()) and expr.
14690 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14691 eval 'as_fn_arith ()
14693 as_val=$(( $* ))
14695 else
14696 as_fn_arith ()
14698 as_val=`expr "$@" || test $? -eq 1`
14700 fi # as_fn_arith
14703 if expr a : '\(a\)' >/dev/null 2>&1 &&
14704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14705 as_expr=expr
14706 else
14707 as_expr=false
14710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14711 as_basename=basename
14712 else
14713 as_basename=false
14716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14717 as_dirname=dirname
14718 else
14719 as_dirname=false
14722 as_me=`$as_basename -- "$0" ||
14723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14724 X"$0" : 'X\(//\)$' \| \
14725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14726 $as_echo X/"$0" |
14727 sed '/^.*\/\([^/][^/]*\)\/*$/{
14728 s//\1/
14731 /^X\/\(\/\/\)$/{
14732 s//\1/
14735 /^X\/\(\/\).*/{
14736 s//\1/
14739 s/.*/./; q'`
14741 # Avoid depending upon Character Ranges.
14742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14745 as_cr_digits='0123456789'
14746 as_cr_alnum=$as_cr_Letters$as_cr_digits
14748 ECHO_C= ECHO_N= ECHO_T=
14749 case `echo -n x` in #(((((
14750 -n*)
14751 case `echo 'xy\c'` in
14752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14753 xy) ECHO_C='\c';;
14754 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14755 ECHO_T=' ';;
14756 esac;;
14758 ECHO_N='-n';;
14759 esac
14761 rm -f conf$$ conf$$.exe conf$$.file
14762 if test -d conf$$.dir; then
14763 rm -f conf$$.dir/conf$$.file
14764 else
14765 rm -f conf$$.dir
14766 mkdir conf$$.dir 2>/dev/null
14768 if (echo >conf$$.file) 2>/dev/null; then
14769 if ln -s conf$$.file conf$$ 2>/dev/null; then
14770 as_ln_s='ln -s'
14771 # ... but there are two gotchas:
14772 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14773 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14774 # In both cases, we have to default to `cp -p'.
14775 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14776 as_ln_s='cp -p'
14777 elif ln conf$$.file conf$$ 2>/dev/null; then
14778 as_ln_s=ln
14779 else
14780 as_ln_s='cp -p'
14782 else
14783 as_ln_s='cp -p'
14785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14786 rmdir conf$$.dir 2>/dev/null
14789 # as_fn_mkdir_p
14790 # -------------
14791 # Create "$as_dir" as a directory, including parents if necessary.
14792 as_fn_mkdir_p ()
14795 case $as_dir in #(
14796 -*) as_dir=./$as_dir;;
14797 esac
14798 test -d "$as_dir" || eval $as_mkdir_p || {
14799 as_dirs=
14800 while :; do
14801 case $as_dir in #(
14802 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14803 *) as_qdir=$as_dir;;
14804 esac
14805 as_dirs="'$as_qdir' $as_dirs"
14806 as_dir=`$as_dirname -- "$as_dir" ||
14807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14808 X"$as_dir" : 'X\(//\)[^/]' \| \
14809 X"$as_dir" : 'X\(//\)$' \| \
14810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14811 $as_echo X"$as_dir" |
14812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14813 s//\1/
14816 /^X\(\/\/\)[^/].*/{
14817 s//\1/
14820 /^X\(\/\/\)$/{
14821 s//\1/
14824 /^X\(\/\).*/{
14825 s//\1/
14828 s/.*/./; q'`
14829 test -d "$as_dir" && break
14830 done
14831 test -z "$as_dirs" || eval "mkdir $as_dirs"
14832 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14835 } # as_fn_mkdir_p
14836 if mkdir -p . 2>/dev/null; then
14837 as_mkdir_p='mkdir -p "$as_dir"'
14838 else
14839 test -d ./-p && rmdir ./-p
14840 as_mkdir_p=false
14843 if test -x / >/dev/null 2>&1; then
14844 as_test_x='test -x'
14845 else
14846 if ls -dL / >/dev/null 2>&1; then
14847 as_ls_L_option=L
14848 else
14849 as_ls_L_option=
14851 as_test_x='
14852 eval sh -c '\''
14853 if test -d "$1"; then
14854 test -d "$1/.";
14855 else
14856 case $1 in #(
14857 -*)set "./$1";;
14858 esac;
14859 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14860 ???[sx]*):;;*)false;;esac;fi
14861 '\'' sh
14864 as_executable_p=$as_test_x
14866 # Sed expression to map a string onto a valid CPP name.
14867 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14869 # Sed expression to map a string onto a valid variable name.
14870 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14873 exec 6>&1
14874 ## ----------------------------------- ##
14875 ## Main body of $CONFIG_STATUS script. ##
14876 ## ----------------------------------- ##
14877 _ASEOF
14878 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14881 # Save the log message, to keep $0 and so on meaningful, and to
14882 # report actual input values of CONFIG_FILES etc. instead of their
14883 # values after options handling.
14884 ac_log="
14885 This file was extended by $as_me, which was
14886 generated by GNU Autoconf 2.68. Invocation command line was
14888 CONFIG_FILES = $CONFIG_FILES
14889 CONFIG_HEADERS = $CONFIG_HEADERS
14890 CONFIG_LINKS = $CONFIG_LINKS
14891 CONFIG_COMMANDS = $CONFIG_COMMANDS
14892 $ $0 $@
14894 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14897 _ACEOF
14899 case $ac_config_files in *"
14900 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14901 esac
14903 case $ac_config_headers in *"
14904 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14905 esac
14908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14909 # Files that config.status was made for.
14910 config_files="$ac_config_files"
14911 config_headers="$ac_config_headers"
14912 config_commands="$ac_config_commands"
14914 _ACEOF
14916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14917 ac_cs_usage="\
14918 \`$as_me' instantiates files and other configuration actions
14919 from templates according to the current configuration. Unless the files
14920 and actions are specified as TAGs, all are instantiated by default.
14922 Usage: $0 [OPTION]... [TAG]...
14924 -h, --help print this help, then exit
14925 -V, --version print version number and configuration settings, then exit
14926 --config print configuration, then exit
14927 -q, --quiet, --silent
14928 do not print progress messages
14929 -d, --debug don't remove temporary files
14930 --recheck update $as_me by reconfiguring in the same conditions
14931 --file=FILE[:TEMPLATE]
14932 instantiate the configuration file FILE
14933 --header=FILE[:TEMPLATE]
14934 instantiate the configuration header FILE
14936 Configuration files:
14937 $config_files
14939 Configuration headers:
14940 $config_headers
14942 Configuration commands:
14943 $config_commands
14945 Report bugs to the package provider."
14947 _ACEOF
14948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14949 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14950 ac_cs_version="\\
14951 config.status
14952 configured by $0, generated by GNU Autoconf 2.68,
14953 with options \\"\$ac_cs_config\\"
14955 Copyright (C) 2010 Free Software Foundation, Inc.
14956 This config.status script is free software; the Free Software Foundation
14957 gives unlimited permission to copy, distribute and modify it."
14959 ac_pwd='$ac_pwd'
14960 srcdir='$srcdir'
14961 test -n "\$AWK" || AWK=awk
14962 _ACEOF
14964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14965 # The default lists apply if the user does not specify any file.
14966 ac_need_defaults=:
14967 while test $# != 0
14969 case $1 in
14970 --*=?*)
14971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14972 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14973 ac_shift=:
14975 --*=)
14976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14977 ac_optarg=
14978 ac_shift=:
14981 ac_option=$1
14982 ac_optarg=$2
14983 ac_shift=shift
14985 esac
14987 case $ac_option in
14988 # Handling of the options.
14989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14990 ac_cs_recheck=: ;;
14991 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14992 $as_echo "$ac_cs_version"; exit ;;
14993 --config | --confi | --conf | --con | --co | --c )
14994 $as_echo "$ac_cs_config"; exit ;;
14995 --debug | --debu | --deb | --de | --d | -d )
14996 debug=: ;;
14997 --file | --fil | --fi | --f )
14998 $ac_shift
14999 case $ac_optarg in
15000 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15001 '') as_fn_error $? "missing file argument" ;;
15002 esac
15003 as_fn_append CONFIG_FILES " '$ac_optarg'"
15004 ac_need_defaults=false;;
15005 --header | --heade | --head | --hea )
15006 $ac_shift
15007 case $ac_optarg in
15008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15009 esac
15010 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15011 ac_need_defaults=false;;
15012 --he | --h)
15013 # Conflict between --help and --header
15014 as_fn_error $? "ambiguous option: \`$1'
15015 Try \`$0 --help' for more information.";;
15016 --help | --hel | -h )
15017 $as_echo "$ac_cs_usage"; exit ;;
15018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15020 ac_cs_silent=: ;;
15022 # This is an error.
15023 -*) as_fn_error $? "unrecognized option: \`$1'
15024 Try \`$0 --help' for more information." ;;
15026 *) as_fn_append ac_config_targets " $1"
15027 ac_need_defaults=false ;;
15029 esac
15030 shift
15031 done
15033 ac_configure_extra_args=
15035 if $ac_cs_silent; then
15036 exec 6>/dev/null
15037 ac_configure_extra_args="$ac_configure_extra_args --silent"
15040 _ACEOF
15041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15042 if \$ac_cs_recheck; then
15043 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15044 shift
15045 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15046 CONFIG_SHELL='$SHELL'
15047 export CONFIG_SHELL
15048 exec "\$@"
15051 _ACEOF
15052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15053 exec 5>>config.log
15055 echo
15056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15057 ## Running $as_me. ##
15058 _ASBOX
15059 $as_echo "$ac_log"
15060 } >&5
15062 _ACEOF
15063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15065 # INIT-COMMANDS
15068 aros_host_exe_suffix=${aros_host_exe_suffix}
15069 aros_tools_dir=${aros_tools_dir}
15070 aros_target_cpu=${aros_target_cpu}
15071 aros_target_arch=${aros_target_arch}
15072 aros_target_suffix=${aros_target_suffix}
15073 orig_target_nm=${orig_target_nm}
15074 orig_target_as=${orig_target_as}
15075 orig_target_ar=${orig_target_ar}
15076 orig_target_ranlib=${orig_target_ranlib}
15077 orig_target_objdump=${orig_target_objdump}
15078 orig_target_objcopy=${orig_target_objcopy}
15079 orig_target_strip=${orig_target_strip}
15080 aros_kernel_ld=${aros_kernel_ld}
15083 aros_tools_dir=${aros_tools_dir}
15086 _ACEOF
15088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090 # Handling of arguments.
15091 for ac_config_target in $ac_config_targets
15093 case $ac_config_target in
15094 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15095 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15096 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15097 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15098 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15099 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15100 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15101 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15102 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15103 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15104 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15105 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15106 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15107 "${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" ;;
15108 "${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" ;;
15109 "${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" ;;
15110 "${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" ;;
15111 "${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" ;;
15112 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15113 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15114 "${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" ;;
15116 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15117 esac
15118 done
15121 # If the user did not use the arguments to specify the items to instantiate,
15122 # then the envvar interface is used. Set only those that are not.
15123 # We use the long form for the default assignment because of an extremely
15124 # bizarre bug on SunOS 4.1.3.
15125 if $ac_need_defaults; then
15126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15128 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15131 # Have a temporary directory for convenience. Make it in the build tree
15132 # simply because there is no reason against having it here, and in addition,
15133 # creating and moving files from /tmp can sometimes cause problems.
15134 # Hook for its removal unless debugging.
15135 # Note that there is a small window in which the directory will not be cleaned:
15136 # after its creation but before its name has been assigned to `$tmp'.
15137 $debug ||
15139 tmp= ac_tmp=
15140 trap 'exit_status=$?
15141 : "${ac_tmp:=$tmp}"
15142 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15144 trap 'as_fn_exit 1' 1 2 13 15
15146 # Create a (secure) tmp directory for tmp files.
15149 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15150 test -d "$tmp"
15151 } ||
15153 tmp=./conf$$-$RANDOM
15154 (umask 077 && mkdir "$tmp")
15155 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15156 ac_tmp=$tmp
15158 # Set up the scripts for CONFIG_FILES section.
15159 # No need to generate them if there are no CONFIG_FILES.
15160 # This happens for instance with `./config.status config.h'.
15161 if test -n "$CONFIG_FILES"; then
15164 ac_cr=`echo X | tr X '\015'`
15165 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15166 # But we know of no other shell where ac_cr would be empty at this
15167 # point, so we can use a bashism as a fallback.
15168 if test "x$ac_cr" = x; then
15169 eval ac_cr=\$\'\\r\'
15171 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15172 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15173 ac_cs_awk_cr='\\r'
15174 else
15175 ac_cs_awk_cr=$ac_cr
15178 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15179 _ACEOF
15183 echo "cat >conf$$subs.awk <<_ACEOF" &&
15184 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15185 echo "_ACEOF"
15186 } >conf$$subs.sh ||
15187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15188 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15189 ac_delim='%!_!# '
15190 for ac_last_try in false false false false false :; do
15191 . ./conf$$subs.sh ||
15192 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15194 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15195 if test $ac_delim_n = $ac_delim_num; then
15196 break
15197 elif $ac_last_try; then
15198 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15199 else
15200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15202 done
15203 rm -f conf$$subs.sh
15205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15207 _ACEOF
15208 sed -n '
15210 s/^/S["/; s/!.*/"]=/
15213 s/^[^!]*!//
15214 :repl
15215 t repl
15216 s/'"$ac_delim"'$//
15217 t delim
15220 s/\(.\{148\}\)..*/\1/
15221 t more1
15222 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15225 b repl
15226 :more1
15227 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15230 s/.\{148\}//
15231 t nl
15232 :delim
15234 s/\(.\{148\}\)..*/\1/
15235 t more2
15236 s/["\\]/\\&/g; s/^/"/; s/$/"/
15239 :more2
15240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15243 s/.\{148\}//
15244 t delim
15245 ' <conf$$subs.awk | sed '
15246 /^[^""]/{
15248 s/\n//
15250 ' >>$CONFIG_STATUS || ac_write_fail=1
15251 rm -f conf$$subs.awk
15252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15253 _ACAWK
15254 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15255 for (key in S) S_is_set[key] = 1
15256 FS = "\a"
15260 line = $ 0
15261 nfields = split(line, field, "@")
15262 substed = 0
15263 len = length(field[1])
15264 for (i = 2; i < nfields; i++) {
15265 key = field[i]
15266 keylen = length(key)
15267 if (S_is_set[key]) {
15268 value = S[key]
15269 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15270 len += length(value) + length(field[++i])
15271 substed = 1
15272 } else
15273 len += 1 + keylen
15276 print line
15279 _ACAWK
15280 _ACEOF
15281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15282 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15283 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15284 else
15286 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15287 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15288 _ACEOF
15290 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15291 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15292 # trailing colons and then remove the whole line if VPATH becomes empty
15293 # (actually we leave an empty line to preserve line numbers).
15294 if test "x$srcdir" = x.; then
15295 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15297 s///
15298 s/^/:/
15299 s/[ ]*$/:/
15300 s/:\$(srcdir):/:/g
15301 s/:\${srcdir}:/:/g
15302 s/:@srcdir@:/:/g
15303 s/^:*//
15304 s/:*$//
15306 s/\(=[ ]*\).*/\1/
15308 s/\n//
15309 s/^[^=]*=[ ]*$//
15313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15314 fi # test -n "$CONFIG_FILES"
15316 # Set up the scripts for CONFIG_HEADERS section.
15317 # No need to generate them if there are no CONFIG_HEADERS.
15318 # This happens for instance with `./config.status Makefile'.
15319 if test -n "$CONFIG_HEADERS"; then
15320 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15321 BEGIN {
15322 _ACEOF
15324 # Transform confdefs.h into an awk script `defines.awk', embedded as
15325 # here-document in config.status, that substitutes the proper values into
15326 # config.h.in to produce config.h.
15328 # Create a delimiter string that does not exist in confdefs.h, to ease
15329 # handling of long lines.
15330 ac_delim='%!_!# '
15331 for ac_last_try in false false :; do
15332 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15333 if test -z "$ac_tt"; then
15334 break
15335 elif $ac_last_try; then
15336 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15337 else
15338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15340 done
15342 # For the awk script, D is an array of macro values keyed by name,
15343 # likewise P contains macro parameters if any. Preserve backslash
15344 # newline sequences.
15346 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15347 sed -n '
15348 s/.\{148\}/&'"$ac_delim"'/g
15349 t rset
15350 :rset
15351 s/^[ ]*#[ ]*define[ ][ ]*/ /
15352 t def
15354 :def
15355 s/\\$//
15356 t bsnl
15357 s/["\\]/\\&/g
15358 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15359 D["\1"]=" \3"/p
15360 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15362 :bsnl
15363 s/["\\]/\\&/g
15364 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15365 D["\1"]=" \3\\\\\\n"\\/p
15366 t cont
15367 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15368 t cont
15370 :cont
15372 s/.\{148\}/&'"$ac_delim"'/g
15373 t clear
15374 :clear
15375 s/\\$//
15376 t bsnlc
15377 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15379 :bsnlc
15380 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15381 b cont
15382 ' <confdefs.h | sed '
15383 s/'"$ac_delim"'/"\\\
15384 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15387 for (key in D) D_is_set[key] = 1
15388 FS = "\a"
15390 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15391 line = \$ 0
15392 split(line, arg, " ")
15393 if (arg[1] == "#") {
15394 defundef = arg[2]
15395 mac1 = arg[3]
15396 } else {
15397 defundef = substr(arg[1], 2)
15398 mac1 = arg[2]
15400 split(mac1, mac2, "(") #)
15401 macro = mac2[1]
15402 prefix = substr(line, 1, index(line, defundef) - 1)
15403 if (D_is_set[macro]) {
15404 # Preserve the white space surrounding the "#".
15405 print prefix "define", macro P[macro] D[macro]
15406 next
15407 } else {
15408 # Replace #undef with comments. This is necessary, for example,
15409 # in the case of _POSIX_SOURCE, which is predefined and required
15410 # on some systems where configure will not decide to define it.
15411 if (defundef == "undef") {
15412 print "/*", prefix defundef, macro, "*/"
15413 next
15417 { print }
15418 _ACAWK
15419 _ACEOF
15420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15421 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15422 fi # test -n "$CONFIG_HEADERS"
15425 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15426 shift
15427 for ac_tag
15429 case $ac_tag in
15430 :[FHLC]) ac_mode=$ac_tag; continue;;
15431 esac
15432 case $ac_mode$ac_tag in
15433 :[FHL]*:*);;
15434 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15435 :[FH]-) ac_tag=-:-;;
15436 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15437 esac
15438 ac_save_IFS=$IFS
15439 IFS=:
15440 set x $ac_tag
15441 IFS=$ac_save_IFS
15442 shift
15443 ac_file=$1
15444 shift
15446 case $ac_mode in
15447 :L) ac_source=$1;;
15448 :[FH])
15449 ac_file_inputs=
15450 for ac_f
15452 case $ac_f in
15453 -) ac_f="$ac_tmp/stdin";;
15454 *) # Look for the file first in the build tree, then in the source tree
15455 # (if the path is not absolute). The absolute path cannot be DOS-style,
15456 # because $ac_f cannot contain `:'.
15457 test -f "$ac_f" ||
15458 case $ac_f in
15459 [\\/$]*) false;;
15460 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15461 esac ||
15462 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15463 esac
15464 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15465 as_fn_append ac_file_inputs " '$ac_f'"
15466 done
15468 # Let's still pretend it is `configure' which instantiates (i.e., don't
15469 # use $as_me), people would be surprised to read:
15470 # /* config.h. Generated by config.status. */
15471 configure_input='Generated from '`
15472 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15473 `' by configure.'
15474 if test x"$ac_file" != x-; then
15475 configure_input="$ac_file. $configure_input"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15477 $as_echo "$as_me: creating $ac_file" >&6;}
15479 # Neutralize special characters interpreted by sed in replacement strings.
15480 case $configure_input in #(
15481 *\&* | *\|* | *\\* )
15482 ac_sed_conf_input=`$as_echo "$configure_input" |
15483 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15484 *) ac_sed_conf_input=$configure_input;;
15485 esac
15487 case $ac_tag in
15488 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15490 esac
15492 esac
15494 ac_dir=`$as_dirname -- "$ac_file" ||
15495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15496 X"$ac_file" : 'X\(//\)[^/]' \| \
15497 X"$ac_file" : 'X\(//\)$' \| \
15498 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15499 $as_echo X"$ac_file" |
15500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15501 s//\1/
15504 /^X\(\/\/\)[^/].*/{
15505 s//\1/
15508 /^X\(\/\/\)$/{
15509 s//\1/
15512 /^X\(\/\).*/{
15513 s//\1/
15516 s/.*/./; q'`
15517 as_dir="$ac_dir"; as_fn_mkdir_p
15518 ac_builddir=.
15520 case "$ac_dir" in
15521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15524 # A ".." for each directory in $ac_dir_suffix.
15525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15526 case $ac_top_builddir_sub in
15527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15529 esac ;;
15530 esac
15531 ac_abs_top_builddir=$ac_pwd
15532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15533 # for backward compatibility:
15534 ac_top_builddir=$ac_top_build_prefix
15536 case $srcdir in
15537 .) # We are building in place.
15538 ac_srcdir=.
15539 ac_top_srcdir=$ac_top_builddir_sub
15540 ac_abs_top_srcdir=$ac_pwd ;;
15541 [\\/]* | ?:[\\/]* ) # Absolute name.
15542 ac_srcdir=$srcdir$ac_dir_suffix;
15543 ac_top_srcdir=$srcdir
15544 ac_abs_top_srcdir=$srcdir ;;
15545 *) # Relative name.
15546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15547 ac_top_srcdir=$ac_top_build_prefix$srcdir
15548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15549 esac
15550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15553 case $ac_mode in
15556 # CONFIG_FILE
15559 _ACEOF
15561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15562 # If the template does not know about datarootdir, expand it.
15563 # FIXME: This hack should be removed a few years after 2.60.
15564 ac_datarootdir_hack=; ac_datarootdir_seen=
15565 ac_sed_dataroot='
15566 /datarootdir/ {
15570 /@datadir@/p
15571 /@docdir@/p
15572 /@infodir@/p
15573 /@localedir@/p
15574 /@mandir@/p'
15575 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15576 *datarootdir*) ac_datarootdir_seen=yes;;
15577 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15579 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15580 _ACEOF
15581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15582 ac_datarootdir_hack='
15583 s&@datadir@&$datadir&g
15584 s&@docdir@&$docdir&g
15585 s&@infodir@&$infodir&g
15586 s&@localedir@&$localedir&g
15587 s&@mandir@&$mandir&g
15588 s&\\\${datarootdir}&$datarootdir&g' ;;
15589 esac
15590 _ACEOF
15592 # Neutralize VPATH when `$srcdir' = `.'.
15593 # Shell code in configure.ac might set extrasub.
15594 # FIXME: do we really want to maintain this feature?
15595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15596 ac_sed_extra="$ac_vpsub
15597 $extrasub
15598 _ACEOF
15599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15602 s|@configure_input@|$ac_sed_conf_input|;t t
15603 s&@top_builddir@&$ac_top_builddir_sub&;t t
15604 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15605 s&@srcdir@&$ac_srcdir&;t t
15606 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15607 s&@top_srcdir@&$ac_top_srcdir&;t t
15608 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15609 s&@builddir@&$ac_builddir&;t t
15610 s&@abs_builddir@&$ac_abs_builddir&;t t
15611 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15612 $ac_datarootdir_hack
15614 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15615 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15618 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15620 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15622 which seems to be undefined. Please make sure it is defined" >&5
15623 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15624 which seems to be undefined. Please make sure it is defined" >&2;}
15626 rm -f "$ac_tmp/stdin"
15627 case $ac_file in
15628 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15629 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15630 esac \
15631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15635 # CONFIG_HEADER
15637 if test x"$ac_file" != x-; then
15639 $as_echo "/* $configure_input */" \
15640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15641 } >"$ac_tmp/config.h" \
15642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15643 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15645 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15646 else
15647 rm -f "$ac_file"
15648 mv "$ac_tmp/config.h" "$ac_file" \
15649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15651 else
15652 $as_echo "/* $configure_input */" \
15653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15654 || as_fn_error $? "could not create -" "$LINENO" 5
15658 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15659 $as_echo "$as_me: executing $ac_file commands" >&6;}
15661 esac
15664 case $ac_file$ac_mode in
15665 "compiler_executable":C)
15666 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15667 mkdir -p $prefix
15668 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15669 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15671 echo ${prefix2}
15672 echo ${prefix3}
15673 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15675 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15676 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15677 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15678 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15679 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15680 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15681 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15683 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15685 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15687 esac
15688 done # for ac_tag
15691 as_fn_exit 0
15692 _ACEOF
15693 ac_clean_files=$ac_clean_files_save
15695 test $ac_write_fail = 0 ||
15696 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15699 # configure is writing to config.log, and then calls config.status.
15700 # config.status does its own redirection, appending to config.log.
15701 # Unfortunately, on DOS this fails, as config.log is still kept open
15702 # by configure, so config.status won't be able to write to it; its
15703 # output is simply discarded. So we exec the FD to /dev/null,
15704 # effectively closing config.log, so it can be properly (re)opened and
15705 # appended to by config.status. When coming back to configure, we
15706 # need to make the FD available again.
15707 if test "$no_create" != yes; then
15708 ac_cs_success=:
15709 ac_config_status_args=
15710 test "$silent" = yes &&
15711 ac_config_status_args="$ac_config_status_args --quiet"
15712 exec 5>/dev/null
15713 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15714 exec 5>>config.log
15715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15716 # would make configure fail if this is the last instruction.
15717 $ac_cs_success || as_fn_exit 1
15719 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15721 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15726 #XXX compatability...
15727 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15729 if test -n "$aros_shared_cflags" ; then
15730 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15731 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg