only update affected area of bitmap
[AROS.git] / configure
blob7f07489cc8814fa21de6cff08b336a1ae2ea0999
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 aros_usb30_code
605 objc_target
606 gcc_target_cpu
607 ignore_undefined_symbols
608 aros_modules_debug
609 aros_stack_debug
610 aros_mungwall_debug
611 aros_debug
612 ENABLE_X11
613 KERNEL_DBUS_INCLUDES
614 KERNEL_DBUS_KOBJ
615 DBUS_LIBFLAGS
616 DBUS_CFLAGS
617 ENABLE_DBUS
618 aros_android_level
619 gcc_default_float_abi
620 gcc_default_fpu
621 gcc_default_cpu_tune
622 gcc_default_cpu
623 aros_ios_sdk
624 aros_ios_version
625 aros_ios_platform
626 aros_enable_mmu
627 aros_nesting_supervisor
628 aros_palm_debug_hack
629 aros_serial_debug
630 aros_host_sdl_libs
631 aros_host_sdl_cflags
632 aros_host_x11_libdirs
633 aros_host_x11_includes
634 DO_VIDMODE_SUPPORT
635 DO_XSHM_SUPPORT
636 aros_default_wbdepth
637 aros_default_wbheight
638 aros_default_wbwidth
639 oss_library_target
640 pci_hidd_target
641 sdl_hidd_target
642 x11_hidd_target
643 aros_cflags_format_security
644 aros_cflags_strict_overflow
645 aros_cflags_enum_compare
646 aros_cflags_array_bounds
647 aros_cflags_unused_but_set_variable
648 crosstools_cxx_target
649 crosstools_target
650 aros_target_strip_flags
651 aros_target_genmap
652 aros_debug_ldflags
653 aros_debug_aflags
654 aros_debug_cflags
655 aros_target_cflags
656 aros_kernel_ldflags
657 aros_kernel_objcflags
658 aros_kernel_includes
659 aros_kernel_cflags
660 aros_shared_ldflags
661 aros_shared_aflags
662 aros_shared_cflags
663 aros_config_ldflags
664 aros_config_aflags
665 aros_config_cflags
666 aros_arch_libs
667 aros_compiler_libs
668 aros_object_format
669 aros_shared_ld
670 aros_shared_default
671 aros_target_nm
672 aros_target_strip
673 aros_target_objcopy
674 aros_target_objdump
675 aros_target_cc_path
676 aros_target_cc_includes
677 aros_target_ld
678 aros_target_as
679 aros_target_cpp
680 aros_target_cxx
681 aros_target_cc
682 aros_plain_ar
683 aros_plain_nm
684 aros_target_ranlib
685 aros_target_ar
686 aros_target_suffix
687 aros_target_variant
688 aros_target_cpu
689 aros_target_family
690 aros_target_arch
691 aros_target_bootloader
692 aros_target_iconset
693 aros_target_guitheme
694 aros_tools_dir
695 aros_host_lib_suffix
696 aros_host_exe_suffix
697 aros_host_mkargs
698 aros_host_mkdep
699 aros_host_debug
700 aros_host_ldflags
701 gnu89_inline
702 aros_host_cxxflags
703 aros_host_cflags
704 aros_host_make
705 aros_host_cxx
706 aros_host_cc
707 aros_host_cpp
708 aros_host_cpu
709 aros_host_arch
710 aros_cc_pre
711 aros_amigaos_compliance
712 AROS_PORTSSRCDIR
713 AROS_CROSSTOOLSDIR
714 SRCDIR
715 AROS_BUILDDIR_UNIX
716 AROS_BUILDDIR
717 aros_target_toolchain
718 aros_flavour_uc
719 aros_flavour
720 aros_cpu
721 aros_arch
722 SDL_LIBS
723 SDL_CFLAGS
724 SDL_CONFIG
725 XMKMF
726 aros_cflags_iquote_end
727 aros_cflags_iquote
728 kernel_cflags_iquote_end
729 kernel_cflags_iquote
730 host_cflags_iquote_end
731 host_cflags_iquote
732 aros_target_nostdlib_ldflags
733 aros_target_detach_ldflags
734 aros_target_nix_ldflags
735 aros_target_nostartup_ldflags
736 aros_target_nostdinc_cflags
737 aros_kernel_rescomp
738 orig_target_objdump
739 orig_target_objcopy
740 orig_target_strip
741 orig_target_nm
742 orig_target_ranlib
743 orig_target_ar
744 orig_target_as
745 orig_target_ld
746 orig_target_cxx
747 orig_target_cc
748 orig_target_cpp
749 aros_kernel_objdump
750 aros_kernel_objcopy
751 aros_kernel_strip
752 aros_kernel_nm
753 aros_kernel_ranlib
754 aros_kernel_ar
755 aros_kernel_as
756 aros_kernel_ld
757 aros_kernel_cxx
758 aros_kernel_cc
759 aros_kernel_cpp
761 android_tool
762 CCACHE
763 DISTCC
764 LIBOBJS
765 EGREP
766 GREP
768 TEST
771 pkgpyexecdir
772 pyexecdir
773 pkgpythondir
774 pythondir
775 PYTHON_PLATFORM
776 PYTHON_EXEC_PREFIX
777 PYTHON_PREFIX
778 PYTHON_VERSION
779 PYTHON
780 PATCH
781 CHMOD
783 PPMTOILBM
784 PNGTOPNM
785 FLEX
786 BISON
789 UNIQ
790 SORT
791 TOUCH
792 MKDIR
793 ECHO
797 aros_host_strip
798 aros_host_ranlib
799 aros_host_ar
800 aros_host_automake
801 aros_host_autoheader
802 aros_host_autoconf
803 aros_host_aclocal
804 aros_host_ld
805 MMAKE
808 ac_ct_CC
809 CFLAGS
811 OBJEXT
812 EXEEXT
813 ac_ct_CXX
814 CPPFLAGS
815 LDFLAGS
816 CXXFLAGS
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_build_type
868 enable_debug
869 enable_distcc
870 enable_ccache
871 with_kernel_gcc_version
872 with_gcc_version
873 with_optimization
874 with_paranoia
875 enable_target_variant
876 with_xcode
877 with_sdk_version
878 with_sdk
879 with_ndk
880 with_ndk_version
881 enable_amigaos_compliance
882 with_kernel_toolchain_prefix
883 with_elf_toolchain_prefix
884 with_aros_toolchain
885 enable_crosstools
886 with_aros_toolchain_install
887 enable_objc
888 with_cpu
889 with_fpu
890 with_float
891 with_portssources
892 with_bootloader
893 with_iconset
894 with_theme
895 enable_includes
896 with_resolution
897 with_serial_debug
898 enable_palm_debug_hack
899 enable_usb30_code
900 enable_nesting_supervisor
901 enable_mmu
902 enable_x11_hidd
903 with_x
904 enable_x11_shm
905 enable_x11_vidmode
906 enable_sdl_hidd
907 with_sdl_prefix
908 with_sdl_exec_prefix
909 enable_sdltest
910 enable_dbus
912 ac_precious_vars='build_alias
913 host_alias
914 target_alias
916 CXXFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
922 CFLAGS
924 PYTHON
925 XMKMF'
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 ac_unrecognized_opts=
932 ac_unrecognized_sep=
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
935 cache_file=/dev/null
936 exec_prefix=NONE
937 no_create=
938 no_recursion=
939 prefix=NONE
940 program_prefix=NONE
941 program_suffix=NONE
942 program_transform_name=s,x,x,
943 silent=
944 site=
945 srcdir=
946 verbose=
947 x_includes=NONE
948 x_libraries=NONE
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE}'
967 infodir='${datarootdir}/info'
968 htmldir='${docdir}'
969 dvidir='${docdir}'
970 pdfdir='${docdir}'
971 psdir='${docdir}'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
976 ac_prev=
977 ac_dashdash=
978 for ac_option
980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
982 eval $ac_prev=\$ac_option
983 ac_prev=
984 continue
987 case $ac_option in
988 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 *=) ac_optarg= ;;
990 *) ac_optarg=yes ;;
991 esac
993 # Accept the important Cygnus configure options, so we can diagnose typos.
995 case $ac_dashdash$ac_option in
997 ac_dashdash=yes ;;
999 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000 ac_prev=bindir ;;
1001 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1002 bindir=$ac_optarg ;;
1004 -build | --build | --buil | --bui | --bu)
1005 ac_prev=build_alias ;;
1006 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1007 build_alias=$ac_optarg ;;
1009 -cache-file | --cache-file | --cache-fil | --cache-fi \
1010 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011 ac_prev=cache_file ;;
1012 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1014 cache_file=$ac_optarg ;;
1016 --config-cache | -C)
1017 cache_file=config.cache ;;
1019 -datadir | --datadir | --datadi | --datad)
1020 ac_prev=datadir ;;
1021 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1022 datadir=$ac_optarg ;;
1024 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025 | --dataroo | --dataro | --datar)
1026 ac_prev=datarootdir ;;
1027 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029 datarootdir=$ac_optarg ;;
1031 -disable-* | --disable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=no ;;
1047 -docdir | --docdir | --docdi | --doc | --do)
1048 ac_prev=docdir ;;
1049 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050 docdir=$ac_optarg ;;
1052 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 ac_prev=dvidir ;;
1054 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055 dvidir=$ac_optarg ;;
1057 -enable-* | --enable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error $? "invalid feature name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1066 "enable_$ac_useropt"
1067 "*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=\$ac_optarg ;;
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1084 with_gas=yes ;;
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 ac_prev=htmldir ;;
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 | --ht=*)
1102 htmldir=$ac_optarg ;;
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 ac_prev=infodir ;;
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1116 -libdir | --libdir | --libdi | --libd)
1117 ac_prev=libdir ;;
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 ac_prev=mandir ;;
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1147 with_fp=no ;;
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1151 no_create=yes ;;
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 no_recursion=yes ;;
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 ac_prev=prefix ;;
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 ac_prev=pdfdir ;;
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1207 -psdir | --psdir | --psdi | --psd | --ps)
1208 ac_prev=psdir ;;
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 psdir=$ac_optarg ;;
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 silent=yes ;;
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1261 -with-* | --with-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=\$ac_optarg ;;
1277 -without-* | --without-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error $? "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=no ;;
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1311 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1312 Try \`$0 --help' for more information"
1315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 case $ac_envvar in #(
1319 '' | [0-9]* | *[!_$as_cr_alnum]* )
1320 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1321 esac
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1326 # FIXME: should be removed in autoconf 3.0.
1327 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1333 esac
1334 done
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 as_fn_error $? "missing argument to $ac_option"
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1343 no) ;;
1344 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 esac
1349 # Check all directory arguments for consistency.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
1357 case $ac_val in
1358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1361 esac
1362 # Be sure to have absolute directory names.
1363 case $ac_val in
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 esac
1367 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1368 done
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used" >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 as_fn_error $? "working directory cannot be determined"
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 as_fn_error $? "pwd does not report name of working directory"
1402 # Find the source files, if location was not specified.
1403 if test -z "$srcdir"; then
1404 ac_srcdir_defaulted=yes
1405 # Try the directory containing this script, then the parent directory.
1406 ac_confdir=`$as_dirname -- "$as_myself" ||
1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408 X"$as_myself" : 'X\(//\)[^/]' \| \
1409 X"$as_myself" : 'X\(//\)$' \| \
1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411 $as_echo X"$as_myself" |
1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 s//\1/
1416 /^X\(\/\/\)[^/].*/{
1417 s//\1/
1420 /^X\(\/\/\)$/{
1421 s//\1/
1424 /^X\(\/\).*/{
1425 s//\1/
1428 s/.*/./; q'`
1429 srcdir=$ac_confdir
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 srcdir=..
1433 else
1434 ac_srcdir_defaulted=no
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 ac_abs_confdir=`(
1442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443 pwd)`
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 srcdir=.
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1451 case $srcdir in
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 esac
1454 for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 done
1462 # Report the --help message.
1464 if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1467 cat <<_ACEOF
1468 \`configure' configures this package to adapt to many kinds of systems.
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE. See below for descriptions of some of the useful variables.
1475 Defaults for the options are specified in brackets.
1477 Configuration:
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
1482 -q, --quiet, --silent do not print \`checking ...' messages
1483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488 Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
1490 [$ac_default_prefix]
1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1492 [PREFIX]
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1499 For better control, use the options below.
1501 Fine tuning of the installation directories:
1502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1521 _ACEOF
1523 cat <<\_ACEOF
1525 X features:
1526 --x-includes=DIR X include files are in DIR
1527 --x-libraries=DIR X library files are in DIR
1529 System types:
1530 --build=BUILD configure for building on BUILD [guessed]
1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1532 _ACEOF
1535 if test -n "$ac_init_help"; then
1537 cat <<\_ACEOF
1539 Optional Features:
1540 --disable-option-checking ignore unrecognized --enable/--with options
1541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1543 --enable-build-type=TYPE
1544 Select the build type. Available types are:
1545 personal, nightly, snapshot, milestone, release. Do
1546 NOT use this option unless you know what you are
1547 doing! (default=personal)
1548 --enable-debug=list Enable different types of debug. Commas or
1549 whitespaces can be used to separate the items in the
1550 list. Available types of debug are: all, none,
1551 messages, stack, mungwall, modules, symbols. If no
1552 list is provided then "all" is assumed.
1553 (default=none)
1554 --enable-distcc Use distcc as a front end to the compiler
1555 (default=no).
1556 --enable-ccache Use ccache as a front end to the compiler
1557 (default=no).
1558 --enable-target-variant=NAME
1559 Enable a specific target variant(default=none)
1560 --enable-amigaos-compliance=VERSION
1561 Enforce userspace AmigaOS compliance to a specific
1562 KickStart version (default=none).
1563 --disable-crosstools Do not build cross-compiler toolchain
1564 --disable-objc Build without Objectve-C support
1565 --enable-includes=dir Alternative system include directory
1566 --enable-palm-debug-hack
1567 Enable palm debug output hack in palm native
1568 (default=no)
1569 --enable-usb30-code Enable usb3.0 code (default=no)
1570 --enable-nesting-supervisor
1571 Enable nesting supervisor support in unix
1572 (default=no)
1573 --disable-mmu Disable MMU support (default=enabled)
1574 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1575 --enable-x11-shm use X11 shared memory (default=auto)
1576 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1577 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1578 --disable-sdltest Do not try to compile and run a test SDL program
1579 --enable-dbus Enable DBUS support via dbus.library (default=no)
1581 Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-kernel-gcc-version=VERSION
1585 Use gcc-VERSION for building bootstrap
1586 --with-gcc-version=VERSION
1587 Use gcc-VERSION for building AROS
1588 --with-optimization=FLAGS
1589 Use optimization flags FLAGS (default=-O2).
1590 --with-paranoia=FLAGS CC flags to enable paranoia
1591 --with-xcode=PATH Specify XCode path for iOS targets
1592 (default=/Developer).
1593 --with-sdk-version=VERSION
1594 Use iOS SDK version VERSION (default=4.1).
1595 --with-sdk=PATH Specify Android SDK path
1596 (default=$default_android_sdk).
1597 --with-ndk=PATH Specify Android NDK path (default=none).
1598 --with-sdk-version=LEVEL
1599 Use Android SDK for API LEVEL (default=12).
1600 --with-ndk-version=LEVEL
1601 Use Android NDK for API LEVEL (default=9).
1602 --with-kernel-toolchain-prefix=...
1603 Specify crosscompile toolchain prefix for kernel
1604 objects
1605 --with-elf-toolchain-prefix=...
1606 Specify crosscompile toolchain prefix to wrap for
1607 AROS objects
1608 --with-aros-toolchain=PREFIX
1609 Specify prebuilt AROS toolchain
1610 --with-aros-toolchain-install=DIR
1611 Where to install or search for cross tools binaries
1612 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1613 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1614 --with-float=<spec> Specify floating point ABI
1615 (default=$gcc_default_float_abi).
1616 --with-portssources=DIR Where to download sourcecode for external ports
1617 --with-bootloader=NAME Use a specific bootloader
1618 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1619 --with-theme=NAME Use a specific GUI Theme
1620 --with-resolution=XRESxYRESxDEPTH
1621 Default resolution of the initial WorkbenchScreen
1622 --with-serial-debug Enable serial debug output in native (default=no)
1623 --with-x use the X Window System
1624 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1625 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1627 Some influential environment variables:
1628 CXX C++ compiler command
1629 CXXFLAGS C++ compiler flags
1630 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1631 nonstandard directory <lib dir>
1632 LIBS libraries to pass to the linker, e.g. -l<library>
1633 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1634 you have headers in a nonstandard directory <include dir>
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 CPP C preprocessor
1638 PYTHON the Python interpreter
1639 XMKMF Path to xmkmf, Makefile generator for X Window System
1641 Use these variables to override the choices made by `configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1644 Report bugs to the package provider.
1645 _ACEOF
1646 ac_status=$?
1649 if test "$ac_init_help" = "recursive"; then
1650 # If there are subdirs, report their specific --help.
1651 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652 test -d "$ac_dir" ||
1653 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654 continue
1655 ac_builddir=.
1657 case "$ac_dir" in
1658 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1661 # A ".." for each directory in $ac_dir_suffix.
1662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1663 case $ac_top_builddir_sub in
1664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1666 esac ;;
1667 esac
1668 ac_abs_top_builddir=$ac_pwd
1669 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1670 # for backward compatibility:
1671 ac_top_builddir=$ac_top_build_prefix
1673 case $srcdir in
1674 .) # We are building in place.
1675 ac_srcdir=.
1676 ac_top_srcdir=$ac_top_builddir_sub
1677 ac_abs_top_srcdir=$ac_pwd ;;
1678 [\\/]* | ?:[\\/]* ) # Absolute name.
1679 ac_srcdir=$srcdir$ac_dir_suffix;
1680 ac_top_srcdir=$srcdir
1681 ac_abs_top_srcdir=$srcdir ;;
1682 *) # Relative name.
1683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1684 ac_top_srcdir=$ac_top_build_prefix$srcdir
1685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1686 esac
1687 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689 cd "$ac_dir" || { ac_status=$?; continue; }
1690 # Check for guested configure.
1691 if test -f "$ac_srcdir/configure.gnu"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1694 elif test -f "$ac_srcdir/configure"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure" --help=recursive
1697 else
1698 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1699 fi || ac_status=$?
1700 cd "$ac_pwd" || { ac_status=$?; break; }
1701 done
1704 test -n "$ac_init_help" && exit $ac_status
1705 if $ac_init_version; then
1706 cat <<\_ACEOF
1707 configure
1708 generated by GNU Autoconf 2.68
1710 Copyright (C) 2010 Free Software Foundation, Inc.
1711 This configure script is free software; the Free Software Foundation
1712 gives unlimited permission to copy, distribute and modify it.
1713 _ACEOF
1714 exit
1717 ## ------------------------ ##
1718 ## Autoconf initialization. ##
1719 ## ------------------------ ##
1721 # ac_fn_cxx_try_compile LINENO
1722 # ----------------------------
1723 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_cxx_try_compile ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext
1728 if { { ac_try="$ac_compile"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_compile") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_cxx_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest.$ac_objext; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=1
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1757 } # ac_fn_cxx_try_compile
1759 # ac_fn_c_try_compile LINENO
1760 # --------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext
1766 if { { ac_try="$ac_compile"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_compile") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest.$ac_objext; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=1
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1795 } # ac_fn_c_try_compile
1797 # ac_fn_c_try_cpp LINENO
1798 # ----------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_cpp ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } > conftest.i && {
1819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_cpp
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_link ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1878 } # ac_fn_c_try_link
1880 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883 # the include files in INCLUDES and setting the cache variable VAR
1884 # accordingly.
1885 ac_fn_c_check_header_mongrel ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if eval \${$3+:} false; then :
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 else
1898 # Is the header compilable?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900 $as_echo_n "checking $2 usability... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 ac_header_compiler=yes
1908 else
1909 ac_header_compiler=no
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913 $as_echo "$ac_header_compiler" >&6; }
1915 # Is the header present?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917 $as_echo_n "checking $2 presence... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_cpp "$LINENO"; then :
1923 ac_header_preproc=yes
1924 else
1925 ac_header_preproc=no
1927 rm -f conftest.err conftest.i conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929 $as_echo "$ac_header_preproc" >&6; }
1931 # So? What about this header?
1932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 yes:no: )
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 no:yes:* )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1943 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1947 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951 esac
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 eval "$3=\$ac_header_compiler"
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 } # ac_fn_c_check_header_mongrel
1967 # ac_fn_c_try_run LINENO
1968 # ----------------------
1969 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1970 # that executables *can* be run.
1971 ac_fn_c_try_run ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if { { ac_try="$ac_link"
1975 case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978 esac
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_link") 2>&5
1982 ac_status=$?
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1985 { { case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_try") 2>&5
1992 ac_status=$?
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; }; }; then :
1995 ac_retval=0
1996 else
1997 $as_echo "$as_me: program exited with status $ac_status" >&5
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 ac_retval=$ac_status
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2007 } # ac_fn_c_try_run
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2020 else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$3=yes"
2028 else
2029 eval "$3=no"
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 } # ac_fn_c_check_header_compile
2040 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2041 # ----------------------------------------------------
2042 # Tries to find if the field MEMBER exists in type AGGR, after including
2043 # INCLUDES, setting cache variable VAR accordingly.
2044 ac_fn_c_check_member ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2048 $as_echo_n "checking for $2.$3... " >&6; }
2049 if eval \${$4+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2056 main ()
2058 static $2 ac_aggr;
2059 if (ac_aggr.$3)
2060 return 0;
2062 return 0;
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 eval "$4=yes"
2067 else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2072 main ()
2074 static $2 ac_aggr;
2075 if (sizeof ac_aggr.$3)
2076 return 0;
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 eval "$4=yes"
2083 else
2084 eval "$4=no"
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 eval ac_res=\$$4
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_member
2097 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2098 # ---------------------------------------------
2099 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2100 # accordingly.
2101 ac_fn_c_check_decl ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 as_decl_name=`echo $2|sed 's/ *(.*//'`
2105 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2107 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2108 if eval \${$3+:} false; then :
2109 $as_echo_n "(cached) " >&6
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2115 main ()
2117 #ifndef $as_decl_name
2118 #ifdef __cplusplus
2119 (void) $as_decl_use;
2120 #else
2121 (void) $as_decl_name;
2122 #endif
2123 #endif
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 eval "$3=yes"
2131 else
2132 eval "$3=no"
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 } # ac_fn_c_check_decl
2143 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2144 # -------------------------------------------
2145 # Tests whether TYPE exists after having included INCLUDES, setting cache
2146 # variable VAR accordingly.
2147 ac_fn_c_check_type ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151 $as_echo_n "checking for $2... " >&6; }
2152 if eval \${$3+:} false; then :
2153 $as_echo_n "(cached) " >&6
2154 else
2155 eval "$3=no"
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 if (sizeof ($2))
2163 return 0;
2165 return 0;
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2173 main ()
2175 if (sizeof (($2)))
2176 return 0;
2178 return 0;
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2183 else
2184 eval "$3=yes"
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 eval ac_res=\$$3
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195 } # ac_fn_c_check_type
2197 # ac_fn_c_check_func LINENO FUNC VAR
2198 # ----------------------------------
2199 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2200 ac_fn_c_check_func ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if eval \${$3+:} false; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2212 #define $2 innocuous_$2
2214 /* System header to define __stub macros and hopefully few prototypes,
2215 which can conflict with char $2 (); below.
2216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2217 <limits.h> exists even on freestanding compilers. */
2219 #ifdef __STDC__
2220 # include <limits.h>
2221 #else
2222 # include <assert.h>
2223 #endif
2225 #undef $2
2227 /* Override any GCC internal prototype to avoid an error.
2228 Use char because int might match the return type of a GCC
2229 builtin and then its argument prototype would still apply. */
2230 #ifdef __cplusplus
2231 extern "C"
2232 #endif
2233 char $2 ();
2234 /* The GNU C library defines this for functions which it implements
2235 to always fail with ENOSYS. Some functions are actually named
2236 something starting with __ and the normal name is an alias. */
2237 #if defined __stub_$2 || defined __stub___$2
2238 choke me
2239 #endif
2242 main ()
2244 return $2 ();
2246 return 0;
2248 _ACEOF
2249 if ac_fn_c_try_link "$LINENO"; then :
2250 eval "$3=yes"
2251 else
2252 eval "$3=no"
2254 rm -f core conftest.err conftest.$ac_objext \
2255 conftest$ac_exeext conftest.$ac_ext
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 } # ac_fn_c_check_func
2263 cat >config.log <<_ACEOF
2264 This file contains any messages produced by compilers while
2265 running configure, to aid debugging if configure makes a mistake.
2267 It was created by $as_me, which was
2268 generated by GNU Autoconf 2.68. Invocation command line was
2270 $ $0 $@
2272 _ACEOF
2273 exec 5>>config.log
2275 cat <<_ASUNAME
2276 ## --------- ##
2277 ## Platform. ##
2278 ## --------- ##
2280 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2281 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2282 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2283 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2284 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2286 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2287 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2289 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2290 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2291 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2292 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2293 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2294 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2295 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2297 _ASUNAME
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 $as_echo "PATH: $as_dir"
2305 done
2306 IFS=$as_save_IFS
2308 } >&5
2310 cat >&5 <<_ACEOF
2313 ## ----------- ##
2314 ## Core tests. ##
2315 ## ----------- ##
2317 _ACEOF
2320 # Keep a trace of the command line.
2321 # Strip out --no-create and --no-recursion so they do not pile up.
2322 # Strip out --silent because we don't want to record it for future runs.
2323 # Also quote any args containing shell meta-characters.
2324 # Make two passes to allow for proper duplicate-argument suppression.
2325 ac_configure_args=
2326 ac_configure_args0=
2327 ac_configure_args1=
2328 ac_must_keep_next=false
2329 for ac_pass in 1 2
2331 for ac_arg
2333 case $ac_arg in
2334 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2336 | -silent | --silent | --silen | --sile | --sil)
2337 continue ;;
2338 *\'*)
2339 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2340 esac
2341 case $ac_pass in
2342 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2344 as_fn_append ac_configure_args1 " '$ac_arg'"
2345 if test $ac_must_keep_next = true; then
2346 ac_must_keep_next=false # Got value, back to normal.
2347 else
2348 case $ac_arg in
2349 *=* | --config-cache | -C | -disable-* | --disable-* \
2350 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2351 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2352 | -with-* | --with-* | -without-* | --without-* | --x)
2353 case "$ac_configure_args0 " in
2354 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2355 esac
2357 -* ) ac_must_keep_next=true ;;
2358 esac
2360 as_fn_append ac_configure_args " '$ac_arg'"
2362 esac
2363 done
2364 done
2365 { ac_configure_args0=; unset ac_configure_args0;}
2366 { ac_configure_args1=; unset ac_configure_args1;}
2368 # When interrupted or exit'd, cleanup temporary files, and complete
2369 # config.log. We remove comments because anyway the quotes in there
2370 # would cause problems or look ugly.
2371 # WARNING: Use '\'' to represent an apostrophe within the trap.
2372 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2373 trap 'exit_status=$?
2374 # Save into config.log some information that might help in debugging.
2376 echo
2378 $as_echo "## ---------------- ##
2379 ## Cache variables. ##
2380 ## ---------------- ##"
2381 echo
2382 # The following way of writing the cache mishandles newlines in values,
2384 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2385 eval ac_val=\$$ac_var
2386 case $ac_val in #(
2387 *${as_nl}*)
2388 case $ac_var in #(
2389 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2390 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2391 esac
2392 case $ac_var in #(
2393 _ | IFS | as_nl) ;; #(
2394 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2395 *) { eval $ac_var=; unset $ac_var;} ;;
2396 esac ;;
2397 esac
2398 done
2399 (set) 2>&1 |
2400 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2401 *${as_nl}ac_space=\ *)
2402 sed -n \
2403 "s/'\''/'\''\\\\'\'''\''/g;
2404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2405 ;; #(
2407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2409 esac |
2410 sort
2412 echo
2414 $as_echo "## ----------------- ##
2415 ## Output variables. ##
2416 ## ----------------- ##"
2417 echo
2418 for ac_var in $ac_subst_vars
2420 eval ac_val=\$$ac_var
2421 case $ac_val in
2422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423 esac
2424 $as_echo "$ac_var='\''$ac_val'\''"
2425 done | sort
2426 echo
2428 if test -n "$ac_subst_files"; then
2429 $as_echo "## ------------------- ##
2430 ## File substitutions. ##
2431 ## ------------------- ##"
2432 echo
2433 for ac_var in $ac_subst_files
2435 eval ac_val=\$$ac_var
2436 case $ac_val in
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 esac
2439 $as_echo "$ac_var='\''$ac_val'\''"
2440 done | sort
2441 echo
2444 if test -s confdefs.h; then
2445 $as_echo "## ----------- ##
2446 ## confdefs.h. ##
2447 ## ----------- ##"
2448 echo
2449 cat confdefs.h
2450 echo
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2455 } >&5
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 exit $exit_status
2460 for ac_signal in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 done
2463 ac_signal=0
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest* confdefs.h
2468 $as_echo "/* confdefs.h */" > confdefs.h
2470 # Predefined preprocessor variables.
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 _ACEOF
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2494 _ACEOF
2497 # Let the site file select an alternate cache file if it wants to.
2498 # Prefer an explicitly selected file to automatically selected ones.
2499 ac_site_file1=NONE
2500 ac_site_file2=NONE
2501 if test -n "$CONFIG_SITE"; then
2502 # We do not want a PATH search for config.site.
2503 case $CONFIG_SITE in #((
2504 -*) ac_site_file1=./$CONFIG_SITE;;
2505 */*) ac_site_file1=$CONFIG_SITE;;
2506 *) ac_site_file1=./$CONFIG_SITE;;
2507 esac
2508 elif test "x$prefix" != xNONE; then
2509 ac_site_file1=$prefix/share/config.site
2510 ac_site_file2=$prefix/etc/config.site
2511 else
2512 ac_site_file1=$ac_default_prefix/share/config.site
2513 ac_site_file2=$ac_default_prefix/etc/config.site
2515 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2517 test "x$ac_site_file" = xNONE && continue
2518 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2520 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2521 sed 's/^/| /' "$ac_site_file" >&5
2522 . "$ac_site_file" \
2523 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 as_fn_error $? "failed to load site script $ac_site_file
2526 See \`config.log' for more details" "$LINENO" 5; }
2528 done
2530 if test -r "$cache_file"; then
2531 # Some versions of bash will fail to source /dev/null (special files
2532 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2533 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2535 $as_echo "$as_me: loading cache $cache_file" >&6;}
2536 case $cache_file in
2537 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2538 *) . "./$cache_file";;
2539 esac
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2543 $as_echo "$as_me: creating cache $cache_file" >&6;}
2544 >$cache_file
2547 as_fn_append ac_header_list " stdlib.h"
2548 as_fn_append ac_header_list " unistd.h"
2549 as_fn_append ac_header_list " sys/param.h"
2550 # Check that the precious variables saved in the cache have kept the same
2551 # value.
2552 ac_cache_corrupted=false
2553 for ac_var in $ac_precious_vars; do
2554 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555 eval ac_new_set=\$ac_env_${ac_var}_set
2556 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557 eval ac_new_val=\$ac_env_${ac_var}_value
2558 case $ac_old_set,$ac_new_set in
2559 set,)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562 ac_cache_corrupted=: ;;
2563 ,set)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2567 ,);;
2569 if test "x$ac_old_val" != "x$ac_new_val"; then
2570 # differences in whitespace do not lead to failure.
2571 ac_old_val_w=`echo x $ac_old_val`
2572 ac_new_val_w=`echo x $ac_new_val`
2573 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576 ac_cache_corrupted=:
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580 eval $ac_var=\$ac_old_val
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2583 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2585 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2586 fi;;
2587 esac
2588 # Pass precious variables to config.status.
2589 if test "$ac_new_set" = set; then
2590 case $ac_new_val in
2591 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592 *) ac_arg=$ac_var=$ac_new_val ;;
2593 esac
2594 case " $ac_configure_args " in
2595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2596 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2597 esac
2599 done
2600 if $ac_cache_corrupted; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2605 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2607 ## -------------------- ##
2608 ## Main body of script. ##
2609 ## -------------------- ##
2611 ac_ext=c
2612 ac_cpp='$CPP $CPPFLAGS'
2613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 ac_aux_dir=
2620 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2621 if test -f "$ac_dir/install-sh"; then
2622 ac_aux_dir=$ac_dir
2623 ac_install_sh="$ac_aux_dir/install-sh -c"
2624 break
2625 elif test -f "$ac_dir/install.sh"; then
2626 ac_aux_dir=$ac_dir
2627 ac_install_sh="$ac_aux_dir/install.sh -c"
2628 break
2629 elif test -f "$ac_dir/shtool"; then
2630 ac_aux_dir=$ac_dir
2631 ac_install_sh="$ac_aux_dir/shtool install -c"
2632 break
2634 done
2635 if test -z "$ac_aux_dir"; then
2636 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2639 # These three variables are undocumented and unsupported,
2640 # and are intended to be withdrawn in a future Autoconf release.
2641 # They can cause serious problems if a builder's source tree is in a directory
2642 # whose full name contains unusual characters.
2643 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2644 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2645 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2649 # Check what host we are running on.
2650 # If a target is not suggested, we use this one.
2651 # Note that what we call a target, Autoconf calls a host.
2652 # Make sure we can run config.sub.
2653 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2654 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2657 $as_echo_n "checking build system type... " >&6; }
2658 if ${ac_cv_build+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 ac_build_alias=$build_alias
2662 test "x$ac_build_alias" = x &&
2663 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2664 test "x$ac_build_alias" = x &&
2665 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2666 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2671 $as_echo "$ac_cv_build" >&6; }
2672 case $ac_cv_build in
2673 *-*-*) ;;
2674 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2675 esac
2676 build=$ac_cv_build
2677 ac_save_IFS=$IFS; IFS='-'
2678 set x $ac_cv_build
2679 shift
2680 build_cpu=$1
2681 build_vendor=$2
2682 shift; shift
2683 # Remember, the first character of IFS is used to create $*,
2684 # except with old shells:
2685 build_os=$*
2686 IFS=$ac_save_IFS
2687 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2691 $as_echo_n "checking host system type... " >&6; }
2692 if ${ac_cv_host+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test "x$host_alias" = x; then
2696 ac_cv_host=$ac_cv_build
2697 else
2698 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2699 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2704 $as_echo "$ac_cv_host" >&6; }
2705 case $ac_cv_host in
2706 *-*-*) ;;
2707 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2708 esac
2709 host=$ac_cv_host
2710 ac_save_IFS=$IFS; IFS='-'
2711 set x $ac_cv_host
2712 shift
2713 host_cpu=$1
2714 host_vendor=$2
2715 shift; shift
2716 # Remember, the first character of IFS is used to create $*,
2717 # except with old shells:
2718 host_os=$*
2719 IFS=$ac_save_IFS
2720 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2724 # The AROS target is slightly different to the normal GNU style
2725 # format. We don't have the middle part, and we reverse the order
2726 # of the $(CPU) and $(OS) bits.
2728 # Don't strip the version of the target yet, it might be
2729 # useful on some systems.
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2732 $as_echo_n "checking for AROS style target... " >&6; }
2734 if test "$target" = "NONE" ; then
2735 target=$host_os-$host_cpu
2736 else
2737 if test "$target" = "" ; then
2738 target=$host_os-$host_cpu
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2742 $as_echo "$target" >&6; }
2744 if test "$host_os" = "mingw32" ; then
2745 PWDCMD="pwd -W"
2748 # Don't know where else to put this...
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2750 $as_echo_n "checking building AROS in... " >&6; }
2751 AROS_BUILDDIR=`${PWDCMD-pwd}`
2752 AROS_BUILDDIR_UNIX=${PWD}
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2754 $as_echo "$AROS_BUILDDIR" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2757 $as_echo_n "checking AROS source in... " >&6; }
2758 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2759 SRCDIR=${srcpwd}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2761 $as_echo "$SRCDIR" >&6; }
2763 # Parse the target field into something useful.
2765 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2766 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2769 # Some debug output, to be removed again.
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2771 $as_echo_n "checking for target system (debug output)... " >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2773 $as_echo "$target_os" >&6; }
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2775 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2777 $as_echo "$target_cpu" >&6; }
2779 aros_default_wbwidth=800
2780 aros_default_wbheight=600
2781 aros_default_wbdepth=4
2784 # The first step is to find the host binaries.
2785 # Check for a compiler.
2786 # Due to a bug in autoconf check for c++ compiler first.
2787 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2788 ac_ext=cpp
2789 ac_cpp='$CXXCPP $CPPFLAGS'
2790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2793 if test -z "$CXX"; then
2794 if test -n "$CCC"; then
2795 CXX=$CCC
2796 else
2797 if test -n "$ac_tool_prefix"; then
2798 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if ${ac_cv_prog_CXX+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if test -n "$CXX"; then
2808 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2821 done
2822 done
2823 IFS=$as_save_IFS
2827 CXX=$ac_cv_prog_CXX
2828 if test -n "$CXX"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2830 $as_echo "$CXX" >&6; }
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2837 test -n "$CXX" && break
2838 done
2840 if test -z "$CXX"; then
2841 ac_ct_CXX=$CXX
2842 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 if test -n "$ac_ct_CXX"; then
2852 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_ac_ct_CXX="$ac_prog"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2865 done
2866 done
2867 IFS=$as_save_IFS
2871 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2872 if test -n "$ac_ct_CXX"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2874 $as_echo "$ac_ct_CXX" >&6; }
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2881 test -n "$ac_ct_CXX" && break
2882 done
2884 if test "x$ac_ct_CXX" = x; then
2885 CXX="g++"
2886 else
2887 case $cross_compiling:$ac_tool_warned in
2888 yes:)
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891 ac_tool_warned=yes ;;
2892 esac
2893 CXX=$ac_ct_CXX
2899 # Provide some information about the compiler.
2900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2901 set X $ac_compile
2902 ac_compiler=$2
2903 for ac_option in --version -v -V -qversion; do
2904 { { ac_try="$ac_compiler $ac_option >&5"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2912 ac_status=$?
2913 if test -s conftest.err; then
2914 sed '10a\
2915 ... rest of stderr output deleted ...
2916 10q' conftest.err >conftest.er1
2917 cat conftest.er1 >&5
2919 rm -f conftest.er1 conftest.err
2920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921 test $ac_status = 0; }
2922 done
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2928 main ()
2932 return 0;
2934 _ACEOF
2935 ac_clean_files_save=$ac_clean_files
2936 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2937 # Try to create an executable without -o first, disregard a.out.
2938 # It will help us diagnose broken compilers, and finding out an intuition
2939 # of exeext.
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2941 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2942 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2944 # The possible output files:
2945 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2947 ac_rmfiles=
2948 for ac_file in $ac_files
2950 case $ac_file in
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2952 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2953 esac
2954 done
2955 rm -f $ac_rmfiles
2957 if { { ac_try="$ac_link_default"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963 $as_echo "$ac_try_echo"; } >&5
2964 (eval "$ac_link_default") 2>&5
2965 ac_status=$?
2966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967 test $ac_status = 0; }; then :
2968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2969 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2970 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2971 # so that the user can short-circuit this test for compilers unknown to
2972 # Autoconf.
2973 for ac_file in $ac_files ''
2975 test -f "$ac_file" || continue
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2979 [ab].out )
2980 # We found the default executable, but exeext='' is most
2981 # certainly right.
2982 break;;
2983 *.* )
2984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2985 then :; else
2986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988 # We set ac_cv_exeext here because the later test for it is not
2989 # safe: cross compilers may not add the suffix if given an `-o'
2990 # argument, so we may need to know it at that point already.
2991 # Even if this section looks crufty: it has the advantage of
2992 # actually working.
2993 break;;
2995 break;;
2996 esac
2997 done
2998 test "$ac_cv_exeext" = no && ac_cv_exeext=
3000 else
3001 ac_file=''
3003 if test -z "$ac_file"; then :
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 $as_echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011 as_fn_error 77 "C++ compiler cannot create executables
3012 See \`config.log' for more details" "$LINENO" 5; }
3013 else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015 $as_echo "yes" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3018 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3020 $as_echo "$ac_file" >&6; }
3021 ac_exeext=$ac_cv_exeext
3023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3024 ac_clean_files=$ac_clean_files_save
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3026 $as_echo_n "checking for suffix of executables... " >&6; }
3027 if { { ac_try="$ac_link"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link") 2>&5
3035 ac_status=$?
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3039 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3040 # work properly (i.e., refer to `conftest.exe'), while it won't with
3041 # `rm'.
3042 for ac_file in conftest.exe conftest conftest.*; do
3043 test -f "$ac_file" || continue
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3046 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047 break;;
3048 * ) break;;
3049 esac
3050 done
3051 else
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3055 See \`config.log' for more details" "$LINENO" 5; }
3057 rm -f conftest conftest$ac_cv_exeext
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3059 $as_echo "$ac_cv_exeext" >&6; }
3061 rm -f conftest.$ac_ext
3062 EXEEXT=$ac_cv_exeext
3063 ac_exeext=$EXEEXT
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3066 #include <stdio.h>
3068 main ()
3070 FILE *f = fopen ("conftest.out", "w");
3071 return ferror (f) || fclose (f) != 0;
3074 return 0;
3076 _ACEOF
3077 ac_clean_files="$ac_clean_files conftest.out"
3078 # Check that the compiler produces executables we can run. If not, either
3079 # the compiler is broken, or we cross compile.
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3081 $as_echo_n "checking whether we are cross compiling... " >&6; }
3082 if test "$cross_compiling" != yes; then
3083 { { ac_try="$ac_link"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_link") 2>&5
3091 ac_status=$?
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }
3094 if { ac_try='./conftest$ac_cv_exeext'
3095 { { case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_try") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; }; then
3105 cross_compiling=no
3106 else
3107 if test "$cross_compiling" = maybe; then
3108 cross_compiling=yes
3109 else
3110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112 as_fn_error $? "cannot run C++ compiled programs.
3113 If you meant to cross compile, use \`--host'.
3114 See \`config.log' for more details" "$LINENO" 5; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3119 $as_echo "$cross_compiling" >&6; }
3121 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3122 ac_clean_files=$ac_clean_files_save
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3124 $as_echo_n "checking for suffix of object files... " >&6; }
3125 if ${ac_cv_objext+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3132 main ()
3136 return 0;
3138 _ACEOF
3139 rm -f conftest.o conftest.obj
3140 if { { ac_try="$ac_compile"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_compile") 2>&5
3148 ac_status=$?
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }; then :
3151 for ac_file in conftest.o conftest.obj conftest.*; do
3152 test -f "$ac_file" || continue;
3153 case $ac_file in
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3155 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3156 break;;
3157 esac
3158 done
3159 else
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error $? "cannot compute suffix of object files: cannot compile
3166 See \`config.log' for more details" "$LINENO" 5; }
3168 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3171 $as_echo "$ac_cv_objext" >&6; }
3172 OBJEXT=$ac_cv_objext
3173 ac_objext=$OBJEXT
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3175 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3176 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3183 main ()
3185 #ifndef __GNUC__
3186 choke me
3187 #endif
3190 return 0;
3192 _ACEOF
3193 if ac_fn_cxx_try_compile "$LINENO"; then :
3194 ac_compiler_gnu=yes
3195 else
3196 ac_compiler_gnu=no
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3203 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3204 if test $ac_compiler_gnu = yes; then
3205 GXX=yes
3206 else
3207 GXX=
3209 ac_test_CXXFLAGS=${CXXFLAGS+set}
3210 ac_save_CXXFLAGS=$CXXFLAGS
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3212 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3213 if ${ac_cv_prog_cxx_g+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3217 ac_cxx_werror_flag=yes
3218 ac_cv_prog_cxx_g=no
3219 CXXFLAGS="-g"
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3224 main ()
3228 return 0;
3230 _ACEOF
3231 if ac_fn_cxx_try_compile "$LINENO"; then :
3232 ac_cv_prog_cxx_g=yes
3233 else
3234 CXXFLAGS=""
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3239 main ()
3243 return 0;
3245 _ACEOF
3246 if ac_fn_cxx_try_compile "$LINENO"; then :
3248 else
3249 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3250 CXXFLAGS="-g"
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3255 main ()
3259 return 0;
3261 _ACEOF
3262 if ac_fn_cxx_try_compile "$LINENO"; then :
3263 ac_cv_prog_cxx_g=yes
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3273 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275 CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277 if test "$GXX" = yes; then
3278 CXXFLAGS="-g -O2"
3279 else
3280 CXXFLAGS="-g"
3282 else
3283 if test "$GXX" = yes; then
3284 CXXFLAGS="-O2"
3285 else
3286 CXXFLAGS=
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 if test -n "$ac_tool_prefix"; then
3301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if ${ac_cv_prog_CC+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3322 done
3323 done
3324 IFS=$as_save_IFS
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3339 if test -z "$ac_cv_prog_CC"; then
3340 ac_ct_CC=$CC
3341 # Extract the first word of "gcc", so it can be a program name with args.
3342 set dummy gcc; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 if test -n "$ac_ct_CC"; then
3349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_ac_ct_CC="gcc"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3362 done
3363 done
3364 IFS=$as_save_IFS
3368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3369 if test -n "$ac_ct_CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3371 $as_echo "$ac_ct_CC" >&6; }
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3377 if test "x$ac_ct_CC" = x; then
3378 CC=""
3379 else
3380 case $cross_compiling:$ac_tool_warned in
3381 yes:)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3384 ac_tool_warned=yes ;;
3385 esac
3386 CC=$ac_ct_CC
3388 else
3389 CC="$ac_cv_prog_CC"
3392 if test -z "$CC"; then
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}cc; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_CC+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC="$CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_CC="${ac_tool_prefix}cc"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3417 IFS=$as_save_IFS
3421 CC=$ac_cv_prog_CC
3422 if test -n "$CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424 $as_echo "$CC" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3433 if test -z "$CC"; then
3434 # Extract the first word of "cc", so it can be a program name with args.
3435 set dummy cc; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 ac_prog_rejected=no
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3453 ac_prog_rejected=yes
3454 continue
3456 ac_cv_prog_CC="cc"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3460 done
3461 done
3462 IFS=$as_save_IFS
3464 if test $ac_prog_rejected = yes; then
3465 # We found a bogon in the path, so make sure we never use it.
3466 set dummy $ac_cv_prog_CC
3467 shift
3468 if test $# != 0; then
3469 # We chose a different compiler from the bogus one.
3470 # However, it has the same basename, so the bogon will be chosen
3471 # first if we set CC to just the basename; use the full file name.
3472 shift
3473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3489 if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl.exe
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3514 done
3515 done
3516 IFS=$as_save_IFS
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3530 test -n "$CC" && break
3531 done
3533 if test -z "$CC"; then
3534 ac_ct_CC=$CC
3535 for ac_prog in cl.exe
3537 # Extract the first word of "$ac_prog", so it can be a program name with args.
3538 set dummy $ac_prog; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test -n "$ac_ct_CC"; then
3545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_ac_ct_CC="$ac_prog"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3558 done
3559 done
3560 IFS=$as_save_IFS
3564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3565 if test -n "$ac_ct_CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3567 $as_echo "$ac_ct_CC" >&6; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3574 test -n "$ac_ct_CC" && break
3575 done
3577 if test "x$ac_ct_CC" = x; then
3578 CC=""
3579 else
3580 case $cross_compiling:$ac_tool_warned in
3581 yes:)
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584 ac_tool_warned=yes ;;
3585 esac
3586 CC=$ac_ct_CC
3593 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error $? "no acceptable C compiler found in \$PATH
3596 See \`config.log' for more details" "$LINENO" 5; }
3598 # Provide some information about the compiler.
3599 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3600 set X $ac_compile
3601 ac_compiler=$2
3602 for ac_option in --version -v -V -qversion; do
3603 { { ac_try="$ac_compiler $ac_option >&5"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3611 ac_status=$?
3612 if test -s conftest.err; then
3613 sed '10a\
3614 ... rest of stderr output deleted ...
3615 10q' conftest.err >conftest.er1
3616 cat conftest.er1 >&5
3618 rm -f conftest.er1 conftest.err
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }
3621 done
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3624 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3625 if ${ac_cv_c_compiler_gnu+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3632 main ()
3634 #ifndef __GNUC__
3635 choke me
3636 #endif
3639 return 0;
3641 _ACEOF
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_compiler_gnu=yes
3644 else
3645 ac_compiler_gnu=no
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3652 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3653 if test $ac_compiler_gnu = yes; then
3654 GCC=yes
3655 else
3656 GCC=
3658 ac_test_CFLAGS=${CFLAGS+set}
3659 ac_save_CFLAGS=$CFLAGS
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3661 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3662 if ${ac_cv_prog_cc_g+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 ac_save_c_werror_flag=$ac_c_werror_flag
3666 ac_c_werror_flag=yes
3667 ac_cv_prog_cc_g=no
3668 CFLAGS="-g"
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3673 main ()
3677 return 0;
3679 _ACEOF
3680 if ac_fn_c_try_compile "$LINENO"; then :
3681 ac_cv_prog_cc_g=yes
3682 else
3683 CFLAGS=""
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3688 main ()
3692 return 0;
3694 _ACEOF
3695 if ac_fn_c_try_compile "$LINENO"; then :
3697 else
3698 ac_c_werror_flag=$ac_save_c_werror_flag
3699 CFLAGS="-g"
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3704 main ()
3708 return 0;
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_g=yes
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 ac_c_werror_flag=$ac_save_c_werror_flag
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3722 $as_echo "$ac_cv_prog_cc_g" >&6; }
3723 if test "$ac_test_CFLAGS" = set; then
3724 CFLAGS=$ac_save_CFLAGS
3725 elif test $ac_cv_prog_cc_g = yes; then
3726 if test "$GCC" = yes; then
3727 CFLAGS="-g -O2"
3728 else
3729 CFLAGS="-g"
3731 else
3732 if test "$GCC" = yes; then
3733 CFLAGS="-O2"
3734 else
3735 CFLAGS=
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3739 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3740 if ${ac_cv_prog_cc_c89+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 ac_cv_prog_cc_c89=no
3744 ac_save_CC=$CC
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747 #include <stdarg.h>
3748 #include <stdio.h>
3749 #include <sys/types.h>
3750 #include <sys/stat.h>
3751 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3752 struct buf { int x; };
3753 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3754 static char *e (p, i)
3755 char **p;
3756 int i;
3758 return p[i];
3760 static char *f (char * (*g) (char **, int), char **p, ...)
3762 char *s;
3763 va_list v;
3764 va_start (v,p);
3765 s = g (p, va_arg (v,int));
3766 va_end (v);
3767 return s;
3770 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3771 function prototypes and stuff, but not '\xHH' hex character constants.
3772 These don't provoke an error unfortunately, instead are silently treated
3773 as 'x'. The following induces an error, until -std is added to get
3774 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3775 array size at least. It's necessary to write '\x00'==0 to get something
3776 that's true only with -std. */
3777 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3779 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3780 inside strings and character constants. */
3781 #define FOO(x) 'x'
3782 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3784 int test (int i, double x);
3785 struct s1 {int (*f) (int a);};
3786 struct s2 {int (*f) (double a);};
3787 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3788 int argc;
3789 char **argv;
3791 main ()
3793 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3795 return 0;
3797 _ACEOF
3798 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3799 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3801 CC="$ac_save_CC $ac_arg"
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803 ac_cv_prog_cc_c89=$ac_arg
3805 rm -f core conftest.err conftest.$ac_objext
3806 test "x$ac_cv_prog_cc_c89" != "xno" && break
3807 done
3808 rm -f conftest.$ac_ext
3809 CC=$ac_save_CC
3812 # AC_CACHE_VAL
3813 case "x$ac_cv_prog_cc_c89" in
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3816 $as_echo "none needed" >&6; } ;;
3817 xno)
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3819 $as_echo "unsupported" >&6; } ;;
3821 CC="$CC $ac_cv_prog_cc_c89"
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3823 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3824 esac
3825 if test "x$ac_cv_prog_cc_c89" != xno; then :
3829 ac_ext=c
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 case $ac_cv_prog_cc_stdc in #(
3836 no) :
3837 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3838 *) :
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3840 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3841 if ${ac_cv_prog_cc_c99+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_cv_prog_cc_c99=no
3845 ac_save_CC=$CC
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <stdarg.h>
3849 #include <stdbool.h>
3850 #include <stdlib.h>
3851 #include <wchar.h>
3852 #include <stdio.h>
3854 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3855 #define debug(...) fprintf (stderr, __VA_ARGS__)
3856 #define showlist(...) puts (#__VA_ARGS__)
3857 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3858 static void
3859 test_varargs_macros (void)
3861 int x = 1234;
3862 int y = 5678;
3863 debug ("Flag");
3864 debug ("X = %d\n", x);
3865 showlist (The first, second, and third items.);
3866 report (x>y, "x is %d but y is %d", x, y);
3869 // Check long long types.
3870 #define BIG64 18446744073709551615ull
3871 #define BIG32 4294967295ul
3872 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3873 #if !BIG_OK
3874 your preprocessor is broken;
3875 #endif
3876 #if BIG_OK
3877 #else
3878 your preprocessor is broken;
3879 #endif
3880 static long long int bignum = -9223372036854775807LL;
3881 static unsigned long long int ubignum = BIG64;
3883 struct incomplete_array
3885 int datasize;
3886 double data[];
3889 struct named_init {
3890 int number;
3891 const wchar_t *name;
3892 double average;
3895 typedef const char *ccp;
3897 static inline int
3898 test_restrict (ccp restrict text)
3900 // See if C++-style comments work.
3901 // Iterate through items via the restricted pointer.
3902 // Also check for declarations in for loops.
3903 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3904 continue;
3905 return 0;
3908 // Check varargs and va_copy.
3909 static void
3910 test_varargs (const char *format, ...)
3912 va_list args;
3913 va_start (args, format);
3914 va_list args_copy;
3915 va_copy (args_copy, args);
3917 const char *str;
3918 int number;
3919 float fnumber;
3921 while (*format)
3923 switch (*format++)
3925 case 's': // string
3926 str = va_arg (args_copy, const char *);
3927 break;
3928 case 'd': // int
3929 number = va_arg (args_copy, int);
3930 break;
3931 case 'f': // float
3932 fnumber = va_arg (args_copy, double);
3933 break;
3934 default:
3935 break;
3938 va_end (args_copy);
3939 va_end (args);
3943 main ()
3946 // Check bool.
3947 _Bool success = false;
3949 // Check restrict.
3950 if (test_restrict ("String literal") == 0)
3951 success = true;
3952 char *restrict newvar = "Another string";
3954 // Check varargs.
3955 test_varargs ("s, d' f .", "string", 65, 34.234);
3956 test_varargs_macros ();
3958 // Check flexible array members.
3959 struct incomplete_array *ia =
3960 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3961 ia->datasize = 10;
3962 for (int i = 0; i < ia->datasize; ++i)
3963 ia->data[i] = i * 1.234;
3965 // Check named initializers.
3966 struct named_init ni = {
3967 .number = 34,
3968 .name = L"Test wide string",
3969 .average = 543.34343,
3972 ni.number = 58;
3974 int dynamic_array[ni.number];
3975 dynamic_array[ni.number - 1] = 543;
3977 // work around unused variable warnings
3978 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3979 || dynamic_array[ni.number - 1] != 543);
3982 return 0;
3984 _ACEOF
3985 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3987 CC="$ac_save_CC $ac_arg"
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_prog_cc_c99=$ac_arg
3991 rm -f core conftest.err conftest.$ac_objext
3992 test "x$ac_cv_prog_cc_c99" != "xno" && break
3993 done
3994 rm -f conftest.$ac_ext
3995 CC=$ac_save_CC
3998 # AC_CACHE_VAL
3999 case "x$ac_cv_prog_cc_c99" in
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4002 $as_echo "none needed" >&6; } ;;
4003 xno)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4005 $as_echo "unsupported" >&6; } ;;
4007 CC="$CC $ac_cv_prog_cc_c99"
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4009 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4010 esac
4011 if test "x$ac_cv_prog_cc_c99" != xno; then :
4012 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4013 else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4015 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4016 if ${ac_cv_prog_cc_c89+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 ac_cv_prog_cc_c89=no
4020 ac_save_CC=$CC
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <stdarg.h>
4024 #include <stdio.h>
4025 #include <sys/types.h>
4026 #include <sys/stat.h>
4027 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4028 struct buf { int x; };
4029 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4030 static char *e (p, i)
4031 char **p;
4032 int i;
4034 return p[i];
4036 static char *f (char * (*g) (char **, int), char **p, ...)
4038 char *s;
4039 va_list v;
4040 va_start (v,p);
4041 s = g (p, va_arg (v,int));
4042 va_end (v);
4043 return s;
4046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4047 function prototypes and stuff, but not '\xHH' hex character constants.
4048 These don't provoke an error unfortunately, instead are silently treated
4049 as 'x'. The following induces an error, until -std is added to get
4050 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4051 array size at least. It's necessary to write '\x00'==0 to get something
4052 that's true only with -std. */
4053 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4056 inside strings and character constants. */
4057 #define FOO(x) 'x'
4058 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4060 int test (int i, double x);
4061 struct s1 {int (*f) (int a);};
4062 struct s2 {int (*f) (double a);};
4063 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4064 int argc;
4065 char **argv;
4067 main ()
4069 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4071 return 0;
4073 _ACEOF
4074 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4075 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4077 CC="$ac_save_CC $ac_arg"
4078 if ac_fn_c_try_compile "$LINENO"; then :
4079 ac_cv_prog_cc_c89=$ac_arg
4081 rm -f core conftest.err conftest.$ac_objext
4082 test "x$ac_cv_prog_cc_c89" != "xno" && break
4083 done
4084 rm -f conftest.$ac_ext
4085 CC=$ac_save_CC
4088 # AC_CACHE_VAL
4089 case "x$ac_cv_prog_cc_c89" in
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4092 $as_echo "none needed" >&6; } ;;
4093 xno)
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4095 $as_echo "unsupported" >&6; } ;;
4097 CC="$CC $ac_cv_prog_cc_c89"
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4099 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4100 esac
4101 if test "x$ac_cv_prog_cc_c89" != xno; then :
4102 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4103 else
4104 ac_cv_prog_cc_stdc=no
4109 esac
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4111 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4112 if ${ac_cv_prog_cc_stdc+:} false; then :
4113 $as_echo_n "(cached) " >&6
4116 case $ac_cv_prog_cc_stdc in #(
4117 no) :
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4119 $as_echo "unsupported" >&6; } ;; #(
4120 '') :
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4122 $as_echo "none needed" >&6; } ;; #(
4123 *) :
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4125 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4126 esac
4128 ac_ext=c
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4134 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4135 # On Suns, sometimes $CPP names a directory.
4136 if test -n "$CPP" && test -d "$CPP"; then
4137 CPP=
4139 if test -z "$CPP"; then
4140 if ${ac_cv_prog_CPP+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 # Double quotes because CPP needs to be expanded
4144 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4146 ac_preproc_ok=false
4147 for ac_c_preproc_warn_flag in '' yes
4149 # Use a header file that comes with gcc, so configuring glibc
4150 # with a fresh cross-compiler works.
4151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4152 # <limits.h> exists even on freestanding compilers.
4153 # On the NeXT, cc -E runs the code through the compiler's parser,
4154 # not just through cpp. "Syntax error" is here to catch this case.
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #ifdef __STDC__
4158 # include <limits.h>
4159 #else
4160 # include <assert.h>
4161 #endif
4162 Syntax error
4163 _ACEOF
4164 if ac_fn_c_try_cpp "$LINENO"; then :
4166 else
4167 # Broken: fails on valid input.
4168 continue
4170 rm -f conftest.err conftest.i conftest.$ac_ext
4172 # OK, works on sane cases. Now check whether nonexistent headers
4173 # can be detected and how.
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 #include <ac_nonexistent.h>
4177 _ACEOF
4178 if ac_fn_c_try_cpp "$LINENO"; then :
4179 # Broken: success on invalid input.
4180 continue
4181 else
4182 # Passes both tests.
4183 ac_preproc_ok=:
4184 break
4186 rm -f conftest.err conftest.i conftest.$ac_ext
4188 done
4189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4190 rm -f conftest.i conftest.err conftest.$ac_ext
4191 if $ac_preproc_ok; then :
4192 break
4195 done
4196 ac_cv_prog_CPP=$CPP
4199 CPP=$ac_cv_prog_CPP
4200 else
4201 ac_cv_prog_CPP=$CPP
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4204 $as_echo "$CPP" >&6; }
4205 ac_preproc_ok=false
4206 for ac_c_preproc_warn_flag in '' yes
4208 # Use a header file that comes with gcc, so configuring glibc
4209 # with a fresh cross-compiler works.
4210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4211 # <limits.h> exists even on freestanding compilers.
4212 # On the NeXT, cc -E runs the code through the compiler's parser,
4213 # not just through cpp. "Syntax error" is here to catch this case.
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #ifdef __STDC__
4217 # include <limits.h>
4218 #else
4219 # include <assert.h>
4220 #endif
4221 Syntax error
4222 _ACEOF
4223 if ac_fn_c_try_cpp "$LINENO"; then :
4225 else
4226 # Broken: fails on valid input.
4227 continue
4229 rm -f conftest.err conftest.i conftest.$ac_ext
4231 # OK, works on sane cases. Now check whether nonexistent headers
4232 # can be detected and how.
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 #include <ac_nonexistent.h>
4236 _ACEOF
4237 if ac_fn_c_try_cpp "$LINENO"; then :
4238 # Broken: success on invalid input.
4239 continue
4240 else
4241 # Passes both tests.
4242 ac_preproc_ok=:
4243 break
4245 rm -f conftest.err conftest.i conftest.$ac_ext
4247 done
4248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4249 rm -f conftest.i conftest.err conftest.$ac_ext
4250 if $ac_preproc_ok; then :
4252 else
4253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4256 See \`config.log' for more details" "$LINENO" 5; }
4259 ac_ext=c
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266 # Check for a compatible awk
4267 for ac_prog in gawk nawk
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if ${ac_cv_prog_AWK+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 if test -n "$AWK"; then
4277 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_AWK="$ac_prog"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4290 done
4291 done
4292 IFS=$as_save_IFS
4296 AWK=$ac_cv_prog_AWK
4297 if test -n "$AWK"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4299 $as_echo "$AWK" >&6; }
4300 else
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4306 test -n "$AWK" && break
4307 done
4309 if test "$AWK" = ""; then
4310 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4312 # Extract the first word of "mmake", so it can be a program name with args.
4313 set dummy mmake; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_prog_MMAKE+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if test -n "$MMAKE"; then
4320 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_prog_MMAKE="mmake "
4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4333 done
4334 done
4335 IFS=$as_save_IFS
4339 MMAKE=$ac_cv_prog_MMAKE
4340 if test -n "$MMAKE"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4342 $as_echo "$MMAKE" >&6; }
4343 else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4350 # Perform some default variable assignments. Note all of these will be
4351 # Regenerated from the script, so there is no need to cache them.
4353 aros_host_cpp="$CPP"
4354 aros_host_cc="$CC"
4355 aros_host_cxx="$CXX"
4356 if test "$GCC" = "yes"; then
4357 aros_gcc_ld=`$CC -print-prog-name=ld`
4358 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4359 set dummy `basename $aros_gcc_ld`; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_path_aros_host_ld+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 case $aros_host_ld in
4366 [\\/]* | ?:[\\/]*)
4367 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in `dirname $aros_gcc_ld`
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4381 done
4382 done
4383 IFS=$as_save_IFS
4386 esac
4388 aros_host_ld=$ac_cv_path_aros_host_ld
4389 if test -n "$aros_host_ld"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4391 $as_echo "$aros_host_ld" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4399 if test "$aros_host_ld" = ""; then
4400 # Extract the first word of "ld", so it can be a program name with args.
4401 set dummy ld; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_path_aros_host_ld+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 case $aros_host_ld in
4408 [\\/]* | ?:[\\/]*)
4409 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4423 done
4424 done
4425 IFS=$as_save_IFS
4428 esac
4430 aros_host_ld=$ac_cv_path_aros_host_ld
4431 if test -n "$aros_host_ld"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4433 $as_echo "$aros_host_ld" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4441 if test "$aros_host_ld" = ""; then
4442 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4444 aros_host_make="make"
4445 aros_host_cflags=$CFLAGS
4446 aros_host_cxxflags=$CXXFLAGS
4447 aros_host_ldflags=$LDFLAGS
4448 aros_host_debug="-g -O0"
4449 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4450 aros_host_mkargs="--no-print-directory"
4451 aros_host_exe_suffix="$EXEEXT"
4452 aros_host_lib_suffix=""
4454 # Ignore all compliance, AROS ROMs = 0
4455 # KickStart v1.0 = 30
4456 # KickStart v1.3 = 34
4457 # KickStart v2.0 = 37
4458 # KickStart v3.0 = 39
4459 # KickStart v3.1 = 40
4460 # AmigaOS v3.5 = 44
4461 aros_amigaos_compliance=0
4463 for ac_prog in aclocal aclocal19 aclocal-1.9
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test -n "$aros_host_aclocal"; then
4473 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_aros_host_aclocal="$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4492 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4493 if test -n "$aros_host_aclocal"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4495 $as_echo "$aros_host_aclocal" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4502 test -n "$aros_host_aclocal" && break
4503 done
4505 for ac_prog in autoconf autoconf259 autoconf253
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$aros_host_autoconf"; then
4515 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_aros_host_autoconf="$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4530 IFS=$as_save_IFS
4534 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4535 if test -n "$aros_host_autoconf"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4537 $as_echo "$aros_host_autoconf" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4544 test -n "$aros_host_autoconf" && break
4545 done
4547 for ac_prog in autoheader autoheader259 autoheader253
4549 # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if test -n "$aros_host_autoheader"; then
4557 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_aros_host_autoheader="$ac_prog"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4570 done
4571 done
4572 IFS=$as_save_IFS
4576 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4577 if test -n "$aros_host_autoheader"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4579 $as_echo "$aros_host_autoheader" >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4586 test -n "$aros_host_autoheader" && break
4587 done
4589 for ac_prog in automake automake19 automake-1.9
4591 # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_aros_host_automake+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$aros_host_automake"; then
4599 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_aros_host_automake="$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4612 done
4613 done
4614 IFS=$as_save_IFS
4618 aros_host_automake=$ac_cv_prog_aros_host_automake
4619 if test -n "$aros_host_automake"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4621 $as_echo "$aros_host_automake" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4628 test -n "$aros_host_automake" && break
4629 done
4632 if test "$aros_host_aclocal" = ""; then
4633 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4635 if test "$aros_host_automake" = ""; then
4636 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4639 case "$aros_host_cc" in
4640 *gcc*)
4641 aros_host_cc_pipe="-pipe"
4643 icc)
4644 aros_host_cc_pipe=""
4647 aros_host_cc_pipe=""
4649 esac
4651 aros_kernel_cc_includes=""
4652 aros_target_cc_includes=""
4653 host_cc_elf=yes
4655 # ----------------------------------------------------------------------------------------
4656 # Host-specific defaults
4658 # This is the main host configuration section. It is where the host
4659 # can change the values of any variables it needs to change. We do
4660 # not look at anything that compiles to the target yet, we'll get
4661 # to that later.
4663 case "$host_os" in
4664 aros*)
4665 aros_host_arch="aros"
4666 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4667 case "$host_cpu" in
4668 *i?86*)
4669 aros_host_cpu="i386"
4671 *x86_64*)
4672 aros_host_cpu="x86_64"
4674 *powerpc*)
4675 aros_host_cpu="ppc"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4679 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4680 aros_host_cpu="$host_cpu"
4682 esac
4685 linux*)
4686 aros_host_arch="linux"
4687 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4688 android_build_os="linux-x86"
4689 android_tool="android"
4690 default_android_sdk="/opt/android-sdk-linux_x86"
4691 case "$host_cpu" in
4692 *i?86*)
4693 aros_host_cpu="i386"
4695 *x86_64*)
4696 aros_host_cpu="x86_64"
4698 *m68k*)
4699 aros_host_cpu="m68k"
4701 *powerpc*)
4702 aros_host_cpu="ppc"
4704 *arm*)
4705 aros_host_cpu="arm"
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4709 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4710 aros_host_cpu="$host_cpu"
4712 esac
4715 freebsd*)
4716 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4717 aros_host_make="gmake"
4718 aros_host_arch="freebsd"
4719 aros_host_cpu="i386"
4721 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4723 case $host_os in
4724 freebsd[234]*)
4725 aros_object_format="elf_i386"
4729 aros_object_format="elf_i386_fbsd"
4731 esac
4735 darwin*)
4736 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4737 aros_host_arch="darwin"
4738 host_cc_elf=no
4739 android_build_os="darwin-x86"
4740 android_tool="android"
4741 default_android_sdk="/android-sdk-mac_x86"
4742 case "$host_cpu" in
4743 *i?86*)
4744 aros_host_cpu="i386"
4746 *x86_64*)
4747 aros_host_cpu="x86_64"
4749 *powerpc*)
4750 aros_host_cpu="ppc"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4754 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4755 aros_host_cpu="$host_cpu"
4757 esac
4759 aros_host_ldflags="$aros_host_ldflags -liconv"
4763 dragonfly*)
4764 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4765 aros_host_make="gmake"
4766 aros_host_arch="dragonfly"
4767 case $host_cpu in
4768 *i?86*)
4769 aros_host_cpu="i386"
4771 *amd64*)
4772 aros_host_cpu="x86_64"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4776 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4777 aros_host_cpu="$host_cpu"
4779 esac
4782 netbsd*)
4783 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4784 aros_host_make="gmake"
4785 aros_host_arch="netbsd"
4786 case "$host_cpu" in
4787 *i?86*)
4788 aros_host_cpu="i386"
4790 *m68k*)
4791 aros_host_cpu="m68k"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4795 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4796 aros_host_cpu="$host_cpu"
4798 esac
4799 aros_host_lib_suffix=".0.0"
4802 openbsd*)
4803 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4804 aros_host_make="gmake"
4805 aros_host_arch="openbsd"
4806 case "$host_cpu" in
4807 *i?86*)
4808 aros_host_cpu="i386"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4812 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4813 aros_host_cpu="$host_cpu"
4815 esac
4818 solaris*)
4819 aros_host_arch="solaris"
4820 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4821 case "$host_cpu" in
4822 *i?86*)
4823 aros_host_cpu="i386"
4825 *sparc*)
4826 aros_host_cpu="sparc"
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4830 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4831 aros_host_cpu="$host_cpu"
4833 esac
4836 morphos*)
4837 aros_host_arch="morphos"
4838 aros_host_cpu="ppc"
4839 host_cc_elf=no
4842 amiga*)
4843 aros_host_arch="amiga"
4844 host_cc_elf=no
4845 SORT="/gg/bin/sort"
4846 TEST="/gg/bin/test"
4847 UNIQ="/gg/bin/uniq"
4848 FOR="for"
4849 TOUCH="/gg/bin/touch"
4850 case "$host_cpu" in
4851 *m68k*)
4852 aros_host_cpu="m68k"
4854 *powerpc*)
4855 aros_host_cpu="ppc"
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4859 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4860 aros_host_cpu="$host_cpu"
4862 esac
4865 cygwin*)
4866 aros_host_arch="cygwin"
4867 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4868 host_cc_elf=no
4869 android_build_os="windows"
4870 android_tool="android.bat"
4871 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4873 case "$host_cpu" in
4874 *i?86*)
4875 aros_host_cpu="i386"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4879 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4880 aros_host_cpu="$host_cpu"
4882 esac
4885 mingw32*)
4886 aros_host_arch="mingw32"
4887 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4888 host_cc_elf=no
4889 android_build_os="windows"
4890 android_tool="android.bat"
4891 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4893 case "$host_cpu" in
4894 *i?86*)
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4897 $as_echo_n "checking for Windows native gcc target... " >&6; }
4898 host_cpu=`gcc -dumpmachine`
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4900 $as_echo "$host_cpu" >&6; }
4903 esac
4905 case "$host_cpu" in
4906 *i?86*)
4907 aros_host_cpu="i386"
4910 mingw32*)
4911 aros_host_cpu="i386"
4914 *x86_64*)
4915 aros_host_cpu="x86_64"
4916 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4921 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4922 aros_host_cpu="$host_cpu"
4924 esac
4927 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4929 esac
4931 # Extract the first word of "ar", so it can be a program name with args.
4932 set dummy ar; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_prog_aros_host_ar+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 if test -n "$aros_host_ar"; then
4939 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 ac_cv_prog_aros_host_ar="ar cr"
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4952 done
4953 done
4954 IFS=$as_save_IFS
4958 aros_host_ar=$ac_cv_prog_aros_host_ar
4959 if test -n "$aros_host_ar"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4961 $as_echo "$aros_host_ar" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4968 if test "$aros_host_ar" = ""; then
4969 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4971 # Extract the first word of "ranlib", so it can be a program name with args.
4972 set dummy ranlib; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$aros_host_ranlib"; then
4979 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_aros_host_ranlib="ranlib "
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4994 IFS=$as_save_IFS
4998 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4999 if test -n "$aros_host_ranlib"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5001 $as_echo "$aros_host_ranlib" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 if test "$aros_host_ranlib" = ""; then
5009 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5011 # Extract the first word of "strip", so it can be a program name with args.
5012 set dummy strip; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_aros_host_strip+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$aros_host_strip"; then
5019 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_aros_host_strip="strip "
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 aros_host_strip=$ac_cv_prog_aros_host_strip
5039 if test -n "$aros_host_strip"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5041 $as_echo "$aros_host_strip" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5048 if test "$aros_host_strip" = ""; then
5049 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5052 # Extract the first word of "rm", so it can be a program name with args.
5053 set dummy rm; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_RM+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -n "$RM"; then
5060 ac_cv_prog_RM="$RM" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_RM="rm -rf"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5073 done
5074 done
5075 IFS=$as_save_IFS
5079 RM=$ac_cv_prog_RM
5080 if test -n "$RM"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5082 $as_echo "$RM" >&6; }
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5089 if test "$RM" = ""; then
5090 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5092 # Extract the first word of "cp", so it can be a program name with args.
5093 set dummy cp; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_prog_CP+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -n "$CP"; then
5100 ac_cv_prog_CP="$CP" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109 ac_cv_prog_CP="cp "
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5113 done
5114 done
5115 IFS=$as_save_IFS
5119 CP=$ac_cv_prog_CP
5120 if test -n "$CP"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5122 $as_echo "$CP" >&6; }
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5129 if test "$CP" = ""; then
5130 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5132 # Extract the first word of "mv", so it can be a program name with args.
5133 set dummy mv; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_MV+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$MV"; then
5140 ac_cv_prog_MV="$MV" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_MV="mv "
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5153 done
5154 done
5155 IFS=$as_save_IFS
5159 MV=$ac_cv_prog_MV
5160 if test -n "$MV"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5162 $as_echo "$MV" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5169 if test "$MV" = ""; then
5170 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5172 # Extract the first word of "echo", so it can be a program name with args.
5173 set dummy echo; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_ECHO+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ECHO"; then
5180 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ECHO="echo "
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 ECHO=$ac_cv_prog_ECHO
5200 if test -n "$ECHO"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5202 $as_echo "$ECHO" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5209 if test "$ECHO" = ""; then
5210 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5212 # Extract the first word of "mkdir", so it can be a program name with args.
5213 set dummy mkdir; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_prog_MKDIR+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$MKDIR"; then
5220 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_MKDIR="mkdir -p"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5239 MKDIR=$ac_cv_prog_MKDIR
5240 if test -n "$MKDIR"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5242 $as_echo "$MKDIR" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5249 if test "$MKDIR" = ""; then
5250 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5252 # Extract the first word of "touch", so it can be a program name with args.
5253 set dummy touch; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_TOUCH+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 if test -n "$TOUCH"; then
5260 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_TOUCH="touch "
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5273 done
5274 done
5275 IFS=$as_save_IFS
5279 TOUCH=$ac_cv_prog_TOUCH
5280 if test -n "$TOUCH"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5282 $as_echo "$TOUCH" >&6; }
5283 else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5289 if test "$TOUCH" = ""; then
5290 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5292 # Extract the first word of "sort", so it can be a program name with args.
5293 set dummy sort; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_SORT+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$SORT"; then
5300 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_prog_SORT="sort "
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5319 SORT=$ac_cv_prog_SORT
5320 if test -n "$SORT"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5322 $as_echo "$SORT" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5329 if test "$SORT" = ""; then
5330 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5332 # Extract the first word of "uniq", so it can be a program name with args.
5333 set dummy uniq; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_UNIQ+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$UNIQ"; then
5340 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_UNIQ="uniq "
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5353 done
5354 done
5355 IFS=$as_save_IFS
5359 UNIQ=$ac_cv_prog_UNIQ
5360 if test -n "$UNIQ"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5362 $as_echo "$UNIQ" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5369 if test "$UNIQ" = ""; then
5370 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5372 # Extract the first word of "true", so it can be a program name with args.
5373 set dummy true; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_NOP+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 if test -n "$NOP"; then
5380 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389 ac_cv_prog_NOP="true "
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5393 done
5394 done
5395 IFS=$as_save_IFS
5399 NOP=$ac_cv_prog_NOP
5400 if test -n "$NOP"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5402 $as_echo "$NOP" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5409 if test "$NOP" = ""; then
5410 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5412 # Extract the first word of "cat", so it can be a program name with args.
5413 set dummy cat; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_CAT+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$CAT"; then
5420 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5429 ac_cv_prog_CAT="cat "
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5433 done
5434 done
5435 IFS=$as_save_IFS
5439 CAT=$ac_cv_prog_CAT
5440 if test -n "$CAT"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5442 $as_echo "$CAT" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5449 if test "$CAT" = ""; then
5450 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5452 # Extract the first word of "bison", so it can be a program name with args.
5453 set dummy bison; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_BISON+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -n "$BISON"; then
5460 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_prog_BISON="bison "
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5473 done
5474 done
5475 IFS=$as_save_IFS
5479 BISON=$ac_cv_prog_BISON
5480 if test -n "$BISON"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5482 $as_echo "$BISON" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5489 if test "$BISON" = ""; then
5490 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5492 # Extract the first word of "flex", so it can be a program name with args.
5493 set dummy flex; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_FLEX+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$FLEX"; then
5500 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509 ac_cv_prog_FLEX="flex "
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5513 done
5514 done
5515 IFS=$as_save_IFS
5519 FLEX=$ac_cv_prog_FLEX
5520 if test -n "$FLEX"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5522 $as_echo "$FLEX" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5529 if test "$FLEX" = ""; then
5530 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5532 # Extract the first word of "pngtopnm", so it can be a program name with args.
5533 set dummy pngtopnm; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -n "$PNGTOPNM"; then
5540 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_prog_PNGTOPNM="pngtopnm "
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5553 done
5554 done
5555 IFS=$as_save_IFS
5559 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5560 if test -n "$PNGTOPNM"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5562 $as_echo "$PNGTOPNM" >&6; }
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5569 if test "$PNGTOPNM" = ""; then
5570 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5572 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5573 set dummy ppmtoilbm; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$PPMTOILBM"; then
5580 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5593 done
5594 done
5595 IFS=$as_save_IFS
5599 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5600 if test -n "$PPMTOILBM"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5602 $as_echo "$PPMTOILBM" >&6; }
5603 else
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5609 if test "$PPMTOILBM" = ""; then
5610 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5612 # Extract the first word of "sed", so it can be a program name with args.
5613 set dummy sed; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_prog_SED+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 if test -n "$SED"; then
5620 ac_cv_prog_SED="$SED" # Let the user override the test.
5621 else
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_prog_SED="sed "
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5633 done
5634 done
5635 IFS=$as_save_IFS
5639 SED=$ac_cv_prog_SED
5640 if test -n "$SED"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5642 $as_echo "$SED" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5649 if test "$SED" = ""; then
5650 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5652 # Extract the first word of "chmod", so it can be a program name with args.
5653 set dummy chmod; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_prog_CHMOD+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -n "$CHMOD"; then
5660 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_prog_CHMOD="chmod "
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5673 done
5674 done
5675 IFS=$as_save_IFS
5679 CHMOD=$ac_cv_prog_CHMOD
5680 if test -n "$CHMOD"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5682 $as_echo "$CHMOD" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5689 if test "$CHMOD" = ""; then
5690 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5692 # Extract the first word of "patch", so it can be a program name with args.
5693 set dummy patch; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_prog_PATCH+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if test -n "$PATCH"; then
5700 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5709 ac_cv_prog_PATCH="patch "
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5713 done
5714 done
5715 IFS=$as_save_IFS
5719 PATCH=$ac_cv_prog_PATCH
5720 if test -n "$PATCH"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5722 $as_echo "$PATCH" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5729 if test "$PATCH" = ""; then
5730 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5739 if test -n "$PYTHON"; then
5740 # If the user set $PYTHON, use it and don't search something else.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5742 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5743 prog="import sys
5744 # split strings by '.' and convert to numeric. Append some zeros
5745 # because we need at least 4 digits for the hex conversion.
5746 # map returns an iterator in Python 3.0 and a list in 2.x
5747 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5748 minverhex = 0
5749 # xrange is not present in Python 3.0 and range returns an iterator
5750 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5751 sys.exit(sys.hexversion < minverhex)"
5752 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5753 ($PYTHON -c "$prog") >&5 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; then :
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758 $as_echo "yes" >&6; }
5759 else
5760 as_fn_error $? "too old" "$LINENO" 5
5762 am_display_PYTHON=$PYTHON
5763 else
5764 # Otherwise, try each interpreter until we find one that satisfies
5765 # VERSION.
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5767 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5768 if ${am_cv_pathless_PYTHON+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5772 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
5773 test "$am_cv_pathless_PYTHON" = none && break
5774 prog="import sys
5775 # split strings by '.' and convert to numeric. Append some zeros
5776 # because we need at least 4 digits for the hex conversion.
5777 # map returns an iterator in Python 3.0 and a list in 2.x
5778 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5779 minverhex = 0
5780 # xrange is not present in Python 3.0 and range returns an iterator
5781 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5782 sys.exit(sys.hexversion < minverhex)"
5783 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5784 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; then :
5788 break
5790 done
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5793 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5794 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5795 if test "$am_cv_pathless_PYTHON" = none; then
5796 PYTHON=:
5797 else
5798 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5799 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_path_PYTHON+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 case $PYTHON in
5806 [\\/]* | ?:[\\/]*)
5807 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5821 done
5822 done
5823 IFS=$as_save_IFS
5826 esac
5828 PYTHON=$ac_cv_path_PYTHON
5829 if test -n "$PYTHON"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5831 $as_echo "$PYTHON" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5839 am_display_PYTHON=$am_cv_pathless_PYTHON
5843 if test "$PYTHON" = :; then
5844 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5845 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5849 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5850 if ${am_cv_python_version+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5856 $as_echo "$am_cv_python_version" >&6; }
5857 PYTHON_VERSION=$am_cv_python_version
5861 PYTHON_PREFIX='${prefix}'
5863 PYTHON_EXEC_PREFIX='${exec_prefix}'
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5868 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5869 if ${am_cv_python_platform+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5875 $as_echo "$am_cv_python_platform" >&6; }
5876 PYTHON_PLATFORM=$am_cv_python_platform
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5882 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5883 if ${am_cv_python_pythondir+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test "x$prefix" = xNONE
5887 then
5888 am_py_prefix=$ac_default_prefix
5889 else
5890 am_py_prefix=$prefix
5892 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`
5893 case $am_cv_python_pythondir in
5894 $am_py_prefix*)
5895 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5896 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5899 case $am_py_prefix in
5900 /usr|/System*) ;;
5902 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5904 esac
5906 esac
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5910 $as_echo "$am_cv_python_pythondir" >&6; }
5911 pythondir=$am_cv_python_pythondir
5915 pkgpythondir=\${pythondir}/$PACKAGE
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5919 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5920 if ${am_cv_python_pyexecdir+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test "x$exec_prefix" = xNONE
5924 then
5925 am_py_exec_prefix=$am_py_prefix
5926 else
5927 am_py_exec_prefix=$exec_prefix
5929 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`
5930 case $am_cv_python_pyexecdir in
5931 $am_py_exec_prefix*)
5932 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5933 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5936 case $am_py_exec_prefix in
5937 /usr|/System*) ;;
5939 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5941 esac
5943 esac
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5947 $as_echo "$am_cv_python_pyexecdir" >&6; }
5948 pyexecdir=$am_cv_python_pyexecdir
5952 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5962 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5963 if ${ac_cv_lib_png_png_read_png+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 ac_check_lib_save_LIBS=$LIBS
5967 LIBS="-lpng $LIBS"
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5971 /* Override any GCC internal prototype to avoid an error.
5972 Use char because int might match the return type of a GCC
5973 builtin and then its argument prototype would still apply. */
5974 #ifdef __cplusplus
5975 extern "C"
5976 #endif
5977 char png_read_png ();
5979 main ()
5981 return png_read_png ();
5983 return 0;
5985 _ACEOF
5986 if ac_fn_c_try_link "$LINENO"; then :
5987 ac_cv_lib_png_png_read_png=yes
5988 else
5989 ac_cv_lib_png_png_read_png=no
5991 rm -f core conftest.err conftest.$ac_objext \
5992 conftest$ac_exeext conftest.$ac_ext
5993 LIBS=$ac_check_lib_save_LIBS
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
5996 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
5997 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
5998 cat >>confdefs.h <<_ACEOF
5999 #define HAVE_LIBPNG 1
6000 _ACEOF
6002 LIBS="-lpng $LIBS"
6006 if test "$ac_cv_lib_png_png_read_png" = ""; then
6007 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6010 FOR=for
6012 IF=if
6014 TEST=test
6016 CMP=cmp
6020 # Check for some includes for the X11 HIDD and the kernel
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6023 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6024 if ${ac_cv_path_GREP+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -z "$GREP"; then
6028 ac_path_GREP_found=false
6029 # Loop through the user's path and test for each of PROGNAME-LIST
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_prog in grep ggrep; do
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6038 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6039 # Check for GNU ac_path_GREP and select it if it is found.
6040 # Check for GNU $ac_path_GREP
6041 case `"$ac_path_GREP" --version 2>&1` in
6042 *GNU*)
6043 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6045 ac_count=0
6046 $as_echo_n 0123456789 >"conftest.in"
6047 while :
6049 cat "conftest.in" "conftest.in" >"conftest.tmp"
6050 mv "conftest.tmp" "conftest.in"
6051 cp "conftest.in" "conftest.nl"
6052 $as_echo 'GREP' >> "conftest.nl"
6053 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6055 as_fn_arith $ac_count + 1 && ac_count=$as_val
6056 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6057 # Best one so far, save it but keep looking for a better one
6058 ac_cv_path_GREP="$ac_path_GREP"
6059 ac_path_GREP_max=$ac_count
6061 # 10*(2^10) chars as input seems more than enough
6062 test $ac_count -gt 10 && break
6063 done
6064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6065 esac
6067 $ac_path_GREP_found && break 3
6068 done
6069 done
6070 done
6071 IFS=$as_save_IFS
6072 if test -z "$ac_cv_path_GREP"; then
6073 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6075 else
6076 ac_cv_path_GREP=$GREP
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6081 $as_echo "$ac_cv_path_GREP" >&6; }
6082 GREP="$ac_cv_path_GREP"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6086 $as_echo_n "checking for egrep... " >&6; }
6087 if ${ac_cv_path_EGREP+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6091 then ac_cv_path_EGREP="$GREP -E"
6092 else
6093 if test -z "$EGREP"; then
6094 ac_path_EGREP_found=false
6095 # Loop through the user's path and test for each of PROGNAME-LIST
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_prog in egrep; do
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6104 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6105 # Check for GNU ac_path_EGREP and select it if it is found.
6106 # Check for GNU $ac_path_EGREP
6107 case `"$ac_path_EGREP" --version 2>&1` in
6108 *GNU*)
6109 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6111 ac_count=0
6112 $as_echo_n 0123456789 >"conftest.in"
6113 while :
6115 cat "conftest.in" "conftest.in" >"conftest.tmp"
6116 mv "conftest.tmp" "conftest.in"
6117 cp "conftest.in" "conftest.nl"
6118 $as_echo 'EGREP' >> "conftest.nl"
6119 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6121 as_fn_arith $ac_count + 1 && ac_count=$as_val
6122 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6123 # Best one so far, save it but keep looking for a better one
6124 ac_cv_path_EGREP="$ac_path_EGREP"
6125 ac_path_EGREP_max=$ac_count
6127 # 10*(2^10) chars as input seems more than enough
6128 test $ac_count -gt 10 && break
6129 done
6130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6131 esac
6133 $ac_path_EGREP_found && break 3
6134 done
6135 done
6136 done
6137 IFS=$as_save_IFS
6138 if test -z "$ac_cv_path_EGREP"; then
6139 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6141 else
6142 ac_cv_path_EGREP=$EGREP
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6148 $as_echo "$ac_cv_path_EGREP" >&6; }
6149 EGREP="$ac_cv_path_EGREP"
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6153 $as_echo_n "checking for ANSI C header files... " >&6; }
6154 if ${ac_cv_header_stdc+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 #include <stdlib.h>
6160 #include <stdarg.h>
6161 #include <string.h>
6162 #include <float.h>
6165 main ()
6169 return 0;
6171 _ACEOF
6172 if ac_fn_c_try_compile "$LINENO"; then :
6173 ac_cv_header_stdc=yes
6174 else
6175 ac_cv_header_stdc=no
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 if test $ac_cv_header_stdc = yes; then
6180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6183 #include <string.h>
6185 _ACEOF
6186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187 $EGREP "memchr" >/dev/null 2>&1; then :
6189 else
6190 ac_cv_header_stdc=no
6192 rm -f conftest*
6196 if test $ac_cv_header_stdc = yes; then
6197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6200 #include <stdlib.h>
6202 _ACEOF
6203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6204 $EGREP "free" >/dev/null 2>&1; then :
6206 else
6207 ac_cv_header_stdc=no
6209 rm -f conftest*
6213 if test $ac_cv_header_stdc = yes; then
6214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6215 if test "$cross_compiling" = yes; then :
6217 else
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #include <ctype.h>
6221 #include <stdlib.h>
6222 #if ((' ' & 0x0FF) == 0x020)
6223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6225 #else
6226 # define ISLOWER(c) \
6227 (('a' <= (c) && (c) <= 'i') \
6228 || ('j' <= (c) && (c) <= 'r') \
6229 || ('s' <= (c) && (c) <= 'z'))
6230 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6231 #endif
6233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6235 main ()
6237 int i;
6238 for (i = 0; i < 256; i++)
6239 if (XOR (islower (i), ISLOWER (i))
6240 || toupper (i) != TOUPPER (i))
6241 return 2;
6242 return 0;
6244 _ACEOF
6245 if ac_fn_c_try_run "$LINENO"; then :
6247 else
6248 ac_cv_header_stdc=no
6250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6251 conftest.$ac_objext conftest.beam conftest.$ac_ext
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6257 $as_echo "$ac_cv_header_stdc" >&6; }
6258 if test $ac_cv_header_stdc = yes; then
6260 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6264 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6266 inttypes.h stdint.h unistd.h
6267 do :
6268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6269 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6272 cat >>confdefs.h <<_ACEOF
6273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6274 _ACEOF
6278 done
6281 for ac_header in sys/ipc.h sys/shm.h \
6282 sys/mmap.h sys/mman.h sysexits.h \
6283 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6285 do :
6286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6287 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6288 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6289 cat >>confdefs.h <<_ACEOF
6290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6291 _ACEOF
6295 done
6298 for ac_header in sys/mount.h
6299 do :
6300 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6302 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6303 cat >>confdefs.h <<_ACEOF
6304 #define HAVE_SYS_MOUNT_H 1
6305 _ACEOF
6309 done
6312 ac_header_dirent=no
6313 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6314 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6316 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6317 if eval \${$as_ac_Header+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6322 #include <sys/types.h>
6323 #include <$ac_hdr>
6326 main ()
6328 if ((DIR *) 0)
6329 return 0;
6331 return 0;
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335 eval "$as_ac_Header=yes"
6336 else
6337 eval "$as_ac_Header=no"
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341 eval ac_res=\$$as_ac_Header
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6343 $as_echo "$ac_res" >&6; }
6344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6345 cat >>confdefs.h <<_ACEOF
6346 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6347 _ACEOF
6349 ac_header_dirent=$ac_hdr; break
6352 done
6353 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6354 if test $ac_header_dirent = dirent.h; then
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 '' dir; 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"
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6413 $as_echo_n "checking for library containing opendir... " >&6; }
6414 if ${ac_cv_search_opendir+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 ac_func_search_save_LIBS=$LIBS
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6421 /* Override any GCC internal prototype to avoid an error.
6422 Use char because int might match the return type of a GCC
6423 builtin and then its argument prototype would still apply. */
6424 #ifdef __cplusplus
6425 extern "C"
6426 #endif
6427 char opendir ();
6429 main ()
6431 return opendir ();
6433 return 0;
6435 _ACEOF
6436 for ac_lib in '' x; do
6437 if test -z "$ac_lib"; then
6438 ac_res="none required"
6439 else
6440 ac_res=-l$ac_lib
6441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6443 if ac_fn_c_try_link "$LINENO"; then :
6444 ac_cv_search_opendir=$ac_res
6446 rm -f core conftest.err conftest.$ac_objext \
6447 conftest$ac_exeext
6448 if ${ac_cv_search_opendir+:} false; then :
6449 break
6451 done
6452 if ${ac_cv_search_opendir+:} false; then :
6454 else
6455 ac_cv_search_opendir=no
6457 rm conftest.$ac_ext
6458 LIBS=$ac_func_search_save_LIBS
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6461 $as_echo "$ac_cv_search_opendir" >&6; }
6462 ac_res=$ac_cv_search_opendir
6463 if test "$ac_res" != no; then :
6464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6471 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6472 if ${ac_cv_header_stat_broken+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 #include <sys/types.h>
6478 #include <sys/stat.h>
6480 #if defined S_ISBLK && defined S_IFDIR
6481 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6482 #endif
6484 #if defined S_ISBLK && defined S_IFCHR
6485 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6486 #endif
6488 #if defined S_ISLNK && defined S_IFREG
6489 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6490 #endif
6492 #if defined S_ISSOCK && defined S_IFREG
6493 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6494 #endif
6496 _ACEOF
6497 if ac_fn_c_try_compile "$LINENO"; then :
6498 ac_cv_header_stat_broken=no
6499 else
6500 ac_cv_header_stat_broken=yes
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6505 $as_echo "$ac_cv_header_stat_broken" >&6; }
6506 if test $ac_cv_header_stat_broken = yes; then
6508 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6513 $as_echo_n "checking for ANSI C header files... " >&6; }
6514 if ${ac_cv_header_stdc+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 #include <stdlib.h>
6520 #include <stdarg.h>
6521 #include <string.h>
6522 #include <float.h>
6525 main ()
6529 return 0;
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"; then :
6533 ac_cv_header_stdc=yes
6534 else
6535 ac_cv_header_stdc=no
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 if test $ac_cv_header_stdc = yes; then
6540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 #include <string.h>
6545 _ACEOF
6546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6547 $EGREP "memchr" >/dev/null 2>&1; then :
6549 else
6550 ac_cv_header_stdc=no
6552 rm -f conftest*
6556 if test $ac_cv_header_stdc = yes; then
6557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560 #include <stdlib.h>
6562 _ACEOF
6563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6564 $EGREP "free" >/dev/null 2>&1; then :
6566 else
6567 ac_cv_header_stdc=no
6569 rm -f conftest*
6573 if test $ac_cv_header_stdc = yes; then
6574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6575 if test "$cross_compiling" = yes; then :
6577 else
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 #include <ctype.h>
6581 #include <stdlib.h>
6582 #if ((' ' & 0x0FF) == 0x020)
6583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6585 #else
6586 # define ISLOWER(c) \
6587 (('a' <= (c) && (c) <= 'i') \
6588 || ('j' <= (c) && (c) <= 'r') \
6589 || ('s' <= (c) && (c) <= 'z'))
6590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6591 #endif
6593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6595 main ()
6597 int i;
6598 for (i = 0; i < 256; i++)
6599 if (XOR (islower (i), ISLOWER (i))
6600 || toupper (i) != TOUPPER (i))
6601 return 2;
6602 return 0;
6604 _ACEOF
6605 if ac_fn_c_try_run "$LINENO"; then :
6607 else
6608 ac_cv_header_stdc=no
6610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6611 conftest.$ac_objext conftest.beam conftest.$ac_ext
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6617 $as_echo "$ac_cv_header_stdc" >&6; }
6618 if test $ac_cv_header_stdc = yes; then
6620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6625 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6626 if ${ac_cv_header_sys_wait_h+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 #include <sys/types.h>
6632 #include <sys/wait.h>
6633 #ifndef WEXITSTATUS
6634 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6635 #endif
6636 #ifndef WIFEXITED
6637 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6638 #endif
6641 main ()
6643 int s;
6644 wait (&s);
6645 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6647 return 0;
6649 _ACEOF
6650 if ac_fn_c_try_compile "$LINENO"; then :
6651 ac_cv_header_sys_wait_h=yes
6652 else
6653 ac_cv_header_sys_wait_h=no
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6658 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6659 if test $ac_cv_header_sys_wait_h = yes; then
6661 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6666 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6667 if ${ac_cv_header_time+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #include <sys/types.h>
6673 #include <sys/time.h>
6674 #include <time.h>
6677 main ()
6679 if ((struct tm *) 0)
6680 return 0;
6682 return 0;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 ac_cv_header_time=yes
6687 else
6688 ac_cv_header_time=no
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6693 $as_echo "$ac_cv_header_time" >&6; }
6694 if test $ac_cv_header_time = yes; then
6696 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6700 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6701 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6703 cat >>confdefs.h <<_ACEOF
6704 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6705 _ACEOF
6708 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6713 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6714 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6716 cat >>confdefs.h <<_ACEOF
6717 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6718 _ACEOF
6721 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6723 else
6724 case " $LIBOBJS " in
6725 *" fileblocks.$ac_objext "* ) ;;
6726 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6728 esac
6733 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6734 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6736 cat >>confdefs.h <<_ACEOF
6737 #define HAVE_STRUCT_STAT_ST_RDEV 1
6738 _ACEOF
6741 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6747 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6748 if ${ac_cv_struct_tm+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #include <sys/types.h>
6754 #include <time.h>
6757 main ()
6759 struct tm tm;
6760 int *p = &tm.tm_sec;
6761 return !p;
6763 return 0;
6765 _ACEOF
6766 if ac_fn_c_try_compile "$LINENO"; then :
6767 ac_cv_struct_tm=time.h
6768 else
6769 ac_cv_struct_tm=sys/time.h
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6774 $as_echo "$ac_cv_struct_tm" >&6; }
6775 if test $ac_cv_struct_tm = sys/time.h; then
6777 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6781 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6782 #include <$ac_cv_struct_tm>
6785 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6787 cat >>confdefs.h <<_ACEOF
6788 #define HAVE_STRUCT_TM_TM_ZONE 1
6789 _ACEOF
6794 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6796 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6798 else
6799 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6801 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6802 ac_have_decl=1
6803 else
6804 ac_have_decl=0
6807 cat >>confdefs.h <<_ACEOF
6808 #define HAVE_DECL_TZNAME $ac_have_decl
6809 _ACEOF
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6812 $as_echo_n "checking for tzname... " >&6; }
6813 if ${ac_cv_var_tzname+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #include <time.h>
6819 #if !HAVE_DECL_TZNAME
6820 extern char *tzname[];
6821 #endif
6824 main ()
6826 return tzname[0][0];
6828 return 0;
6830 _ACEOF
6831 if ac_fn_c_try_link "$LINENO"; then :
6832 ac_cv_var_tzname=yes
6833 else
6834 ac_cv_var_tzname=no
6836 rm -f core conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6840 $as_echo "$ac_cv_var_tzname" >&6; }
6841 if test $ac_cv_var_tzname = yes; then
6843 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6848 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6849 if test "x$ac_cv_type_off_t" = xyes; then :
6851 else
6853 cat >>confdefs.h <<_ACEOF
6854 #define off_t long int
6855 _ACEOF
6859 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6860 if test "x$ac_cv_type_pid_t" = xyes; then :
6862 else
6864 cat >>confdefs.h <<_ACEOF
6865 #define pid_t int
6866 _ACEOF
6870 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6871 if test "x$ac_cv_type_size_t" = xyes; then :
6873 else
6875 cat >>confdefs.h <<_ACEOF
6876 #define size_t unsigned int
6877 _ACEOF
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6882 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6883 if ${ac_cv_type_uid_t+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 #include <sys/types.h>
6890 _ACEOF
6891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6892 $EGREP "uid_t" >/dev/null 2>&1; then :
6893 ac_cv_type_uid_t=yes
6894 else
6895 ac_cv_type_uid_t=no
6897 rm -f conftest*
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6901 $as_echo "$ac_cv_type_uid_t" >&6; }
6902 if test $ac_cv_type_uid_t = no; then
6904 $as_echo "#define uid_t int" >>confdefs.h
6907 $as_echo "#define gid_t int" >>confdefs.h
6912 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6913 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6915 cat >>confdefs.h <<_ACEOF
6916 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6917 _ACEOF
6923 # Look for some functions
6924 for ac_func in getpagesize kqueue statfs statvfs \
6925 clone kse_create rfork_thread thr_create sa_register \
6926 getcontext makecontext setcontext sigaltstack swapcontext
6927 do :
6928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6930 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6931 cat >>confdefs.h <<_ACEOF
6932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6933 _ACEOF
6936 done
6942 for ac_header in $ac_header_list
6943 do :
6944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6945 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6948 cat >>confdefs.h <<_ACEOF
6949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6950 _ACEOF
6954 done
6963 for ac_func in getpagesize
6964 do :
6965 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6966 if test "x$ac_cv_func_getpagesize" = xyes; then :
6967 cat >>confdefs.h <<_ACEOF
6968 #define HAVE_GETPAGESIZE 1
6969 _ACEOF
6972 done
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6975 $as_echo_n "checking for working mmap... " >&6; }
6976 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test "$cross_compiling" = yes; then :
6980 ac_cv_func_mmap_fixed_mapped=no
6981 else
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6984 $ac_includes_default
6985 /* malloc might have been renamed as rpl_malloc. */
6986 #undef malloc
6988 /* Thanks to Mike Haertel and Jim Avera for this test.
6989 Here is a matrix of mmap possibilities:
6990 mmap private not fixed
6991 mmap private fixed at somewhere currently unmapped
6992 mmap private fixed at somewhere already mapped
6993 mmap shared not fixed
6994 mmap shared fixed at somewhere currently unmapped
6995 mmap shared fixed at somewhere already mapped
6996 For private mappings, we should verify that changes cannot be read()
6997 back from the file, nor mmap's back from the file at a different
6998 address. (There have been systems where private was not correctly
6999 implemented like the infamous i386 svr4.0, and systems where the
7000 VM page cache was not coherent with the file system buffer cache
7001 like early versions of FreeBSD and possibly contemporary NetBSD.)
7002 For shared mappings, we should conversely verify that changes get
7003 propagated back to all the places they're supposed to be.
7005 Grep wants private fixed already mapped.
7006 The main things grep needs to know about mmap are:
7007 * does it exist and is it safe to write into the mmap'd area
7008 * how to use it (BSD variants) */
7010 #include <fcntl.h>
7011 #include <sys/mman.h>
7013 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7014 char *malloc ();
7015 #endif
7017 /* This mess was copied from the GNU getpagesize.h. */
7018 #ifndef HAVE_GETPAGESIZE
7019 # ifdef _SC_PAGESIZE
7020 # define getpagesize() sysconf(_SC_PAGESIZE)
7021 # else /* no _SC_PAGESIZE */
7022 # ifdef HAVE_SYS_PARAM_H
7023 # include <sys/param.h>
7024 # ifdef EXEC_PAGESIZE
7025 # define getpagesize() EXEC_PAGESIZE
7026 # else /* no EXEC_PAGESIZE */
7027 # ifdef NBPG
7028 # define getpagesize() NBPG * CLSIZE
7029 # ifndef CLSIZE
7030 # define CLSIZE 1
7031 # endif /* no CLSIZE */
7032 # else /* no NBPG */
7033 # ifdef NBPC
7034 # define getpagesize() NBPC
7035 # else /* no NBPC */
7036 # ifdef PAGESIZE
7037 # define getpagesize() PAGESIZE
7038 # endif /* PAGESIZE */
7039 # endif /* no NBPC */
7040 # endif /* no NBPG */
7041 # endif /* no EXEC_PAGESIZE */
7042 # else /* no HAVE_SYS_PARAM_H */
7043 # define getpagesize() 8192 /* punt totally */
7044 # endif /* no HAVE_SYS_PARAM_H */
7045 # endif /* no _SC_PAGESIZE */
7047 #endif /* no HAVE_GETPAGESIZE */
7050 main ()
7052 char *data, *data2, *data3;
7053 const char *cdata2;
7054 int i, pagesize;
7055 int fd, fd2;
7057 pagesize = getpagesize ();
7059 /* First, make a file with some known garbage in it. */
7060 data = (char *) malloc (pagesize);
7061 if (!data)
7062 return 1;
7063 for (i = 0; i < pagesize; ++i)
7064 *(data + i) = rand ();
7065 umask (0);
7066 fd = creat ("conftest.mmap", 0600);
7067 if (fd < 0)
7068 return 2;
7069 if (write (fd, data, pagesize) != pagesize)
7070 return 3;
7071 close (fd);
7073 /* Next, check that the tail of a page is zero-filled. File must have
7074 non-zero length, otherwise we risk SIGBUS for entire page. */
7075 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7076 if (fd2 < 0)
7077 return 4;
7078 cdata2 = "";
7079 if (write (fd2, cdata2, 1) != 1)
7080 return 5;
7081 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7082 if (data2 == MAP_FAILED)
7083 return 6;
7084 for (i = 0; i < pagesize; ++i)
7085 if (*(data2 + i))
7086 return 7;
7087 close (fd2);
7088 if (munmap (data2, pagesize))
7089 return 8;
7091 /* Next, try to mmap the file at a fixed address which already has
7092 something else allocated at it. If we can, also make sure that
7093 we see the same garbage. */
7094 fd = open ("conftest.mmap", O_RDWR);
7095 if (fd < 0)
7096 return 9;
7097 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7098 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7099 return 10;
7100 for (i = 0; i < pagesize; ++i)
7101 if (*(data + i) != *(data2 + i))
7102 return 11;
7104 /* Finally, make sure that changes to the mapped area do not
7105 percolate back to the file as seen by read(). (This is a bug on
7106 some variants of i386 svr4.0.) */
7107 for (i = 0; i < pagesize; ++i)
7108 *(data2 + i) = *(data2 + i) + 1;
7109 data3 = (char *) malloc (pagesize);
7110 if (!data3)
7111 return 12;
7112 if (read (fd, data3, pagesize) != pagesize)
7113 return 13;
7114 for (i = 0; i < pagesize; ++i)
7115 if (*(data + i) != *(data3 + i))
7116 return 14;
7117 close (fd);
7118 return 0;
7120 _ACEOF
7121 if ac_fn_c_try_run "$LINENO"; then :
7122 ac_cv_func_mmap_fixed_mapped=yes
7123 else
7124 ac_cv_func_mmap_fixed_mapped=no
7126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7127 conftest.$ac_objext conftest.beam conftest.$ac_ext
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7132 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7133 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7135 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7138 rm -f conftest.mmap conftest.txt
7143 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7144 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7145 aros_config_ldflags=""
7147 aros_shared_default=yes
7149 aros_shared_cflags="-fPIC"
7150 aros_shared_aflags=""
7151 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7152 aros_kernel_ldflags="-Wl,-rpath,./lib"
7154 aros_kernel_ar_flags="cr"
7155 aros_target_ar_flags="cr"
7156 aros_target_nm_flags="-C -ul"
7157 aros_target_strip_flags="--strip-unneeded -R.comment"
7159 aros_compiler_libs=
7160 aros_arch_libs=
7162 aros_target_genmap="-Wl,-Map -Xlinker"
7164 # Native flavour stuff
7165 aros_serial_debug="0"
7167 # Palm native flavour stuff
7168 aros_palm_debug_hack="0"
7170 # Unix flavour stuff
7171 aros_nesting_supervisor="0"
7173 # Collect-aros stuff: "-ius" to ignore undefined symbols
7174 ignore_undefined_symbols=""
7176 # Check for X11 by default
7177 need_x11="auto"
7179 #-----------------------------------------------------------------------------
7182 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7183 # it switched on by default, and we use the host compiler, so it compiles AROS
7184 # code with this enabled resulting in link failures as we don't have support
7185 # for it.
7187 # We use two methods to disable it. For the host compiler (used to compile
7188 # some hosted modules), we test to see if the compiler supports stack
7189 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7190 # work on all platforms.
7192 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7193 # (this is done unconditionally, as it should have no effect on compilers
7194 # without the stack protection feature). This may be specific to the way that
7195 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7196 # strong enough to disable it in a generic way though, so we'll live with it
7197 # until another vendor ships GCC with it enabled in a different way, and deal
7198 # with it then.
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7202 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7203 save_cflags="$CFLAGS"
7204 CFLAGS="$CFLAGS -fno-stack-protector"
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7209 main ()
7213 return 0;
7215 _ACEOF
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217 use_no_stack_protector="yes"
7218 else
7219 use_no_stack_protector="no"
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7223 $as_echo "$use_no_stack_protector" >&6; }
7224 if test "x-$use_no_stack_protector" = "x-yes" ; then
7225 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7227 CFLAGS="$save_cflags"
7229 #-----------------------------------------------------------------------------
7231 # Disable pointer-signedness warnings if the compiler recognises the option
7232 # (this only works for the host compiler at the moment)
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7235 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7236 save_cflags="$CFLAGS"
7237 CFLAGS="$CFLAGS -Wno-pointer-sign"
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7242 main ()
7246 return 0;
7248 _ACEOF
7249 if ac_fn_c_try_compile "$LINENO"; then :
7250 use_no_sign_warning="yes"
7251 else
7252 use_no_sign_warning="no"
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7256 $as_echo "$use_no_sign_warning" >&6; }
7257 if test "x-$use_no_sign_warning" = "x-yes" ; then
7258 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7260 CFLAGS="$save_cflags"
7262 #-----------------------------------------------------------------------------
7264 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7267 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7268 save_cflags="$CFLAGS"
7269 CFLAGS="$CFLAGS -fgnu89-inline"
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7274 main ()
7278 return 0;
7280 _ACEOF
7281 if ac_fn_c_try_compile "$LINENO"; then :
7282 use_gnu89_inline="yes"
7283 else
7284 use_gnu89_inline="no"
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7288 $as_echo "$use_gnu89_inline" >&6; }
7289 if test "x-$use_gnu89_inline" = "x-yes" ; then
7290 gnu89_inline="-fgnu89-inline"
7292 CFLAGS="$save_cflags"
7294 #-----------------------------------------------------------------------------
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7297 $as_echo_n "checking for type of build... " >&6; }
7298 # Check whether --enable-build_type was given.
7299 if test "${enable_build_type+set}" = set; then :
7300 enableval=$enable_build_type; build_type=$enableval
7301 else
7302 build_type="personal"
7306 if test "$build_type" = "nightly"; then
7307 build_type_string="NIGHTLY"
7308 elif test "$build_type" = "snapshot"; then
7309 build_type_string="SNAPSHOT"
7310 elif test "$build_type" = "milestone"; then
7311 build_type_string="MILESTONE"
7312 elif test "$build_type" = "release"; then
7313 build_type_string="RELEASE"
7314 else
7315 build_type_string="PERSONAL"
7316 build_type="personal"
7319 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7322 $as_echo "$build_type" >&6; }
7324 #-----------------------------------------------------------------------------
7325 all_debug_types="messages stack modules mungwall symbols"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7328 $as_echo_n "checking which debug types to enable... " >&6; }
7329 # Check whether --enable-debug was given.
7330 if test "${enable_debug+set}" = set; then :
7331 enableval=$enable_debug; debug="$enableval"
7332 else
7333 debug=""
7337 if test "$debug" = "" -o "$debug" = "no"; then
7338 debug="none"
7339 elif test "$debug" = "yes"; then
7340 debug="all"
7343 if test "$debug" = "all" ; then
7344 debug="messages stack modules symbols"
7345 for d in $all_debug_types; do
7346 export aros_${d}_debug="1"
7347 done
7348 else
7349 for d in $all_debug_types; do
7350 export aros_${d}_debug="0"
7351 done
7354 if test "$debug" != "none"; then
7355 debug=`echo $debug | sed s/,/\ /g`
7356 for d in $debug; do
7357 found="0"
7358 for d2 in $all_debug_types; do
7359 if test "$d2" = "$d"; then
7360 found="1"
7361 break
7363 done
7364 if test "$found" = "0"; then
7365 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7367 export aros_${d}_debug="1"
7368 done
7369 aros_debug="yes"
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7372 $as_echo "$debug" >&6; }
7374 if test "$aros_messages_debug" = "1"; then
7375 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7376 else
7377 aros_messages_debug=""
7379 if test "$aros_symbols_debug" = "1"; then
7380 aros_symbols_debug="-g"
7381 else
7382 aros_symbols_debug=""
7385 # These are the flags to pass when compiling debugged programs
7386 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7387 aros_debug_aflags=""
7388 aros_debug_ldflags="$aros_symbols_debug"
7390 #-----------------------------------------------------------------------------
7391 # Checking for distcc and ccache.
7393 # Always apply the transforms in this particular order. Basically you should
7394 # always run 'ccache distcc compiler' in that order for the best performance.
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7397 $as_echo_n "checking whether to enable distcc... " >&6; }
7398 # Check whether --enable-distcc was given.
7399 if test "${enable_distcc+set}" = set; then :
7400 enableval=$enable_distcc; distcc="$enableval"
7401 else
7402 distcc="no"
7405 if test "$distcc" != "" -a "$distcc" != "no"; then
7406 # AC_CHECK_PROG will print out the result in this case
7407 # Extract the first word of "distcc", so it can be a program name with args.
7408 set dummy distcc; 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_path_DISTCC+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 case $DISTCC in
7415 [\\/]* | ?:[\\/]*)
7416 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7430 done
7431 done
7432 IFS=$as_save_IFS
7434 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7436 esac
7438 DISTCC=$ac_cv_path_DISTCC
7439 if test -n "$DISTCC"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7441 $as_echo "$DISTCC" >&6; }
7442 else
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7454 $as_echo_n "checking whether to enable ccache... " >&6; }
7455 # Check whether --enable-ccache was given.
7456 if test "${enable_ccache+set}" = set; then :
7457 enableval=$enable_ccache; ccache="$enableval"
7458 else
7459 ccache="no"
7462 if test "$ccache" != "" -a "$ccache" != "no"; then
7463 # AC_CHECK_PROG will print out the result in this case
7464 # Extract the first word of "ccache", so it can be a program name with args.
7465 set dummy ccache; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_CCACHE+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 if test -n "$CCACHE"; then
7472 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_prog_CCACHE="ccache"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7485 done
7486 done
7487 IFS=$as_save_IFS
7491 CCACHE=$ac_cv_prog_CCACHE
7492 if test -n "$CCACHE"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7494 $as_echo "$CCACHE" >&6; }
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7501 else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7506 #-----------------------------------------------------------------------------
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7508 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7510 # Check whether --with-kernel-gcc-version was given.
7511 if test "${with_kernel_gcc_version+set}" = set; then :
7512 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7513 else
7514 kernel_tool_version=""
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7518 $as_echo "$kernel_tool_version" >&6; }
7520 #-----------------------------------------------------------------------------
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7522 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7524 # Check whether --with-gcc-version was given.
7525 if test "${with_gcc_version+set}" = set; then :
7526 withval=$with_gcc_version; target_tool_version="$withval"
7527 else
7528 target_tool_version=""
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7532 $as_echo "$target_tool_version" >&6; }
7534 #-----------------------------------------------------------------------------
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7536 $as_echo_n "checking what optimization flags to use... " >&6; }
7538 # Check whether --with-optimization was given.
7539 if test "${with_optimization+set}" = set; then :
7540 withval=$with_optimization; optimization="$withval"
7541 else
7542 optimization="unknown"
7545 if test "$optimization" = "unknown"; then
7546 if test "$debug" != "none"; then
7547 optimization="-O0"
7548 else
7549 optimization="-O2"
7552 aros_config_cflags="$aros_config_cflags $optimization"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7554 $as_echo "$optimization" >&6; }
7556 #-----------------------------------------------------------------------------
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7558 $as_echo_n "checking what paranoia flags to use... " >&6; }
7560 # Check whether --with-paranoia was given.
7561 if test "${with_paranoia+set}" = set; then :
7562 withval=$with_paranoia; paranoia_flags="$withval"
7563 else
7564 paranoia_flags="default"
7567 if test "$paranoia_flags" = "default"; then
7568 paranoia_flags=""
7569 else if test "$paranoia_flags" = "yes"; then
7570 paranoia_flags="-Wall -Werror"
7571 fi fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7573 $as_echo "$paranoia_flags" >&6; }
7574 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7576 #-----------------------------------------------------------------------------
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7578 $as_echo_n "checking what target variant to enable... " >&6; }
7579 # Check whether --enable-target_variant was given.
7580 if test "${enable_target_variant+set}" = set; then :
7581 enableval=$enable_target_variant; target_variant=$enableval
7582 else
7583 target_variant=""
7586 if test "$target_variant" = ""; then
7587 aros_target_variant=""
7588 aros_target_suffix=""
7589 enableval="none"
7590 else
7591 aros_target_variant="$target_variant"
7592 aros_target_suffix="-$target_variant"
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7595 $as_echo "$enableval" >&6; }
7597 #-----------------------------------------------------------------------------
7598 # Target-specific defaults. You can override then on a per-target basis.
7600 # Bootloader name. Currently used by PC target.
7601 target_bootloader="none"
7603 #-----------------------------------------------------------------------------
7604 # Additional options for some specific targets
7606 case "$aros_target_variant" in
7607 ios)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7609 $as_echo_n "checking XCode path... " >&6; }
7611 # Check whether --with-xcode was given.
7612 if test "${with_xcode+set}" = set; then :
7613 withval=$with_xcode; aros_xcode_path="$withval"
7614 else
7615 aros_xcode_path="/Developer"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7619 $as_echo "$aros_xcode_path" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7622 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7624 # Check whether --with-sdk-version was given.
7625 if test "${with_sdk_version+set}" = set; then :
7626 withval=$with_sdk_version; aros_sdk_version="$withval"
7627 else
7628 aros_sdk_version="4.1"
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7632 $as_echo "$aros_sdk_version" >&6; }
7636 "android")
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7638 $as_echo_n "checking Android SDK path... " >&6; }
7640 # Check whether --with-sdk was given.
7641 if test "${with_sdk+set}" = set; then :
7642 withval=$with_sdk; aros_android_sdk="$withval"
7643 else
7644 aros_android_sdk=$default_android_sdk
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7648 $as_echo "$aros_android_sdk" >&6; }
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7651 $as_echo_n "checking Android NDK path... " >&6; }
7653 # Check whether --with-ndk was given.
7654 if test "${with_ndk+set}" = set; then :
7655 withval=$with_ndk; aros_android_ndk="$withval"
7656 else
7657 aros_android_ndk="none"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7661 $as_echo "$aros_android_ndk" >&6; }
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7664 $as_echo_n "checking what Android SDK version to use... " >&6; }
7666 # Check whether --with-sdk-version was given.
7667 if test "${with_sdk_version+set}" = set; then :
7668 withval=$with_sdk_version; aros_sdk_version="$withval"
7669 else
7670 aros_sdk_version="12"
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7674 $as_echo "$aros_sdk_version" >&6; }
7676 if test "$aros_android_ndk" != "none"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7678 $as_echo_n "checking what Android NDK version to use... " >&6; }
7680 # Check whether --with-ndk-version was given.
7681 if test "${with_ndk_version+set}" = set; then :
7682 withval=$with_ndk_version; aros_ndk_version="$withval"
7683 else
7684 aros_ndk_version="9"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7688 $as_echo "$aros_ndk_version" >&6; }
7691 export PATH="$aros_android_sdk/tools:$PATH"
7692 # Extract the first word of "$android_tool", so it can be a program name with args.
7693 set dummy $android_tool; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_path_android_tool+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 case $android_tool in
7700 [\\/]* | ?:[\\/]*)
7701 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7715 done
7716 done
7717 IFS=$as_save_IFS
7720 esac
7722 android_tool=$ac_cv_path_android_tool
7723 if test -n "$android_tool"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7725 $as_echo "$android_tool" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7732 if test "$android_tool" = ""; then
7733 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7736 aros_android_level=android-$aros_sdk_version
7737 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7738 echo "Platform $aros_android_level is not installed in your SDK"
7739 echo "Use --with-sdk-version=<API level number> to select another platform version"
7740 echo "You can check what plaform versions are installed in your SDK"
7741 echo "by examining contents of $aros_android_sdk/platforms directory"
7742 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7745 # Extract the first word of "ant", so it can be a program name with args.
7746 set dummy ant; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_path_ant+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 case $ant in
7753 [\\/]* | ?:[\\/]*)
7754 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7768 done
7769 done
7770 IFS=$as_save_IFS
7773 esac
7775 ant=$ac_cv_path_ant
7776 if test -n "$ant"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7778 $as_echo "$ant" >&6; }
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7785 if test "$ant" = ""; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7787 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7790 if test "$host_os" = "mingw32"; then
7791 android_tool="cmd //c $android_tool"
7795 esac
7797 #-----------------------------------------------------------------------------
7798 # External toolchains
7799 kernel_tool_prefix="none"
7800 aros_tool_prefix="none"
7801 elf_tool_prefix="${target_cpu}-elf-"
7803 # This is the target configuration switch.
7804 case "$target_os" in
7805 linux*)
7806 aros_target_arch="linux"
7807 aros_target_family="unix"
7808 case "$target_cpu" in
7809 *m68k*)
7810 aros_target_cpu="m68k"
7811 aros_object_format="m68kelf"
7812 aros_flavour="emulcompat"
7813 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7814 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7815 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7816 gcc_target_cpu="mc68000"
7818 *i?86*)
7819 aros_target_cpu="i386"
7820 aros_object_format="elf_i386"
7821 aros_flavour="emulation"
7822 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7823 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7824 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7825 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7826 aros_config_ldflags="-m32 -march=i486"
7827 aros_kernel_ldflags="-Wl,-melf_i386"
7828 aros_default_wbdepth=8
7829 gcc_target_cpu="i386"
7830 pci_hidd_target="hidd-pci-linux"
7831 android_tool_dir_prefix="x86"
7832 android_tool_prefix="i686-android-linux"
7833 android_ndk_arch="x86"
7835 *x86_64*)
7836 aros_target_cpu="x86_64"
7837 aros_object_format="elf_x86_64"
7838 aros_flavour="emulation"
7839 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7840 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7841 aros_default_wbdepth=8
7842 pci_hidd_target="hidd-pci-linux"
7844 *powerpc*)
7845 aros_target_cpu="ppc"
7846 aros_object_format="elf32ppc"
7847 aros_flavour="emulation"
7848 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7849 aros_default_wbdepth=8
7850 gcc_target_cpu="ppc"
7852 # TODO
7853 # Same as powerpc, but I need this for the nightly build to work again.
7854 # Actually, the nightly should be made working with powerpc target.
7855 # That just was too much work for the moment, another week or two.
7856 *ppc*)
7857 aros_target_cpu="ppc"
7858 aros_object_format="elf32ppc"
7859 aros_flavour="emulation"
7860 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7861 aros_default_wbdepth=8
7862 gcc_target_cpu="ppc"
7864 *armhf*)
7865 aros_target_cpu="arm"
7866 target_cpu="arm"
7867 aros_object_format="armelf_aros"
7868 aros_flavour="emulation"
7869 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7870 gcc_target_cpu="arm"
7871 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7872 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7873 aros_arch_libs="-laeabi"
7874 gcc_default_float_abi="hard"
7875 android_tool_dir_prefix="arm-linux-androideabi"
7876 android_tool_prefix="arm-linux-androideabi"
7877 android_ndk_arch="arm"
7878 kernel_tool_prefix="arm-linux-gnueabihf-"
7880 *arm*)
7881 aros_target_cpu="arm"
7882 aros_object_format="armelf_aros"
7883 aros_flavour="emulation"
7884 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7885 gcc_target_cpu="arm"
7886 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7887 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7888 aros_arch_libs="-laeabi"
7889 android_tool_dir_prefix="arm-linux-androideabi"
7890 android_tool_prefix="arm-linux-androideabi"
7891 android_ndk_arch="arm"
7892 kernel_tool_prefix="arm-linux-gnueabi-"
7895 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7897 esac
7898 case "$aros_target_variant" in
7899 android)
7901 if test "$android_ndk_arch" = ""; then
7902 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7905 aros_default_wbwidth=320
7906 aros_default_wbheight=480
7907 if test "$aros_android_ndk" = "none"; then
7908 aros_kernel_cflags="-mandroid"
7909 aros_kernel_ldflags="-mandroid"
7910 CFLAGS="-mandroid"
7911 else
7912 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7913 kernel_tool_version=""
7914 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7915 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7916 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7917 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7918 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7920 need_x11=no
7921 x11_hidd_target=kernel-hidd-androidgfx-kobj
7922 # Disable implicit PIC mode
7923 aros_target_cflags="$aros_target_cflags -fno-pic"
7924 kernel_tool_prefix="$android_tool_prefix-"
7926 esac
7930 aros_target_arch="pc"
7931 aros_shared_default="no"
7932 target_bootloader="grub2"
7933 case "$target_cpu" in
7934 *i?86*)
7935 aros_target_cpu="i386"
7938 if test "$aros_object_format" = "" ; then
7939 aros_object_format="elf_i386"
7941 aros_flavour="standalone"
7942 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7943 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7944 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7945 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7946 aros_config_ldflags="-m32 -march=i486"
7947 aros_kernel_ldflags="-Wl,-melf_i386"
7948 aros_default_wbwidth=640
7949 aros_default_wbheight=480
7950 gcc_target_cpu="i386"
7952 *x86_64*)
7953 aros_target_cpu="x86_64"
7954 aros_serial_debug=1
7955 if test "$aros_object_format" = "" ; then
7956 aros_object_format="elf_x86_64"
7958 aros_flavour="standalone"
7959 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7960 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7961 aros_kernel_ldflags=""
7962 aros_default_wbwidth=640
7963 aros_default_wbheight=480
7966 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7968 esac
7971 prep)
7972 aros_target_arch="prep"
7973 aros_shared_default="no"
7974 aros_target_cpu="ppc"
7975 aros_object_format="elf32ppc"
7976 aros_flavour="ppcnative"
7977 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7978 aros_kernel_ldflags=""
7979 aros_default_wbwidth=640
7980 aros_default_wbheight=480
7981 gcc_target_cpu="ppc"
7984 freebsd*)
7985 aros_target_arch="freebsd"
7986 aros_target_family="unix"
7987 aros_target_cpu="i386"
7988 aros_flavour="emulation"
7989 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7990 gcc_target_cpu="i386"
7992 aros_target_strip_flags="-x"
7995 darwin*)
7996 aros_target_arch="darwin"
7997 aros_target_family="unix"
7998 aros_flavour="emulation"
7999 case "$target_cpu" in
8000 *i?86*)
8001 aros_ios_platform="iPhoneSimulator"
8002 aros_target_cpu="i386"
8003 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8004 aros_kernel_ldflags=""
8005 aros_macosx_version="10.4"
8006 aros_default_wbdepth=8
8007 gcc_target_cpu="i386"
8008 aros_object_format="elf_i386"
8009 aros_kernel_ar_flags="-cr"
8010 aros_target_strip_flags="-x"
8011 kernel_tool_flags="-m32"
8013 *x86_64*)
8014 aros_target_cpu="x86_64"
8015 aros_object_format="elf_x86_64"
8016 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8017 aros_macosx_version="10.6"
8018 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8019 aros_kernel_cflags="-m64"
8020 aros_kernel_ldflags="-m64"
8021 aros_target_cflags="-mcmodel=large"
8022 aros_default_wbdepth=8
8023 aros_kernel_ar="ar"
8024 aros_kernel_ar_flags="-cr"
8025 aros_kernel_ld="ld"
8026 aros_kernel_as="as"
8027 aros_kernel_ranlib="ranlib"
8028 aros_kernel_nm="nm"
8029 aros_kernel_strip="strip"
8030 kernel_tool_prefix="i686-apple-darwin10-"
8032 *ppc*)
8033 aros_target_cpu="ppc"
8034 aros_object_format="elf32ppc"
8035 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8036 aros_kernel_ldflags=""
8037 aros_macosx_version="10.0"
8038 aros_default_wbdepth=8
8039 gcc_target_cpu="ppc"
8040 aros_kernel_ar="ar"
8041 aros_kernel_ar_flags="-cr"
8042 aros_kernel_ld="ld -arch ppc"
8043 aros_kernel_as="as -arch ppc"
8044 aros_kernel_ranlib="ranlib -arch ppc"
8045 aros_kernel_nm="nm -arch ppc"
8046 aros_kernel_strip="strip -arch ppc"
8047 kernel_tool_prefix="powerpc-apple-darwin10-"
8049 *arm*)
8050 aros_ios_platform="iPhoneOS"
8051 aros_target_cpu="arm"
8052 aros_object_format="armelf_aros"
8053 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8054 aros_arch_libs="-laeabi"
8055 aros_default_wbdepth=8
8056 gcc_target_cpu="arm"
8057 aros_kernel_ar="ar"
8058 aros_kernel_ar_flags="-cr"
8059 aros_kernel_ld="ld -arch arm"
8060 aros_kernel_ranlib="ranlib -arch arm"
8061 kernel_tool_prefix="arm-apple-darwin10-"
8062 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8065 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8067 esac
8068 case "$aros_target_variant" in
8069 ios)
8070 aros_ios_version="3.0"
8071 aros_default_wbwidth=320
8072 aros_default_wbheight=480
8073 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8074 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8075 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8076 need_x11=no
8077 # This is here because it may depend on iOS or SDK version
8078 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8079 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8080 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8083 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8084 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8086 esac
8089 dragonfly*)
8090 aros_target_arch="dragonfly"
8091 aros_target_family="unix"
8092 aros_flavour="emulation"
8093 case "$target_cpu" in
8094 *i?86*)
8095 aros_target_cpu="i386"
8096 aros_object_format="elf_i386"
8097 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8099 *x86_64*)
8100 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8101 aros_target_cpu="x86_64"
8102 aros_object_format="elf_x86_64"
8103 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8106 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8108 esac
8111 netbsd*)
8112 aros_target_arch="netbsd"
8113 aros_target_family="unix"
8114 case "$target_cpu" in
8115 *m68k*)
8116 aros_target_cpu="m68k"
8117 aros_object_format="m68kelf"
8118 aros_flavour="emulcompat"
8119 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8120 gcc_target_cpu="mc68000"
8122 *i?86*)
8123 aros_target_cpu="i386"
8124 aros_object_format="elf_i386"
8125 aros_flavour="emulation"
8126 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8127 aros_default_wbdepth=8
8128 gcc_target_cpu="i386"
8131 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8133 esac
8134 aros_target_genmap="-Wl,-M -Xlinker >"
8135 aros_flavour="emulation"
8136 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8139 openbsd*)
8140 aros_target_arch="openbsd"
8141 aros_target_family="unix"
8142 case "$target_cpu" in
8143 *i?86*)
8144 aros_target_cpu="i386"
8145 aros_object_format="elf_i386"
8146 aros_flavour="emulation"
8147 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8148 gcc_target_cpu="i386"
8151 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8153 esac
8154 aros_target_genmap="-Wl,-M -Xlinker >"
8155 aros_target_nm_flags="-u"
8156 aros_flavour="emulation"
8159 solaris*)
8160 aros_target_arch="solaris"
8161 aros_target_family="unix"
8162 case "$target_cpu" in
8163 *i?86*)
8164 aros_target_cpu="i386"
8165 aros_object_format="elf_i386"
8166 aros_flavour="emulation"
8167 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8168 aros_default_wbdepth=8
8169 gcc_target_cpu="i386"
8171 *sparc*)
8172 aros_target_cpu="sparc"
8173 aros_object_format="elf_sparc"
8174 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8175 gcc_target_cpu="sparc"
8178 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8180 esac
8181 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8182 aros_flavour="emulation"
8185 morphos*)
8186 aros_target_arch="morphos"
8187 aros_shared_default="no"
8188 aros_target_cpu="ppc"
8189 aros_object_format="elf_ppc"
8190 aros_flavour="nativecompat"
8191 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8192 gcc_target_cpu="ppc"
8195 sam440)
8196 aros_target_arch="sam440"
8197 aros_shared_default="no"
8198 aros_target_cpu="ppc"
8199 aros_object_format="elf32ppc"
8200 aros_flavour="ppcnative"
8201 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8202 aros_kernel_ldflags=""
8203 aros_default_wbwidth=1024
8204 aros_default_wbheight=768
8205 aros_default_wbdepth=24
8206 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8207 gcc_target_cpu="powerpc"
8210 efika)
8211 aros_target_arch="efika"
8212 aros_shared_default="no"
8213 aros_target_cpu="arm"
8214 aros_object_format="armelf_aros"
8215 aros_flavour="standalone"
8216 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8217 aros_kernel_ldflags=""
8218 aros_default_wbwidth=1024
8219 aros_default_wbheight=600
8220 aros_arch_libs="-laeabi"
8221 gcc_default_cpu="armv7-a"
8222 gcc_default_fpu="vfpv3"
8223 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8224 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8225 case "$target_cpu" in
8226 *armhf*)
8227 gcc_default_float_abi="hard"
8228 target_cpu=arm
8229 aros_target_cpu=arm
8231 *arm*)
8232 gcc_default_float_abi="softfp"
8235 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8237 esac
8240 chrp)
8241 aros_target_arch="chrp"
8242 aros_shared_default="no"
8243 aros_target_cpu="ppc"
8244 aros_object_format="elf32ppc"
8245 aros_flavour="ppcnative"
8246 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8247 aros_kernel_ldflags=""
8248 aros_default_wbwidth=640
8249 aros_default_wbheight=480
8250 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8251 gcc_target_cpu="powerpc"
8252 case "$aros_target_variant" in
8253 efika)
8254 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8256 esac
8259 r*pi)
8260 aros_flavour="standalone"
8261 aros_target_arch="raspi"
8262 aros_target_cpu="arm"
8263 aros_object_format="armelf_aros"
8264 aros_shared_default="no"
8265 aros_arch_libs="-laeabi"
8267 gcc_default_cpu="armv6"
8268 gcc_default_cpu_tune="arm1176jzf-s"
8269 case "$target_cpu" in
8270 *armhf*)
8271 gcc_default_float_abi="hard"
8273 *arm*)
8274 gcc_default_float_abi="softfp"
8277 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8279 esac
8281 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8282 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8283 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8284 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8285 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8288 amiga*)
8289 aros_target_arch="amiga"
8290 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8291 aros_shared_default="no"
8293 case "$target_cpu" in
8294 *m68k*)
8295 # Check whether --enable-amigaos_compliance was given.
8296 if test "${enable_amigaos_compliance+set}" = set; then :
8297 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8300 aros_enable_mmu=no
8301 aros_target_cpu="m68k"
8302 aros_object_format="m68kelf"
8303 aros_flavour="standcompat"
8304 gcc_target_cpu="m68000"
8305 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8306 aros_config_aflags="$aros_config_aflags"
8307 aros_target_strip_flags="-R.comment --strip-debug"
8308 aros_default_wbwidth=640
8309 aros_default_wbheight=256
8310 aros_default_wbdepth=2
8312 *ppc*)
8313 aros_cpu="ppc"
8314 aros_flavour="native"
8315 gcc_target_cpu="ppc"
8318 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8320 esac
8323 mingw*)
8324 aros_target_arch="mingw32"
8325 aros_shared_default="no"
8326 aros_flavour="emulation"
8327 aros_shared_cflags=""
8328 need_crosstools="yes"
8329 need_dlopen="no"
8330 rescomp="windres"
8331 case "$target_cpu" in
8332 *i?86*)
8333 aros_target_cpu="i386"
8334 aros_object_format="elf_i386"
8335 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8336 aros_default_wbdepth=8
8337 gcc_target_cpu="i386"
8339 kernel_tool_prefix="i386-mingw32-"
8341 *x86_64*)
8342 aros_target_cpu="x86_64"
8343 aros_object_format="elf_x86_64"
8344 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8345 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8346 aros_default_wbdepth=8
8347 kernel_tool_prefix="x86_64-w64-mingw32-"
8349 *arm*)
8350 aros_target_cpu="arm"
8351 aros_object_format="armelf_aros"
8352 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8353 aros_arch_libs="-laeabi"
8354 aros_default_wbdepth=8
8355 gcc_target_cpu="arm"
8356 gcc_default_float_abi="soft"
8357 kernel_tool_prefix="arm-mingw32ce-"
8358 aros_default_wbwidth=160
8359 aros_default_wbheight=160
8362 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8364 esac
8365 if test $host_os = "cygwin"; then
8366 aros_kernel_cflags="-mno-cygwin"
8369 pp*)
8370 aros_target_arch="pp"
8371 aros_shared_default="no"
8372 case "$target_cpu" in
8373 *m68k*)
8374 aros_target_cpu="m68k"
8375 aros_object_format="m68kelf"
8376 aros_flavour="palmnative"
8377 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8378 aros_default_wbwidth=160
8379 aros_default_wbheight=160
8380 aros_default_wbdepth=1
8381 aros_target_ar_flags="cru"
8382 aros_compiler_libs="-lgcc1"
8383 aros_shared_default=no
8384 aros_shared_cflags="-fpic"
8385 aros_shared_aflags=""
8386 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8387 aros_kernel_ldflags="-Wl,-rpath,./lib"
8388 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8389 aros_debug_aflags=""
8390 aros_debug_ldflags="$aros_symbols_debug"
8391 aros_mungwall_debug="0"
8392 aros_modules_debug="0"
8393 gcc_target_cpu="mc68000"
8394 ignore_undefined_symbols="-ius"
8397 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8399 esac
8402 mac*)
8403 aros_target_arch="mac"
8404 aros_shared_default="no"
8405 case "$target_cpu" in
8406 *m68k*)
8407 aros_target_cpu="m68k"
8408 aros_object_format="m68kelf"
8409 aros_flavour="mac68knative"
8410 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8411 aros_default_wbwidth=512
8412 aros_default_wbheight=384
8413 aros_default_wbdepth=8
8414 aros_target_ar_flags="cru"
8415 aros_compiler_libs="-lgcc1"
8416 aros_shared_default=no
8417 aros_shared_cflags="-fpic"
8418 aros_shared_aflags=""
8419 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8420 aros_kernel_ldflags="-Wl,-rpath,./lib"
8421 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8422 aros_debug_aflags=""
8423 aros_debug_ldflags="$aros_symbols_debug"
8424 aros_mungwall_debug="0"
8425 aros_modules_debug="0"
8426 gcc_target_cpu="mc68000"
8427 ignore_undefined_symbols="-ius"
8430 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8432 esac
8436 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8438 esac
8440 #-----------------------------------------------------------------------------
8441 crosstools_guess=yes
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8444 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8446 # Check whether --with-kernel-toolchain-prefix was given.
8447 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8448 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8452 $as_echo "$kernel_tool_prefix" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8455 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8457 # Check whether --with-elf-toolchain-prefix was given.
8458 if test "${with_elf_toolchain_prefix+set}" = set; then :
8459 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8460 crosstools_guess=no
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8464 $as_echo "$elf_tool_prefix" >&6; }
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8467 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8469 # Check whether --with-aros-toolchain was given.
8470 if test "${with_aros_toolchain+set}" = set; then :
8471 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8472 crosstools_guess=no
8475 if test "$aros_tool_prefix" = "yes" ; then
8476 aros_tool_prefix=$aros_target_cpu-aros-
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8479 $as_echo "$aros_tool_prefix" >&6; }
8481 #-----------------------------------------------------------------------------
8482 # Checking if we should build crosstools..
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8484 $as_echo_n "checking whether to build crosstools... " >&6; }
8485 # Check whether --enable-crosstools was given.
8486 if test "${enable_crosstools+set}" = set; then :
8487 enableval=$enable_crosstools; crosstools="$enableval"
8488 else
8489 crosstools="$crosstools_guess"
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8493 $as_echo "$crosstools" >&6; }
8495 if test "${crosstools}" = "yes"; then
8496 if test "${crosstools_guess}" = "no"; then
8497 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8502 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8504 # Check whether --with-aros-toolchain-install was given.
8505 if test "${with_aros_toolchain_install+set}" = set; then :
8506 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8509 if test "x$aros_toolchain_install" = "x"; then
8510 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8511 else
8512 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8513 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8516 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Objective-C suppport" >&5
8519 $as_echo_n "checking whether to include Objective-C suppport... " >&6; }
8520 # Check whether --enable-objc was given.
8521 if test "${enable_objc+set}" = set; then :
8522 enableval=$enable_objc; objc="$enableval"
8523 else
8524 objc="yes"
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8528 $as_echo "$objc" >&6; }
8529 if test "x$objc" = "xyes"; then
8530 objc_target="objc"
8531 else
8532 objc_target="no-objc"
8535 # Now process extra architecture-specific options.
8536 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8537 # as well as floating-point ABI.
8538 case "$aros_target_cpu" in
8539 arm)
8540 if test "$gcc_default_cpu" = ""; then
8541 gcc_default_cpu="armv6"
8543 if test "$gcc_default_fpu" = ""; then
8544 gcc_default_fpu="vfp"
8546 if test "$gcc_default_float_abi" = ""; then
8547 gcc_default_float_abi="softfp"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8551 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8553 # Check whether --with-cpu was given.
8554 if test "${with_cpu+set}" = set; then :
8555 withval=$with_cpu; aros_gcc_cpu="$withval"
8556 else
8557 aros_gcc_cpu=$gcc_default_cpu
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8561 $as_echo "$aros_gcc_cpu" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8564 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8566 # Check whether --with-fpu was given.
8567 if test "${with_fpu+set}" = set; then :
8568 withval=$with_fpu; aros_gcc_fpu="$withval"
8569 else
8570 aros_gcc_fpu=$gcc_default_fpu
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8574 $as_echo "$aros_gcc_fpu" >&6; }
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8577 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8579 # Check whether --with-float was given.
8580 if test "${with_float+set}" = set; then :
8581 withval=$with_float; aros_gcc_float_abi="$withval"
8582 else
8583 aros_gcc_float_abi=$gcc_default_float_abi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8587 $as_echo "$aros_gcc_float_abi" >&6; }
8589 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"
8590 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"
8592 esac
8594 # Some formats need custom ELF specs.
8595 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8596 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8597 elf_specs_in=config/${aros_object_format}-specs.in
8598 else
8599 elf_specs_in=config/elf-specs.in
8602 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8603 # Since we override specs, we may need to put these defines there
8604 if test "$gcc_target_cpu" != ""; then
8605 gcc_target_cpu="-D__${gcc_target_cpu}__"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8609 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8611 # Check whether --with-portssources was given.
8612 if test "${with_portssources+set}" = set; then :
8613 withval=$with_portssources; with_portssrcdir=$withval
8614 else
8615 with_portssrcdir="default"
8618 if test "$with_portssrcdir" = "default"; then
8619 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8620 else
8621 AROS_PORTSSRCDIR="$with_portssrcdir"
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8624 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8627 $as_echo_n "checking which bootloader to use... " >&6; }
8629 # Check whether --with-bootloader was given.
8630 if test "${with_bootloader+set}" = set; then :
8631 withval=$with_bootloader; target_bootloader=$withval
8632 else
8633 target_bootloader=$target_bootloader
8636 if test "$target_bootloader" = "none"; then
8637 aros_target_bootloader=""
8638 else
8639 aros_target_bootloader="$target_bootloader"
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8642 $as_echo "$target_bootloader" >&6; }
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8645 $as_echo_n "checking which icon-set to use... " >&6; }
8647 # Check whether --with-iconset was given.
8648 if test "${with_iconset+set}" = set; then :
8649 withval=$with_iconset; target_iconset=$withval
8650 else
8651 target_iconset="default"
8654 if test "$target_iconset" = "default"; then
8655 aros_target_iconset="Gorilla"
8656 target_iconset="default (Gorilla)"
8657 else
8658 aros_target_iconset="$target_iconset"
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8661 $as_echo "$target_iconset" >&6; }
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8664 $as_echo_n "checking which GUI Theme to use... " >&6; }
8666 # Check whether --with-theme was given.
8667 if test "${with_theme+set}" = set; then :
8668 withval=$with_theme; target_guitheme=$withval
8669 else
8670 target_guitheme="default"
8673 if test "$target_guitheme" = "default"; then
8674 aros_target_guitheme="Ice"
8675 else
8676 aros_target_guitheme="$target_guitheme"
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8679 $as_echo "$aros_target_guitheme" >&6; }
8681 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8682 # for target code)
8683 cross_compiling=no
8685 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8686 cross_compiling=yes
8689 if test "$aros_host_cpu" == "x86_64" ; then
8690 if test "$aros_target_cpu" == "i386" ; then
8691 cross_compiling=no
8695 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8696 if test "$aros_host_arch" != "$aros_target_arch" ; then
8697 cross_compiling=yes
8699 else
8700 if test "$host_cc_elf" = "no" ; then
8701 cross_compiling=yes
8705 if test "$cross_compiling" = "no" ; then
8706 kernel_tool_prefix=""
8707 if test "$host_cc_elf" = "yes" ; then
8708 elf_tool_prefix=""
8712 if test "$kernel_tool_version" != ""; then
8713 kernel_tool_version="-$kernel_tool_version"
8715 if test "$target_tool_version" != ""; then
8716 target_tool_version="-$target_tool_version"
8719 #######################################################################
8720 ## Compute what toolchains to use, and their paths ##
8721 #######################################################################
8723 # This takes, as input:
8724 # crosstools {yes,no}
8725 # kernel_tool_version {"",[version]}
8726 # target_tool_version {"",[version]}
8727 # kernel_tool_prefix {none,[some-arch-os-]}
8728 # target_tool_prefix ${aros_target_cpu}-aros-
8729 # aros_tool_prefix ${aros_target_cpu}-aros-
8731 # The output is
8732 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8733 # Where the 'kernel' binaries are located
8734 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8735 # Where the 'target' binaries are located
8736 # (not the symlink farm - that is aros_target_*!)
8738 # The rules are:
8739 # if crosstools then
8740 # if kernel_tools_prefix = "no-kernel-prefix-"
8741 # aros_kernel_* = crosstools cc paths
8742 # aros_kernel_cc = elf cc wrapper around crosstools cc
8743 # else
8744 # VALIDATE(${kernel_tools_prefix}*)
8745 # aros_kernel_* = ${kernel_tools_prefix}*
8746 # if ${kernel_tools_prefix}cc is an AROS gcc
8747 # aros_kernel_cc = ${kernel_tools_prefix}cc
8748 # else
8749 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8750 # fi
8751 # fi
8753 # orig_target_* = aros built crosstools
8754 # orig_target_cc = elf cc wrapper around crosstools cc
8755 # else
8756 # VALIDATE(${kernel_tools_prefix}*)
8758 # orig_target_* = aros_kernel_*
8759 # if aros_kernel_cc is an AROS gcc
8760 # orig_target_cc = aros_kernel_cc
8761 # else
8762 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8763 # fi
8764 # fi
8766 target_tool_prefix="${aros_target_cpu}-aros-"
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8769 $as_echo_n "checking which kernel tools... " >&6; }
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8771 $as_echo "$kernel_tool_prefix" >&6; };
8773 if test "$kernel_tool_prefix" = "none" ; then
8774 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8775 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8777 else
8778 # Kernel tools required - find them
8779 # Note that 'normally', aros_kernel_* overrides will be
8780 # empty, unless specified in the per-arch sections above.
8781 if test "x$aros_kernel_cpp" = "x"; then
8782 aros_kernel_cpp=${kernel_tool_prefix}cpp
8785 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8786 if test "$cross_compiling" = "yes" ; then
8787 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8788 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 case $aros_kernel_cpp in
8795 [\\/]* | ?:[\\/]*)
8796 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8806 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8810 done
8811 done
8812 IFS=$as_save_IFS
8815 esac
8817 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8818 if test -n "$aros_kernel_cpp"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8820 $as_echo "$aros_kernel_cpp" >&6; }
8821 else
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8827 else
8828 if test "$GCC" = "yes"; then
8829 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8830 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8831 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833 $as_echo_n "checking for $ac_word... " >&6; }
8834 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 case $aros_kernel_cpp in
8838 [\\/]* | ?:[\\/]*)
8839 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in `dirname $aros_gcc_cpp`
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8853 done
8854 done
8855 IFS=$as_save_IFS
8858 esac
8860 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8861 if test -n "$aros_kernel_cpp"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8863 $as_echo "$aros_kernel_cpp" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8871 if test "$aros_kernel_cpp" = ""; then
8872 # Extract the first word of "cpp", so it can be a program name with args.
8873 set dummy cpp; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 case $aros_kernel_cpp in
8880 [\\/]* | ?:[\\/]*)
8881 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8895 done
8896 done
8897 IFS=$as_save_IFS
8900 esac
8902 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8903 if test -n "$aros_kernel_cpp"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8905 $as_echo "$aros_kernel_cpp" >&6; }
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8914 else
8915 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8916 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918 $as_echo_n "checking for $ac_word... " >&6; }
8919 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 case $aros_kernel_cpp in
8923 [\\/]* | ?:[\\/]*)
8924 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $PATH
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8938 done
8939 done
8940 IFS=$as_save_IFS
8943 esac
8945 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8946 if test -n "$aros_kernel_cpp"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8948 $as_echo "$aros_kernel_cpp" >&6; }
8949 else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8957 if test "$aros_kernel_cpp" = ""; then
8958 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8960 if test "x$aros_kernel_cc" = "x"; then
8961 aros_kernel_cc=${kernel_tool_prefix}gcc
8964 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8965 if test "$cross_compiling" = "yes" ; then
8966 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8967 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969 $as_echo_n "checking for $ac_word... " >&6; }
8970 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 case $aros_kernel_cc in
8974 [\\/]* | ?:[\\/]*)
8975 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8985 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 break 2
8989 done
8990 done
8991 IFS=$as_save_IFS
8994 esac
8996 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8997 if test -n "$aros_kernel_cc"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8999 $as_echo "$aros_kernel_cc" >&6; }
9000 else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9006 else
9007 if test "$GCC" = "yes"; then
9008 aros_gcc_cc=`$CC -print-prog-name=cc`
9009 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9010 set dummy `basename $aros_gcc_cc`; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 case $aros_kernel_cc in
9017 [\\/]* | ?:[\\/]*)
9018 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in `dirname $aros_gcc_cc`
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9028 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9032 done
9033 done
9034 IFS=$as_save_IFS
9037 esac
9039 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9040 if test -n "$aros_kernel_cc"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9042 $as_echo "$aros_kernel_cc" >&6; }
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9050 if test "$aros_kernel_cc" = ""; then
9051 # Extract the first word of "cc", so it can be a program name with args.
9052 set dummy cc; ac_word=$2
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054 $as_echo_n "checking for $ac_word... " >&6; }
9055 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 case $aros_kernel_cc in
9059 [\\/]* | ?:[\\/]*)
9060 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 for as_dir in $PATH
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9070 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 break 2
9074 done
9075 done
9076 IFS=$as_save_IFS
9079 esac
9081 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9082 if test -n "$aros_kernel_cc"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9084 $as_echo "$aros_kernel_cc" >&6; }
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9093 else
9094 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9095 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 case $aros_kernel_cc in
9102 [\\/]* | ?:[\\/]*)
9103 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9117 done
9118 done
9119 IFS=$as_save_IFS
9122 esac
9124 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9125 if test -n "$aros_kernel_cc"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9127 $as_echo "$aros_kernel_cc" >&6; }
9128 else
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9136 if test "$aros_kernel_cc" = ""; then
9137 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9139 if test "x$aros_kernel_cxx" = "x"; then
9140 aros_kernel_cxx=${kernel_tool_prefix}g++
9143 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9144 if test "$cross_compiling" = "yes" ; then
9145 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9146 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 case $aros_kernel_cxx in
9153 [\\/]* | ?:[\\/]*)
9154 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 break 2
9168 done
9169 done
9170 IFS=$as_save_IFS
9173 esac
9175 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9176 if test -n "$aros_kernel_cxx"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9178 $as_echo "$aros_kernel_cxx" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9185 else
9186 if test "$GCC" = "yes"; then
9187 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9188 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9189 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 case $aros_kernel_cxx in
9196 [\\/]* | ?:[\\/]*)
9197 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in `dirname $aros_gcc_cxx`
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9207 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9211 done
9212 done
9213 IFS=$as_save_IFS
9216 esac
9218 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9219 if test -n "$aros_kernel_cxx"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9221 $as_echo "$aros_kernel_cxx" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9229 if test "$aros_kernel_cxx" = ""; then
9230 # Extract the first word of "cxx", so it can be a program name with args.
9231 set dummy cxx; ac_word=$2
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233 $as_echo_n "checking for $ac_word... " >&6; }
9234 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 case $aros_kernel_cxx in
9238 [\\/]* | ?:[\\/]*)
9239 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243 for as_dir in $PATH
9245 IFS=$as_save_IFS
9246 test -z "$as_dir" && as_dir=.
9247 for ac_exec_ext in '' $ac_executable_extensions; do
9248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9249 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9251 break 2
9253 done
9254 done
9255 IFS=$as_save_IFS
9258 esac
9260 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9261 if test -n "$aros_kernel_cxx"; then
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9263 $as_echo "$aros_kernel_cxx" >&6; }
9264 else
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266 $as_echo "no" >&6; }
9272 else
9273 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9274 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9276 $as_echo_n "checking for $ac_word... " >&6; }
9277 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 case $aros_kernel_cxx in
9281 [\\/]* | ?:[\\/]*)
9282 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9292 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 break 2
9296 done
9297 done
9298 IFS=$as_save_IFS
9301 esac
9303 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9304 if test -n "$aros_kernel_cxx"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9306 $as_echo "$aros_kernel_cxx" >&6; }
9307 else
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9315 # If it's set, make sure it's really there
9316 if test "x$aros_kernel_cxx" != "x" ; then
9317 if test "$aros_kernel_cxx" = ""; then
9318 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9322 if test "$aros_kernel_ld" = ""; then
9323 if test "$cross_compiling" = "yes" ; then
9324 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9325 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9329 $as_echo_n "(cached) " >&6
9330 else
9331 case $aros_kernel_ld in
9332 [\\/]* | ?:[\\/]*)
9333 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9343 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9347 done
9348 done
9349 IFS=$as_save_IFS
9352 esac
9354 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9355 if test -n "$aros_kernel_ld"; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9357 $as_echo "$aros_kernel_ld" >&6; }
9358 else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9364 else
9365 if test "$GCC" = "yes"; then
9366 aros_gcc_ld=`$CC -print-prog-name=ld`
9367 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9368 set dummy `basename $aros_gcc_ld`; ac_word=$2
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370 $as_echo_n "checking for $ac_word... " >&6; }
9371 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 case $aros_kernel_ld in
9375 [\\/]* | ?:[\\/]*)
9376 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9380 for as_dir in `dirname $aros_gcc_ld`
9382 IFS=$as_save_IFS
9383 test -z "$as_dir" && as_dir=.
9384 for ac_exec_ext in '' $ac_executable_extensions; do
9385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9386 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9388 break 2
9390 done
9391 done
9392 IFS=$as_save_IFS
9395 esac
9397 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9398 if test -n "$aros_kernel_ld"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9400 $as_echo "$aros_kernel_ld" >&6; }
9401 else
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9408 if test "$aros_kernel_ld" = ""; then
9409 # Extract the first word of "ld", so it can be a program name with args.
9410 set dummy ld; ac_word=$2
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412 $as_echo_n "checking for $ac_word... " >&6; }
9413 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 case $aros_kernel_ld in
9417 [\\/]* | ?:[\\/]*)
9418 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422 for as_dir in $PATH
9424 IFS=$as_save_IFS
9425 test -z "$as_dir" && as_dir=.
9426 for ac_exec_ext in '' $ac_executable_extensions; do
9427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9428 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 break 2
9432 done
9433 done
9434 IFS=$as_save_IFS
9437 esac
9439 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9440 if test -n "$aros_kernel_ld"; then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9442 $as_echo "$aros_kernel_ld" >&6; }
9443 else
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445 $as_echo "no" >&6; }
9451 else
9452 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9453 set dummy $aros_kernel_ld; ac_word=$2
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 $as_echo_n "checking for $ac_word... " >&6; }
9456 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 case $aros_kernel_ld in
9460 [\\/]* | ?:[\\/]*)
9461 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9471 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 break 2
9475 done
9476 done
9477 IFS=$as_save_IFS
9480 esac
9482 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9483 if test -n "$aros_kernel_ld"; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9485 $as_echo "$aros_kernel_ld" >&6; }
9486 else
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488 $as_echo "no" >&6; }
9494 if test "$aros_kernel_ld" = ""; then
9495 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9498 if test "$aros_kernel_as" = ""; then
9499 if test "$cross_compiling" = "yes" ; then
9500 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9501 set dummy ${kernel_tool_prefix}as; ac_word=$2
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9503 $as_echo_n "checking for $ac_word... " >&6; }
9504 if ${ac_cv_path_aros_kernel_as+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 case $aros_kernel_as in
9508 [\\/]* | ?:[\\/]*)
9509 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513 for as_dir in $PATH
9515 IFS=$as_save_IFS
9516 test -z "$as_dir" && as_dir=.
9517 for ac_exec_ext in '' $ac_executable_extensions; do
9518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9519 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521 break 2
9523 done
9524 done
9525 IFS=$as_save_IFS
9528 esac
9530 aros_kernel_as=$ac_cv_path_aros_kernel_as
9531 if test -n "$aros_kernel_as"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9533 $as_echo "$aros_kernel_as" >&6; }
9534 else
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9540 else
9541 if test "$GCC" = "yes"; then
9542 aros_gcc_as=`$CC -print-prog-name=as`
9543 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9544 set dummy `basename $aros_gcc_as`; ac_word=$2
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9546 $as_echo_n "checking for $ac_word... " >&6; }
9547 if ${ac_cv_path_aros_kernel_as+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 case $aros_kernel_as in
9551 [\\/]* | ?:[\\/]*)
9552 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in `dirname $aros_gcc_as`
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 break 2
9566 done
9567 done
9568 IFS=$as_save_IFS
9571 esac
9573 aros_kernel_as=$ac_cv_path_aros_kernel_as
9574 if test -n "$aros_kernel_as"; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9576 $as_echo "$aros_kernel_as" >&6; }
9577 else
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579 $as_echo "no" >&6; }
9584 if test "$aros_kernel_as" = ""; then
9585 # Extract the first word of "as", so it can be a program name with args.
9586 set dummy as; ac_word=$2
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 $as_echo_n "checking for $ac_word... " >&6; }
9589 if ${ac_cv_path_aros_kernel_as+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 case $aros_kernel_as in
9593 [\\/]* | ?:[\\/]*)
9594 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598 for as_dir in $PATH
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9604 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9606 break 2
9608 done
9609 done
9610 IFS=$as_save_IFS
9613 esac
9615 aros_kernel_as=$ac_cv_path_aros_kernel_as
9616 if test -n "$aros_kernel_as"; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9618 $as_echo "$aros_kernel_as" >&6; }
9619 else
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621 $as_echo "no" >&6; }
9627 else
9628 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9629 set dummy $aros_kernel_as; ac_word=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if ${ac_cv_path_aros_kernel_as+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 case $aros_kernel_as in
9636 [\\/]* | ?:[\\/]*)
9637 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9651 done
9652 done
9653 IFS=$as_save_IFS
9656 esac
9658 aros_kernel_as=$ac_cv_path_aros_kernel_as
9659 if test -n "$aros_kernel_as"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9661 $as_echo "$aros_kernel_as" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9670 if test "$aros_kernel_as" = ""; then
9671 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9674 if test "$aros_kernel_ar" = ""; then
9675 if test "$cross_compiling" = "yes" ; then
9676 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9677 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 case $aros_kernel_ar in
9684 [\\/]* | ?:[\\/]*)
9685 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9695 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 break 2
9699 done
9700 done
9701 IFS=$as_save_IFS
9704 esac
9706 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9707 if test -n "$aros_kernel_ar"; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9709 $as_echo "$aros_kernel_ar" >&6; }
9710 else
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9716 else
9717 if test "$GCC" = "yes"; then
9718 aros_gcc_ar=`$CC -print-prog-name=ar`
9719 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9720 set dummy `basename $aros_gcc_ar`; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 case $aros_kernel_ar in
9727 [\\/]* | ?:[\\/]*)
9728 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in `dirname $aros_gcc_ar`
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9738 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9742 done
9743 done
9744 IFS=$as_save_IFS
9747 esac
9749 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9750 if test -n "$aros_kernel_ar"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9752 $as_echo "$aros_kernel_ar" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9760 if test "$aros_kernel_ar" = ""; then
9761 # Extract the first word of "ar", so it can be a program name with args.
9762 set dummy ar; ac_word=$2
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 case $aros_kernel_ar in
9769 [\\/]* | ?:[\\/]*)
9770 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9780 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9784 done
9785 done
9786 IFS=$as_save_IFS
9789 esac
9791 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9792 if test -n "$aros_kernel_ar"; then
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9794 $as_echo "$aros_kernel_ar" >&6; }
9795 else
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9803 else
9804 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9805 set dummy $aros_kernel_ar; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 case $aros_kernel_ar in
9812 [\\/]* | ?:[\\/]*)
9813 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817 for as_dir in $PATH
9819 IFS=$as_save_IFS
9820 test -z "$as_dir" && as_dir=.
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9823 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 break 2
9827 done
9828 done
9829 IFS=$as_save_IFS
9832 esac
9834 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9835 if test -n "$aros_kernel_ar"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9837 $as_echo "$aros_kernel_ar" >&6; }
9838 else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9846 if test "$aros_kernel_ar" = ""; then
9847 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9850 if test "$aros_kernel_ranlib" = ""; then
9851 if test "$cross_compiling" = "yes" ; then
9852 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9853 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9855 $as_echo_n "checking for $ac_word... " >&6; }
9856 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 case $aros_kernel_ranlib in
9860 [\\/]* | ?:[\\/]*)
9861 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9875 done
9876 done
9877 IFS=$as_save_IFS
9880 esac
9882 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9883 if test -n "$aros_kernel_ranlib"; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9885 $as_echo "$aros_kernel_ranlib" >&6; }
9886 else
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888 $as_echo "no" >&6; }
9892 else
9893 if test "$GCC" = "yes"; then
9894 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9895 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9896 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 $as_echo_n "checking for $ac_word... " >&6; }
9899 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 case $aros_kernel_ranlib in
9903 [\\/]* | ?:[\\/]*)
9904 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in `dirname $aros_gcc_ranlib`
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9914 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916 break 2
9918 done
9919 done
9920 IFS=$as_save_IFS
9923 esac
9925 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9926 if test -n "$aros_kernel_ranlib"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9928 $as_echo "$aros_kernel_ranlib" >&6; }
9929 else
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9936 if test "$aros_kernel_ranlib" = ""; then
9937 # Extract the first word of "ranlib", so it can be a program name with args.
9938 set dummy ranlib; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 case $aros_kernel_ranlib in
9945 [\\/]* | ?:[\\/]*)
9946 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9956 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9958 break 2
9960 done
9961 done
9962 IFS=$as_save_IFS
9965 esac
9967 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9968 if test -n "$aros_kernel_ranlib"; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9970 $as_echo "$aros_kernel_ranlib" >&6; }
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9979 else
9980 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9981 set dummy $aros_kernel_ranlib; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 case $aros_kernel_ranlib in
9988 [\\/]* | ?:[\\/]*)
9989 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 for as_dir in $PATH
9995 IFS=$as_save_IFS
9996 test -z "$as_dir" && as_dir=.
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9999 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001 break 2
10003 done
10004 done
10005 IFS=$as_save_IFS
10008 esac
10010 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10011 if test -n "$aros_kernel_ranlib"; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10013 $as_echo "$aros_kernel_ranlib" >&6; }
10014 else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016 $as_echo "no" >&6; }
10022 if test "$aros_kernel_ranlib" = ""; then
10023 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10026 if test "$aros_kernel_nm" = ""; then
10027 if test "$cross_compiling" = "yes" ; then
10028 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10029 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 case $aros_kernel_nm in
10036 [\\/]* | ?:[\\/]*)
10037 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10041 for as_dir in $PATH
10043 IFS=$as_save_IFS
10044 test -z "$as_dir" && as_dir=.
10045 for ac_exec_ext in '' $ac_executable_extensions; do
10046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10047 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10049 break 2
10051 done
10052 done
10053 IFS=$as_save_IFS
10056 esac
10058 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10059 if test -n "$aros_kernel_nm"; then
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10061 $as_echo "$aros_kernel_nm" >&6; }
10062 else
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10068 else
10069 if test "$GCC" = "yes"; then
10070 aros_gcc_nm=`$CC -print-prog-name=nm`
10071 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10072 set dummy `basename $aros_gcc_nm`; ac_word=$2
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074 $as_echo_n "checking for $ac_word... " >&6; }
10075 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 case $aros_kernel_nm in
10079 [\\/]* | ?:[\\/]*)
10080 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in `dirname $aros_gcc_nm`
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10094 done
10095 done
10096 IFS=$as_save_IFS
10099 esac
10101 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10102 if test -n "$aros_kernel_nm"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10104 $as_echo "$aros_kernel_nm" >&6; }
10105 else
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; }
10112 if test "$aros_kernel_nm" = ""; then
10113 # Extract the first word of "nm", so it can be a program name with args.
10114 set dummy nm; ac_word=$2
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116 $as_echo_n "checking for $ac_word... " >&6; }
10117 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 case $aros_kernel_nm in
10121 [\\/]* | ?:[\\/]*)
10122 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10128 IFS=$as_save_IFS
10129 test -z "$as_dir" && as_dir=.
10130 for ac_exec_ext in '' $ac_executable_extensions; do
10131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10132 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 break 2
10136 done
10137 done
10138 IFS=$as_save_IFS
10141 esac
10143 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10144 if test -n "$aros_kernel_nm"; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10146 $as_echo "$aros_kernel_nm" >&6; }
10147 else
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10155 else
10156 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10157 set dummy $aros_kernel_nm; ac_word=$2
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10161 $as_echo_n "(cached) " >&6
10162 else
10163 case $aros_kernel_nm in
10164 [\\/]* | ?:[\\/]*)
10165 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169 for as_dir in $PATH
10171 IFS=$as_save_IFS
10172 test -z "$as_dir" && as_dir=.
10173 for ac_exec_ext in '' $ac_executable_extensions; do
10174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10175 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 break 2
10179 done
10180 done
10181 IFS=$as_save_IFS
10184 esac
10186 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10187 if test -n "$aros_kernel_nm"; then
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10189 $as_echo "$aros_kernel_nm" >&6; }
10190 else
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10198 if test "$aros_kernel_nm" = ""; then
10199 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10202 if test "$aros_kernel_strip" = ""; then
10203 if test "$cross_compiling" = "yes" ; then
10204 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10205 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 case $aros_kernel_strip in
10212 [\\/]* | ?:[\\/]*)
10213 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10223 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10227 done
10228 done
10229 IFS=$as_save_IFS
10232 esac
10234 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10235 if test -n "$aros_kernel_strip"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10237 $as_echo "$aros_kernel_strip" >&6; }
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10244 else
10245 if test "$GCC" = "yes"; then
10246 aros_gcc_strip=`$CC -print-prog-name=strip`
10247 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10248 set dummy `basename $aros_gcc_strip`; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 case $aros_kernel_strip in
10255 [\\/]* | ?:[\\/]*)
10256 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in `dirname $aros_gcc_strip`
10262 IFS=$as_save_IFS
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10266 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 break 2
10270 done
10271 done
10272 IFS=$as_save_IFS
10275 esac
10277 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10278 if test -n "$aros_kernel_strip"; then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10280 $as_echo "$aros_kernel_strip" >&6; }
10281 else
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 $as_echo "no" >&6; }
10288 if test "$aros_kernel_strip" = ""; then
10289 # Extract the first word of "strip", so it can be a program name with args.
10290 set dummy strip; ac_word=$2
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292 $as_echo_n "checking for $ac_word... " >&6; }
10293 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 case $aros_kernel_strip in
10297 [\\/]* | ?:[\\/]*)
10298 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10308 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 break 2
10312 done
10313 done
10314 IFS=$as_save_IFS
10317 esac
10319 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10320 if test -n "$aros_kernel_strip"; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10322 $as_echo "$aros_kernel_strip" >&6; }
10323 else
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10331 else
10332 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10333 set dummy $aros_kernel_strip; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 case $aros_kernel_strip in
10340 [\\/]* | ?:[\\/]*)
10341 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10347 IFS=$as_save_IFS
10348 test -z "$as_dir" && as_dir=.
10349 for ac_exec_ext in '' $ac_executable_extensions; do
10350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10351 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353 break 2
10355 done
10356 done
10357 IFS=$as_save_IFS
10360 esac
10362 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10363 if test -n "$aros_kernel_strip"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10365 $as_echo "$aros_kernel_strip" >&6; }
10366 else
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10374 if test "$aros_kernel_strip" = ""; then
10375 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10378 # Objcopy and objdump are not required for the kernel
10379 # toolchain on many architectures.
10380 # So we'll look for them, but not make them strictly required.
10382 if test "$aros_kernel_objcopy" = ""; then
10383 if test "$cross_compiling" = "yes" ; then
10384 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10385 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10387 $as_echo_n "checking for $ac_word... " >&6; }
10388 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 case $aros_kernel_objcopy in
10392 [\\/]* | ?:[\\/]*)
10393 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10407 done
10408 done
10409 IFS=$as_save_IFS
10412 esac
10414 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10415 if test -n "$aros_kernel_objcopy"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10417 $as_echo "$aros_kernel_objcopy" >&6; }
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10424 else
10425 if test "$GCC" = "yes"; then
10426 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10427 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10428 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 case $aros_kernel_objcopy in
10435 [\\/]* | ?:[\\/]*)
10436 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440 for as_dir in `dirname $aros_gcc_objcopy`
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10446 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 break 2
10450 done
10451 done
10452 IFS=$as_save_IFS
10455 esac
10457 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10458 if test -n "$aros_kernel_objcopy"; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10460 $as_echo "$aros_kernel_objcopy" >&6; }
10461 else
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; }
10468 if test "$aros_kernel_objcopy" = ""; then
10469 # Extract the first word of "objcopy", so it can be a program name with args.
10470 set dummy objcopy; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 case $aros_kernel_objcopy in
10477 [\\/]* | ?:[\\/]*)
10478 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10492 done
10493 done
10494 IFS=$as_save_IFS
10497 esac
10499 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10500 if test -n "$aros_kernel_objcopy"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10502 $as_echo "$aros_kernel_objcopy" >&6; }
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10511 else
10512 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10513 set dummy $aros_kernel_objcopy; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 case $aros_kernel_objcopy in
10520 [\\/]* | ?:[\\/]*)
10521 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10535 done
10536 done
10537 IFS=$as_save_IFS
10540 esac
10542 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10543 if test -n "$aros_kernel_objcopy"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10545 $as_echo "$aros_kernel_objcopy" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10555 if test "$aros_kernel_objdump" = ""; then
10556 if test "$cross_compiling" = "yes" ; then
10557 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10558 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 case $aros_kernel_objdump in
10565 [\\/]* | ?:[\\/]*)
10566 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10580 done
10581 done
10582 IFS=$as_save_IFS
10585 esac
10587 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10588 if test -n "$aros_kernel_objdump"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10590 $as_echo "$aros_kernel_objdump" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10597 else
10598 if test "$GCC" = "yes"; then
10599 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10600 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10601 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 case $aros_kernel_objdump in
10608 [\\/]* | ?:[\\/]*)
10609 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in `dirname $aros_gcc_objdump`
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10619 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10623 done
10624 done
10625 IFS=$as_save_IFS
10628 esac
10630 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10631 if test -n "$aros_kernel_objdump"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10633 $as_echo "$aros_kernel_objdump" >&6; }
10634 else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10641 if test "$aros_kernel_objdump" = ""; then
10642 # Extract the first word of "objdump", so it can be a program name with args.
10643 set dummy objdump; ac_word=$2
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10645 $as_echo_n "checking for $ac_word... " >&6; }
10646 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 case $aros_kernel_objdump in
10650 [\\/]* | ?:[\\/]*)
10651 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10655 for as_dir in $PATH
10657 IFS=$as_save_IFS
10658 test -z "$as_dir" && as_dir=.
10659 for ac_exec_ext in '' $ac_executable_extensions; do
10660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10661 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10663 break 2
10665 done
10666 done
10667 IFS=$as_save_IFS
10670 esac
10672 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10673 if test -n "$aros_kernel_objdump"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10675 $as_echo "$aros_kernel_objdump" >&6; }
10676 else
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10684 else
10685 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10686 set dummy $aros_kernel_objdump; ac_word=$2
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10688 $as_echo_n "checking for $ac_word... " >&6; }
10689 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 case $aros_kernel_objdump in
10693 [\\/]* | ?:[\\/]*)
10694 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698 for as_dir in $PATH
10700 IFS=$as_save_IFS
10701 test -z "$as_dir" && as_dir=.
10702 for ac_exec_ext in '' $ac_executable_extensions; do
10703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10704 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10706 break 2
10708 done
10709 done
10710 IFS=$as_save_IFS
10713 esac
10715 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10716 if test -n "$aros_kernel_objdump"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10718 $as_echo "$aros_kernel_objdump" >&6; }
10719 else
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10727 if test "x${crosstools}" != "xyes" ; then
10728 if test "$aros_kernel_objcopy" = ""; then
10729 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10731 if test "$aros_kernel_objdump" = ""; then
10732 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10738 $as_echo_n "checking which target tools to use... " >&6; }
10739 if test "$crosstools" = "yes"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10741 $as_echo "$target_tool_prefix" >&6; }
10742 # We are are building AROS crosstools
10743 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10744 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10745 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10746 orig_target_cpp="${tmp_tool_prefix}cpp"
10747 orig_target_ld="${tmp_tool_prefix}ld"
10748 orig_target_as="${tmp_tool_prefix}as"
10749 orig_target_ar="${tmp_tool_prefix}ar"
10750 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10751 orig_target_nm="${tmp_tool_prefix}nm"
10752 orig_target_strip="${tmp_tool_prefix}strip"
10753 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10754 orig_target_objdump="${tmp_tool_prefix}objdump"
10755 else
10756 # Determine whether AROS or ELF tools should be used
10757 if test "$aros_tool_prefix" = "none"; then
10758 aros_tool_prefix="${elf_tool_prefix}"
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10762 $as_echo "$aros_tool_prefix" >&6; }
10763 # We are *not* building AROS crosstools - use the AROS or ELF tools
10765 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10766 if test "$cross_compiling" = "yes" ; then
10767 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10768 set dummy ${target_tool_prefix}cpp; ac_word=$2
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10770 $as_echo_n "checking for $ac_word... " >&6; }
10771 if ${ac_cv_path_orig_target_cpp+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 case $orig_target_cpp in
10775 [\\/]* | ?:[\\/]*)
10776 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780 for as_dir in $PATH
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10786 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 break 2
10790 done
10791 done
10792 IFS=$as_save_IFS
10795 esac
10797 orig_target_cpp=$ac_cv_path_orig_target_cpp
10798 if test -n "$orig_target_cpp"; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10800 $as_echo "$orig_target_cpp" >&6; }
10801 else
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 $as_echo "no" >&6; }
10807 else
10808 if test "$GCC" = "yes"; then
10809 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10810 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10811 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813 $as_echo_n "checking for $ac_word... " >&6; }
10814 if ${ac_cv_path_orig_target_cpp+:} false; then :
10815 $as_echo_n "(cached) " >&6
10816 else
10817 case $orig_target_cpp in
10818 [\\/]* | ?:[\\/]*)
10819 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in `dirname $aros_gcc_cpp`
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10829 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831 break 2
10833 done
10834 done
10835 IFS=$as_save_IFS
10838 esac
10840 orig_target_cpp=$ac_cv_path_orig_target_cpp
10841 if test -n "$orig_target_cpp"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10843 $as_echo "$orig_target_cpp" >&6; }
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10851 if test "$orig_target_cpp" = ""; then
10852 # Extract the first word of "cpp", so it can be a program name with args.
10853 set dummy cpp; ac_word=$2
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855 $as_echo_n "checking for $ac_word... " >&6; }
10856 if ${ac_cv_path_orig_target_cpp+:} false; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 case $orig_target_cpp in
10860 [\\/]* | ?:[\\/]*)
10861 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10865 for as_dir in $PATH
10867 IFS=$as_save_IFS
10868 test -z "$as_dir" && as_dir=.
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10871 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10873 break 2
10875 done
10876 done
10877 IFS=$as_save_IFS
10880 esac
10882 orig_target_cpp=$ac_cv_path_orig_target_cpp
10883 if test -n "$orig_target_cpp"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10885 $as_echo "$orig_target_cpp" >&6; }
10886 else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10894 else
10895 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
10896 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10898 $as_echo_n "checking for $ac_word... " >&6; }
10899 if ${ac_cv_path_orig_target_cpp+:} false; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 case $orig_target_cpp in
10903 [\\/]* | ?:[\\/]*)
10904 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10910 IFS=$as_save_IFS
10911 test -z "$as_dir" && as_dir=.
10912 for ac_exec_ext in '' $ac_executable_extensions; do
10913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10914 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10916 break 2
10918 done
10919 done
10920 IFS=$as_save_IFS
10923 esac
10925 orig_target_cpp=$ac_cv_path_orig_target_cpp
10926 if test -n "$orig_target_cpp"; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10928 $as_echo "$orig_target_cpp" >&6; }
10929 else
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10937 if test "$orig_target_cpp" = ""; then
10938 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10941 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
10942 if test "$cross_compiling" = "yes" ; then
10943 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10944 set dummy ${target_tool_prefix}gcc; ac_word=$2
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10946 $as_echo_n "checking for $ac_word... " >&6; }
10947 if ${ac_cv_path_orig_target_cc+:} false; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 case $orig_target_cc in
10951 [\\/]* | ?:[\\/]*)
10952 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956 for as_dir in $PATH
10958 IFS=$as_save_IFS
10959 test -z "$as_dir" && as_dir=.
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10962 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 break 2
10966 done
10967 done
10968 IFS=$as_save_IFS
10971 esac
10973 orig_target_cc=$ac_cv_path_orig_target_cc
10974 if test -n "$orig_target_cc"; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10976 $as_echo "$orig_target_cc" >&6; }
10977 else
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979 $as_echo "no" >&6; }
10983 else
10984 if test "$GCC" = "yes"; then
10985 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10986 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10987 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 $as_echo_n "checking for $ac_word... " >&6; }
10990 if ${ac_cv_path_orig_target_cc+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 case $orig_target_cc in
10994 [\\/]* | ?:[\\/]*)
10995 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999 for as_dir in `dirname $aros_gcc_gcc`
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11005 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11009 done
11010 done
11011 IFS=$as_save_IFS
11014 esac
11016 orig_target_cc=$ac_cv_path_orig_target_cc
11017 if test -n "$orig_target_cc"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11019 $as_echo "$orig_target_cc" >&6; }
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11027 if test "$orig_target_cc" = ""; then
11028 # Extract the first word of "gcc", so it can be a program name with args.
11029 set dummy gcc; ac_word=$2
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031 $as_echo_n "checking for $ac_word... " >&6; }
11032 if ${ac_cv_path_orig_target_cc+:} false; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 case $orig_target_cc in
11036 [\\/]* | ?:[\\/]*)
11037 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11047 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11051 done
11052 done
11053 IFS=$as_save_IFS
11056 esac
11058 orig_target_cc=$ac_cv_path_orig_target_cc
11059 if test -n "$orig_target_cc"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11061 $as_echo "$orig_target_cc" >&6; }
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11070 else
11071 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11072 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074 $as_echo_n "checking for $ac_word... " >&6; }
11075 if ${ac_cv_path_orig_target_cc+:} false; then :
11076 $as_echo_n "(cached) " >&6
11077 else
11078 case $orig_target_cc in
11079 [\\/]* | ?:[\\/]*)
11080 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11090 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11094 done
11095 done
11096 IFS=$as_save_IFS
11099 esac
11101 orig_target_cc=$ac_cv_path_orig_target_cc
11102 if test -n "$orig_target_cc"; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11104 $as_echo "$orig_target_cc" >&6; }
11105 else
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11113 if test "$orig_target_cc" = ""; then
11114 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11117 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11118 if test "$cross_compiling" = "yes" ; then
11119 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11120 set dummy ${target_tool_prefix}g++; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if ${ac_cv_path_orig_target_cxx+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 case $orig_target_cxx in
11127 [\\/]* | ?:[\\/]*)
11128 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11142 done
11143 done
11144 IFS=$as_save_IFS
11147 esac
11149 orig_target_cxx=$ac_cv_path_orig_target_cxx
11150 if test -n "$orig_target_cxx"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11152 $as_echo "$orig_target_cxx" >&6; }
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11159 else
11160 if test "$GCC" = "yes"; then
11161 aros_gcc_g++=`$CC -print-prog-name=g++`
11162 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11163 set dummy `basename $aros_gcc_g++`; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if ${ac_cv_path_orig_target_cxx+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 case $orig_target_cxx in
11170 [\\/]* | ?:[\\/]*)
11171 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in `dirname $aros_gcc_g++`
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11185 done
11186 done
11187 IFS=$as_save_IFS
11190 esac
11192 orig_target_cxx=$ac_cv_path_orig_target_cxx
11193 if test -n "$orig_target_cxx"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11195 $as_echo "$orig_target_cxx" >&6; }
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11203 if test "$orig_target_cxx" = ""; then
11204 # Extract the first word of "g++", so it can be a program name with args.
11205 set dummy g++; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if ${ac_cv_path_orig_target_cxx+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 case $orig_target_cxx in
11212 [\\/]* | ?:[\\/]*)
11213 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11227 done
11228 done
11229 IFS=$as_save_IFS
11232 esac
11234 orig_target_cxx=$ac_cv_path_orig_target_cxx
11235 if test -n "$orig_target_cxx"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11237 $as_echo "$orig_target_cxx" >&6; }
11238 else
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11246 else
11247 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11248 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250 $as_echo_n "checking for $ac_word... " >&6; }
11251 if ${ac_cv_path_orig_target_cxx+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 case $orig_target_cxx in
11255 [\\/]* | ?:[\\/]*)
11256 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11270 done
11271 done
11272 IFS=$as_save_IFS
11275 esac
11277 orig_target_cxx=$ac_cv_path_orig_target_cxx
11278 if test -n "$orig_target_cxx"; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11280 $as_echo "$orig_target_cxx" >&6; }
11281 else
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11289 if test "$orig_target_cxx" = ""; then
11290 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11293 if test "${aros_tool_prefix}ld" = ""; then
11294 if test "$cross_compiling" = "yes" ; then
11295 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11296 set dummy ${target_tool_prefix}gcc; ac_word=$2
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298 $as_echo_n "checking for $ac_word... " >&6; }
11299 if ${ac_cv_path_orig_target_ld+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 case $orig_target_ld in
11303 [\\/]* | ?:[\\/]*)
11304 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11310 IFS=$as_save_IFS
11311 test -z "$as_dir" && as_dir=.
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11314 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 break 2
11318 done
11319 done
11320 IFS=$as_save_IFS
11323 esac
11325 orig_target_ld=$ac_cv_path_orig_target_ld
11326 if test -n "$orig_target_ld"; then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11328 $as_echo "$orig_target_ld" >&6; }
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11335 else
11336 if test "$GCC" = "yes"; then
11337 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11338 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11339 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if ${ac_cv_path_orig_target_ld+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 case $orig_target_ld in
11346 [\\/]* | ?:[\\/]*)
11347 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in `dirname $aros_gcc_gcc`
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 break 2
11361 done
11362 done
11363 IFS=$as_save_IFS
11366 esac
11368 orig_target_ld=$ac_cv_path_orig_target_ld
11369 if test -n "$orig_target_ld"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11371 $as_echo "$orig_target_ld" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11379 if test "$orig_target_ld" = ""; then
11380 # Extract the first word of "gcc", so it can be a program name with args.
11381 set dummy gcc; ac_word=$2
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383 $as_echo_n "checking for $ac_word... " >&6; }
11384 if ${ac_cv_path_orig_target_ld+:} false; then :
11385 $as_echo_n "(cached) " >&6
11386 else
11387 case $orig_target_ld in
11388 [\\/]* | ?:[\\/]*)
11389 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11399 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 break 2
11403 done
11404 done
11405 IFS=$as_save_IFS
11408 esac
11410 orig_target_ld=$ac_cv_path_orig_target_ld
11411 if test -n "$orig_target_ld"; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11413 $as_echo "$orig_target_ld" >&6; }
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11422 else
11423 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11424 set dummy ${aros_tool_prefix}ld; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_path_orig_target_ld+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 case $orig_target_ld in
11431 [\\/]* | ?:[\\/]*)
11432 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11446 done
11447 done
11448 IFS=$as_save_IFS
11451 esac
11453 orig_target_ld=$ac_cv_path_orig_target_ld
11454 if test -n "$orig_target_ld"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11456 $as_echo "$orig_target_ld" >&6; }
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11465 if test "$orig_target_ld" = ""; then
11466 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11469 if test "${aros_tool_prefix}as" = ""; then
11470 if test "$cross_compiling" = "yes" ; then
11471 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11472 set dummy ${target_tool_prefix}as; ac_word=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if ${ac_cv_path_orig_target_as+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 case $orig_target_as in
11479 [\\/]* | ?:[\\/]*)
11480 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11490 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 break 2
11494 done
11495 done
11496 IFS=$as_save_IFS
11499 esac
11501 orig_target_as=$ac_cv_path_orig_target_as
11502 if test -n "$orig_target_as"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11504 $as_echo "$orig_target_as" >&6; }
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507 $as_echo "no" >&6; }
11511 else
11512 if test "$GCC" = "yes"; then
11513 aros_gcc_as=`$CC -print-prog-name=as`
11514 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11515 set dummy `basename $aros_gcc_as`; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_path_orig_target_as+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 case $orig_target_as in
11522 [\\/]* | ?:[\\/]*)
11523 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in `dirname $aros_gcc_as`
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11533 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535 break 2
11537 done
11538 done
11539 IFS=$as_save_IFS
11542 esac
11544 orig_target_as=$ac_cv_path_orig_target_as
11545 if test -n "$orig_target_as"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11547 $as_echo "$orig_target_as" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11555 if test "$orig_target_as" = ""; then
11556 # Extract the first word of "as", so it can be a program name with args.
11557 set dummy as; ac_word=$2
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559 $as_echo_n "checking for $ac_word... " >&6; }
11560 if ${ac_cv_path_orig_target_as+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 case $orig_target_as in
11564 [\\/]* | ?:[\\/]*)
11565 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11575 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 break 2
11579 done
11580 done
11581 IFS=$as_save_IFS
11584 esac
11586 orig_target_as=$ac_cv_path_orig_target_as
11587 if test -n "$orig_target_as"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11589 $as_echo "$orig_target_as" >&6; }
11590 else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11598 else
11599 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11600 set dummy ${aros_tool_prefix}as; ac_word=$2
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11602 $as_echo_n "checking for $ac_word... " >&6; }
11603 if ${ac_cv_path_orig_target_as+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 case $orig_target_as in
11607 [\\/]* | ?:[\\/]*)
11608 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612 for as_dir in $PATH
11614 IFS=$as_save_IFS
11615 test -z "$as_dir" && as_dir=.
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11620 break 2
11622 done
11623 done
11624 IFS=$as_save_IFS
11627 esac
11629 orig_target_as=$ac_cv_path_orig_target_as
11630 if test -n "$orig_target_as"; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11632 $as_echo "$orig_target_as" >&6; }
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11641 if test "$orig_target_as" = ""; then
11642 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11645 if test "${aros_tool_prefix}ar" = ""; then
11646 if test "$cross_compiling" = "yes" ; then
11647 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11648 set dummy ${target_tool_prefix}ar; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if ${ac_cv_path_orig_target_ar+:} false; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 case $orig_target_ar in
11655 [\\/]* | ?:[\\/]*)
11656 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11666 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11670 done
11671 done
11672 IFS=$as_save_IFS
11675 esac
11677 orig_target_ar=$ac_cv_path_orig_target_ar
11678 if test -n "$orig_target_ar"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11680 $as_echo "$orig_target_ar" >&6; }
11681 else
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11687 else
11688 if test "$GCC" = "yes"; then
11689 aros_gcc_ar=`$CC -print-prog-name=ar`
11690 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11691 set dummy `basename $aros_gcc_ar`; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_path_orig_target_ar+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 case $orig_target_ar in
11698 [\\/]* | ?:[\\/]*)
11699 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in `dirname $aros_gcc_ar`
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11713 done
11714 done
11715 IFS=$as_save_IFS
11718 esac
11720 orig_target_ar=$ac_cv_path_orig_target_ar
11721 if test -n "$orig_target_ar"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11723 $as_echo "$orig_target_ar" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11731 if test "$orig_target_ar" = ""; then
11732 # Extract the first word of "ar", so it can be a program name with args.
11733 set dummy ar; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if ${ac_cv_path_orig_target_ar+:} false; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 case $orig_target_ar in
11740 [\\/]* | ?:[\\/]*)
11741 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11755 done
11756 done
11757 IFS=$as_save_IFS
11760 esac
11762 orig_target_ar=$ac_cv_path_orig_target_ar
11763 if test -n "$orig_target_ar"; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11765 $as_echo "$orig_target_ar" >&6; }
11766 else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 $as_echo "no" >&6; }
11774 else
11775 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11776 set dummy ${aros_tool_prefix}ar; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if ${ac_cv_path_orig_target_ar+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 case $orig_target_ar in
11783 [\\/]* | ?:[\\/]*)
11784 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11790 IFS=$as_save_IFS
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11794 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 break 2
11798 done
11799 done
11800 IFS=$as_save_IFS
11803 esac
11805 orig_target_ar=$ac_cv_path_orig_target_ar
11806 if test -n "$orig_target_ar"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11808 $as_echo "$orig_target_ar" >&6; }
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11817 if test "$orig_target_ar" = ""; then
11818 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11821 if test "${aros_tool_prefix}ranlib" = ""; then
11822 if test "$cross_compiling" = "yes" ; then
11823 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11824 set dummy ${target_tool_prefix}ar; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 case $orig_target_ranlib in
11831 [\\/]* | ?:[\\/]*)
11832 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11838 IFS=$as_save_IFS
11839 test -z "$as_dir" && as_dir=.
11840 for ac_exec_ext in '' $ac_executable_extensions; do
11841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11842 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11844 break 2
11846 done
11847 done
11848 IFS=$as_save_IFS
11851 esac
11853 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11854 if test -n "$orig_target_ranlib"; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11856 $as_echo "$orig_target_ranlib" >&6; }
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11863 else
11864 if test "$GCC" = "yes"; then
11865 aros_gcc_ar=`$CC -print-prog-name=ar`
11866 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11867 set dummy `basename $aros_gcc_ar`; ac_word=$2
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869 $as_echo_n "checking for $ac_word... " >&6; }
11870 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 case $orig_target_ranlib in
11874 [\\/]* | ?:[\\/]*)
11875 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in `dirname $aros_gcc_ar`
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
11883 for ac_exec_ext in '' $ac_executable_extensions; do
11884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11885 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 break 2
11889 done
11890 done
11891 IFS=$as_save_IFS
11894 esac
11896 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11897 if test -n "$orig_target_ranlib"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11899 $as_echo "$orig_target_ranlib" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11907 if test "$orig_target_ranlib" = ""; then
11908 # Extract the first word of "ar", so it can be a program name with args.
11909 set dummy ar; ac_word=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911 $as_echo_n "checking for $ac_word... " >&6; }
11912 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 case $orig_target_ranlib in
11916 [\\/]* | ?:[\\/]*)
11917 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921 for as_dir in $PATH
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11927 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 break 2
11931 done
11932 done
11933 IFS=$as_save_IFS
11936 esac
11938 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11939 if test -n "$orig_target_ranlib"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11941 $as_echo "$orig_target_ranlib" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11950 else
11951 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11952 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954 $as_echo_n "checking for $ac_word... " >&6; }
11955 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 case $orig_target_ranlib in
11959 [\\/]* | ?:[\\/]*)
11960 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11974 done
11975 done
11976 IFS=$as_save_IFS
11979 esac
11981 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11982 if test -n "$orig_target_ranlib"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11984 $as_echo "$orig_target_ranlib" >&6; }
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11993 if test "$orig_target_ranlib" = ""; then
11994 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11997 if test "${aros_tool_prefix}nm" = ""; then
11998 if test "$cross_compiling" = "yes" ; then
11999 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12000 set dummy ${target_tool_prefix}nm; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_path_orig_target_nm+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 case $orig_target_nm in
12007 [\\/]* | ?:[\\/]*)
12008 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12018 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12022 done
12023 done
12024 IFS=$as_save_IFS
12027 esac
12029 orig_target_nm=$ac_cv_path_orig_target_nm
12030 if test -n "$orig_target_nm"; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12032 $as_echo "$orig_target_nm" >&6; }
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12039 else
12040 if test "$GCC" = "yes"; then
12041 aros_gcc_nm=`$CC -print-prog-name=nm`
12042 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12043 set dummy `basename $aros_gcc_nm`; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12046 if ${ac_cv_path_orig_target_nm+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 case $orig_target_nm in
12050 [\\/]* | ?:[\\/]*)
12051 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in `dirname $aros_gcc_nm`
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12065 done
12066 done
12067 IFS=$as_save_IFS
12070 esac
12072 orig_target_nm=$ac_cv_path_orig_target_nm
12073 if test -n "$orig_target_nm"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12075 $as_echo "$orig_target_nm" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12083 if test "$orig_target_nm" = ""; then
12084 # Extract the first word of "nm", so it can be a program name with args.
12085 set dummy nm; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if ${ac_cv_path_orig_target_nm+:} false; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 case $orig_target_nm in
12092 [\\/]* | ?:[\\/]*)
12093 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097 for as_dir in $PATH
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
12101 for ac_exec_ext in '' $ac_executable_extensions; do
12102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12103 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12105 break 2
12107 done
12108 done
12109 IFS=$as_save_IFS
12112 esac
12114 orig_target_nm=$ac_cv_path_orig_target_nm
12115 if test -n "$orig_target_nm"; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12117 $as_echo "$orig_target_nm" >&6; }
12118 else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12126 else
12127 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12128 set dummy ${aros_tool_prefix}nm; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if ${ac_cv_path_orig_target_nm+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 case $orig_target_nm in
12135 [\\/]* | ?:[\\/]*)
12136 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12146 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 break 2
12150 done
12151 done
12152 IFS=$as_save_IFS
12155 esac
12157 orig_target_nm=$ac_cv_path_orig_target_nm
12158 if test -n "$orig_target_nm"; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12160 $as_echo "$orig_target_nm" >&6; }
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12169 if test "$orig_target_nm" = ""; then
12170 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12173 if test "${aros_tool_prefix}strip" = ""; then
12174 if test "$cross_compiling" = "yes" ; then
12175 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12176 set dummy ${target_tool_prefix}strip; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if ${ac_cv_path_orig_target_strip+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 case $orig_target_strip in
12183 [\\/]* | ?:[\\/]*)
12184 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12194 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12198 done
12199 done
12200 IFS=$as_save_IFS
12203 esac
12205 orig_target_strip=$ac_cv_path_orig_target_strip
12206 if test -n "$orig_target_strip"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12208 $as_echo "$orig_target_strip" >&6; }
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12215 else
12216 if test "$GCC" = "yes"; then
12217 aros_gcc_strip=`$CC -print-prog-name=strip`
12218 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12219 set dummy `basename $aros_gcc_strip`; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_path_orig_target_strip+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 case $orig_target_strip in
12226 [\\/]* | ?:[\\/]*)
12227 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in `dirname $aros_gcc_strip`
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12241 done
12242 done
12243 IFS=$as_save_IFS
12246 esac
12248 orig_target_strip=$ac_cv_path_orig_target_strip
12249 if test -n "$orig_target_strip"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12251 $as_echo "$orig_target_strip" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12259 if test "$orig_target_strip" = ""; then
12260 # Extract the first word of "strip", so it can be a program name with args.
12261 set dummy strip; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if ${ac_cv_path_orig_target_strip+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 case $orig_target_strip in
12268 [\\/]* | ?:[\\/]*)
12269 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12283 done
12284 done
12285 IFS=$as_save_IFS
12288 esac
12290 orig_target_strip=$ac_cv_path_orig_target_strip
12291 if test -n "$orig_target_strip"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12293 $as_echo "$orig_target_strip" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12302 else
12303 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12304 set dummy ${aros_tool_prefix}strip; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if ${ac_cv_path_orig_target_strip+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 case $orig_target_strip in
12311 [\\/]* | ?:[\\/]*)
12312 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12322 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12326 done
12327 done
12328 IFS=$as_save_IFS
12331 esac
12333 orig_target_strip=$ac_cv_path_orig_target_strip
12334 if test -n "$orig_target_strip"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12336 $as_echo "$orig_target_strip" >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12345 if test "$orig_target_strip" = ""; then
12346 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12349 if test "${aros_tool_prefix}objcopy" = ""; then
12350 if test "$cross_compiling" = "yes" ; then
12351 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12352 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 case $orig_target_objcopy in
12359 [\\/]* | ?:[\\/]*)
12360 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12366 IFS=$as_save_IFS
12367 test -z "$as_dir" && as_dir=.
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12370 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 break 2
12374 done
12375 done
12376 IFS=$as_save_IFS
12379 esac
12381 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12382 if test -n "$orig_target_objcopy"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12384 $as_echo "$orig_target_objcopy" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12391 else
12392 if test "$GCC" = "yes"; then
12393 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12394 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12395 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 case $orig_target_objcopy in
12402 [\\/]* | ?:[\\/]*)
12403 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407 for as_dir in `dirname $aros_gcc_objcopy`
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12413 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 break 2
12417 done
12418 done
12419 IFS=$as_save_IFS
12422 esac
12424 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12425 if test -n "$orig_target_objcopy"; then
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12427 $as_echo "$orig_target_objcopy" >&6; }
12428 else
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430 $as_echo "no" >&6; }
12435 if test "$orig_target_objcopy" = ""; then
12436 # Extract the first word of "objcopy", so it can be a program name with args.
12437 set dummy objcopy; ac_word=$2
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439 $as_echo_n "checking for $ac_word... " >&6; }
12440 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 case $orig_target_objcopy in
12444 [\\/]* | ?:[\\/]*)
12445 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12451 IFS=$as_save_IFS
12452 test -z "$as_dir" && as_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12455 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12457 break 2
12459 done
12460 done
12461 IFS=$as_save_IFS
12464 esac
12466 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12467 if test -n "$orig_target_objcopy"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12469 $as_echo "$orig_target_objcopy" >&6; }
12470 else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12478 else
12479 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12480 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482 $as_echo_n "checking for $ac_word... " >&6; }
12483 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 case $orig_target_objcopy in
12487 [\\/]* | ?:[\\/]*)
12488 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
12496 for ac_exec_ext in '' $ac_executable_extensions; do
12497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12498 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500 break 2
12502 done
12503 done
12504 IFS=$as_save_IFS
12507 esac
12509 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12510 if test -n "$orig_target_objcopy"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12512 $as_echo "$orig_target_objcopy" >&6; }
12513 else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12521 if test "$orig_target_objcopy" = ""; then
12522 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12525 if test "${aros_tool_prefix}objdump" = ""; then
12526 if test "$cross_compiling" = "yes" ; then
12527 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12528 set dummy ${target_tool_prefix}objdump; ac_word=$2
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530 $as_echo_n "checking for $ac_word... " >&6; }
12531 if ${ac_cv_path_orig_target_objdump+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 case $orig_target_objdump in
12535 [\\/]* | ?:[\\/]*)
12536 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12540 for as_dir in $PATH
12542 IFS=$as_save_IFS
12543 test -z "$as_dir" && as_dir=.
12544 for ac_exec_ext in '' $ac_executable_extensions; do
12545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12546 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12548 break 2
12550 done
12551 done
12552 IFS=$as_save_IFS
12555 esac
12557 orig_target_objdump=$ac_cv_path_orig_target_objdump
12558 if test -n "$orig_target_objdump"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12560 $as_echo "$orig_target_objdump" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12567 else
12568 if test "$GCC" = "yes"; then
12569 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12570 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12571 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if ${ac_cv_path_orig_target_objdump+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 case $orig_target_objdump in
12578 [\\/]* | ?:[\\/]*)
12579 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in `dirname $aros_gcc_objdump`
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12593 done
12594 done
12595 IFS=$as_save_IFS
12598 esac
12600 orig_target_objdump=$ac_cv_path_orig_target_objdump
12601 if test -n "$orig_target_objdump"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12603 $as_echo "$orig_target_objdump" >&6; }
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12611 if test "$orig_target_objdump" = ""; then
12612 # Extract the first word of "objdump", so it can be a program name with args.
12613 set dummy objdump; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615 $as_echo_n "checking for $ac_word... " >&6; }
12616 if ${ac_cv_path_orig_target_objdump+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 case $orig_target_objdump in
12620 [\\/]* | ?:[\\/]*)
12621 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12631 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12635 done
12636 done
12637 IFS=$as_save_IFS
12640 esac
12642 orig_target_objdump=$ac_cv_path_orig_target_objdump
12643 if test -n "$orig_target_objdump"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12645 $as_echo "$orig_target_objdump" >&6; }
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12654 else
12655 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12656 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658 $as_echo_n "checking for $ac_word... " >&6; }
12659 if ${ac_cv_path_orig_target_objdump+:} false; then :
12660 $as_echo_n "(cached) " >&6
12661 else
12662 case $orig_target_objdump in
12663 [\\/]* | ?:[\\/]*)
12664 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in $PATH
12670 IFS=$as_save_IFS
12671 test -z "$as_dir" && as_dir=.
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12674 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12676 break 2
12678 done
12679 done
12680 IFS=$as_save_IFS
12683 esac
12685 orig_target_objdump=$ac_cv_path_orig_target_objdump
12686 if test -n "$orig_target_objdump"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12688 $as_echo "$orig_target_objdump" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12697 if test "$orig_target_objdump" = ""; then
12698 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12702 if test "$kernel_tool_prefix" = "none" ; then
12703 # No kernel tools specified
12704 # Assume target tools == kernel tools with ELF wrapper
12705 aros_kernel_cc=$orig_target_cc
12706 aros_kernel_cxx=$orig_target_cxx
12707 aros_kernel_cpp=$orig_target_cpp
12708 aros_kernel_ld=$orig_target_ld
12709 aros_kernel_as=$orig_target_as
12710 aros_kernel_ar=$orig_target_ar
12711 aros_kernel_ranlib=$orig_target_ranlib
12712 aros_kernel_nm=$orig_target_nm
12713 aros_kernel_strip=$orig_target_strip
12714 aros_kernel_objcopy=$orig_target_objcopy
12715 aros_kernel_objdump=$orig_target_objdump
12716 use_kernel_cc_wrapper=yes
12719 # At this point, all aros_kernel_* and aros_target_*
12720 # tools should be set up correctly
12722 CC="$aros_kernel_cc $kernel_tool_flags"
12723 CPP="$aros_kernel_cpp"
12725 #-----------------------------------------------------------------------------
12727 # Disable pointer-signedness warnings if the compiler recognises the option
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12730 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12731 save_cflags="$CFLAGS"
12732 if test "$crosstools" != "yes" ; then
12733 CFLAGS="$CFLAGS -Wno-pointer-sign"
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12738 main ()
12742 return 0;
12744 _ACEOF
12745 if ac_fn_c_try_compile "$LINENO"; then :
12746 use_no_sign_warning="yes"
12747 else
12748 use_no_sign_warning="no"
12750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 else
12752 # we do know it is supported for the smallest version of gcc we are going to build
12753 # we assume it's also supported by later versions
12754 use_no_sign_warning=yes
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12757 $as_echo "$use_no_sign_warning" >&6; }
12758 if test "x-$use_no_sign_warning" = "x-yes" ; then
12759 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12761 CFLAGS="$save_cflags"
12763 #-----------------------------------------------------------------------------
12765 # Find all the tools we need to compile. This could be cross-compiling
12766 # though! If that is the case we use the GNU form of the target and
12767 # simply add this to the front of the binary name. This is rather simple,
12768 # but it should work under most circumstances.
12770 # The default tools are to use the same as the host, but only if the
12771 # host and target CPU are the same. With GCC this is normally enough.
12774 aros_cc_pre=""
12775 aros_shared_ld="$aros_host_ld"
12777 aros_target_mkdep="$aros_host_mkdep"
12779 # The default tools executables to be linked to.
12780 if test "$rescomp" != ""; then
12781 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12782 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12784 $as_echo_n "checking for $ac_word... " >&6; }
12785 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 case $aros_kernel_rescomp in
12789 [\\/]* | ?:[\\/]*)
12790 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12800 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802 break 2
12804 done
12805 done
12806 IFS=$as_save_IFS
12809 esac
12811 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12812 if test -n "$aros_kernel_rescomp"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12814 $as_echo "$aros_kernel_rescomp" >&6; }
12815 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12821 if test "$aros_kernel_rescomp" = ""; then
12822 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12826 # Set up the sources for the symlink farm
12827 if test "$crosstools" = "yes"; then
12828 crosstools_target=tools-crosstools
12831 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12832 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12835 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12836 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12837 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12838 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12839 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12840 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12841 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12843 # aros_cc_pre is a variable that is added to the front of the compiler name
12844 # in the generated aros-gcc shell script. We need this to enable the cache
12845 # to work across cleaned builds. Also, support DISTCC using the correct
12846 # environment variable.
12849 if test "x${DISTCC}" != "x" ; then
12850 if test "x${CCACHE}" != "x" ; then
12851 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12852 else
12853 aros_cc_pre="${DISTCC} "
12855 else
12856 if test "x${CCACHE}" != "x" ; then
12857 aros_cc_pre="${CCACHE} "
12861 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12863 aros_target_nostdinc_cflags=-nostdinc
12865 aros_target_nostartup_ldflags=-nostartfiles
12867 aros_target_nix_ldflags=-nix
12869 aros_target_detach_ldflags=-detach
12871 aros_target_nostdlib_ldflags=-nostdlib
12874 # Target tools
12875 if test "$crosstools" != "yes"; then
12876 if test "$GCC" = "yes"; then
12877 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12879 else
12880 # We do not know which gcc version we are going to build and what we need to know
12881 # here is different for different versions so this will be set later during the
12882 # build of crosstools.
12883 aros_target_cc_path=@aros_target_cc_path@
12885 aros_target_cpp="${prefix}cpp"
12886 aros_target_cc="${prefix}gcc"
12887 aros_target_cxx="${prefix}g++"
12888 aros_target_as="${prefix}as"
12889 aros_target_ld="${prefix}ld"
12890 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12891 aros_target_objcopy="${prefix}objcopy"
12892 aros_target_objdump="${prefix}objdump"
12893 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12894 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12895 aros_target_strip="${prefix}strip"
12896 aros_plain_nm="${prefix}nm"
12897 aros_plain_ar="${prefix}ar"
12899 # Check whether --enable-includes was given.
12900 if test "${enable_includes+set}" = set; then :
12901 enableval=$enable_includes; aros_target_incl=$enable_includes
12902 else
12903 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12907 if test "$aros_kernel_includes" = ""; then
12908 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12909 aros_kernel_includes="-isystem $aros_target_incl"
12913 if test "$aros_kernel_includes" != "" ; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12915 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12916 if test "$aros_kernel_cc_includes" = "" ; then
12917 # Try to guess where the directory is.
12918 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12919 if test -d $aros_kernel_cc_includes; then
12920 # Check if there is also an include-fixed directory and add it
12921 # to kernel compiler's include path as it may contain some of
12922 # the headers we need.
12923 if test -d "$aros_kernel_cc_includes"-fixed; then
12924 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12926 # Check for specific includes directory. Neede for Ubuntu 11.10
12927 if test -d "/usr/include/i386-linux-gnu"; then
12928 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12930 else
12931 # The directory doesn't exist, we need to do some more work.
12932 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12934 # These are the headers we're looking for.
12935 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12936 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12937 zutil.h stdint.h"
12939 dirs=
12940 for h in $headers; do
12941 # Which other headers are needed by each of the above?
12942 deps=$(echo "#include <$h>" | \
12943 $aros_kernel_cc -E -M - 2>/dev/null | \
12944 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12946 # Copy all the needed headers to a directory beneath gendir.
12947 for d in $deps; do
12948 h=$(basename $d)
12949 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12950 sed -n "s,^.*/include\(/.*\),\1,p")
12951 ! test -d $dir && mkdir -p $dir
12952 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12953 done
12954 done
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12958 $as_echo "$aros_kernel_cc_includes" >&6; }
12959 # Adding -nostdinc to kernel includes as they are always used together.
12960 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12963 if test "$crosstools" != "yes"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12965 $as_echo_n "checking for the target compiler's include path... " >&6; }
12966 if test "$aros_target_cc_includes" = "" ; then
12967 #try to guess where the directory is
12968 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12969 if ! test -d $aros_target_cc_includes; then
12970 #the directory doesn't exist, we need to do some more work
12971 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12973 #these are the headers we're looking for
12974 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12975 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12976 zutil.h"
12978 dirs=
12979 for h in $headers; do
12980 #which other headers each of the above headers needs?
12981 deps=$(echo "#include <$h>" | \
12982 $orig_target_cc -E -M - 2>/dev/null | \
12983 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12985 #copy all the needed headers to a directory beneath gendir
12986 for d in $deps; do
12987 h=$(basename $d)
12988 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12989 sed -n "s,^.*/include\(/.*\),\1,p")
12990 ! test -d $dir && mkdir -p $dir
12991 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12992 done
12993 done
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12997 $as_echo "$aros_target_cc_includes" >&6; }
12998 else
12999 # We do not know which gcc version we are going to build and what we need to know
13000 # here is different for different versions so this will be set later during the
13001 # build of crosstools.
13002 aros_target_cc_includes=@aros_target_cc_includes@
13006 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13007 # On GCC >= 4.0 -iquote should be used
13010 save_cc="$CC"
13011 save_cflags="$CFLAGS"
13012 CFLAGS="-iquote."
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13014 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13015 if test "x-$crosstools" != "x-yes"; then
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13020 main ()
13024 return 0;
13026 _ACEOF
13027 if ac_fn_c_try_compile "$LINENO"; then :
13028 has_iquote="yes"
13029 else
13030 has_iquote="no"
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033 else
13034 # we do know it is supported for the smallest version of gcc we are going to build
13035 # we assume it's also supported by later versions
13036 has_iquote=yes
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13039 $as_echo "$has_iquote" >&6; }
13040 if test "x-$has_iquote" = "x-yes" ; then
13041 host_cflags_iquote=-iquote
13042 host_cflags_iquote_end=
13043 else
13044 host_cflags_iquote=-I
13045 host_cflags_iquote_end=-I-
13047 kernel_cflags_iquote=$host_cflags_iquote
13048 kernel_cflags_iquote_end=$host_cflags_iquote_end
13049 if test "x-$cross_compiling" = "x-yes"; then
13050 CC="$aros_kernel_cc"
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13052 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13053 if test "x-$crosstools" != "x-yes"; then
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13058 main ()
13062 return 0;
13064 _ACEOF
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066 use_no_stack_protector="yes"
13067 else
13068 use_no_stack_protector="no"
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 else
13072 # we do know it is supported for the smallest version of gcc we are going to build
13073 # we assume it's also supported by later versions
13074 use_no_stack_protector=yes
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13077 $as_echo "$use_no_stack_protector" >&6; }
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13079 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13080 if test "x-$crosstools" != "x-yes"; then
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13085 main ()
13089 return 0;
13091 _ACEOF
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093 has_iquote="yes"
13094 else
13095 has_iquote="no"
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 else
13099 # we do know it is supported for the smallest version of gcc we are going to build
13100 # we assume it's also supported by later versions
13101 has_iquote=yes
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13104 $as_echo "$has_iquote" >&6; }
13105 if test "x-$has_iquote" = "x-yes" ; then
13106 kernel_cflags_iquote=-iquote
13107 kernel_cflags_iquote_end=
13108 else
13109 kernel_cflags_iquote=-I
13110 kernel_cflags_iquote_end=-I-
13113 aros_cflags_iquote=$kernel_cflags_iquote
13114 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13115 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13116 CC="$orig_target_cc"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13118 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13119 if test "x-$crosstools" != "x-yes"; then
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13124 main ()
13128 return 0;
13130 _ACEOF
13131 if ac_fn_c_try_compile "$LINENO"; then :
13132 has_iquote="yes"
13133 else
13134 has_iquote="no"
13136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137 else
13138 # we do know it is supported for the smallest version of gcc we are going to build
13139 # we assume it's also supported by later versions
13140 has_iquote=yes
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13143 $as_echo "$has_iquote" >&6; }
13144 if test "x-$has_iquote" = "x-yes" ; then
13145 aros_cflags_iquote=-iquote
13146 aros_cflags_iquote_end=
13147 else
13148 aros_cflags_iquote=-I
13149 aros_cflags_iquote_end=-I-
13152 if test "x-$use_no_stack_protector" = "x-yes" ; then
13153 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13157 #-----------------------------------------------------------------------------
13159 # Check if the target compiler supports some options used for delinting:
13160 # -Wunused-but-set-variable
13161 # -Warray-bounds
13162 # -Wenum-compare
13163 # -Wstrict-overflow
13164 # -Wformat-security
13166 if test "x-$crosstools" != "x-yes"; then
13167 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13168 CC="$orig_target_cc"
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13171 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13172 CFLAGS=-Wunused-but-set-variable
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13177 main ()
13181 return 0;
13183 _ACEOF
13184 if ac_fn_c_try_compile "$LINENO"; then :
13185 aros_unused_but_set_variable="yes"
13186 else
13187 aros_unused_but_set_variable="no"
13189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13191 $as_echo "$aros_unused_but_set_variable" >&6; }
13192 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13193 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13197 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13198 CFLAGS=-Warray-bounds
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13203 main ()
13207 return 0;
13209 _ACEOF
13210 if ac_fn_c_try_compile "$LINENO"; then :
13211 aros_array_bounds="yes"
13212 else
13213 aros_array_bounds="no"
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13217 $as_echo "$aros_array_bounds" >&6; }
13218 if test "x-$aros_array_bounds" = "x-yes" ; then
13219 aros_cflags_array_bounds=-Wno-array-bounds
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13223 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13224 CFLAGS=-Wenum-compare
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13229 main ()
13233 return 0;
13235 _ACEOF
13236 if ac_fn_c_try_compile "$LINENO"; then :
13237 aros_enum_compare="yes"
13238 else
13239 aros_enum_compare="no"
13241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13243 $as_echo "$aros_enum_compare" >&6; }
13244 if test "x-$aros_enum_compare" = "x-yes" ; then
13245 aros_cflags_enum_compare=-Wno-enum-compare
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13249 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13250 CFLAGS=-Wstrict-overflow
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13255 main ()
13259 return 0;
13261 _ACEOF
13262 if ac_fn_c_try_compile "$LINENO"; then :
13263 aros_strict_overflow="yes"
13264 else
13265 aros_strict_overflow="no"
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13269 $as_echo "$aros_strict_overflow" >&6; }
13270 if test "x-$aros_strict_overflow" = "x-yes" ; then
13271 aros_cflags_strict_overflow=-Wno-strict-overflow
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13275 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13276 CFLAGS=-Wformat-security
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13281 main ()
13285 return 0;
13287 _ACEOF
13288 if ac_fn_c_try_compile "$LINENO"; then :
13289 aros_format_security="yes"
13290 else
13291 aros_format_security="no"
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13295 $as_echo "$aros_format_security" >&6; }
13296 if test "x-$aros_format_security" = "x-yes" ; then
13297 aros_cflags_format_security=-Wno-format-security
13299 else
13300 # We do not know which gcc version we are going to build and what we need to know
13301 # here is different for different versions so this will be set later during the
13302 # build of crosstools.
13303 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13304 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13305 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13306 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13307 aros_cflags_format_security=@aros_cflags_format_security@
13310 #-----------------------------------------------------------------------------
13312 # Check if we can explicitly choose older version of symbol hashing
13314 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13315 CC="$aros_kernel_cc"
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13317 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13322 main ()
13326 return 0;
13328 _ACEOF
13329 if ac_fn_c_try_link "$LINENO"; then :
13330 use_hash_style="yes"
13331 else
13332 use_hash_style="no"
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13337 $as_echo "$use_hash_style" >&6; }
13338 if test "x-$use_hash_style" = "x-yes" ; then
13339 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13341 CC="$save_cc"
13342 CFLAGS="$save_cflags"
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13353 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13355 # Check whether --with-resolution was given.
13356 if test "${with_resolution+set}" = set; then :
13357 withval=$with_resolution; resolution=$withval
13358 else
13359 resolution=none
13362 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13363 if test "$resolution" = "yes" ; then
13364 resolution="none"
13366 if test "$resolution" = "no" ; then
13367 resolution="none"
13369 if test "$resolution" != "none" ; then
13370 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13371 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13372 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13375 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13376 aros_cv_default_wbwidth=$aros_default_wbwidth
13377 aros_cv_default_wbheight=$aros_default_wbheight
13378 aros_cv_default_wbdepth=$aros_default_wbdepth
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13381 $as_echo_n "checking if serial debug is enabled... " >&6; }
13383 # Check whether --with-serial-debug was given.
13384 if test "${with_serial_debug+set}" = set; then :
13385 withval=$with_serial_debug; serial_debug=$withval
13386 else
13387 serial_debug=none
13390 if test "$aros_serial_debug" = 0 ; then
13391 serial_debug_forced=""
13392 if test "$serial_debug" = "yes" ; then
13393 serial_debug="1"
13395 if test "$serial_debug" = "no" ; then
13396 serial_debug="none"
13398 else
13399 serial_debug_forced="(forced)"
13400 serial_debug=$aros_serial_debug
13402 if test "$serial_debug" != "none" ; then
13403 aros_serial_debug=$serial_debug
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13405 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13406 else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13412 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13413 # Check whether --enable-palm_debug_hack was given.
13414 if test "${enable_palm_debug_hack+set}" = set; then :
13415 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13416 else
13417 palm_debug_hack="no"
13420 if test "$palm_debug_hack" = "yes" ; then
13421 aros_palm_debug_hack="1"
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13424 $as_echo "$palm_debug_hack" >&6; }
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13427 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13428 # Check whether --enable-usb30_code was given.
13429 if test "${enable_usb30_code+set}" = set; then :
13430 enableval=$enable_usb30_code; usb30_code="yes"
13431 else
13432 usb30_code="no"
13435 if test "$usb30_code" = "yes" ; then
13436 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13437 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13440 $as_echo "$usb30_code" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13443 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13444 # Check whether --enable-nesting_supervisor was given.
13445 if test "${enable_nesting_supervisor+set}" = set; then :
13446 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13447 else
13448 nesting_supervisor="no"
13451 if test "$nesting_supervisor" = "yes" ; then
13452 aros_nesting_supervisor="1"
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13455 $as_echo "$nesting_supervisor" >&6; }
13457 if test "$aros_enable_mmu" = "" ; then
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13459 $as_echo_n "checking if MMU support is enabled... " >&6; }
13460 # Check whether --enable-mmu was given.
13461 if test "${enable_mmu+set}" = set; then :
13462 enableval=$enable_mmu; aros_enable_mmu=$enableval
13463 else
13464 aros_enable_mmu="yes"
13467 if test "$aros_enable_mmu" = "" ; then
13468 aros_enable_mmu="yes"
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13471 $as_echo "$aros_enable_mmu" >&6; }
13473 if test "$aros_enable_mmu" = "no" ; then
13474 aros_enable_mmu="0"
13475 else
13476 aros_enable_mmu="1"
13480 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13482 if test "x-$need_dlopen" != "x-no" ; then
13483 save_libs="$LIBS"
13484 LIBS=""
13485 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13486 if test "x$ac_cv_func_dlopen" = xyes; then :
13487 have_dl="yes"
13488 else
13489 have_dl="no"
13492 if test "x-$have_dl" = "x-no" ; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13494 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13495 if ${ac_cv_lib_dl_dlopen+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 ac_check_lib_save_LIBS=$LIBS
13499 LIBS="-ldl $LIBS"
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13503 /* Override any GCC internal prototype to avoid an error.
13504 Use char because int might match the return type of a GCC
13505 builtin and then its argument prototype would still apply. */
13506 #ifdef __cplusplus
13507 extern "C"
13508 #endif
13509 char dlopen ();
13511 main ()
13513 return dlopen ();
13515 return 0;
13517 _ACEOF
13518 if ac_fn_c_try_link "$LINENO"; then :
13519 ac_cv_lib_dl_dlopen=yes
13520 else
13521 ac_cv_lib_dl_dlopen=no
13523 rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13525 LIBS=$ac_check_lib_save_LIBS
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13528 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13529 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13530 have_dl="yes"
13531 aros_host_ldflags="$aros_host_ldflags -ldl"
13532 else
13533 have_dl="no"
13537 if test "x-$have_dl" = "x-no" ; then
13538 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13540 LIBS="$save_libs"
13544 # Check whether --enable-x11_hidd was given.
13545 if test "${enable_x11_hidd+set}" = set; then :
13546 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13547 else
13548 x11_hidd="$need_x11"
13551 case "x-$x11_hidd" in
13552 x-yes|x-no|x-auto) ;;
13553 *) x11_hidd="$need_x11" ;;
13554 esac
13556 ENABLE_X11=0
13558 if test "x-$x11_hidd" != "x-no" ; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13561 $as_echo_n "checking for X... " >&6; }
13564 # Check whether --with-x was given.
13565 if test "${with_x+set}" = set; then :
13566 withval=$with_x;
13569 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13570 if test "x$with_x" = xno; then
13571 # The user explicitly disabled X.
13572 have_x=disabled
13573 else
13574 case $x_includes,$x_libraries in #(
13575 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13576 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 # One or both of the vars are not set, and there is no cached value.
13580 ac_x_includes=no ac_x_libraries=no
13581 rm -f -r conftest.dir
13582 if mkdir conftest.dir; then
13583 cd conftest.dir
13584 cat >Imakefile <<'_ACEOF'
13585 incroot:
13586 @echo incroot='${INCROOT}'
13587 usrlibdir:
13588 @echo usrlibdir='${USRLIBDIR}'
13589 libdir:
13590 @echo libdir='${LIBDIR}'
13591 _ACEOF
13592 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13593 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13594 for ac_var in incroot usrlibdir libdir; do
13595 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13596 done
13597 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13598 for ac_extension in a so sl dylib la dll; do
13599 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13600 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13601 ac_im_usrlibdir=$ac_im_libdir; break
13603 done
13604 # Screen out bogus values from the imake configuration. They are
13605 # bogus both because they are the default anyway, and because
13606 # using them would break gcc on systems where it needs fixed includes.
13607 case $ac_im_incroot in
13608 /usr/include) ac_x_includes= ;;
13609 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13610 esac
13611 case $ac_im_usrlibdir in
13612 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13613 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13614 esac
13616 cd ..
13617 rm -f -r conftest.dir
13620 # Standard set of common directories for X headers.
13621 # Check X11 before X11Rn because it is often a symlink to the current release.
13622 ac_x_header_dirs='
13623 /usr/X11/include
13624 /usr/X11R7/include
13625 /usr/X11R6/include
13626 /usr/X11R5/include
13627 /usr/X11R4/include
13629 /usr/include/X11
13630 /usr/include/X11R7
13631 /usr/include/X11R6
13632 /usr/include/X11R5
13633 /usr/include/X11R4
13635 /usr/local/X11/include
13636 /usr/local/X11R7/include
13637 /usr/local/X11R6/include
13638 /usr/local/X11R5/include
13639 /usr/local/X11R4/include
13641 /usr/local/include/X11
13642 /usr/local/include/X11R7
13643 /usr/local/include/X11R6
13644 /usr/local/include/X11R5
13645 /usr/local/include/X11R4
13647 /usr/X386/include
13648 /usr/x386/include
13649 /usr/XFree86/include/X11
13651 /usr/include
13652 /usr/local/include
13653 /usr/unsupported/include
13654 /usr/athena/include
13655 /usr/local/x11r5/include
13656 /usr/lpp/Xamples/include
13658 /usr/openwin/include
13659 /usr/openwin/share/include'
13661 if test "$ac_x_includes" = no; then
13662 # Guess where to find include files, by looking for Xlib.h.
13663 # First, try using that file with no special directory specified.
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 #include <X11/Xlib.h>
13667 _ACEOF
13668 if ac_fn_c_try_cpp "$LINENO"; then :
13669 # We can compile using X headers with no special include directory.
13670 ac_x_includes=
13671 else
13672 for ac_dir in $ac_x_header_dirs; do
13673 if test -r "$ac_dir/X11/Xlib.h"; then
13674 ac_x_includes=$ac_dir
13675 break
13677 done
13679 rm -f conftest.err conftest.i conftest.$ac_ext
13680 fi # $ac_x_includes = no
13682 if test "$ac_x_libraries" = no; then
13683 # Check for the libraries.
13684 # See if we find them without any special options.
13685 # Don't add to $LIBS permanently.
13686 ac_save_LIBS=$LIBS
13687 LIBS="-lX11 $LIBS"
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690 #include <X11/Xlib.h>
13692 main ()
13694 XrmInitialize ()
13696 return 0;
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"; then :
13700 LIBS=$ac_save_LIBS
13701 # We can link X programs with no special library path.
13702 ac_x_libraries=
13703 else
13704 LIBS=$ac_save_LIBS
13705 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13707 # Don't even attempt the hair of trying to link an X program!
13708 for ac_extension in a so sl dylib la dll; do
13709 if test -r "$ac_dir/libX11.$ac_extension"; then
13710 ac_x_libraries=$ac_dir
13711 break 2
13713 done
13714 done
13716 rm -f core conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13718 fi # $ac_x_libraries = no
13720 case $ac_x_includes,$ac_x_libraries in #(
13721 no,* | *,no | *\'*)
13722 # Didn't find X, or a directory has "'" in its name.
13723 ac_cv_have_x="have_x=no";; #(
13725 # Record where we found X for the cache.
13726 ac_cv_have_x="have_x=yes\
13727 ac_x_includes='$ac_x_includes'\
13728 ac_x_libraries='$ac_x_libraries'"
13729 esac
13731 ;; #(
13732 *) have_x=yes;;
13733 esac
13734 eval "$ac_cv_have_x"
13735 fi # $with_x != no
13737 if test "$have_x" != yes; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13739 $as_echo "$have_x" >&6; }
13740 no_x=yes
13741 else
13742 # If each of the values was on the command line, it overrides each guess.
13743 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13744 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13745 # Update the cache value to reflect the command line values.
13746 ac_cv_have_x="have_x=yes\
13747 ac_x_includes='$x_includes'\
13748 ac_x_libraries='$x_libraries'"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13750 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13754 x_cflags=
13755 for path in $x_libraries
13757 x_cflags="$x_cflags -L$path"
13758 done
13760 for path in $x_includes
13762 x_cflags="$x_cflags -I$path"
13763 done
13765 if test "x-$no_x" = "x-yes" ; then
13767 if test "x-$x11_hidd" != "x-auto" ; then
13768 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13771 else
13772 x11_hidd_target=kernel-x11gfx-kobj
13773 ENABLE_X11=1
13775 # Check whether --enable-x11_shm was given.
13776 if test "${enable_x11_shm+set}" = set; then :
13777 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13778 else
13779 x11_hidd_shm="auto"
13782 case "x-$x11_hidd_shm" in
13783 x-yes|x-no|x-auto) ;;
13784 *) x11_hidd_shm="auto" ;;
13785 esac
13787 have_xshm=no
13789 if test "x-$x11_hidd_shm" != "x-no" ; then
13791 for ac_header in sys/ipc.h
13792 do :
13793 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13794 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_SYS_IPC_H 1
13797 _ACEOF
13801 done
13803 for ac_header in sys/shm.h
13804 do :
13805 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13806 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13807 cat >>confdefs.h <<_ACEOF
13808 #define HAVE_SYS_SHM_H 1
13809 _ACEOF
13813 done
13816 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13818 save_cflags="$CFLAGS"
13819 CFLAGS="$CFLAGS $x_cflags"
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13821 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13822 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 ac_check_lib_save_LIBS=$LIBS
13826 LIBS="-lXext $LIBS"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13830 /* Override any GCC internal prototype to avoid an error.
13831 Use char because int might match the return type of a GCC
13832 builtin and then its argument prototype would still apply. */
13833 #ifdef __cplusplus
13834 extern "C"
13835 #endif
13836 char XShmQueryExtension ();
13838 main ()
13840 return XShmQueryExtension ();
13842 return 0;
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846 ac_cv_lib_Xext_XShmQueryExtension=yes
13847 else
13848 ac_cv_lib_Xext_XShmQueryExtension=no
13850 rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13855 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13856 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13857 have_xshm=yes
13860 CFLAGS="$save_cflags"
13864 if test "x-$have_xshm" = "x-yes" ; then
13865 DO_XSHM_SUPPORT="1"
13866 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13867 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13868 else
13869 DO_XSHM_SUPPORT="0"
13873 # Check whether --enable-x11_vidmode was given.
13874 if test "${enable_x11_vidmode+set}" = set; then :
13875 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13876 else
13877 x11_hidd_vidmode="auto"
13880 case "x-$x11_hidd_vidmode" in
13881 x-yes|x-no|x-auto) ;;
13882 *) x11_hidd_vidmode="auto" ;;
13883 esac
13885 have_vidmode=no
13887 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13889 save_cflags="$CFLAGS"
13890 CFLAGS="$CFLAGS $x_cflags"
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13892 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13893 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 ac_check_lib_save_LIBS=$LIBS
13897 LIBS="-lXxf86vm $LIBS"
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13901 /* Override any GCC internal prototype to avoid an error.
13902 Use char because int might match the return type of a GCC
13903 builtin and then its argument prototype would still apply. */
13904 #ifdef __cplusplus
13905 extern "C"
13906 #endif
13907 char XF86VidModeQueryExtension ();
13909 main ()
13911 return XF86VidModeQueryExtension ();
13913 return 0;
13915 _ACEOF
13916 if ac_fn_c_try_link "$LINENO"; then :
13917 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13918 else
13919 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 LIBS=$ac_check_lib_save_LIBS
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13926 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13927 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13928 have_vidmode=yes
13931 CFLAGS="$save_cflags"
13934 if test "x-$have_vidmode" = "x-yes" ; then
13935 DO_VIDMODE_SUPPORT="1"
13936 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13937 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13938 else
13939 DO_VIDMODE_SUPPORT="0"
13943 aros_host_x11_includes=$x_includes
13944 aros_host_x11_libdirs=$x_libraries
13948 # Check whether --enable-sdl_hidd was given.
13949 if test "${enable_sdl_hidd+set}" = set; then :
13950 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13951 else
13952 sdl_hidd="auto"
13955 case "x-$sdl_hidd" in
13956 x-yes|x-no|x-auto) ;;
13957 *) sdl_hidd="auto" ;;
13958 esac
13960 if test "x-$sdl_hidd" != "x-no" ; then
13963 # Check whether --with-sdl-prefix was given.
13964 if test "${with_sdl_prefix+set}" = set; then :
13965 withval=$with_sdl_prefix; sdl_prefix="$withval"
13966 else
13967 sdl_prefix=""
13971 # Check whether --with-sdl-exec-prefix was given.
13972 if test "${with_sdl_exec_prefix+set}" = set; then :
13973 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13974 else
13975 sdl_exec_prefix=""
13978 # Check whether --enable-sdltest was given.
13979 if test "${enable_sdltest+set}" = set; then :
13980 enableval=$enable_sdltest;
13981 else
13982 enable_sdltest=yes
13986 if test x$sdl_exec_prefix != x ; then
13987 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13988 if test x${SDL_CONFIG+set} != xset ; then
13989 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13992 if test x$sdl_prefix != x ; then
13993 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13994 if test x${SDL_CONFIG+set} != xset ; then
13995 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13999 as_save_PATH="$PATH"
14000 if test "x$prefix" != xNONE; then
14001 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14003 # Extract the first word of "sdl-config", so it can be a program name with args.
14004 set dummy sdl-config; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14006 $as_echo_n "checking for $ac_word... " >&6; }
14007 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 case $SDL_CONFIG in
14011 [\\/]* | ?:[\\/]*)
14012 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14018 IFS=$as_save_IFS
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14022 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14024 break 2
14026 done
14027 done
14028 IFS=$as_save_IFS
14030 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14032 esac
14034 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14035 if test -n "$SDL_CONFIG"; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14037 $as_echo "$SDL_CONFIG" >&6; }
14038 else
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 $as_echo "no" >&6; }
14044 PATH="$as_save_PATH"
14045 min_sdl_version=1.2.10
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14047 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14048 no_sdl=""
14049 if test "$SDL_CONFIG" = "no" ; then
14050 no_sdl=yes
14051 else
14052 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14053 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14055 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14056 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14057 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14058 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14059 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14060 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14061 if test "x$enable_sdltest" = "xyes" ; then
14062 ac_save_CFLAGS="$CFLAGS"
14063 ac_save_CXXFLAGS="$CXXFLAGS"
14064 ac_save_LIBS="$LIBS"
14065 CFLAGS="$CFLAGS $SDL_CFLAGS"
14066 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14067 LIBS="$LIBS $SDL_LIBS"
14068 rm -f conf.sdltest
14069 if test "$cross_compiling" = yes; then :
14070 echo $ac_n "cross compiling; assumed OK... $ac_c"
14071 else
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14075 #include <stdio.h>
14076 #include <stdlib.h>
14077 #include <string.h>
14078 #include "SDL.h"
14080 char*
14081 my_strdup (char *str)
14083 char *new_str;
14085 if (str)
14087 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14088 strcpy (new_str, str);
14090 else
14091 new_str = NULL;
14093 return new_str;
14096 int main (int argc, char *argv[])
14098 int major, minor, micro;
14099 char *tmp_version;
14101 /* This hangs on some systems (?)
14102 system ("touch conf.sdltest");
14104 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14106 /* HP/UX 9 (%@#!) writes to sscanf strings */
14107 tmp_version = my_strdup("$min_sdl_version");
14108 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14109 printf("%s, bad version string\n", "$min_sdl_version");
14110 exit(1);
14113 if (($sdl_major_version > major) ||
14114 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14115 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14117 return 0;
14119 else
14121 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14122 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14123 printf("*** best to upgrade to the required version.\n");
14124 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14125 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14126 printf("*** config.cache before re-running configure\n");
14127 return 1;
14132 _ACEOF
14133 if ac_fn_c_try_run "$LINENO"; then :
14135 else
14136 no_sdl=yes
14138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14139 conftest.$ac_objext conftest.beam conftest.$ac_ext
14142 CFLAGS="$ac_save_CFLAGS"
14143 CXXFLAGS="$ac_save_CXXFLAGS"
14144 LIBS="$ac_save_LIBS"
14147 if test "x$no_sdl" = x ; then
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14149 $as_echo "yes" >&6; }
14150 have_sdl="yes"
14151 else
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153 $as_echo "no" >&6; }
14154 if test "$SDL_CONFIG" = "no" ; then
14155 echo "*** The sdl-config script installed by SDL could not be found"
14156 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14157 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14158 echo "*** full path to sdl-config."
14159 else
14160 if test -f conf.sdltest ; then
14162 else
14163 echo "*** Could not run SDL test program, checking why..."
14164 CFLAGS="$CFLAGS $SDL_CFLAGS"
14165 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14166 LIBS="$LIBS $SDL_LIBS"
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14170 #include <stdio.h>
14171 #include "SDL.h"
14173 int main(int argc, char *argv[])
14174 { return 0; }
14175 #undef main
14176 #define main K_and_R_C_main
14179 main ()
14181 return 0;
14183 return 0;
14185 _ACEOF
14186 if ac_fn_c_try_link "$LINENO"; then :
14187 echo "*** The test program compiled, but did not run. This usually means"
14188 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14189 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14190 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14191 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14192 echo "*** is required on your system"
14193 echo "***"
14194 echo "*** If you have an old version installed, it is best to remove it, although"
14195 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14196 else
14197 echo "*** The test program failed to compile or link. See the file config.log for the"
14198 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14199 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14200 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14202 rm -f core conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204 CFLAGS="$ac_save_CFLAGS"
14205 CXXFLAGS="$ac_save_CXXFLAGS"
14206 LIBS="$ac_save_LIBS"
14209 SDL_CFLAGS=""
14210 SDL_LIBS=""
14211 have_sdl="no"
14215 rm -f conf.sdltest
14218 if test "x-$have_sdl" != "x-yes" ; then
14220 if test "x-$sdl_hidd" != "x-auto" ; then
14221 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14224 else
14225 sdl_hidd_target=kernel-hidd-sdl
14226 aros_host_sdl_cflags=SDL_CFLAGS
14227 aros_host_sdl_libs=SDL_LIBS
14231 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14232 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14237 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14238 oss_library_target=workbench-libs-oss-unix
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14244 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14245 # Check whether --enable-dbus was given.
14246 if test "${enable_dbus+set}" = set; then :
14247 enableval=$enable_dbus; dbus="yes"
14248 else
14249 dbus="no"
14252 if test "$dbus" = "yes" ; then
14253 ENABLE_DBUS=1
14254 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14255 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14256 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14257 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14258 else
14259 ENABLE_DBUS=0
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14262 $as_echo "$dbus" >&6; }
14264 if test "$use_kernel_cc_wrapper" = "yes" ; then
14265 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14268 if test "${crosstools}" != "yes" ; then
14269 aros_target_toolchain=no
14270 else
14271 aros_target_toolchain=yes
14275 # Generic
14287 # Compatability with other Amiga-like operation systems
14290 # Host related
14318 # Target Related
14382 # Delinting target compiler flags
14389 # Graphics Related
14406 # Native version related
14409 # Palm native version related
14412 # Unix/Hosted version related
14415 # MMU related
14418 # Apple iOS related
14423 # ARM default GCC target related
14429 # Android related
14433 # DBUS related
14440 #X11 related
14443 # Debug related
14449 # Collect-aros stuff: "-ius" to ignore undefined symbols
14452 # C compiler related
14455 #ObjC compiler related
14458 # USB3.0 code
14461 case "$aros_flavour" in
14462 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14463 aros_flavour="emulation" ;;
14464 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14465 aros_flavour="emulation" ;;
14466 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14467 aros_flavour="standalone";;
14468 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14469 aros_flavour="standalone";;
14470 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14471 aros_flavour="native" ;;
14472 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14473 aros_flavour="native" ;;
14474 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14475 aros_flavour="linklib" ;;
14476 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14477 aros_flavour="palmnative" ;;
14478 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14479 aros_flavour="mac68knative" ;;
14480 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14481 aros_flavour="ppcnative" ;;
14482 esac
14484 if test ! -d ${aros_inc_dir} ; then
14485 ${MKDIR} ${aros_inc_dir}
14487 if test ! -d ${aros_geninc_dir} ; then
14488 ${MKDIR} ${aros_geninc_dir}
14490 if test ! -d ${aros_hostcfg_dir} ; then
14491 ${MKDIR} ${aros_hostcfg_dir}
14493 if test ! -d ${aros_targetcfg_dir} ; then
14494 ${MKDIR} ${aros_targetcfg_dir}
14496 if test ! -d ${aros_tools_dir} ; then
14497 ${MKDIR} ${aros_tools_dir}
14499 if test ! -d ${aros_scripts_dir} ; then
14500 ${MKDIR} ${aros_scripts_dir}
14503 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14506 ac_config_commands="$ac_config_commands compiler_executable"
14508 ac_config_commands="$ac_config_commands genmf_executable"
14511 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"
14514 cat >confcache <<\_ACEOF
14515 # This file is a shell script that caches the results of configure
14516 # tests run on this system so they can be shared between configure
14517 # scripts and configure runs, see configure's option --config-cache.
14518 # It is not useful on other systems. If it contains results you don't
14519 # want to keep, you may remove or edit it.
14521 # config.status only pays attention to the cache file if you give it
14522 # the --recheck option to rerun configure.
14524 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14525 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14526 # following values.
14528 _ACEOF
14530 # The following way of writing the cache mishandles newlines in values,
14531 # but we know of no workaround that is simple, portable, and efficient.
14532 # So, we kill variables containing newlines.
14533 # Ultrix sh set writes to stderr and can't be redirected directly,
14534 # and sets the high bit in the cache file unless we assign to the vars.
14536 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14537 eval ac_val=\$$ac_var
14538 case $ac_val in #(
14539 *${as_nl}*)
14540 case $ac_var in #(
14541 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14542 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14543 esac
14544 case $ac_var in #(
14545 _ | IFS | as_nl) ;; #(
14546 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14547 *) { eval $ac_var=; unset $ac_var;} ;;
14548 esac ;;
14549 esac
14550 done
14552 (set) 2>&1 |
14553 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14554 *${as_nl}ac_space=\ *)
14555 # `set' does not quote correctly, so add quotes: double-quote
14556 # substitution turns \\\\ into \\, and sed turns \\ into \.
14557 sed -n \
14558 "s/'/'\\\\''/g;
14559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14560 ;; #(
14562 # `set' quotes correctly as required by POSIX, so do not add quotes.
14563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14565 esac |
14566 sort
14568 sed '
14569 /^ac_cv_env_/b end
14570 t clear
14571 :clear
14572 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14573 t end
14574 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14575 :end' >>confcache
14576 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14577 if test -w "$cache_file"; then
14578 if test "x$cache_file" != "x/dev/null"; then
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14580 $as_echo "$as_me: updating cache $cache_file" >&6;}
14581 if test ! -f "$cache_file" || test -h "$cache_file"; then
14582 cat confcache >"$cache_file"
14583 else
14584 case $cache_file in #(
14585 */* | ?:*)
14586 mv -f confcache "$cache_file"$$ &&
14587 mv -f "$cache_file"$$ "$cache_file" ;; #(
14589 mv -f confcache "$cache_file" ;;
14590 esac
14593 else
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14595 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14598 rm -f confcache
14600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14601 # Let make expand exec_prefix.
14602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14604 DEFS=-DHAVE_CONFIG_H
14606 ac_libobjs=
14607 ac_ltlibobjs=
14609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14610 # 1. Remove the extension, and $U if already installed.
14611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14614 # will be set to the directory where LIBOBJS objects are built.
14615 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14616 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14617 done
14618 LIBOBJS=$ac_libobjs
14620 LTLIBOBJS=$ac_ltlibobjs
14624 : "${CONFIG_STATUS=./config.status}"
14625 ac_write_fail=0
14626 ac_clean_files_save=$ac_clean_files
14627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14630 as_write_fail=0
14631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14632 #! $SHELL
14633 # Generated by $as_me.
14634 # Run this file to recreate the current configuration.
14635 # Compiler output produced by configure, useful for debugging
14636 # configure, is in config.log if it exists.
14638 debug=false
14639 ac_cs_recheck=false
14640 ac_cs_silent=false
14642 SHELL=\${CONFIG_SHELL-$SHELL}
14643 export SHELL
14644 _ASEOF
14645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14646 ## -------------------- ##
14647 ## M4sh Initialization. ##
14648 ## -------------------- ##
14650 # Be more Bourne compatible
14651 DUALCASE=1; export DUALCASE # for MKS sh
14652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14653 emulate sh
14654 NULLCMD=:
14655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14656 # is contrary to our usage. Disable this feature.
14657 alias -g '${1+"$@"}'='"$@"'
14658 setopt NO_GLOB_SUBST
14659 else
14660 case `(set -o) 2>/dev/null` in #(
14661 *posix*) :
14662 set -o posix ;; #(
14663 *) :
14665 esac
14669 as_nl='
14671 export as_nl
14672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14673 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14676 # Prefer a ksh shell builtin over an external printf program on Solaris,
14677 # but without wasting forks for bash or zsh.
14678 if test -z "$BASH_VERSION$ZSH_VERSION" \
14679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14680 as_echo='print -r --'
14681 as_echo_n='print -rn --'
14682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14683 as_echo='printf %s\n'
14684 as_echo_n='printf %s'
14685 else
14686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14688 as_echo_n='/usr/ucb/echo -n'
14689 else
14690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14691 as_echo_n_body='eval
14692 arg=$1;
14693 case $arg in #(
14694 *"$as_nl"*)
14695 expr "X$arg" : "X\\(.*\\)$as_nl";
14696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14697 esac;
14698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14700 export as_echo_n_body
14701 as_echo_n='sh -c $as_echo_n_body as_echo'
14703 export as_echo_body
14704 as_echo='sh -c $as_echo_body as_echo'
14707 # The user is always right.
14708 if test "${PATH_SEPARATOR+set}" != set; then
14709 PATH_SEPARATOR=:
14710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14712 PATH_SEPARATOR=';'
14717 # IFS
14718 # We need space, tab and new line, in precisely that order. Quoting is
14719 # there to prevent editors from complaining about space-tab.
14720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14721 # splitting by setting IFS to empty value.)
14722 IFS=" "" $as_nl"
14724 # Find who we are. Look in the path if we contain no directory separator.
14725 as_myself=
14726 case $0 in #((
14727 *[\\/]* ) as_myself=$0 ;;
14728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14729 for as_dir in $PATH
14731 IFS=$as_save_IFS
14732 test -z "$as_dir" && as_dir=.
14733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14734 done
14735 IFS=$as_save_IFS
14738 esac
14739 # We did not find ourselves, most probably we were run as `sh COMMAND'
14740 # in which case we are not to be found in the path.
14741 if test "x$as_myself" = x; then
14742 as_myself=$0
14744 if test ! -f "$as_myself"; then
14745 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14746 exit 1
14749 # Unset variables that we do not need and which cause bugs (e.g. in
14750 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14751 # suppresses any "Segmentation fault" message there. '((' could
14752 # trigger a bug in pdksh 5.2.14.
14753 for as_var in BASH_ENV ENV MAIL MAILPATH
14754 do eval test x\${$as_var+set} = xset \
14755 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14756 done
14757 PS1='$ '
14758 PS2='> '
14759 PS4='+ '
14761 # NLS nuisances.
14762 LC_ALL=C
14763 export LC_ALL
14764 LANGUAGE=C
14765 export LANGUAGE
14767 # CDPATH.
14768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14771 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14772 # ----------------------------------------
14773 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14774 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14775 # script with STATUS, using 1 if that was 0.
14776 as_fn_error ()
14778 as_status=$1; test $as_status -eq 0 && as_status=1
14779 if test "$4"; then
14780 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14781 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14783 $as_echo "$as_me: error: $2" >&2
14784 as_fn_exit $as_status
14785 } # as_fn_error
14788 # as_fn_set_status STATUS
14789 # -----------------------
14790 # Set $? to STATUS, without forking.
14791 as_fn_set_status ()
14793 return $1
14794 } # as_fn_set_status
14796 # as_fn_exit STATUS
14797 # -----------------
14798 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14799 as_fn_exit ()
14801 set +e
14802 as_fn_set_status $1
14803 exit $1
14804 } # as_fn_exit
14806 # as_fn_unset VAR
14807 # ---------------
14808 # Portably unset VAR.
14809 as_fn_unset ()
14811 { eval $1=; unset $1;}
14813 as_unset=as_fn_unset
14814 # as_fn_append VAR VALUE
14815 # ----------------------
14816 # Append the text in VALUE to the end of the definition contained in VAR. Take
14817 # advantage of any shell optimizations that allow amortized linear growth over
14818 # repeated appends, instead of the typical quadratic growth present in naive
14819 # implementations.
14820 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14821 eval 'as_fn_append ()
14823 eval $1+=\$2
14825 else
14826 as_fn_append ()
14828 eval $1=\$$1\$2
14830 fi # as_fn_append
14832 # as_fn_arith ARG...
14833 # ------------------
14834 # Perform arithmetic evaluation on the ARGs, and store the result in the
14835 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14836 # must be portable across $(()) and expr.
14837 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14838 eval 'as_fn_arith ()
14840 as_val=$(( $* ))
14842 else
14843 as_fn_arith ()
14845 as_val=`expr "$@" || test $? -eq 1`
14847 fi # as_fn_arith
14850 if expr a : '\(a\)' >/dev/null 2>&1 &&
14851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14852 as_expr=expr
14853 else
14854 as_expr=false
14857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14858 as_basename=basename
14859 else
14860 as_basename=false
14863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14864 as_dirname=dirname
14865 else
14866 as_dirname=false
14869 as_me=`$as_basename -- "$0" ||
14870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14871 X"$0" : 'X\(//\)$' \| \
14872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14873 $as_echo X/"$0" |
14874 sed '/^.*\/\([^/][^/]*\)\/*$/{
14875 s//\1/
14878 /^X\/\(\/\/\)$/{
14879 s//\1/
14882 /^X\/\(\/\).*/{
14883 s//\1/
14886 s/.*/./; q'`
14888 # Avoid depending upon Character Ranges.
14889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14892 as_cr_digits='0123456789'
14893 as_cr_alnum=$as_cr_Letters$as_cr_digits
14895 ECHO_C= ECHO_N= ECHO_T=
14896 case `echo -n x` in #(((((
14897 -n*)
14898 case `echo 'xy\c'` in
14899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14900 xy) ECHO_C='\c';;
14901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14902 ECHO_T=' ';;
14903 esac;;
14905 ECHO_N='-n';;
14906 esac
14908 rm -f conf$$ conf$$.exe conf$$.file
14909 if test -d conf$$.dir; then
14910 rm -f conf$$.dir/conf$$.file
14911 else
14912 rm -f conf$$.dir
14913 mkdir conf$$.dir 2>/dev/null
14915 if (echo >conf$$.file) 2>/dev/null; then
14916 if ln -s conf$$.file conf$$ 2>/dev/null; then
14917 as_ln_s='ln -s'
14918 # ... but there are two gotchas:
14919 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14920 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14921 # In both cases, we have to default to `cp -p'.
14922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14923 as_ln_s='cp -p'
14924 elif ln conf$$.file conf$$ 2>/dev/null; then
14925 as_ln_s=ln
14926 else
14927 as_ln_s='cp -p'
14929 else
14930 as_ln_s='cp -p'
14932 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14933 rmdir conf$$.dir 2>/dev/null
14936 # as_fn_mkdir_p
14937 # -------------
14938 # Create "$as_dir" as a directory, including parents if necessary.
14939 as_fn_mkdir_p ()
14942 case $as_dir in #(
14943 -*) as_dir=./$as_dir;;
14944 esac
14945 test -d "$as_dir" || eval $as_mkdir_p || {
14946 as_dirs=
14947 while :; do
14948 case $as_dir in #(
14949 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14950 *) as_qdir=$as_dir;;
14951 esac
14952 as_dirs="'$as_qdir' $as_dirs"
14953 as_dir=`$as_dirname -- "$as_dir" ||
14954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14955 X"$as_dir" : 'X\(//\)[^/]' \| \
14956 X"$as_dir" : 'X\(//\)$' \| \
14957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14958 $as_echo X"$as_dir" |
14959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14960 s//\1/
14963 /^X\(\/\/\)[^/].*/{
14964 s//\1/
14967 /^X\(\/\/\)$/{
14968 s//\1/
14971 /^X\(\/\).*/{
14972 s//\1/
14975 s/.*/./; q'`
14976 test -d "$as_dir" && break
14977 done
14978 test -z "$as_dirs" || eval "mkdir $as_dirs"
14979 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14982 } # as_fn_mkdir_p
14983 if mkdir -p . 2>/dev/null; then
14984 as_mkdir_p='mkdir -p "$as_dir"'
14985 else
14986 test -d ./-p && rmdir ./-p
14987 as_mkdir_p=false
14990 if test -x / >/dev/null 2>&1; then
14991 as_test_x='test -x'
14992 else
14993 if ls -dL / >/dev/null 2>&1; then
14994 as_ls_L_option=L
14995 else
14996 as_ls_L_option=
14998 as_test_x='
14999 eval sh -c '\''
15000 if test -d "$1"; then
15001 test -d "$1/.";
15002 else
15003 case $1 in #(
15004 -*)set "./$1";;
15005 esac;
15006 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15007 ???[sx]*):;;*)false;;esac;fi
15008 '\'' sh
15011 as_executable_p=$as_test_x
15013 # Sed expression to map a string onto a valid CPP name.
15014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15016 # Sed expression to map a string onto a valid variable name.
15017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15020 exec 6>&1
15021 ## ----------------------------------- ##
15022 ## Main body of $CONFIG_STATUS script. ##
15023 ## ----------------------------------- ##
15024 _ASEOF
15025 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15028 # Save the log message, to keep $0 and so on meaningful, and to
15029 # report actual input values of CONFIG_FILES etc. instead of their
15030 # values after options handling.
15031 ac_log="
15032 This file was extended by $as_me, which was
15033 generated by GNU Autoconf 2.68. Invocation command line was
15035 CONFIG_FILES = $CONFIG_FILES
15036 CONFIG_HEADERS = $CONFIG_HEADERS
15037 CONFIG_LINKS = $CONFIG_LINKS
15038 CONFIG_COMMANDS = $CONFIG_COMMANDS
15039 $ $0 $@
15041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15044 _ACEOF
15046 case $ac_config_files in *"
15047 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15048 esac
15050 case $ac_config_headers in *"
15051 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15052 esac
15055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15056 # Files that config.status was made for.
15057 config_files="$ac_config_files"
15058 config_headers="$ac_config_headers"
15059 config_commands="$ac_config_commands"
15061 _ACEOF
15063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15064 ac_cs_usage="\
15065 \`$as_me' instantiates files and other configuration actions
15066 from templates according to the current configuration. Unless the files
15067 and actions are specified as TAGs, all are instantiated by default.
15069 Usage: $0 [OPTION]... [TAG]...
15071 -h, --help print this help, then exit
15072 -V, --version print version number and configuration settings, then exit
15073 --config print configuration, then exit
15074 -q, --quiet, --silent
15075 do not print progress messages
15076 -d, --debug don't remove temporary files
15077 --recheck update $as_me by reconfiguring in the same conditions
15078 --file=FILE[:TEMPLATE]
15079 instantiate the configuration file FILE
15080 --header=FILE[:TEMPLATE]
15081 instantiate the configuration header FILE
15083 Configuration files:
15084 $config_files
15086 Configuration headers:
15087 $config_headers
15089 Configuration commands:
15090 $config_commands
15092 Report bugs to the package provider."
15094 _ACEOF
15095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15096 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15097 ac_cs_version="\\
15098 config.status
15099 configured by $0, generated by GNU Autoconf 2.68,
15100 with options \\"\$ac_cs_config\\"
15102 Copyright (C) 2010 Free Software Foundation, Inc.
15103 This config.status script is free software; the Free Software Foundation
15104 gives unlimited permission to copy, distribute and modify it."
15106 ac_pwd='$ac_pwd'
15107 srcdir='$srcdir'
15108 test -n "\$AWK" || AWK=awk
15109 _ACEOF
15111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112 # The default lists apply if the user does not specify any file.
15113 ac_need_defaults=:
15114 while test $# != 0
15116 case $1 in
15117 --*=?*)
15118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15119 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15120 ac_shift=:
15122 --*=)
15123 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15124 ac_optarg=
15125 ac_shift=:
15128 ac_option=$1
15129 ac_optarg=$2
15130 ac_shift=shift
15132 esac
15134 case $ac_option in
15135 # Handling of the options.
15136 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15137 ac_cs_recheck=: ;;
15138 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15139 $as_echo "$ac_cs_version"; exit ;;
15140 --config | --confi | --conf | --con | --co | --c )
15141 $as_echo "$ac_cs_config"; exit ;;
15142 --debug | --debu | --deb | --de | --d | -d )
15143 debug=: ;;
15144 --file | --fil | --fi | --f )
15145 $ac_shift
15146 case $ac_optarg in
15147 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15148 '') as_fn_error $? "missing file argument" ;;
15149 esac
15150 as_fn_append CONFIG_FILES " '$ac_optarg'"
15151 ac_need_defaults=false;;
15152 --header | --heade | --head | --hea )
15153 $ac_shift
15154 case $ac_optarg in
15155 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15156 esac
15157 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15158 ac_need_defaults=false;;
15159 --he | --h)
15160 # Conflict between --help and --header
15161 as_fn_error $? "ambiguous option: \`$1'
15162 Try \`$0 --help' for more information.";;
15163 --help | --hel | -h )
15164 $as_echo "$ac_cs_usage"; exit ;;
15165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15166 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15167 ac_cs_silent=: ;;
15169 # This is an error.
15170 -*) as_fn_error $? "unrecognized option: \`$1'
15171 Try \`$0 --help' for more information." ;;
15173 *) as_fn_append ac_config_targets " $1"
15174 ac_need_defaults=false ;;
15176 esac
15177 shift
15178 done
15180 ac_configure_extra_args=
15182 if $ac_cs_silent; then
15183 exec 6>/dev/null
15184 ac_configure_extra_args="$ac_configure_extra_args --silent"
15187 _ACEOF
15188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15189 if \$ac_cs_recheck; then
15190 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15191 shift
15192 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15193 CONFIG_SHELL='$SHELL'
15194 export CONFIG_SHELL
15195 exec "\$@"
15198 _ACEOF
15199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15200 exec 5>>config.log
15202 echo
15203 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15204 ## Running $as_me. ##
15205 _ASBOX
15206 $as_echo "$ac_log"
15207 } >&5
15209 _ACEOF
15210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15212 # INIT-COMMANDS
15215 aros_host_exe_suffix=${aros_host_exe_suffix}
15216 aros_tools_dir=${aros_tools_dir}
15217 aros_target_cpu=${aros_target_cpu}
15218 aros_target_arch=${aros_target_arch}
15219 aros_target_suffix=${aros_target_suffix}
15220 orig_target_nm=${orig_target_nm}
15221 orig_target_as=${orig_target_as}
15222 orig_target_ar=${orig_target_ar}
15223 orig_target_ranlib=${orig_target_ranlib}
15224 orig_target_objdump=${orig_target_objdump}
15225 orig_target_objcopy=${orig_target_objcopy}
15226 orig_target_strip=${orig_target_strip}
15227 aros_kernel_ld=${aros_kernel_ld}
15230 aros_tools_dir=${aros_tools_dir}
15233 _ACEOF
15235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15237 # Handling of arguments.
15238 for ac_config_target in $ac_config_targets
15240 case $ac_config_target in
15241 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15242 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15243 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15244 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15245 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15246 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15247 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15248 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15249 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15250 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15251 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15252 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15253 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15254 "${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" ;;
15255 "${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" ;;
15256 "${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" ;;
15257 "${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" ;;
15258 "${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" ;;
15259 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15260 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15261 "${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" ;;
15263 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15264 esac
15265 done
15268 # If the user did not use the arguments to specify the items to instantiate,
15269 # then the envvar interface is used. Set only those that are not.
15270 # We use the long form for the default assignment because of an extremely
15271 # bizarre bug on SunOS 4.1.3.
15272 if $ac_need_defaults; then
15273 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15274 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15275 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15278 # Have a temporary directory for convenience. Make it in the build tree
15279 # simply because there is no reason against having it here, and in addition,
15280 # creating and moving files from /tmp can sometimes cause problems.
15281 # Hook for its removal unless debugging.
15282 # Note that there is a small window in which the directory will not be cleaned:
15283 # after its creation but before its name has been assigned to `$tmp'.
15284 $debug ||
15286 tmp= ac_tmp=
15287 trap 'exit_status=$?
15288 : "${ac_tmp:=$tmp}"
15289 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15291 trap 'as_fn_exit 1' 1 2 13 15
15293 # Create a (secure) tmp directory for tmp files.
15296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15297 test -d "$tmp"
15298 } ||
15300 tmp=./conf$$-$RANDOM
15301 (umask 077 && mkdir "$tmp")
15302 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15303 ac_tmp=$tmp
15305 # Set up the scripts for CONFIG_FILES section.
15306 # No need to generate them if there are no CONFIG_FILES.
15307 # This happens for instance with `./config.status config.h'.
15308 if test -n "$CONFIG_FILES"; then
15311 ac_cr=`echo X | tr X '\015'`
15312 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15313 # But we know of no other shell where ac_cr would be empty at this
15314 # point, so we can use a bashism as a fallback.
15315 if test "x$ac_cr" = x; then
15316 eval ac_cr=\$\'\\r\'
15318 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15319 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15320 ac_cs_awk_cr='\\r'
15321 else
15322 ac_cs_awk_cr=$ac_cr
15325 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15326 _ACEOF
15330 echo "cat >conf$$subs.awk <<_ACEOF" &&
15331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15332 echo "_ACEOF"
15333 } >conf$$subs.sh ||
15334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15336 ac_delim='%!_!# '
15337 for ac_last_try in false false false false false :; do
15338 . ./conf$$subs.sh ||
15339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15341 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15342 if test $ac_delim_n = $ac_delim_num; then
15343 break
15344 elif $ac_last_try; then
15345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15346 else
15347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15349 done
15350 rm -f conf$$subs.sh
15352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15353 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15354 _ACEOF
15355 sed -n '
15357 s/^/S["/; s/!.*/"]=/
15360 s/^[^!]*!//
15361 :repl
15362 t repl
15363 s/'"$ac_delim"'$//
15364 t delim
15367 s/\(.\{148\}\)..*/\1/
15368 t more1
15369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15372 b repl
15373 :more1
15374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15377 s/.\{148\}//
15378 t nl
15379 :delim
15381 s/\(.\{148\}\)..*/\1/
15382 t more2
15383 s/["\\]/\\&/g; s/^/"/; s/$/"/
15386 :more2
15387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15390 s/.\{148\}//
15391 t delim
15392 ' <conf$$subs.awk | sed '
15393 /^[^""]/{
15395 s/\n//
15397 ' >>$CONFIG_STATUS || ac_write_fail=1
15398 rm -f conf$$subs.awk
15399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400 _ACAWK
15401 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15402 for (key in S) S_is_set[key] = 1
15403 FS = "\a"
15407 line = $ 0
15408 nfields = split(line, field, "@")
15409 substed = 0
15410 len = length(field[1])
15411 for (i = 2; i < nfields; i++) {
15412 key = field[i]
15413 keylen = length(key)
15414 if (S_is_set[key]) {
15415 value = S[key]
15416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15417 len += length(value) + length(field[++i])
15418 substed = 1
15419 } else
15420 len += 1 + keylen
15423 print line
15426 _ACAWK
15427 _ACEOF
15428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15431 else
15433 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15434 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15435 _ACEOF
15437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15439 # trailing colons and then remove the whole line if VPATH becomes empty
15440 # (actually we leave an empty line to preserve line numbers).
15441 if test "x$srcdir" = x.; then
15442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15444 s///
15445 s/^/:/
15446 s/[ ]*$/:/
15447 s/:\$(srcdir):/:/g
15448 s/:\${srcdir}:/:/g
15449 s/:@srcdir@:/:/g
15450 s/^:*//
15451 s/:*$//
15453 s/\(=[ ]*\).*/\1/
15455 s/\n//
15456 s/^[^=]*=[ ]*$//
15460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15461 fi # test -n "$CONFIG_FILES"
15463 # Set up the scripts for CONFIG_HEADERS section.
15464 # No need to generate them if there are no CONFIG_HEADERS.
15465 # This happens for instance with `./config.status Makefile'.
15466 if test -n "$CONFIG_HEADERS"; then
15467 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15468 BEGIN {
15469 _ACEOF
15471 # Transform confdefs.h into an awk script `defines.awk', embedded as
15472 # here-document in config.status, that substitutes the proper values into
15473 # config.h.in to produce config.h.
15475 # Create a delimiter string that does not exist in confdefs.h, to ease
15476 # handling of long lines.
15477 ac_delim='%!_!# '
15478 for ac_last_try in false false :; do
15479 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15480 if test -z "$ac_tt"; then
15481 break
15482 elif $ac_last_try; then
15483 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15484 else
15485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15487 done
15489 # For the awk script, D is an array of macro values keyed by name,
15490 # likewise P contains macro parameters if any. Preserve backslash
15491 # newline sequences.
15493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15494 sed -n '
15495 s/.\{148\}/&'"$ac_delim"'/g
15496 t rset
15497 :rset
15498 s/^[ ]*#[ ]*define[ ][ ]*/ /
15499 t def
15501 :def
15502 s/\\$//
15503 t bsnl
15504 s/["\\]/\\&/g
15505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15506 D["\1"]=" \3"/p
15507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15509 :bsnl
15510 s/["\\]/\\&/g
15511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15512 D["\1"]=" \3\\\\\\n"\\/p
15513 t cont
15514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15515 t cont
15517 :cont
15519 s/.\{148\}/&'"$ac_delim"'/g
15520 t clear
15521 :clear
15522 s/\\$//
15523 t bsnlc
15524 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15526 :bsnlc
15527 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15528 b cont
15529 ' <confdefs.h | sed '
15530 s/'"$ac_delim"'/"\\\
15531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15534 for (key in D) D_is_set[key] = 1
15535 FS = "\a"
15537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15538 line = \$ 0
15539 split(line, arg, " ")
15540 if (arg[1] == "#") {
15541 defundef = arg[2]
15542 mac1 = arg[3]
15543 } else {
15544 defundef = substr(arg[1], 2)
15545 mac1 = arg[2]
15547 split(mac1, mac2, "(") #)
15548 macro = mac2[1]
15549 prefix = substr(line, 1, index(line, defundef) - 1)
15550 if (D_is_set[macro]) {
15551 # Preserve the white space surrounding the "#".
15552 print prefix "define", macro P[macro] D[macro]
15553 next
15554 } else {
15555 # Replace #undef with comments. This is necessary, for example,
15556 # in the case of _POSIX_SOURCE, which is predefined and required
15557 # on some systems where configure will not decide to define it.
15558 if (defundef == "undef") {
15559 print "/*", prefix defundef, macro, "*/"
15560 next
15564 { print }
15565 _ACAWK
15566 _ACEOF
15567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15568 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15569 fi # test -n "$CONFIG_HEADERS"
15572 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15573 shift
15574 for ac_tag
15576 case $ac_tag in
15577 :[FHLC]) ac_mode=$ac_tag; continue;;
15578 esac
15579 case $ac_mode$ac_tag in
15580 :[FHL]*:*);;
15581 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15582 :[FH]-) ac_tag=-:-;;
15583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15584 esac
15585 ac_save_IFS=$IFS
15586 IFS=:
15587 set x $ac_tag
15588 IFS=$ac_save_IFS
15589 shift
15590 ac_file=$1
15591 shift
15593 case $ac_mode in
15594 :L) ac_source=$1;;
15595 :[FH])
15596 ac_file_inputs=
15597 for ac_f
15599 case $ac_f in
15600 -) ac_f="$ac_tmp/stdin";;
15601 *) # Look for the file first in the build tree, then in the source tree
15602 # (if the path is not absolute). The absolute path cannot be DOS-style,
15603 # because $ac_f cannot contain `:'.
15604 test -f "$ac_f" ||
15605 case $ac_f in
15606 [\\/$]*) false;;
15607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15608 esac ||
15609 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15610 esac
15611 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15612 as_fn_append ac_file_inputs " '$ac_f'"
15613 done
15615 # Let's still pretend it is `configure' which instantiates (i.e., don't
15616 # use $as_me), people would be surprised to read:
15617 # /* config.h. Generated by config.status. */
15618 configure_input='Generated from '`
15619 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15620 `' by configure.'
15621 if test x"$ac_file" != x-; then
15622 configure_input="$ac_file. $configure_input"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15624 $as_echo "$as_me: creating $ac_file" >&6;}
15626 # Neutralize special characters interpreted by sed in replacement strings.
15627 case $configure_input in #(
15628 *\&* | *\|* | *\\* )
15629 ac_sed_conf_input=`$as_echo "$configure_input" |
15630 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15631 *) ac_sed_conf_input=$configure_input;;
15632 esac
15634 case $ac_tag in
15635 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15637 esac
15639 esac
15641 ac_dir=`$as_dirname -- "$ac_file" ||
15642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15643 X"$ac_file" : 'X\(//\)[^/]' \| \
15644 X"$ac_file" : 'X\(//\)$' \| \
15645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15646 $as_echo X"$ac_file" |
15647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15648 s//\1/
15651 /^X\(\/\/\)[^/].*/{
15652 s//\1/
15655 /^X\(\/\/\)$/{
15656 s//\1/
15659 /^X\(\/\).*/{
15660 s//\1/
15663 s/.*/./; q'`
15664 as_dir="$ac_dir"; as_fn_mkdir_p
15665 ac_builddir=.
15667 case "$ac_dir" in
15668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15671 # A ".." for each directory in $ac_dir_suffix.
15672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15673 case $ac_top_builddir_sub in
15674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15676 esac ;;
15677 esac
15678 ac_abs_top_builddir=$ac_pwd
15679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15680 # for backward compatibility:
15681 ac_top_builddir=$ac_top_build_prefix
15683 case $srcdir in
15684 .) # We are building in place.
15685 ac_srcdir=.
15686 ac_top_srcdir=$ac_top_builddir_sub
15687 ac_abs_top_srcdir=$ac_pwd ;;
15688 [\\/]* | ?:[\\/]* ) # Absolute name.
15689 ac_srcdir=$srcdir$ac_dir_suffix;
15690 ac_top_srcdir=$srcdir
15691 ac_abs_top_srcdir=$srcdir ;;
15692 *) # Relative name.
15693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15694 ac_top_srcdir=$ac_top_build_prefix$srcdir
15695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15696 esac
15697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15700 case $ac_mode in
15703 # CONFIG_FILE
15706 _ACEOF
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709 # If the template does not know about datarootdir, expand it.
15710 # FIXME: This hack should be removed a few years after 2.60.
15711 ac_datarootdir_hack=; ac_datarootdir_seen=
15712 ac_sed_dataroot='
15713 /datarootdir/ {
15717 /@datadir@/p
15718 /@docdir@/p
15719 /@infodir@/p
15720 /@localedir@/p
15721 /@mandir@/p'
15722 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15723 *datarootdir*) ac_datarootdir_seen=yes;;
15724 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15726 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15727 _ACEOF
15728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15729 ac_datarootdir_hack='
15730 s&@datadir@&$datadir&g
15731 s&@docdir@&$docdir&g
15732 s&@infodir@&$infodir&g
15733 s&@localedir@&$localedir&g
15734 s&@mandir@&$mandir&g
15735 s&\\\${datarootdir}&$datarootdir&g' ;;
15736 esac
15737 _ACEOF
15739 # Neutralize VPATH when `$srcdir' = `.'.
15740 # Shell code in configure.ac might set extrasub.
15741 # FIXME: do we really want to maintain this feature?
15742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15743 ac_sed_extra="$ac_vpsub
15744 $extrasub
15745 _ACEOF
15746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15749 s|@configure_input@|$ac_sed_conf_input|;t t
15750 s&@top_builddir@&$ac_top_builddir_sub&;t t
15751 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15752 s&@srcdir@&$ac_srcdir&;t t
15753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15754 s&@top_srcdir@&$ac_top_srcdir&;t t
15755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15756 s&@builddir@&$ac_builddir&;t t
15757 s&@abs_builddir@&$ac_abs_builddir&;t t
15758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15759 $ac_datarootdir_hack
15761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15762 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15765 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15767 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15769 which seems to be undefined. Please make sure it is defined" >&5
15770 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15771 which seems to be undefined. Please make sure it is defined" >&2;}
15773 rm -f "$ac_tmp/stdin"
15774 case $ac_file in
15775 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15776 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15777 esac \
15778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15782 # CONFIG_HEADER
15784 if test x"$ac_file" != x-; then
15786 $as_echo "/* $configure_input */" \
15787 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15788 } >"$ac_tmp/config.h" \
15789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15790 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15792 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15793 else
15794 rm -f "$ac_file"
15795 mv "$ac_tmp/config.h" "$ac_file" \
15796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15798 else
15799 $as_echo "/* $configure_input */" \
15800 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15801 || as_fn_error $? "could not create -" "$LINENO" 5
15805 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15806 $as_echo "$as_me: executing $ac_file commands" >&6;}
15808 esac
15811 case $ac_file$ac_mode in
15812 "compiler_executable":C)
15813 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15814 mkdir -p $prefix
15815 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15816 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15818 echo ${prefix2}
15819 echo ${prefix3}
15820 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15822 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15823 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15824 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15825 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15826 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15827 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15828 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15830 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15832 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15834 esac
15835 done # for ac_tag
15838 as_fn_exit 0
15839 _ACEOF
15840 ac_clean_files=$ac_clean_files_save
15842 test $ac_write_fail = 0 ||
15843 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15846 # configure is writing to config.log, and then calls config.status.
15847 # config.status does its own redirection, appending to config.log.
15848 # Unfortunately, on DOS this fails, as config.log is still kept open
15849 # by configure, so config.status won't be able to write to it; its
15850 # output is simply discarded. So we exec the FD to /dev/null,
15851 # effectively closing config.log, so it can be properly (re)opened and
15852 # appended to by config.status. When coming back to configure, we
15853 # need to make the FD available again.
15854 if test "$no_create" != yes; then
15855 ac_cs_success=:
15856 ac_config_status_args=
15857 test "$silent" = yes &&
15858 ac_config_status_args="$ac_config_status_args --quiet"
15859 exec 5>/dev/null
15860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15861 exec 5>>config.log
15862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15863 # would make configure fail if this is the last instruction.
15864 $ac_cs_success || as_fn_exit 1
15866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15873 #XXX compatability...
15874 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15876 if test -n "$aros_shared_cflags" ; then
15877 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15878 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg