- Trying to force these on NicJA
[AROS.git] / configure
blob09daf511a5e2c8f61932ad632ec44da27f229383
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 gcc_target_cpu
606 ignore_undefined_symbols
607 aros_modules_debug
608 aros_stack_debug
609 aros_mungwall_debug
610 aros_debug
611 ENABLE_X11
612 KERNEL_DBUS_INCLUDES
613 KERNEL_DBUS_KOBJ
614 DBUS_LIBFLAGS
615 DBUS_CFLAGS
616 ENABLE_DBUS
617 aros_android_level
618 gcc_default_float_abi
619 gcc_default_fpu
620 gcc_default_cpu_tune
621 gcc_default_cpu
622 aros_ios_sdk
623 aros_ios_version
624 aros_ios_platform
625 aros_enable_mmu
626 aros_nesting_supervisor
627 aros_palm_debug_hack
628 aros_serial_debug
629 aros_host_sdl_libs
630 aros_host_sdl_cflags
631 aros_host_x11_libdirs
632 aros_host_x11_includes
633 DO_VIDMODE_SUPPORT
634 DO_XSHM_SUPPORT
635 aros_default_wbdepth
636 aros_default_wbheight
637 aros_default_wbwidth
638 oss_library_target
639 pci_hidd_target
640 sdl_hidd_target
641 x11_hidd_target
642 aros_cflags_format_security
643 aros_cflags_strict_overflow
644 aros_cflags_enum_compare
645 aros_cflags_array_bounds
646 aros_cflags_unused_but_set_variable
647 crosstools_cxx_target
648 crosstools_target
649 aros_target_strip_flags
650 aros_target_genmap
651 aros_debug_ldflags
652 aros_debug_aflags
653 aros_debug_cflags
654 aros_target_cflags
655 aros_kernel_ldflags
656 aros_kernel_objcflags
657 aros_kernel_includes
658 aros_kernel_cflags
659 aros_shared_ldflags
660 aros_shared_aflags
661 aros_shared_cflags
662 aros_config_ldflags
663 aros_config_aflags
664 aros_config_cflags
665 aros_arch_libs
666 aros_compiler_libs
667 aros_object_format
668 aros_shared_ld
669 aros_shared_default
670 aros_target_nm
671 aros_target_strip
672 aros_target_objcopy
673 aros_target_objdump
674 aros_target_cc_path
675 aros_target_cc_includes
676 aros_target_ld
677 aros_target_as
678 aros_target_cpp
679 aros_target_cxx
680 aros_target_cc
681 aros_plain_ar
682 aros_plain_nm
683 aros_target_ranlib
684 aros_target_ar
685 aros_target_suffix
686 aros_target_variant
687 aros_target_cpu
688 aros_target_family
689 aros_target_arch
690 aros_target_bootloader
691 aros_target_iconset
692 aros_target_guitheme
693 aros_tools_dir
694 aros_host_lib_suffix
695 aros_host_exe_suffix
696 aros_host_mkargs
697 aros_host_mkdep
698 aros_host_debug
699 aros_host_ldflags
700 gnu89_inline
701 aros_host_cxxflags
702 aros_host_cflags
703 aros_host_make
704 aros_host_cxx
705 aros_host_cc
706 aros_host_cpp
707 aros_host_cpu
708 aros_host_arch
709 aros_cc_pre
710 aros_amigaos_compliance
711 AROS_PORTSSRCDIR
712 AROS_CROSSTOOLSDIR
713 SRCDIR
714 AROS_BUILDDIR_UNIX
715 AROS_BUILDDIR
716 aros_target_toolchain
717 aros_flavour_uc
718 aros_flavour
719 aros_cpu
720 aros_arch
721 SDL_LIBS
722 SDL_CFLAGS
723 SDL_CONFIG
724 XMKMF
725 aros_cflags_iquote_end
726 aros_cflags_iquote
727 kernel_cflags_iquote_end
728 kernel_cflags_iquote
729 host_cflags_iquote_end
730 host_cflags_iquote
731 aros_target_nostdlib_ldflags
732 aros_target_detach_ldflags
733 aros_target_nix_ldflags
734 aros_target_nostartup_ldflags
735 aros_target_nostdinc_cflags
736 aros_kernel_rescomp
737 orig_target_objdump
738 orig_target_objcopy
739 orig_target_strip
740 orig_target_nm
741 orig_target_ranlib
742 orig_target_ar
743 orig_target_as
744 orig_target_ld
745 orig_target_cxx
746 orig_target_cc
747 orig_target_cpp
748 aros_kernel_objdump
749 aros_kernel_objcopy
750 aros_kernel_strip
751 aros_kernel_nm
752 aros_kernel_ranlib
753 aros_kernel_ar
754 aros_kernel_as
755 aros_kernel_ld
756 aros_kernel_cxx
757 aros_kernel_cc
758 aros_kernel_cpp
760 android_tool
761 CCACHE
762 DISTCC
763 LIBOBJS
764 EGREP
765 GREP
767 TEST
770 pkgpyexecdir
771 pyexecdir
772 pkgpythondir
773 pythondir
774 PYTHON_PLATFORM
775 PYTHON_EXEC_PREFIX
776 PYTHON_PREFIX
777 PYTHON_VERSION
778 PYTHON
779 PATCH
780 CHMOD
782 PPMTOILBM
783 PNGTOPNM
784 FLEX
785 BISON
788 UNIQ
789 SORT
790 TOUCH
791 MKDIR
792 ECHO
796 aros_host_strip
797 aros_host_ranlib
798 aros_host_ar
799 aros_host_automake
800 aros_host_autoheader
801 aros_host_autoconf
802 aros_host_aclocal
803 aros_host_ld
804 MMAKE
807 ac_ct_CC
808 CFLAGS
810 OBJEXT
811 EXEEXT
812 ac_ct_CXX
813 CPPFLAGS
814 LDFLAGS
815 CXXFLAGS
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 target_alias
826 host_alias
827 build_alias
828 LIBS
829 ECHO_T
830 ECHO_N
831 ECHO_C
832 DEFS
833 mandir
834 localedir
835 libdir
836 psdir
837 pdfdir
838 dvidir
839 htmldir
840 infodir
841 docdir
842 oldincludedir
843 includedir
844 localstatedir
845 sharedstatedir
846 sysconfdir
847 datadir
848 datarootdir
849 libexecdir
850 sbindir
851 bindir
852 program_transform_name
853 prefix
854 exec_prefix
855 PACKAGE_URL
856 PACKAGE_BUGREPORT
857 PACKAGE_STRING
858 PACKAGE_VERSION
859 PACKAGE_TARNAME
860 PACKAGE_NAME
861 PATH_SEPARATOR
862 SHELL'
863 ac_subst_files=''
864 ac_user_opts='
865 enable_option_checking
866 enable_build_type
867 enable_debug
868 enable_distcc
869 enable_ccache
870 with_kernel_gcc_version
871 with_gcc_version
872 with_optimization
873 with_paranoia
874 enable_target_variant
875 with_xcode
876 with_sdk_version
877 with_sdk
878 with_ndk
879 with_ndk_version
880 enable_amigaos_compliance
881 with_kernel_toolchain_prefix
882 with_elf_toolchain_prefix
883 with_aros_toolchain
884 enable_crosstools
885 with_aros_toolchain_install
886 with_cpu
887 with_fpu
888 with_float
889 with_aros_gcc
890 with_portssources
891 with_bootloader
892 with_iconset
893 with_theme
894 enable_includes
895 with_resolution
896 with_serial_debug
897 enable_palm_debug_hack
898 enable_usb30_code
899 enable_nesting_supervisor
900 enable_mmu
901 enable_x11_hidd
902 with_x
903 enable_x11_shm
904 enable_x11_vidmode
905 enable_sdl_hidd
906 with_sdl_prefix
907 with_sdl_exec_prefix
908 enable_sdltest
909 enable_dbus
911 ac_precious_vars='build_alias
912 host_alias
913 target_alias
915 CXXFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
921 CFLAGS
923 PYTHON
924 XMKMF'
927 # Initialize some variables set by options.
928 ac_init_help=
929 ac_init_version=false
930 ac_unrecognized_opts=
931 ac_unrecognized_sep=
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
934 cache_file=/dev/null
935 exec_prefix=NONE
936 no_create=
937 no_recursion=
938 prefix=NONE
939 program_prefix=NONE
940 program_suffix=NONE
941 program_transform_name=s,x,x,
942 silent=
943 site=
944 srcdir=
945 verbose=
946 x_includes=NONE
947 x_libraries=NONE
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir='${exec_prefix}/bin'
956 sbindir='${exec_prefix}/sbin'
957 libexecdir='${exec_prefix}/libexec'
958 datarootdir='${prefix}/share'
959 datadir='${datarootdir}'
960 sysconfdir='${prefix}/etc'
961 sharedstatedir='${prefix}/com'
962 localstatedir='${prefix}/var'
963 includedir='${prefix}/include'
964 oldincludedir='/usr/include'
965 docdir='${datarootdir}/doc/${PACKAGE}'
966 infodir='${datarootdir}/info'
967 htmldir='${docdir}'
968 dvidir='${docdir}'
969 pdfdir='${docdir}'
970 psdir='${docdir}'
971 libdir='${exec_prefix}/lib'
972 localedir='${datarootdir}/locale'
973 mandir='${datarootdir}/man'
975 ac_prev=
976 ac_dashdash=
977 for ac_option
979 # If the previous option needs an argument, assign it.
980 if test -n "$ac_prev"; then
981 eval $ac_prev=\$ac_option
982 ac_prev=
983 continue
986 case $ac_option in
987 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 *=) ac_optarg= ;;
989 *) ac_optarg=yes ;;
990 esac
992 # Accept the important Cygnus configure options, so we can diagnose typos.
994 case $ac_dashdash$ac_option in
996 ac_dashdash=yes ;;
998 -bindir | --bindir | --bindi | --bind | --bin | --bi)
999 ac_prev=bindir ;;
1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 bindir=$ac_optarg ;;
1003 -build | --build | --buil | --bui | --bu)
1004 ac_prev=build_alias ;;
1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006 build_alias=$ac_optarg ;;
1008 -cache-file | --cache-file | --cache-fil | --cache-fi \
1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010 ac_prev=cache_file ;;
1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013 cache_file=$ac_optarg ;;
1015 --config-cache | -C)
1016 cache_file=config.cache ;;
1018 -datadir | --datadir | --datadi | --datad)
1019 ac_prev=datadir ;;
1020 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021 datadir=$ac_optarg ;;
1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024 | --dataroo | --dataro | --datar)
1025 ac_prev=datarootdir ;;
1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028 datarootdir=$ac_optarg ;;
1030 -disable-* | --disable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1039 "enable_$ac_useropt"
1040 "*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=no ;;
1046 -docdir | --docdir | --docdi | --doc | --do)
1047 ac_prev=docdir ;;
1048 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049 docdir=$ac_optarg ;;
1051 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052 ac_prev=dvidir ;;
1053 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054 dvidir=$ac_optarg ;;
1056 -enable-* | --enable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid feature name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1065 "enable_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval enable_$ac_useropt=\$ac_optarg ;;
1072 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074 | --exec | --exe | --ex)
1075 ac_prev=exec_prefix ;;
1076 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078 | --exec=* | --exe=* | --ex=*)
1079 exec_prefix=$ac_optarg ;;
1081 -gas | --gas | --ga | --g)
1082 # Obsolete; use --with-gas.
1083 with_gas=yes ;;
1085 -help | --help | --hel | --he | -h)
1086 ac_init_help=long ;;
1087 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088 ac_init_help=recursive ;;
1089 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090 ac_init_help=short ;;
1092 -host | --host | --hos | --ho)
1093 ac_prev=host_alias ;;
1094 -host=* | --host=* | --hos=* | --ho=*)
1095 host_alias=$ac_optarg ;;
1097 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098 ac_prev=htmldir ;;
1099 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100 | --ht=*)
1101 htmldir=$ac_optarg ;;
1103 -includedir | --includedir | --includedi | --included | --include \
1104 | --includ | --inclu | --incl | --inc)
1105 ac_prev=includedir ;;
1106 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107 | --includ=* | --inclu=* | --incl=* | --inc=*)
1108 includedir=$ac_optarg ;;
1110 -infodir | --infodir | --infodi | --infod | --info | --inf)
1111 ac_prev=infodir ;;
1112 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113 infodir=$ac_optarg ;;
1115 -libdir | --libdir | --libdi | --libd)
1116 ac_prev=libdir ;;
1117 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118 libdir=$ac_optarg ;;
1120 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121 | --libexe | --libex | --libe)
1122 ac_prev=libexecdir ;;
1123 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124 | --libexe=* | --libex=* | --libe=*)
1125 libexecdir=$ac_optarg ;;
1127 -localedir | --localedir | --localedi | --localed | --locale)
1128 ac_prev=localedir ;;
1129 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130 localedir=$ac_optarg ;;
1132 -localstatedir | --localstatedir | --localstatedi | --localstated \
1133 | --localstate | --localstat | --localsta | --localst | --locals)
1134 ac_prev=localstatedir ;;
1135 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137 localstatedir=$ac_optarg ;;
1139 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140 ac_prev=mandir ;;
1141 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142 mandir=$ac_optarg ;;
1144 -nfp | --nfp | --nf)
1145 # Obsolete; use --without-fp.
1146 with_fp=no ;;
1148 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149 | --no-cr | --no-c | -n)
1150 no_create=yes ;;
1152 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154 no_recursion=yes ;;
1156 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158 | --oldin | --oldi | --old | --ol | --o)
1159 ac_prev=oldincludedir ;;
1160 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163 oldincludedir=$ac_optarg ;;
1165 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166 ac_prev=prefix ;;
1167 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168 prefix=$ac_optarg ;;
1170 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171 | --program-pre | --program-pr | --program-p)
1172 ac_prev=program_prefix ;;
1173 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175 program_prefix=$ac_optarg ;;
1177 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178 | --program-suf | --program-su | --program-s)
1179 ac_prev=program_suffix ;;
1180 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182 program_suffix=$ac_optarg ;;
1184 -program-transform-name | --program-transform-name \
1185 | --program-transform-nam | --program-transform-na \
1186 | --program-transform-n | --program-transform- \
1187 | --program-transform | --program-transfor \
1188 | --program-transfo | --program-transf \
1189 | --program-trans | --program-tran \
1190 | --progr-tra | --program-tr | --program-t)
1191 ac_prev=program_transform_name ;;
1192 -program-transform-name=* | --program-transform-name=* \
1193 | --program-transform-nam=* | --program-transform-na=* \
1194 | --program-transform-n=* | --program-transform-=* \
1195 | --program-transform=* | --program-transfor=* \
1196 | --program-transfo=* | --program-transf=* \
1197 | --program-trans=* | --program-tran=* \
1198 | --progr-tra=* | --program-tr=* | --program-t=*)
1199 program_transform_name=$ac_optarg ;;
1201 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202 ac_prev=pdfdir ;;
1203 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204 pdfdir=$ac_optarg ;;
1206 -psdir | --psdir | --psdi | --psd | --ps)
1207 ac_prev=psdir ;;
1208 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209 psdir=$ac_optarg ;;
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 silent=yes ;;
1215 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216 ac_prev=sbindir ;;
1217 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218 | --sbi=* | --sb=*)
1219 sbindir=$ac_optarg ;;
1221 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223 | --sharedst | --shareds | --shared | --share | --shar \
1224 | --sha | --sh)
1225 ac_prev=sharedstatedir ;;
1226 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229 | --sha=* | --sh=*)
1230 sharedstatedir=$ac_optarg ;;
1232 -site | --site | --sit)
1233 ac_prev=site ;;
1234 -site=* | --site=* | --sit=*)
1235 site=$ac_optarg ;;
1237 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238 ac_prev=srcdir ;;
1239 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240 srcdir=$ac_optarg ;;
1242 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243 | --syscon | --sysco | --sysc | --sys | --sy)
1244 ac_prev=sysconfdir ;;
1245 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247 sysconfdir=$ac_optarg ;;
1249 -target | --target | --targe | --targ | --tar | --ta | --t)
1250 ac_prev=target_alias ;;
1251 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252 target_alias=$ac_optarg ;;
1254 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1255 verbose=yes ;;
1257 -version | --version | --versio | --versi | --vers | -V)
1258 ac_init_version=: ;;
1260 -with-* | --with-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error $? "invalid package name: $ac_useropt"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1269 "with_$ac_useropt"
1270 "*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval with_$ac_useropt=\$ac_optarg ;;
1276 -without-* | --without-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error $? "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=no ;;
1292 --x)
1293 # Obsolete; use --with-x.
1294 with_x=yes ;;
1296 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297 | --x-incl | --x-inc | --x-in | --x-i)
1298 ac_prev=x_includes ;;
1299 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301 x_includes=$ac_optarg ;;
1303 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305 ac_prev=x_libraries ;;
1306 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308 x_libraries=$ac_optarg ;;
1310 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1311 Try \`$0 --help' for more information"
1314 *=*)
1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316 # Reject names that are not valid shell variable names.
1317 case $ac_envvar in #(
1318 '' | [0-9]* | *[!_$as_cr_alnum]* )
1319 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1320 esac
1321 eval $ac_envvar=\$ac_optarg
1322 export $ac_envvar ;;
1325 # FIXME: should be removed in autoconf 3.0.
1326 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332 esac
1333 done
1335 if test -n "$ac_prev"; then
1336 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337 as_fn_error $? "missing argument to $ac_option"
1340 if test -n "$ac_unrecognized_opts"; then
1341 case $enable_option_checking in
1342 no) ;;
1343 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1344 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345 esac
1348 # Check all directory arguments for consistency.
1349 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
1354 eval ac_val=\$$ac_var
1355 # Remove trailing slashes.
1356 case $ac_val in
1357 */ )
1358 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1359 eval $ac_var=\$ac_val;;
1360 esac
1361 # Be sure to have absolute directory names.
1362 case $ac_val in
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 esac
1366 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1367 done
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1372 build=$build_alias
1373 host=$host_alias
1374 target=$target_alias
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378 if test "x$build_alias" = x; then
1379 cross_compiling=maybe
1380 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1381 If a cross compiler is detected then cross compile mode will be used" >&2
1382 elif test "x$build_alias" != "x$host_alias"; then
1383 cross_compiling=yes
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390 test "$silent" = yes && exec 6>/dev/null
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 as_fn_error $? "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398 as_fn_error $? "pwd does not report name of working directory"
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
1404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 s//\1/
1415 /^X\(\/\/\)[^/].*/{
1416 s//\1/
1419 /^X\(\/\/\)$/{
1420 s//\1/
1423 /^X\(\/\).*/{
1424 s//\1/
1427 s/.*/./; q'`
1428 srcdir=$ac_confdir
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 srcdir=..
1432 else
1433 ac_srcdir_defaulted=no
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 ac_abs_confdir=`(
1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1442 pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 srcdir=.
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1466 cat <<_ACEOF
1467 \`configure' configures this package to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1476 Configuration:
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking ...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1491 [PREFIX]
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1520 _ACEOF
1522 cat <<\_ACEOF
1524 X features:
1525 --x-includes=DIR X include files are in DIR
1526 --x-libraries=DIR X library files are in DIR
1528 System types:
1529 --build=BUILD configure for building on BUILD [guessed]
1530 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1531 _ACEOF
1534 if test -n "$ac_init_help"; then
1536 cat <<\_ACEOF
1538 Optional Features:
1539 --disable-option-checking ignore unrecognized --enable/--with options
1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1542 --enable-build-type=TYPE
1543 Select the build type. Available types are:
1544 personal, nightly, snapshot, milestone, release. Do
1545 NOT use this option unless you know what you are
1546 doing! (default=personal)
1547 --enable-debug=list Enable different types of debug. Commas or
1548 whitespaces can be used to separate the items in the
1549 list. Available types of debug are: all, none,
1550 messages, stack, mungwall, modules, symbols. If no
1551 list is provided then "all" is assumed.
1552 (default=none)
1553 --enable-distcc Use distcc as a front end to the compiler
1554 (default=no).
1555 --enable-ccache Use ccache as a front end to the compiler
1556 (default=no).
1557 --enable-target-variant=NAME
1558 Enable a specific target variant(default=none)
1559 --enable-amigaos-compliance=VERSION
1560 Enforce userspace AmigaOS compliance to a specific
1561 KickStart version (default=none).
1562 --disable-crosstools Do not build cross-compiler toolchain
1563 --enable-includes=dir Alternative system include directory
1564 --enable-palm-debug-hack
1565 Enable palm debug output hack in palm native
1566 (default=no)
1567 --enable-usb30-code Enable usb3.0 code (default=no)
1568 --enable-nesting-supervisor
1569 Enable nesting supervisor support in unix
1570 (default=no)
1571 --disable-mmu Disable MMU support (default=enabled)
1572 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1573 --enable-x11-shm use X11 shared memory (default=auto)
1574 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1575 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1576 --disable-sdltest Do not try to compile and run a test SDL program
1577 --enable-dbus Enable DBUS support via dbus.library (default=no)
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-kernel-gcc-version=VERSION
1583 Use host gcc-VERSION for building AROS
1584 --with-gcc-version=VERSION
1585 Use host gcc-VERSION for building AROS
1586 --with-optimization=FLAGS
1587 Use optimization flags FLAGS (default=-O2).
1588 --with-paranoia=FLAGS CC flags to enable paranoia
1589 --with-xcode=PATH Specify XCode path for iOS targets
1590 (default=/Developer).
1591 --with-sdk-version=VERSION
1592 Use iOS SDK version VERSION (default=4.1).
1593 --with-sdk=PATH Specify Android SDK path
1594 (default=$default_android_sdk).
1595 --with-ndk=PATH Specify Android NDK path (default=none).
1596 --with-sdk-version=LEVEL
1597 Use Android SDK for API LEVEL (default=12).
1598 --with-ndk-version=LEVEL
1599 Use Android NDK for API LEVEL (default=9).
1600 --with-kernel-toolchain-prefix=...
1601 Specify crosscompile toolchain prefix for kernel
1602 objects
1603 --with-elf-toolchain-prefix=...
1604 Specify crosscompile toolchain prefix to wrap for
1605 AROS objects
1606 --with-aros-toolchain=PREFIX
1607 Specify prebuilt AROS toolchain
1608 --with-aros-toolchain-install=DIR
1609 Where to install or search for cross tools binaries
1610 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1611 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1612 --with-float=<spec> Specify floating point ABI
1613 (default=$gcc_default_float_abi).
1614 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1615 --with-portssources=DIR Where to download sourcecode for external ports
1616 --with-bootloader=NAME Use a specific bootloader
1617 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1618 --with-theme=NAME Use a specific GUI Theme
1619 --with-resolution=XRESxYRESxDEPTH
1620 Default resolution of the initial WorkbenchScreen
1621 --with-serial-debug Enable serial debug output in native (default=no)
1622 --with-x use the X Window System
1623 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1624 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1626 Some influential environment variables:
1627 CXX C++ compiler command
1628 CXXFLAGS C++ compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CC C compiler command
1635 CFLAGS C compiler flags
1636 CPP C preprocessor
1637 PYTHON the Python interpreter
1638 XMKMF Path to xmkmf, Makefile generator for X Window System
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1643 Report bugs to the package provider.
1644 _ACEOF
1645 ac_status=$?
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
1654 ac_builddir=.
1656 case "$ac_dir" in
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666 esac
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1672 case $srcdir in
1673 .) # We are building in place.
1674 ac_srcdir=.
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1678 ac_srcdir=$srcdir$ac_dir_suffix;
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 esac
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1696 else
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1700 done
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1705 cat <<\_ACEOF
1706 configure
1707 generated by GNU Autoconf 2.68
1709 Copyright (C) 2010 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713 exit
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1720 # ac_fn_cxx_try_compile LINENO
1721 # ----------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_cxx_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_cxx_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1751 ac_retval=1
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_cxx_try_compile
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=1
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_c_try_compile
1796 # ac_fn_c_try_cpp LINENO
1797 # ----------------------
1798 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_cpp ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { { ac_try="$ac_cpp conftest.$ac_ext"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } > conftest.i && {
1818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_cpp
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_link ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 $as_test_x conftest$ac_exeext
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_link
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1883 # accordingly.
1884 ac_fn_c_check_header_mongrel ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if eval \${$3+:} false; then :
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 else
1897 # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_header_compiler=yes
1907 else
1908 ac_header_compiler=no
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922 ac_header_preproc=yes
1923 else
1924 ac_header_preproc=no
1926 rm -f conftest.err conftest.i conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1930 # So? What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932 yes:no: )
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 no:yes:* )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 esac
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=\$ac_header_compiler"
1958 eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 } # ac_fn_c_check_header_mongrel
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1970 ac_fn_c_try_run ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_link") 2>&5
1981 ac_status=$?
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984 { { case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_try") 2>&5
1991 ac_status=$?
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; }; }; then :
1994 ac_retval=0
1995 else
1996 $as_echo "$as_me: program exited with status $ac_status" >&5
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2000 ac_retval=$ac_status
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_c_try_run
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$3=yes"
2027 else
2028 eval "$3=no"
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 } # ac_fn_c_check_header_compile
2039 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2040 # ----------------------------------------------------
2041 # Tries to find if the field MEMBER exists in type AGGR, after including
2042 # INCLUDES, setting cache variable VAR accordingly.
2043 ac_fn_c_check_member ()
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2047 $as_echo_n "checking for $2.$3... " >&6; }
2048 if eval \${$4+:} false; then :
2049 $as_echo_n "(cached) " >&6
2050 else
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2055 main ()
2057 static $2 ac_aggr;
2058 if (ac_aggr.$3)
2059 return 0;
2061 return 0;
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065 eval "$4=yes"
2066 else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2071 main ()
2073 static $2 ac_aggr;
2074 if (sizeof ac_aggr.$3)
2075 return 0;
2077 return 0;
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 eval "$4=yes"
2082 else
2083 eval "$4=no"
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 eval ac_res=\$$4
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 } # ac_fn_c_check_member
2096 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2097 # ---------------------------------------------
2098 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2099 # accordingly.
2100 ac_fn_c_check_decl ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 as_decl_name=`echo $2|sed 's/ *(.*//'`
2104 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2106 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2107 if eval \${$3+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2114 main ()
2116 #ifndef $as_decl_name
2117 #ifdef __cplusplus
2118 (void) $as_decl_use;
2119 #else
2120 (void) $as_decl_name;
2121 #endif
2122 #endif
2125 return 0;
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 eval "$3=yes"
2130 else
2131 eval "$3=no"
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 eval ac_res=\$$3
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_decl
2142 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2143 # -------------------------------------------
2144 # Tests whether TYPE exists after having included INCLUDES, setting cache
2145 # variable VAR accordingly.
2146 ac_fn_c_check_type ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2153 else
2154 eval "$3=no"
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2159 main ()
2161 if (sizeof ($2))
2162 return 0;
2164 return 0;
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 if (sizeof (($2)))
2175 return 0;
2177 return 0;
2179 _ACEOF
2180 if ac_fn_c_try_compile "$LINENO"; then :
2182 else
2183 eval "$3=yes"
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194 } # ac_fn_c_check_type
2196 # ac_fn_c_check_func LINENO FUNC VAR
2197 # ----------------------------------
2198 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2199 ac_fn_c_check_func ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval \${$3+:} false; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2211 #define $2 innocuous_$2
2213 /* System header to define __stub macros and hopefully few prototypes,
2214 which can conflict with char $2 (); below.
2215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2216 <limits.h> exists even on freestanding compilers. */
2218 #ifdef __STDC__
2219 # include <limits.h>
2220 #else
2221 # include <assert.h>
2222 #endif
2224 #undef $2
2226 /* Override any GCC internal prototype to avoid an error.
2227 Use char because int might match the return type of a GCC
2228 builtin and then its argument prototype would still apply. */
2229 #ifdef __cplusplus
2230 extern "C"
2231 #endif
2232 char $2 ();
2233 /* The GNU C library defines this for functions which it implements
2234 to always fail with ENOSYS. Some functions are actually named
2235 something starting with __ and the normal name is an alias. */
2236 #if defined __stub_$2 || defined __stub___$2
2237 choke me
2238 #endif
2241 main ()
2243 return $2 ();
2245 return 0;
2247 _ACEOF
2248 if ac_fn_c_try_link "$LINENO"; then :
2249 eval "$3=yes"
2250 else
2251 eval "$3=no"
2253 rm -f core conftest.err conftest.$ac_objext \
2254 conftest$ac_exeext conftest.$ac_ext
2256 eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 } # ac_fn_c_check_func
2262 cat >config.log <<_ACEOF
2263 This file contains any messages produced by compilers while
2264 running configure, to aid debugging if configure makes a mistake.
2266 It was created by $as_me, which was
2267 generated by GNU Autoconf 2.68. Invocation command line was
2269 $ $0 $@
2271 _ACEOF
2272 exec 5>>config.log
2274 cat <<_ASUNAME
2275 ## --------- ##
2276 ## Platform. ##
2277 ## --------- ##
2279 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2288 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2292 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2296 _ASUNAME
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 $as_echo "PATH: $as_dir"
2304 done
2305 IFS=$as_save_IFS
2307 } >&5
2309 cat >&5 <<_ACEOF
2312 ## ----------- ##
2313 ## Core tests. ##
2314 ## ----------- ##
2316 _ACEOF
2319 # Keep a trace of the command line.
2320 # Strip out --no-create and --no-recursion so they do not pile up.
2321 # Strip out --silent because we don't want to record it for future runs.
2322 # Also quote any args containing shell meta-characters.
2323 # Make two passes to allow for proper duplicate-argument suppression.
2324 ac_configure_args=
2325 ac_configure_args0=
2326 ac_configure_args1=
2327 ac_must_keep_next=false
2328 for ac_pass in 1 2
2330 for ac_arg
2332 case $ac_arg in
2333 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2335 | -silent | --silent | --silen | --sile | --sil)
2336 continue ;;
2337 *\'*)
2338 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 esac
2340 case $ac_pass in
2341 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2343 as_fn_append ac_configure_args1 " '$ac_arg'"
2344 if test $ac_must_keep_next = true; then
2345 ac_must_keep_next=false # Got value, back to normal.
2346 else
2347 case $ac_arg in
2348 *=* | --config-cache | -C | -disable-* | --disable-* \
2349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2351 | -with-* | --with-* | -without-* | --without-* | --x)
2352 case "$ac_configure_args0 " in
2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354 esac
2356 -* ) ac_must_keep_next=true ;;
2357 esac
2359 as_fn_append ac_configure_args " '$ac_arg'"
2361 esac
2362 done
2363 done
2364 { ac_configure_args0=; unset ac_configure_args0;}
2365 { ac_configure_args1=; unset ac_configure_args1;}
2367 # When interrupted or exit'd, cleanup temporary files, and complete
2368 # config.log. We remove comments because anyway the quotes in there
2369 # would cause problems or look ugly.
2370 # WARNING: Use '\'' to represent an apostrophe within the trap.
2371 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372 trap 'exit_status=$?
2373 # Save into config.log some information that might help in debugging.
2375 echo
2377 $as_echo "## ---------------- ##
2378 ## Cache variables. ##
2379 ## ---------------- ##"
2380 echo
2381 # The following way of writing the cache mishandles newlines in values,
2383 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2384 eval ac_val=\$$ac_var
2385 case $ac_val in #(
2386 *${as_nl}*)
2387 case $ac_var in #(
2388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2389 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2390 esac
2391 case $ac_var in #(
2392 _ | IFS | as_nl) ;; #(
2393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2394 *) { eval $ac_var=; unset $ac_var;} ;;
2395 esac ;;
2396 esac
2397 done
2398 (set) 2>&1 |
2399 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2400 *${as_nl}ac_space=\ *)
2401 sed -n \
2402 "s/'\''/'\''\\\\'\'''\''/g;
2403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2404 ;; #(
2406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2408 esac |
2409 sort
2411 echo
2413 $as_echo "## ----------------- ##
2414 ## Output variables. ##
2415 ## ----------------- ##"
2416 echo
2417 for ac_var in $ac_subst_vars
2419 eval ac_val=\$$ac_var
2420 case $ac_val in
2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 esac
2423 $as_echo "$ac_var='\''$ac_val'\''"
2424 done | sort
2425 echo
2427 if test -n "$ac_subst_files"; then
2428 $as_echo "## ------------------- ##
2429 ## File substitutions. ##
2430 ## ------------------- ##"
2431 echo
2432 for ac_var in $ac_subst_files
2434 eval ac_val=\$$ac_var
2435 case $ac_val in
2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 esac
2438 $as_echo "$ac_var='\''$ac_val'\''"
2439 done | sort
2440 echo
2443 if test -s confdefs.h; then
2444 $as_echo "## ----------- ##
2445 ## confdefs.h. ##
2446 ## ----------- ##"
2447 echo
2448 cat confdefs.h
2449 echo
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2454 } >&5
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457 exit $exit_status
2459 for ac_signal in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2461 done
2462 ac_signal=0
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest* confdefs.h
2467 $as_echo "/* confdefs.h */" > confdefs.h
2469 # Predefined preprocessor variables.
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489 _ACEOF
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2493 _ACEOF
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2498 ac_site_file1=NONE
2499 ac_site_file2=NONE
2500 if test -n "$CONFIG_SITE"; then
2501 # We do not want a PATH search for config.site.
2502 case $CONFIG_SITE in #((
2503 -*) ac_site_file1=./$CONFIG_SITE;;
2504 */*) ac_site_file1=$CONFIG_SITE;;
2505 *) ac_site_file1=./$CONFIG_SITE;;
2506 esac
2507 elif test "x$prefix" != xNONE; then
2508 ac_site_file1=$prefix/share/config.site
2509 ac_site_file2=$prefix/etc/config.site
2510 else
2511 ac_site_file1=$ac_default_prefix/share/config.site
2512 ac_site_file2=$ac_default_prefix/etc/config.site
2514 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2516 test "x$ac_site_file" = xNONE && continue
2517 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2519 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2520 sed 's/^/| /' "$ac_site_file" >&5
2521 . "$ac_site_file" \
2522 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 as_fn_error $? "failed to load site script $ac_site_file
2525 See \`config.log' for more details" "$LINENO" 5; }
2527 done
2529 if test -r "$cache_file"; then
2530 # Some versions of bash will fail to source /dev/null (special files
2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2532 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2534 $as_echo "$as_me: loading cache $cache_file" >&6;}
2535 case $cache_file in
2536 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2537 *) . "./$cache_file";;
2538 esac
2540 else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2542 $as_echo "$as_me: creating cache $cache_file" >&6;}
2543 >$cache_file
2546 as_fn_append ac_header_list " stdlib.h"
2547 as_fn_append ac_header_list " unistd.h"
2548 as_fn_append ac_header_list " sys/param.h"
2549 # Check that the precious variables saved in the cache have kept the same
2550 # value.
2551 ac_cache_corrupted=false
2552 for ac_var in $ac_precious_vars; do
2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554 eval ac_new_set=\$ac_env_${ac_var}_set
2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556 eval ac_new_val=\$ac_env_${ac_var}_value
2557 case $ac_old_set,$ac_new_set in
2558 set,)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,set)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2566 ,);;
2568 if test "x$ac_old_val" != "x$ac_new_val"; then
2569 # differences in whitespace do not lead to failure.
2570 ac_old_val_w=`echo x $ac_old_val`
2571 ac_new_val_w=`echo x $ac_new_val`
2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575 ac_cache_corrupted=:
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579 eval $ac_var=\$ac_old_val
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2582 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2584 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2585 fi;;
2586 esac
2587 # Pass precious variables to config.status.
2588 if test "$ac_new_set" = set; then
2589 case $ac_new_val in
2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591 *) ac_arg=$ac_var=$ac_new_val ;;
2592 esac
2593 case " $ac_configure_args " in
2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2596 esac
2598 done
2599 if $ac_cache_corrupted; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2604 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2606 ## -------------------- ##
2607 ## Main body of script. ##
2608 ## -------------------- ##
2610 ac_ext=c
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 ac_aux_dir=
2619 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2620 if test -f "$ac_dir/install-sh"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/install-sh -c"
2623 break
2624 elif test -f "$ac_dir/install.sh"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/install.sh -c"
2627 break
2628 elif test -f "$ac_dir/shtool"; then
2629 ac_aux_dir=$ac_dir
2630 ac_install_sh="$ac_aux_dir/shtool install -c"
2631 break
2633 done
2634 if test -z "$ac_aux_dir"; then
2635 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2638 # These three variables are undocumented and unsupported,
2639 # and are intended to be withdrawn in a future Autoconf release.
2640 # They can cause serious problems if a builder's source tree is in a directory
2641 # whose full name contains unusual characters.
2642 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2643 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2644 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2648 # Check what host we are running on.
2649 # If a target is not suggested, we use this one.
2650 # Note that what we call a target, Autoconf calls a host.
2651 # Make sure we can run config.sub.
2652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2653 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2656 $as_echo_n "checking build system type... " >&6; }
2657 if ${ac_cv_build+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 ac_build_alias=$build_alias
2661 test "x$ac_build_alias" = x &&
2662 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2663 test "x$ac_build_alias" = x &&
2664 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2665 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2670 $as_echo "$ac_cv_build" >&6; }
2671 case $ac_cv_build in
2672 *-*-*) ;;
2673 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2674 esac
2675 build=$ac_cv_build
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_build
2678 shift
2679 build_cpu=$1
2680 build_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 build_os=$*
2685 IFS=$ac_save_IFS
2686 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2690 $as_echo_n "checking host system type... " >&6; }
2691 if ${ac_cv_host+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test "x$host_alias" = x; then
2695 ac_cv_host=$ac_cv_build
2696 else
2697 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2703 $as_echo "$ac_cv_host" >&6; }
2704 case $ac_cv_host in
2705 *-*-*) ;;
2706 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2707 esac
2708 host=$ac_cv_host
2709 ac_save_IFS=$IFS; IFS='-'
2710 set x $ac_cv_host
2711 shift
2712 host_cpu=$1
2713 host_vendor=$2
2714 shift; shift
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2717 host_os=$*
2718 IFS=$ac_save_IFS
2719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2723 # The AROS target is slightly different to the normal GNU style
2724 # format. We don't have the middle part, and we reverse the order
2725 # of the $(CPU) and $(OS) bits.
2727 # Don't strip the version of the target yet, it might be
2728 # useful on some systems.
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2731 $as_echo_n "checking for AROS style target... " >&6; }
2733 if test "$target" = "NONE" ; then
2734 target=$host_os-$host_cpu
2735 else
2736 if test "$target" = "" ; then
2737 target=$host_os-$host_cpu
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2741 $as_echo "$target" >&6; }
2743 if test "$host_os" = "mingw32" ; then
2744 PWDCMD="pwd -W"
2747 # Don't know where else to put this...
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2749 $as_echo_n "checking building AROS in... " >&6; }
2750 AROS_BUILDDIR=`${PWDCMD-pwd}`
2751 AROS_BUILDDIR_UNIX=${PWD}
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2753 $as_echo "$AROS_BUILDDIR" >&6; }
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2756 $as_echo_n "checking AROS source in... " >&6; }
2757 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2758 SRCDIR=${srcpwd}
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2760 $as_echo "$SRCDIR" >&6; }
2762 # Parse the target field into something useful.
2764 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2765 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2768 # Some debug output, to be removed again.
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2770 $as_echo_n "checking for target system (debug output)... " >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2772 $as_echo "$target_os" >&6; }
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2774 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2776 $as_echo "$target_cpu" >&6; }
2778 aros_default_wbwidth=800
2779 aros_default_wbheight=600
2780 aros_default_wbdepth=4
2783 # The first step is to find the host binaries.
2784 # Check for a compiler.
2785 # Due to a bug in autoconf check for c++ compiler first.
2786 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2787 ac_ext=cpp
2788 ac_cpp='$CXXCPP $CPPFLAGS'
2789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2792 if test -z "$CXX"; then
2793 if test -n "$CCC"; then
2794 CXX=$CCC
2795 else
2796 if test -n "$ac_tool_prefix"; then
2797 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_CXX+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$CXX"; then
2807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2822 IFS=$as_save_IFS
2826 CXX=$ac_cv_prog_CXX
2827 if test -n "$CXX"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2829 $as_echo "$CXX" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2836 test -n "$CXX" && break
2837 done
2839 if test -z "$CXX"; then
2840 ac_ct_CXX=$CXX
2841 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$ac_ct_CXX"; then
2851 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_CXX="$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2871 if test -n "$ac_ct_CXX"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2873 $as_echo "$ac_ct_CXX" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2880 test -n "$ac_ct_CXX" && break
2881 done
2883 if test "x$ac_ct_CXX" = x; then
2884 CXX="g++"
2885 else
2886 case $cross_compiling:$ac_tool_warned in
2887 yes:)
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2890 ac_tool_warned=yes ;;
2891 esac
2892 CXX=$ac_ct_CXX
2898 # Provide some information about the compiler.
2899 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2900 set X $ac_compile
2901 ac_compiler=$2
2902 for ac_option in --version -v -V -qversion; do
2903 { { ac_try="$ac_compiler $ac_option >&5"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909 $as_echo "$ac_try_echo"; } >&5
2910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2911 ac_status=$?
2912 if test -s conftest.err; then
2913 sed '10a\
2914 ... rest of stderr output deleted ...
2915 10q' conftest.err >conftest.er1
2916 cat conftest.er1 >&5
2918 rm -f conftest.er1 conftest.err
2919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2920 test $ac_status = 0; }
2921 done
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2927 main ()
2931 return 0;
2933 _ACEOF
2934 ac_clean_files_save=$ac_clean_files
2935 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2936 # Try to create an executable without -o first, disregard a.out.
2937 # It will help us diagnose broken compilers, and finding out an intuition
2938 # of exeext.
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2940 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2943 # The possible output files:
2944 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2946 ac_rmfiles=
2947 for ac_file in $ac_files
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2951 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2952 esac
2953 done
2954 rm -f $ac_rmfiles
2956 if { { ac_try="$ac_link_default"
2957 case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962 $as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_link_default") 2>&5
2964 ac_status=$?
2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966 test $ac_status = 0; }; then :
2967 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2968 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2969 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2970 # so that the user can short-circuit this test for compilers unknown to
2971 # Autoconf.
2972 for ac_file in $ac_files ''
2974 test -f "$ac_file" || continue
2975 case $ac_file in
2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2978 [ab].out )
2979 # We found the default executable, but exeext='' is most
2980 # certainly right.
2981 break;;
2982 *.* )
2983 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2984 then :; else
2985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2987 # We set ac_cv_exeext here because the later test for it is not
2988 # safe: cross compilers may not add the suffix if given an `-o'
2989 # argument, so we may need to know it at that point already.
2990 # Even if this section looks crufty: it has the advantage of
2991 # actually working.
2992 break;;
2994 break;;
2995 esac
2996 done
2997 test "$ac_cv_exeext" = no && ac_cv_exeext=
2999 else
3000 ac_file=''
3002 if test -z "$ac_file"; then :
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 $as_echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error 77 "C++ compiler cannot create executables
3011 See \`config.log' for more details" "$LINENO" 5; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3014 $as_echo "yes" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3017 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3019 $as_echo "$ac_file" >&6; }
3020 ac_exeext=$ac_cv_exeext
3022 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3023 ac_clean_files=$ac_clean_files_save
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3025 $as_echo_n "checking for suffix of executables... " >&6; }
3026 if { { ac_try="$ac_link"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_link") 2>&5
3034 ac_status=$?
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; then :
3037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3038 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3039 # work properly (i.e., refer to `conftest.exe'), while it won't with
3040 # `rm'.
3041 for ac_file in conftest.exe conftest conftest.*; do
3042 test -f "$ac_file" || continue
3043 case $ac_file in
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046 break;;
3047 * ) break;;
3048 esac
3049 done
3050 else
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3054 See \`config.log' for more details" "$LINENO" 5; }
3056 rm -f conftest conftest$ac_cv_exeext
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3058 $as_echo "$ac_cv_exeext" >&6; }
3060 rm -f conftest.$ac_ext
3061 EXEEXT=$ac_cv_exeext
3062 ac_exeext=$EXEEXT
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3065 #include <stdio.h>
3067 main ()
3069 FILE *f = fopen ("conftest.out", "w");
3070 return ferror (f) || fclose (f) != 0;
3073 return 0;
3075 _ACEOF
3076 ac_clean_files="$ac_clean_files conftest.out"
3077 # Check that the compiler produces executables we can run. If not, either
3078 # the compiler is broken, or we cross compile.
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3080 $as_echo_n "checking whether we are cross compiling... " >&6; }
3081 if test "$cross_compiling" != yes; then
3082 { { ac_try="$ac_link"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_link") 2>&5
3090 ac_status=$?
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }
3093 if { ac_try='./conftest$ac_cv_exeext'
3094 { { case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }; }; then
3104 cross_compiling=no
3105 else
3106 if test "$cross_compiling" = maybe; then
3107 cross_compiling=yes
3108 else
3109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 as_fn_error $? "cannot run C++ compiled programs.
3112 If you meant to cross compile, use \`--host'.
3113 See \`config.log' for more details" "$LINENO" 5; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3118 $as_echo "$cross_compiling" >&6; }
3120 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3121 ac_clean_files=$ac_clean_files_save
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3123 $as_echo_n "checking for suffix of object files... " >&6; }
3124 if ${ac_cv_objext+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3131 main ()
3135 return 0;
3137 _ACEOF
3138 rm -f conftest.o conftest.obj
3139 if { { ac_try="$ac_compile"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_compile") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 for ac_file in conftest.o conftest.obj conftest.*; do
3151 test -f "$ac_file" || continue;
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3155 break;;
3156 esac
3157 done
3158 else
3159 $as_echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error $? "cannot compute suffix of object files: cannot compile
3165 See \`config.log' for more details" "$LINENO" 5; }
3167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3170 $as_echo "$ac_cv_objext" >&6; }
3171 OBJEXT=$ac_cv_objext
3172 ac_objext=$OBJEXT
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3174 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3175 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3182 main ()
3184 #ifndef __GNUC__
3185 choke me
3186 #endif
3189 return 0;
3191 _ACEOF
3192 if ac_fn_cxx_try_compile "$LINENO"; then :
3193 ac_compiler_gnu=yes
3194 else
3195 ac_compiler_gnu=no
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3202 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3203 if test $ac_compiler_gnu = yes; then
3204 GXX=yes
3205 else
3206 GXX=
3208 ac_test_CXXFLAGS=${CXXFLAGS+set}
3209 ac_save_CXXFLAGS=$CXXFLAGS
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3211 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3212 if ${ac_cv_prog_cxx_g+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3216 ac_cxx_werror_flag=yes
3217 ac_cv_prog_cxx_g=no
3218 CXXFLAGS="-g"
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3223 main ()
3227 return 0;
3229 _ACEOF
3230 if ac_fn_cxx_try_compile "$LINENO"; then :
3231 ac_cv_prog_cxx_g=yes
3232 else
3233 CXXFLAGS=""
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3238 main ()
3242 return 0;
3244 _ACEOF
3245 if ac_fn_cxx_try_compile "$LINENO"; then :
3247 else
3248 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3249 CXXFLAGS="-g"
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3254 main ()
3258 return 0;
3260 _ACEOF
3261 if ac_fn_cxx_try_compile "$LINENO"; then :
3262 ac_cv_prog_cxx_g=yes
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3272 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3273 if test "$ac_test_CXXFLAGS" = set; then
3274 CXXFLAGS=$ac_save_CXXFLAGS
3275 elif test $ac_cv_prog_cxx_g = yes; then
3276 if test "$GXX" = yes; then
3277 CXXFLAGS="-g -O2"
3278 else
3279 CXXFLAGS="-g"
3281 else
3282 if test "$GXX" = yes; then
3283 CXXFLAGS="-O2"
3284 else
3285 CXXFLAGS=
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 if test -n "$ac_tool_prefix"; then
3300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3301 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3321 done
3322 done
3323 IFS=$as_save_IFS
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3338 if test -z "$ac_cv_prog_CC"; then
3339 ac_ct_CC=$CC
3340 # Extract the first word of "gcc", so it can be a program name with args.
3341 set dummy gcc; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 if test -n "$ac_ct_CC"; then
3348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_ac_ct_CC="gcc"
3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3361 done
3362 done
3363 IFS=$as_save_IFS
3367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368 if test -n "$ac_ct_CC"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3370 $as_echo "$ac_ct_CC" >&6; }
3371 else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3376 if test "x$ac_ct_CC" = x; then
3377 CC=""
3378 else
3379 case $cross_compiling:$ac_tool_warned in
3380 yes:)
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383 ac_tool_warned=yes ;;
3384 esac
3385 CC=$ac_ct_CC
3387 else
3388 CC="$ac_cv_prog_CC"
3391 if test -z "$CC"; then
3392 if test -n "$ac_tool_prefix"; then
3393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3394 set dummy ${ac_tool_prefix}cc; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CC+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_CC="${ac_tool_prefix}cc"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3414 done
3415 done
3416 IFS=$as_save_IFS
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3432 if test -z "$CC"; then
3433 # Extract the first word of "cc", so it can be a program name with args.
3434 set dummy cc; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 ac_prog_rejected=no
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3452 ac_prog_rejected=yes
3453 continue
3455 ac_cv_prog_CC="cc"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3459 done
3460 done
3461 IFS=$as_save_IFS
3463 if test $ac_prog_rejected = yes; then
3464 # We found a bogon in the path, so make sure we never use it.
3465 set dummy $ac_cv_prog_CC
3466 shift
3467 if test $# != 0; then
3468 # We chose a different compiler from the bogus one.
3469 # However, it has the same basename, so the bogon will be chosen
3470 # first if we set CC to just the basename; use the full file name.
3471 shift
3472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3488 if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 for ac_prog in cl.exe
3492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if ${ac_cv_prog_CC+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3513 done
3514 done
3515 IFS=$as_save_IFS
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522 $as_echo "$CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3529 test -n "$CC" && break
3530 done
3532 if test -z "$CC"; then
3533 ac_ct_CC=$CC
3534 for ac_prog in cl.exe
3536 # Extract the first word of "$ac_prog", so it can be a program name with args.
3537 set dummy $ac_prog; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$ac_ct_CC"; then
3544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_ac_ct_CC="$ac_prog"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3557 done
3558 done
3559 IFS=$as_save_IFS
3563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3564 if test -n "$ac_ct_CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3566 $as_echo "$ac_ct_CC" >&6; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3573 test -n "$ac_ct_CC" && break
3574 done
3576 if test "x$ac_ct_CC" = x; then
3577 CC=""
3578 else
3579 case $cross_compiling:$ac_tool_warned in
3580 yes:)
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583 ac_tool_warned=yes ;;
3584 esac
3585 CC=$ac_ct_CC
3592 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error $? "no acceptable C compiler found in \$PATH
3595 See \`config.log' for more details" "$LINENO" 5; }
3597 # Provide some information about the compiler.
3598 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3599 set X $ac_compile
3600 ac_compiler=$2
3601 for ac_option in --version -v -V -qversion; do
3602 { { ac_try="$ac_compiler $ac_option >&5"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3610 ac_status=$?
3611 if test -s conftest.err; then
3612 sed '10a\
3613 ... rest of stderr output deleted ...
3614 10q' conftest.err >conftest.er1
3615 cat conftest.er1 >&5
3617 rm -f conftest.er1 conftest.err
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }
3620 done
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3624 if ${ac_cv_c_compiler_gnu+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3631 main ()
3633 #ifndef __GNUC__
3634 choke me
3635 #endif
3638 return 0;
3640 _ACEOF
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_compiler_gnu=yes
3643 else
3644 ac_compiler_gnu=no
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3651 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3652 if test $ac_compiler_gnu = yes; then
3653 GCC=yes
3654 else
3655 GCC=
3657 ac_test_CFLAGS=${CFLAGS+set}
3658 ac_save_CFLAGS=$CFLAGS
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3660 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3661 if ${ac_cv_prog_cc_g+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 ac_save_c_werror_flag=$ac_c_werror_flag
3665 ac_c_werror_flag=yes
3666 ac_cv_prog_cc_g=no
3667 CFLAGS="-g"
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3672 main ()
3676 return 0;
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_cv_prog_cc_g=yes
3681 else
3682 CFLAGS=""
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3687 main ()
3691 return 0;
3693 _ACEOF
3694 if ac_fn_c_try_compile "$LINENO"; then :
3696 else
3697 ac_c_werror_flag=$ac_save_c_werror_flag
3698 CFLAGS="-g"
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3703 main ()
3707 return 0;
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_g=yes
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_c_werror_flag=$ac_save_c_werror_flag
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3721 $as_echo "$ac_cv_prog_cc_g" >&6; }
3722 if test "$ac_test_CFLAGS" = set; then
3723 CFLAGS=$ac_save_CFLAGS
3724 elif test $ac_cv_prog_cc_g = yes; then
3725 if test "$GCC" = yes; then
3726 CFLAGS="-g -O2"
3727 else
3728 CFLAGS="-g"
3730 else
3731 if test "$GCC" = yes; then
3732 CFLAGS="-O2"
3733 else
3734 CFLAGS=
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3738 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3739 if ${ac_cv_prog_cc_c89+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 ac_cv_prog_cc_c89=no
3743 ac_save_CC=$CC
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <stdarg.h>
3747 #include <stdio.h>
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3754 char **p;
3755 int i;
3757 return p[i];
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3761 char *s;
3762 va_list v;
3763 va_start (v,p);
3764 s = g (p, va_arg (v,int));
3765 va_end (v);
3766 return s;
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3779 inside strings and character constants. */
3780 #define FOO(x) 'x'
3781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3783 int test (int i, double x);
3784 struct s1 {int (*f) (int a);};
3785 struct s2 {int (*f) (double a);};
3786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 int argc;
3788 char **argv;
3790 main ()
3792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3794 return 0;
3796 _ACEOF
3797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800 CC="$ac_save_CC $ac_arg"
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_cv_prog_cc_c89=$ac_arg
3804 rm -f core conftest.err conftest.$ac_objext
3805 test "x$ac_cv_prog_cc_c89" != "xno" && break
3806 done
3807 rm -f conftest.$ac_ext
3808 CC=$ac_save_CC
3811 # AC_CACHE_VAL
3812 case "x$ac_cv_prog_cc_c89" in
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3815 $as_echo "none needed" >&6; } ;;
3816 xno)
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3818 $as_echo "unsupported" >&6; } ;;
3820 CC="$CC $ac_cv_prog_cc_c89"
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3823 esac
3824 if test "x$ac_cv_prog_cc_c89" != xno; then :
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834 case $ac_cv_prog_cc_stdc in #(
3835 no) :
3836 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3837 *) :
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3839 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3840 if ${ac_cv_prog_cc_c99+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 ac_cv_prog_cc_c99=no
3844 ac_save_CC=$CC
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3847 #include <stdarg.h>
3848 #include <stdbool.h>
3849 #include <stdlib.h>
3850 #include <wchar.h>
3851 #include <stdio.h>
3853 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3854 #define debug(...) fprintf (stderr, __VA_ARGS__)
3855 #define showlist(...) puts (#__VA_ARGS__)
3856 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3857 static void
3858 test_varargs_macros (void)
3860 int x = 1234;
3861 int y = 5678;
3862 debug ("Flag");
3863 debug ("X = %d\n", x);
3864 showlist (The first, second, and third items.);
3865 report (x>y, "x is %d but y is %d", x, y);
3868 // Check long long types.
3869 #define BIG64 18446744073709551615ull
3870 #define BIG32 4294967295ul
3871 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3872 #if !BIG_OK
3873 your preprocessor is broken;
3874 #endif
3875 #if BIG_OK
3876 #else
3877 your preprocessor is broken;
3878 #endif
3879 static long long int bignum = -9223372036854775807LL;
3880 static unsigned long long int ubignum = BIG64;
3882 struct incomplete_array
3884 int datasize;
3885 double data[];
3888 struct named_init {
3889 int number;
3890 const wchar_t *name;
3891 double average;
3894 typedef const char *ccp;
3896 static inline int
3897 test_restrict (ccp restrict text)
3899 // See if C++-style comments work.
3900 // Iterate through items via the restricted pointer.
3901 // Also check for declarations in for loops.
3902 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3903 continue;
3904 return 0;
3907 // Check varargs and va_copy.
3908 static void
3909 test_varargs (const char *format, ...)
3911 va_list args;
3912 va_start (args, format);
3913 va_list args_copy;
3914 va_copy (args_copy, args);
3916 const char *str;
3917 int number;
3918 float fnumber;
3920 while (*format)
3922 switch (*format++)
3924 case 's': // string
3925 str = va_arg (args_copy, const char *);
3926 break;
3927 case 'd': // int
3928 number = va_arg (args_copy, int);
3929 break;
3930 case 'f': // float
3931 fnumber = va_arg (args_copy, double);
3932 break;
3933 default:
3934 break;
3937 va_end (args_copy);
3938 va_end (args);
3942 main ()
3945 // Check bool.
3946 _Bool success = false;
3948 // Check restrict.
3949 if (test_restrict ("String literal") == 0)
3950 success = true;
3951 char *restrict newvar = "Another string";
3953 // Check varargs.
3954 test_varargs ("s, d' f .", "string", 65, 34.234);
3955 test_varargs_macros ();
3957 // Check flexible array members.
3958 struct incomplete_array *ia =
3959 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3960 ia->datasize = 10;
3961 for (int i = 0; i < ia->datasize; ++i)
3962 ia->data[i] = i * 1.234;
3964 // Check named initializers.
3965 struct named_init ni = {
3966 .number = 34,
3967 .name = L"Test wide string",
3968 .average = 543.34343,
3971 ni.number = 58;
3973 int dynamic_array[ni.number];
3974 dynamic_array[ni.number - 1] = 543;
3976 // work around unused variable warnings
3977 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3978 || dynamic_array[ni.number - 1] != 543);
3981 return 0;
3983 _ACEOF
3984 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3986 CC="$ac_save_CC $ac_arg"
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_prog_cc_c99=$ac_arg
3990 rm -f core conftest.err conftest.$ac_objext
3991 test "x$ac_cv_prog_cc_c99" != "xno" && break
3992 done
3993 rm -f conftest.$ac_ext
3994 CC=$ac_save_CC
3997 # AC_CACHE_VAL
3998 case "x$ac_cv_prog_cc_c99" in
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001 $as_echo "none needed" >&6; } ;;
4002 xno)
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4004 $as_echo "unsupported" >&6; } ;;
4006 CC="$CC $ac_cv_prog_cc_c99"
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4008 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4009 esac
4010 if test "x$ac_cv_prog_cc_c99" != xno; then :
4011 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4014 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4015 if ${ac_cv_prog_cc_c89+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 ac_cv_prog_cc_c89=no
4019 ac_save_CC=$CC
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022 #include <stdarg.h>
4023 #include <stdio.h>
4024 #include <sys/types.h>
4025 #include <sys/stat.h>
4026 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4027 struct buf { int x; };
4028 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4029 static char *e (p, i)
4030 char **p;
4031 int i;
4033 return p[i];
4035 static char *f (char * (*g) (char **, int), char **p, ...)
4037 char *s;
4038 va_list v;
4039 va_start (v,p);
4040 s = g (p, va_arg (v,int));
4041 va_end (v);
4042 return s;
4045 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4046 function prototypes and stuff, but not '\xHH' hex character constants.
4047 These don't provoke an error unfortunately, instead are silently treated
4048 as 'x'. The following induces an error, until -std is added to get
4049 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4050 array size at least. It's necessary to write '\x00'==0 to get something
4051 that's true only with -std. */
4052 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4054 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4055 inside strings and character constants. */
4056 #define FOO(x) 'x'
4057 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4059 int test (int i, double x);
4060 struct s1 {int (*f) (int a);};
4061 struct s2 {int (*f) (double a);};
4062 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4063 int argc;
4064 char **argv;
4066 main ()
4068 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4070 return 0;
4072 _ACEOF
4073 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4074 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4076 CC="$ac_save_CC $ac_arg"
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_cv_prog_cc_c89=$ac_arg
4080 rm -f core conftest.err conftest.$ac_objext
4081 test "x$ac_cv_prog_cc_c89" != "xno" && break
4082 done
4083 rm -f conftest.$ac_ext
4084 CC=$ac_save_CC
4087 # AC_CACHE_VAL
4088 case "x$ac_cv_prog_cc_c89" in
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4091 $as_echo "none needed" >&6; } ;;
4092 xno)
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4094 $as_echo "unsupported" >&6; } ;;
4096 CC="$CC $ac_cv_prog_cc_c89"
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4098 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4099 esac
4100 if test "x$ac_cv_prog_cc_c89" != xno; then :
4101 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4102 else
4103 ac_cv_prog_cc_stdc=no
4108 esac
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4110 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4111 if ${ac_cv_prog_cc_stdc+:} false; then :
4112 $as_echo_n "(cached) " >&6
4115 case $ac_cv_prog_cc_stdc in #(
4116 no) :
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4118 $as_echo "unsupported" >&6; } ;; #(
4119 '') :
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4121 $as_echo "none needed" >&6; } ;; #(
4122 *) :
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4124 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4125 esac
4127 ac_ext=c
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4133 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4134 # On Suns, sometimes $CPP names a directory.
4135 if test -n "$CPP" && test -d "$CPP"; then
4136 CPP=
4138 if test -z "$CPP"; then
4139 if ${ac_cv_prog_CPP+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 # Double quotes because CPP needs to be expanded
4143 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4145 ac_preproc_ok=false
4146 for ac_c_preproc_warn_flag in '' yes
4148 # Use a header file that comes with gcc, so configuring glibc
4149 # with a fresh cross-compiler works.
4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151 # <limits.h> exists even on freestanding compilers.
4152 # On the NeXT, cc -E runs the code through the compiler's parser,
4153 # not just through cpp. "Syntax error" is here to catch this case.
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 #ifdef __STDC__
4157 # include <limits.h>
4158 #else
4159 # include <assert.h>
4160 #endif
4161 Syntax error
4162 _ACEOF
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4165 else
4166 # Broken: fails on valid input.
4167 continue
4169 rm -f conftest.err conftest.i conftest.$ac_ext
4171 # OK, works on sane cases. Now check whether nonexistent headers
4172 # can be detected and how.
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #include <ac_nonexistent.h>
4176 _ACEOF
4177 if ac_fn_c_try_cpp "$LINENO"; then :
4178 # Broken: success on invalid input.
4179 continue
4180 else
4181 # Passes both tests.
4182 ac_preproc_ok=:
4183 break
4185 rm -f conftest.err conftest.i conftest.$ac_ext
4187 done
4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189 rm -f conftest.i conftest.err conftest.$ac_ext
4190 if $ac_preproc_ok; then :
4191 break
4194 done
4195 ac_cv_prog_CPP=$CPP
4198 CPP=$ac_cv_prog_CPP
4199 else
4200 ac_cv_prog_CPP=$CPP
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4203 $as_echo "$CPP" >&6; }
4204 ac_preproc_ok=false
4205 for ac_c_preproc_warn_flag in '' yes
4207 # Use a header file that comes with gcc, so configuring glibc
4208 # with a fresh cross-compiler works.
4209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210 # <limits.h> exists even on freestanding compilers.
4211 # On the NeXT, cc -E runs the code through the compiler's parser,
4212 # not just through cpp. "Syntax error" is here to catch this case.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #ifdef __STDC__
4216 # include <limits.h>
4217 #else
4218 # include <assert.h>
4219 #endif
4220 Syntax error
4221 _ACEOF
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4224 else
4225 # Broken: fails on valid input.
4226 continue
4228 rm -f conftest.err conftest.i conftest.$ac_ext
4230 # OK, works on sane cases. Now check whether nonexistent headers
4231 # can be detected and how.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if ac_fn_c_try_cpp "$LINENO"; then :
4237 # Broken: success on invalid input.
4238 continue
4239 else
4240 # Passes both tests.
4241 ac_preproc_ok=:
4242 break
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4246 done
4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248 rm -f conftest.i conftest.err conftest.$ac_ext
4249 if $ac_preproc_ok; then :
4251 else
4252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details" "$LINENO" 5; }
4258 ac_ext=c
4259 ac_cpp='$CPP $CPPFLAGS'
4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 # Check for a compatible awk
4266 for ac_prog in gawk nawk
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_AWK+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -n "$AWK"; then
4276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_AWK="$ac_prog"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4291 IFS=$as_save_IFS
4295 AWK=$ac_cv_prog_AWK
4296 if test -n "$AWK"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4298 $as_echo "$AWK" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4305 test -n "$AWK" && break
4306 done
4308 if test "$AWK" = ""; then
4309 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4311 # Extract the first word of "mmake", so it can be a program name with args.
4312 set dummy mmake; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_MMAKE+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$MMAKE"; then
4319 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_MMAKE="mmake "
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 MMAKE=$ac_cv_prog_MMAKE
4339 if test -n "$MMAKE"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4341 $as_echo "$MMAKE" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4349 # Perform some default variable assignments. Note all of these will be
4350 # Regenerated from the script, so there is no need to cache them.
4352 aros_host_cpp="$CPP"
4353 aros_host_cc="$CC"
4354 aros_host_cxx="$CXX"
4355 if test "$GCC" = "yes"; then
4356 aros_gcc_ld=`$CC -print-prog-name=ld`
4357 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4358 set dummy `basename $aros_gcc_ld`; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_path_aros_host_ld+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 case $aros_host_ld in
4365 [\\/]* | ?:[\\/]*)
4366 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in `dirname $aros_gcc_ld`
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4380 done
4381 done
4382 IFS=$as_save_IFS
4385 esac
4387 aros_host_ld=$ac_cv_path_aros_host_ld
4388 if test -n "$aros_host_ld"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4390 $as_echo "$aros_host_ld" >&6; }
4391 else
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
4398 if test "$aros_host_ld" = ""; then
4399 # Extract the first word of "ld", so it can be a program name with args.
4400 set dummy ld; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if ${ac_cv_path_aros_host_ld+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 case $aros_host_ld in
4407 [\\/]* | ?:[\\/]*)
4408 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4422 done
4423 done
4424 IFS=$as_save_IFS
4427 esac
4429 aros_host_ld=$ac_cv_path_aros_host_ld
4430 if test -n "$aros_host_ld"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4432 $as_echo "$aros_host_ld" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4440 if test "$aros_host_ld" = ""; then
4441 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4443 aros_host_make="make"
4444 aros_host_cflags=$CFLAGS
4445 aros_host_cxxflags=$CXXFLAGS
4446 aros_host_ldflags=$LDFLAGS
4447 aros_host_debug="-g -O0"
4448 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4449 aros_host_mkargs="--no-print-directory"
4450 aros_host_exe_suffix="$EXEEXT"
4451 aros_host_lib_suffix=""
4453 # Ignore all compliance, AROS ROMs = 0
4454 # KickStart v1.0 = 30
4455 # KickStart v1.3 = 34
4456 # KickStart v2.0 = 37
4457 # KickStart v3.0 = 39
4458 # KickStart v3.1 = 40
4459 # AmigaOS v3.5 = 44
4460 aros_amigaos_compliance=0
4462 for ac_prog in aclocal aclocal19 aclocal-1.9
4464 # Extract the first word of "$ac_prog", so it can be a program name with args.
4465 set dummy $ac_prog; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 if test -n "$aros_host_aclocal"; then
4472 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4473 else
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 ac_cv_prog_aros_host_aclocal="$ac_prog"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4485 done
4486 done
4487 IFS=$as_save_IFS
4491 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4492 if test -n "$aros_host_aclocal"; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4494 $as_echo "$aros_host_aclocal" >&6; }
4495 else
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4501 test -n "$aros_host_aclocal" && break
4502 done
4504 for ac_prog in autoconf autoconf259 autoconf253
4506 # Extract the first word of "$ac_prog", so it can be a program name with args.
4507 set dummy $ac_prog; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -n "$aros_host_autoconf"; then
4514 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523 ac_cv_prog_aros_host_autoconf="$ac_prog"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4527 done
4528 done
4529 IFS=$as_save_IFS
4533 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4534 if test -n "$aros_host_autoconf"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4536 $as_echo "$aros_host_autoconf" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4543 test -n "$aros_host_autoconf" && break
4544 done
4546 for ac_prog in autoheader autoheader259 autoheader253
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 if test -n "$aros_host_autoheader"; then
4556 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_prog_aros_host_autoheader="$ac_prog"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4569 done
4570 done
4571 IFS=$as_save_IFS
4575 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4576 if test -n "$aros_host_autoheader"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4578 $as_echo "$aros_host_autoheader" >&6; }
4579 else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4585 test -n "$aros_host_autoheader" && break
4586 done
4588 for ac_prog in automake automake19 automake-1.9
4590 # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_aros_host_automake+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$aros_host_automake"; then
4598 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_aros_host_automake="$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4611 done
4612 done
4613 IFS=$as_save_IFS
4617 aros_host_automake=$ac_cv_prog_aros_host_automake
4618 if test -n "$aros_host_automake"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4620 $as_echo "$aros_host_automake" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4627 test -n "$aros_host_automake" && break
4628 done
4631 if test "$aros_host_aclocal" = ""; then
4632 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4634 if test "$aros_host_automake" = ""; then
4635 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4638 case "$aros_host_cc" in
4639 *gcc*)
4640 aros_host_cc_pipe="-pipe"
4642 icc)
4643 aros_host_cc_pipe=""
4646 aros_host_cc_pipe=""
4648 esac
4650 aros_kernel_cc_includes=""
4651 aros_target_cc_includes=""
4652 host_cc_elf=yes
4654 # ----------------------------------------------------------------------------------------
4655 # Host-specific defaults
4657 # This is the main host configuration section. It is where the host
4658 # can change the values of any variables it needs to change. We do
4659 # not look at anything that compiles to the target yet, we'll get
4660 # to that later.
4662 case "$host_os" in
4663 aros*)
4664 aros_host_arch="aros"
4665 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4666 case "$host_cpu" in
4667 *i?86*)
4668 aros_host_cpu="i386"
4670 *x86_64*)
4671 aros_host_cpu="x86_64"
4673 *powerpc*)
4674 aros_host_cpu="ppc"
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4678 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4679 aros_host_cpu="$host_cpu"
4681 esac
4684 linux*)
4685 aros_host_arch="linux"
4686 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4687 android_build_os="linux-x86"
4688 android_tool="android"
4689 default_android_sdk="/opt/android-sdk-linux_x86"
4690 case "$host_cpu" in
4691 *i?86*)
4692 aros_host_cpu="i386"
4694 *x86_64*)
4695 aros_host_cpu="x86_64"
4697 *m68k*)
4698 aros_host_cpu="m68k"
4700 *powerpc*)
4701 aros_host_cpu="ppc"
4703 *arm*)
4704 aros_host_cpu="arm"
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4708 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4709 aros_host_cpu="$host_cpu"
4711 esac
4714 freebsd*)
4715 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4716 aros_host_make="gmake"
4717 aros_host_arch="freebsd"
4718 aros_host_cpu="i386"
4720 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4722 case $host_os in
4723 freebsd[234]*)
4724 aros_object_format="elf_i386"
4728 aros_object_format="elf_i386_fbsd"
4730 esac
4734 darwin*)
4735 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4736 aros_host_arch="darwin"
4737 host_cc_elf=no
4738 android_build_os="darwin-x86"
4739 android_tool="android"
4740 default_android_sdk="/android-sdk-mac_x86"
4741 case "$host_cpu" in
4742 *i?86*)
4743 aros_host_cpu="i386"
4745 *x86_64*)
4746 aros_host_cpu="x86_64"
4748 *powerpc*)
4749 aros_host_cpu="ppc"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4753 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4754 aros_host_cpu="$host_cpu"
4756 esac
4758 aros_host_ldflags="$aros_host_ldflags -liconv"
4762 dragonfly*)
4763 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4764 aros_host_make="gmake"
4765 aros_host_arch="dragonfly"
4766 case $host_cpu in
4767 *i?86*)
4768 aros_host_cpu="i386"
4770 *amd64*)
4771 aros_host_cpu="x86_64"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4775 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4776 aros_host_cpu="$host_cpu"
4778 esac
4781 netbsd*)
4782 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4783 aros_host_make="gmake"
4784 aros_host_arch="netbsd"
4785 case "$host_cpu" in
4786 *i?86*)
4787 aros_host_cpu="i386"
4789 *m68k*)
4790 aros_host_cpu="m68k"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4794 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4795 aros_host_cpu="$host_cpu"
4797 esac
4798 aros_host_lib_suffix=".0.0"
4801 openbsd*)
4802 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4803 aros_host_make="gmake"
4804 aros_host_arch="openbsd"
4805 case "$host_cpu" in
4806 *i?86*)
4807 aros_host_cpu="i386"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4811 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4812 aros_host_cpu="$host_cpu"
4814 esac
4817 solaris*)
4818 aros_host_arch="solaris"
4819 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4820 case "$host_cpu" in
4821 *i?86*)
4822 aros_host_cpu="i386"
4824 *sparc*)
4825 aros_host_cpu="sparc"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4829 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4830 aros_host_cpu="$host_cpu"
4832 esac
4835 morphos*)
4836 aros_host_arch="morphos"
4837 aros_host_cpu="ppc"
4838 host_cc_elf=no
4841 amiga*)
4842 aros_host_arch="amiga"
4843 host_cc_elf=no
4844 SORT="/gg/bin/sort"
4845 TEST="/gg/bin/test"
4846 UNIQ="/gg/bin/uniq"
4847 FOR="for"
4848 TOUCH="/gg/bin/touch"
4849 case "$host_cpu" in
4850 *m68k*)
4851 aros_host_cpu="m68k"
4853 *powerpc*)
4854 aros_host_cpu="ppc"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4858 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4859 aros_host_cpu="$host_cpu"
4861 esac
4864 cygwin*)
4865 aros_host_arch="cygwin"
4866 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4867 host_cc_elf=no
4868 android_build_os="windows"
4869 android_tool="android.bat"
4870 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4872 case "$host_cpu" in
4873 *i?86*)
4874 aros_host_cpu="i386"
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4878 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4879 aros_host_cpu="$host_cpu"
4881 esac
4884 mingw32*)
4885 aros_host_arch="mingw32"
4886 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4887 host_cc_elf=no
4888 android_build_os="windows"
4889 android_tool="android.bat"
4890 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4892 case "$host_cpu" in
4893 *i?86*)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4896 $as_echo_n "checking for Windows native gcc target... " >&6; }
4897 host_cpu=`gcc -dumpmachine`
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4899 $as_echo "$host_cpu" >&6; }
4902 esac
4904 case "$host_cpu" in
4905 *i?86*)
4906 aros_host_cpu="i386"
4909 mingw32*)
4910 aros_host_cpu="i386"
4913 *x86_64*)
4914 aros_host_cpu="x86_64"
4915 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4920 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4921 aros_host_cpu="$host_cpu"
4923 esac
4926 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4928 esac
4930 # Extract the first word of "ar", so it can be a program name with args.
4931 set dummy ar; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_prog_aros_host_ar+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 if test -n "$aros_host_ar"; then
4938 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 ac_cv_prog_aros_host_ar="ar cr"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4951 done
4952 done
4953 IFS=$as_save_IFS
4957 aros_host_ar=$ac_cv_prog_aros_host_ar
4958 if test -n "$aros_host_ar"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4960 $as_echo "$aros_host_ar" >&6; }
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4967 if test "$aros_host_ar" = ""; then
4968 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4970 # Extract the first word of "ranlib", so it can be a program name with args.
4971 set dummy ranlib; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 if test -n "$aros_host_ranlib"; then
4978 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987 ac_cv_prog_aros_host_ranlib="ranlib "
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4991 done
4992 done
4993 IFS=$as_save_IFS
4997 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4998 if test -n "$aros_host_ranlib"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5000 $as_echo "$aros_host_ranlib" >&6; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5007 if test "$aros_host_ranlib" = ""; then
5008 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5010 # Extract the first word of "strip", so it can be a program name with args.
5011 set dummy strip; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_aros_host_strip+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$aros_host_strip"; then
5018 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027 ac_cv_prog_aros_host_strip="strip "
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5031 done
5032 done
5033 IFS=$as_save_IFS
5037 aros_host_strip=$ac_cv_prog_aros_host_strip
5038 if test -n "$aros_host_strip"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5040 $as_echo "$aros_host_strip" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5047 if test "$aros_host_strip" = ""; then
5048 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5051 # Extract the first word of "rm", so it can be a program name with args.
5052 set dummy rm; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_RM+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$RM"; then
5059 ac_cv_prog_RM="$RM" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_RM="rm -rf"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5078 RM=$ac_cv_prog_RM
5079 if test -n "$RM"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5081 $as_echo "$RM" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5088 if test "$RM" = ""; then
5089 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5091 # Extract the first word of "cp", so it can be a program name with args.
5092 set dummy cp; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_prog_CP+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$CP"; then
5099 ac_cv_prog_CP="$CP" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_CP="cp "
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 CP=$ac_cv_prog_CP
5119 if test -n "$CP"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5121 $as_echo "$CP" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5128 if test "$CP" = ""; then
5129 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5131 # Extract the first word of "mv", so it can be a program name with args.
5132 set dummy mv; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_MV+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$MV"; then
5139 ac_cv_prog_MV="$MV" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_MV="mv "
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 MV=$ac_cv_prog_MV
5159 if test -n "$MV"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5161 $as_echo "$MV" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5168 if test "$MV" = ""; then
5169 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5171 # Extract the first word of "echo", so it can be a program name with args.
5172 set dummy echo; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_ECHO+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$ECHO"; then
5179 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_ECHO="echo "
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5192 done
5193 done
5194 IFS=$as_save_IFS
5198 ECHO=$ac_cv_prog_ECHO
5199 if test -n "$ECHO"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5201 $as_echo "$ECHO" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5208 if test "$ECHO" = ""; then
5209 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5211 # Extract the first word of "mkdir", so it can be a program name with args.
5212 set dummy mkdir; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_MKDIR+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$MKDIR"; then
5219 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_MKDIR="mkdir -p"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5238 MKDIR=$ac_cv_prog_MKDIR
5239 if test -n "$MKDIR"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5241 $as_echo "$MKDIR" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5248 if test "$MKDIR" = ""; then
5249 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5251 # Extract the first word of "touch", so it can be a program name with args.
5252 set dummy touch; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_TOUCH+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -n "$TOUCH"; then
5259 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_prog_TOUCH="touch "
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5272 done
5273 done
5274 IFS=$as_save_IFS
5278 TOUCH=$ac_cv_prog_TOUCH
5279 if test -n "$TOUCH"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5281 $as_echo "$TOUCH" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5288 if test "$TOUCH" = ""; then
5289 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5291 # Extract the first word of "sort", so it can be a program name with args.
5292 set dummy sort; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_SORT+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$SORT"; then
5299 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_SORT="sort "
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5314 IFS=$as_save_IFS
5318 SORT=$ac_cv_prog_SORT
5319 if test -n "$SORT"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5321 $as_echo "$SORT" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5328 if test "$SORT" = ""; then
5329 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5331 # Extract the first word of "uniq", so it can be a program name with args.
5332 set dummy uniq; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_prog_UNIQ+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$UNIQ"; then
5339 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_UNIQ="uniq "
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5352 done
5353 done
5354 IFS=$as_save_IFS
5358 UNIQ=$ac_cv_prog_UNIQ
5359 if test -n "$UNIQ"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5361 $as_echo "$UNIQ" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5368 if test "$UNIQ" = ""; then
5369 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5371 # Extract the first word of "true", so it can be a program name with args.
5372 set dummy true; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if ${ac_cv_prog_NOP+:} false; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 if test -n "$NOP"; then
5379 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_prog_NOP="true "
5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5392 done
5393 done
5394 IFS=$as_save_IFS
5398 NOP=$ac_cv_prog_NOP
5399 if test -n "$NOP"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5401 $as_echo "$NOP" >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5408 if test "$NOP" = ""; then
5409 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5411 # Extract the first word of "cat", so it can be a program name with args.
5412 set dummy cat; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if ${ac_cv_prog_CAT+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 if test -n "$CAT"; then
5419 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5420 else
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428 ac_cv_prog_CAT="cat "
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5432 done
5433 done
5434 IFS=$as_save_IFS
5438 CAT=$ac_cv_prog_CAT
5439 if test -n "$CAT"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5441 $as_echo "$CAT" >&6; }
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5448 if test "$CAT" = ""; then
5449 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5451 # Extract the first word of "bison", so it can be a program name with args.
5452 set dummy bison; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_BISON+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$BISON"; then
5459 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_prog_BISON="bison "
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5472 done
5473 done
5474 IFS=$as_save_IFS
5478 BISON=$ac_cv_prog_BISON
5479 if test -n "$BISON"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5481 $as_echo "$BISON" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5488 if test "$BISON" = ""; then
5489 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5491 # Extract the first word of "flex", so it can be a program name with args.
5492 set dummy flex; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_FLEX+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$FLEX"; then
5499 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_prog_FLEX="flex "
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5512 done
5513 done
5514 IFS=$as_save_IFS
5518 FLEX=$ac_cv_prog_FLEX
5519 if test -n "$FLEX"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5521 $as_echo "$FLEX" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5528 if test "$FLEX" = ""; then
5529 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5531 # Extract the first word of "pngtopnm", so it can be a program name with args.
5532 set dummy pngtopnm; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$PNGTOPNM"; then
5539 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_PNGTOPNM="pngtopnm "
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5552 done
5553 done
5554 IFS=$as_save_IFS
5558 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5559 if test -n "$PNGTOPNM"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5561 $as_echo "$PNGTOPNM" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5568 if test "$PNGTOPNM" = ""; then
5569 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5571 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5572 set dummy ppmtoilbm; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -n "$PPMTOILBM"; then
5579 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5592 done
5593 done
5594 IFS=$as_save_IFS
5598 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5599 if test -n "$PPMTOILBM"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5601 $as_echo "$PPMTOILBM" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5608 if test "$PPMTOILBM" = ""; then
5609 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5611 # Extract the first word of "sed", so it can be a program name with args.
5612 set dummy sed; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_SED+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$SED"; then
5619 ac_cv_prog_SED="$SED" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_SED="sed "
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5632 done
5633 done
5634 IFS=$as_save_IFS
5638 SED=$ac_cv_prog_SED
5639 if test -n "$SED"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5641 $as_echo "$SED" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5648 if test "$SED" = ""; then
5649 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5651 # Extract the first word of "chmod", so it can be a program name with args.
5652 set dummy chmod; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_CHMOD+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$CHMOD"; then
5659 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_CHMOD="chmod "
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5672 done
5673 done
5674 IFS=$as_save_IFS
5678 CHMOD=$ac_cv_prog_CHMOD
5679 if test -n "$CHMOD"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5681 $as_echo "$CHMOD" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5688 if test "$CHMOD" = ""; then
5689 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5691 # Extract the first word of "patch", so it can be a program name with args.
5692 set dummy patch; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_PATCH+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$PATCH"; then
5699 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_PATCH="patch "
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5712 done
5713 done
5714 IFS=$as_save_IFS
5718 PATCH=$ac_cv_prog_PATCH
5719 if test -n "$PATCH"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5721 $as_echo "$PATCH" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5728 if test "$PATCH" = ""; then
5729 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5738 if test -n "$PYTHON"; then
5739 # If the user set $PYTHON, use it and don't search something else.
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5741 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5742 prog="import sys
5743 # split strings by '.' and convert to numeric. Append some zeros
5744 # because we need at least 4 digits for the hex conversion.
5745 # map returns an iterator in Python 3.0 and a list in 2.x
5746 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5747 minverhex = 0
5748 # xrange is not present in Python 3.0 and range returns an iterator
5749 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5750 sys.exit(sys.hexversion < minverhex)"
5751 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5752 ($PYTHON -c "$prog") >&5 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; then :
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5757 $as_echo "yes" >&6; }
5758 else
5759 as_fn_error $? "too old" "$LINENO" 5
5761 am_display_PYTHON=$PYTHON
5762 else
5763 # Otherwise, try each interpreter until we find one that satisfies
5764 # VERSION.
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5766 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5767 if ${am_cv_pathless_PYTHON+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5771 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
5772 test "$am_cv_pathless_PYTHON" = none && break
5773 prog="import sys
5774 # split strings by '.' and convert to numeric. Append some zeros
5775 # because we need at least 4 digits for the hex conversion.
5776 # map returns an iterator in Python 3.0 and a list in 2.x
5777 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5778 minverhex = 0
5779 # xrange is not present in Python 3.0 and range returns an iterator
5780 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5781 sys.exit(sys.hexversion < minverhex)"
5782 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5783 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; then :
5787 break
5789 done
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5792 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5793 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5794 if test "$am_cv_pathless_PYTHON" = none; then
5795 PYTHON=:
5796 else
5797 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5798 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_path_PYTHON+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 case $PYTHON in
5805 [\\/]* | ?:[\\/]*)
5806 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5820 done
5821 done
5822 IFS=$as_save_IFS
5825 esac
5827 PYTHON=$ac_cv_path_PYTHON
5828 if test -n "$PYTHON"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5830 $as_echo "$PYTHON" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5838 am_display_PYTHON=$am_cv_pathless_PYTHON
5842 if test "$PYTHON" = :; then
5843 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5844 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5848 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5849 if ${am_cv_python_version+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5855 $as_echo "$am_cv_python_version" >&6; }
5856 PYTHON_VERSION=$am_cv_python_version
5860 PYTHON_PREFIX='${prefix}'
5862 PYTHON_EXEC_PREFIX='${exec_prefix}'
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5867 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5868 if ${am_cv_python_platform+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5874 $as_echo "$am_cv_python_platform" >&6; }
5875 PYTHON_PLATFORM=$am_cv_python_platform
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5881 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5882 if ${am_cv_python_pythondir+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test "x$prefix" = xNONE
5886 then
5887 am_py_prefix=$ac_default_prefix
5888 else
5889 am_py_prefix=$prefix
5891 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`
5892 case $am_cv_python_pythondir in
5893 $am_py_prefix*)
5894 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5895 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5898 case $am_py_prefix in
5899 /usr|/System*) ;;
5901 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5903 esac
5905 esac
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5909 $as_echo "$am_cv_python_pythondir" >&6; }
5910 pythondir=$am_cv_python_pythondir
5914 pkgpythondir=\${pythondir}/$PACKAGE
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5918 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5919 if ${am_cv_python_pyexecdir+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test "x$exec_prefix" = xNONE
5923 then
5924 am_py_exec_prefix=$am_py_prefix
5925 else
5926 am_py_exec_prefix=$exec_prefix
5928 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`
5929 case $am_cv_python_pyexecdir in
5930 $am_py_exec_prefix*)
5931 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5932 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5935 case $am_py_exec_prefix in
5936 /usr|/System*) ;;
5938 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5940 esac
5942 esac
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5946 $as_echo "$am_cv_python_pyexecdir" >&6; }
5947 pyexecdir=$am_cv_python_pyexecdir
5951 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5961 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5962 if ${ac_cv_lib_png_png_read_png+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 ac_check_lib_save_LIBS=$LIBS
5966 LIBS="-lpng $LIBS"
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5973 #ifdef __cplusplus
5974 extern "C"
5975 #endif
5976 char png_read_png ();
5978 main ()
5980 return png_read_png ();
5982 return 0;
5984 _ACEOF
5985 if ac_fn_c_try_link "$LINENO"; then :
5986 ac_cv_lib_png_png_read_png=yes
5987 else
5988 ac_cv_lib_png_png_read_png=no
5990 rm -f core conftest.err conftest.$ac_objext \
5991 conftest$ac_exeext conftest.$ac_ext
5992 LIBS=$ac_check_lib_save_LIBS
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
5995 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
5996 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
5997 cat >>confdefs.h <<_ACEOF
5998 #define HAVE_LIBPNG 1
5999 _ACEOF
6001 LIBS="-lpng $LIBS"
6005 if test "$ac_cv_lib_png_png_read_png" = ""; then
6006 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6009 FOR=for
6011 IF=if
6013 TEST=test
6015 CMP=cmp
6019 # Check for some includes for the X11 HIDD and the kernel
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6022 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6023 if ${ac_cv_path_GREP+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 if test -z "$GREP"; then
6027 ac_path_GREP_found=false
6028 # Loop through the user's path and test for each of PROGNAME-LIST
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_prog in grep ggrep; do
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6037 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6038 # Check for GNU ac_path_GREP and select it if it is found.
6039 # Check for GNU $ac_path_GREP
6040 case `"$ac_path_GREP" --version 2>&1` in
6041 *GNU*)
6042 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6044 ac_count=0
6045 $as_echo_n 0123456789 >"conftest.in"
6046 while :
6048 cat "conftest.in" "conftest.in" >"conftest.tmp"
6049 mv "conftest.tmp" "conftest.in"
6050 cp "conftest.in" "conftest.nl"
6051 $as_echo 'GREP' >> "conftest.nl"
6052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6054 as_fn_arith $ac_count + 1 && ac_count=$as_val
6055 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6056 # Best one so far, save it but keep looking for a better one
6057 ac_cv_path_GREP="$ac_path_GREP"
6058 ac_path_GREP_max=$ac_count
6060 # 10*(2^10) chars as input seems more than enough
6061 test $ac_count -gt 10 && break
6062 done
6063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6064 esac
6066 $ac_path_GREP_found && break 3
6067 done
6068 done
6069 done
6070 IFS=$as_save_IFS
6071 if test -z "$ac_cv_path_GREP"; then
6072 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6074 else
6075 ac_cv_path_GREP=$GREP
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6080 $as_echo "$ac_cv_path_GREP" >&6; }
6081 GREP="$ac_cv_path_GREP"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6085 $as_echo_n "checking for egrep... " >&6; }
6086 if ${ac_cv_path_EGREP+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6090 then ac_cv_path_EGREP="$GREP -E"
6091 else
6092 if test -z "$EGREP"; then
6093 ac_path_EGREP_found=false
6094 # Loop through the user's path and test for each of PROGNAME-LIST
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_prog in egrep; do
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6103 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6104 # Check for GNU ac_path_EGREP and select it if it is found.
6105 # Check for GNU $ac_path_EGREP
6106 case `"$ac_path_EGREP" --version 2>&1` in
6107 *GNU*)
6108 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6110 ac_count=0
6111 $as_echo_n 0123456789 >"conftest.in"
6112 while :
6114 cat "conftest.in" "conftest.in" >"conftest.tmp"
6115 mv "conftest.tmp" "conftest.in"
6116 cp "conftest.in" "conftest.nl"
6117 $as_echo 'EGREP' >> "conftest.nl"
6118 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6120 as_fn_arith $ac_count + 1 && ac_count=$as_val
6121 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6122 # Best one so far, save it but keep looking for a better one
6123 ac_cv_path_EGREP="$ac_path_EGREP"
6124 ac_path_EGREP_max=$ac_count
6126 # 10*(2^10) chars as input seems more than enough
6127 test $ac_count -gt 10 && break
6128 done
6129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6130 esac
6132 $ac_path_EGREP_found && break 3
6133 done
6134 done
6135 done
6136 IFS=$as_save_IFS
6137 if test -z "$ac_cv_path_EGREP"; then
6138 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6140 else
6141 ac_cv_path_EGREP=$EGREP
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6147 $as_echo "$ac_cv_path_EGREP" >&6; }
6148 EGREP="$ac_cv_path_EGREP"
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6152 $as_echo_n "checking for ANSI C header files... " >&6; }
6153 if ${ac_cv_header_stdc+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158 #include <stdlib.h>
6159 #include <stdarg.h>
6160 #include <string.h>
6161 #include <float.h>
6164 main ()
6168 return 0;
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 ac_cv_header_stdc=yes
6173 else
6174 ac_cv_header_stdc=no
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 if test $ac_cv_header_stdc = yes; then
6179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 #include <string.h>
6184 _ACEOF
6185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6186 $EGREP "memchr" >/dev/null 2>&1; then :
6188 else
6189 ac_cv_header_stdc=no
6191 rm -f conftest*
6195 if test $ac_cv_header_stdc = yes; then
6196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <stdlib.h>
6201 _ACEOF
6202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6203 $EGREP "free" >/dev/null 2>&1; then :
6205 else
6206 ac_cv_header_stdc=no
6208 rm -f conftest*
6212 if test $ac_cv_header_stdc = yes; then
6213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6214 if test "$cross_compiling" = yes; then :
6216 else
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 #include <ctype.h>
6220 #include <stdlib.h>
6221 #if ((' ' & 0x0FF) == 0x020)
6222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6224 #else
6225 # define ISLOWER(c) \
6226 (('a' <= (c) && (c) <= 'i') \
6227 || ('j' <= (c) && (c) <= 'r') \
6228 || ('s' <= (c) && (c) <= 'z'))
6229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6230 #endif
6232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6234 main ()
6236 int i;
6237 for (i = 0; i < 256; i++)
6238 if (XOR (islower (i), ISLOWER (i))
6239 || toupper (i) != TOUPPER (i))
6240 return 2;
6241 return 0;
6243 _ACEOF
6244 if ac_fn_c_try_run "$LINENO"; then :
6246 else
6247 ac_cv_header_stdc=no
6249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6250 conftest.$ac_objext conftest.beam conftest.$ac_ext
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6256 $as_echo "$ac_cv_header_stdc" >&6; }
6257 if test $ac_cv_header_stdc = yes; then
6259 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6263 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6264 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6265 inttypes.h stdint.h unistd.h
6266 do :
6267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6268 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6270 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6271 cat >>confdefs.h <<_ACEOF
6272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6273 _ACEOF
6277 done
6280 for ac_header in sys/ipc.h sys/shm.h \
6281 sys/mmap.h sys/mman.h sysexits.h \
6282 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6284 do :
6285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6286 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6288 cat >>confdefs.h <<_ACEOF
6289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6290 _ACEOF
6294 done
6297 for ac_header in sys/mount.h
6298 do :
6299 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6301 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6302 cat >>confdefs.h <<_ACEOF
6303 #define HAVE_SYS_MOUNT_H 1
6304 _ACEOF
6308 done
6311 ac_header_dirent=no
6312 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6313 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6315 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6316 if eval \${$as_ac_Header+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <sys/types.h>
6322 #include <$ac_hdr>
6325 main ()
6327 if ((DIR *) 0)
6328 return 0;
6330 return 0;
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334 eval "$as_ac_Header=yes"
6335 else
6336 eval "$as_ac_Header=no"
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 eval ac_res=\$$as_ac_Header
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6342 $as_echo "$ac_res" >&6; }
6343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6344 cat >>confdefs.h <<_ACEOF
6345 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6346 _ACEOF
6348 ac_header_dirent=$ac_hdr; break
6351 done
6352 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6353 if test $ac_header_dirent = dirent.h; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6355 $as_echo_n "checking for library containing opendir... " >&6; }
6356 if ${ac_cv_search_opendir+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 ac_func_search_save_LIBS=$LIBS
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6363 /* Override any GCC internal prototype to avoid an error.
6364 Use char because int might match the return type of a GCC
6365 builtin and then its argument prototype would still apply. */
6366 #ifdef __cplusplus
6367 extern "C"
6368 #endif
6369 char opendir ();
6371 main ()
6373 return opendir ();
6375 return 0;
6377 _ACEOF
6378 for ac_lib in '' dir; do
6379 if test -z "$ac_lib"; then
6380 ac_res="none required"
6381 else
6382 ac_res=-l$ac_lib
6383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6385 if ac_fn_c_try_link "$LINENO"; then :
6386 ac_cv_search_opendir=$ac_res
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext
6390 if ${ac_cv_search_opendir+:} false; then :
6391 break
6393 done
6394 if ${ac_cv_search_opendir+:} false; then :
6396 else
6397 ac_cv_search_opendir=no
6399 rm conftest.$ac_ext
6400 LIBS=$ac_func_search_save_LIBS
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6403 $as_echo "$ac_cv_search_opendir" >&6; }
6404 ac_res=$ac_cv_search_opendir
6405 if test "$ac_res" != no; then :
6406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6412 $as_echo_n "checking for library containing opendir... " >&6; }
6413 if ${ac_cv_search_opendir+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 ac_func_search_save_LIBS=$LIBS
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6420 /* Override any GCC internal prototype to avoid an error.
6421 Use char because int might match the return type of a GCC
6422 builtin and then its argument prototype would still apply. */
6423 #ifdef __cplusplus
6424 extern "C"
6425 #endif
6426 char opendir ();
6428 main ()
6430 return opendir ();
6432 return 0;
6434 _ACEOF
6435 for ac_lib in '' x; do
6436 if test -z "$ac_lib"; then
6437 ac_res="none required"
6438 else
6439 ac_res=-l$ac_lib
6440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6442 if ac_fn_c_try_link "$LINENO"; then :
6443 ac_cv_search_opendir=$ac_res
6445 rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext
6447 if ${ac_cv_search_opendir+:} false; then :
6448 break
6450 done
6451 if ${ac_cv_search_opendir+:} false; then :
6453 else
6454 ac_cv_search_opendir=no
6456 rm conftest.$ac_ext
6457 LIBS=$ac_func_search_save_LIBS
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6460 $as_echo "$ac_cv_search_opendir" >&6; }
6461 ac_res=$ac_cv_search_opendir
6462 if test "$ac_res" != no; then :
6463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6470 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6471 if ${ac_cv_header_stat_broken+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 #include <sys/types.h>
6477 #include <sys/stat.h>
6479 #if defined S_ISBLK && defined S_IFDIR
6480 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6481 #endif
6483 #if defined S_ISBLK && defined S_IFCHR
6484 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6485 #endif
6487 #if defined S_ISLNK && defined S_IFREG
6488 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6489 #endif
6491 #if defined S_ISSOCK && defined S_IFREG
6492 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6493 #endif
6495 _ACEOF
6496 if ac_fn_c_try_compile "$LINENO"; then :
6497 ac_cv_header_stat_broken=no
6498 else
6499 ac_cv_header_stat_broken=yes
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6504 $as_echo "$ac_cv_header_stat_broken" >&6; }
6505 if test $ac_cv_header_stat_broken = yes; then
6507 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6512 $as_echo_n "checking for ANSI C header files... " >&6; }
6513 if ${ac_cv_header_stdc+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6518 #include <stdlib.h>
6519 #include <stdarg.h>
6520 #include <string.h>
6521 #include <float.h>
6524 main ()
6528 return 0;
6530 _ACEOF
6531 if ac_fn_c_try_compile "$LINENO"; then :
6532 ac_cv_header_stdc=yes
6533 else
6534 ac_cv_header_stdc=no
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 if test $ac_cv_header_stdc = yes; then
6539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6542 #include <string.h>
6544 _ACEOF
6545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6546 $EGREP "memchr" >/dev/null 2>&1; then :
6548 else
6549 ac_cv_header_stdc=no
6551 rm -f conftest*
6555 if test $ac_cv_header_stdc = yes; then
6556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 #include <stdlib.h>
6561 _ACEOF
6562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6563 $EGREP "free" >/dev/null 2>&1; then :
6565 else
6566 ac_cv_header_stdc=no
6568 rm -f conftest*
6572 if test $ac_cv_header_stdc = yes; then
6573 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6574 if test "$cross_compiling" = yes; then :
6576 else
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #include <ctype.h>
6580 #include <stdlib.h>
6581 #if ((' ' & 0x0FF) == 0x020)
6582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6584 #else
6585 # define ISLOWER(c) \
6586 (('a' <= (c) && (c) <= 'i') \
6587 || ('j' <= (c) && (c) <= 'r') \
6588 || ('s' <= (c) && (c) <= 'z'))
6589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6590 #endif
6592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6594 main ()
6596 int i;
6597 for (i = 0; i < 256; i++)
6598 if (XOR (islower (i), ISLOWER (i))
6599 || toupper (i) != TOUPPER (i))
6600 return 2;
6601 return 0;
6603 _ACEOF
6604 if ac_fn_c_try_run "$LINENO"; then :
6606 else
6607 ac_cv_header_stdc=no
6609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6610 conftest.$ac_objext conftest.beam conftest.$ac_ext
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6616 $as_echo "$ac_cv_header_stdc" >&6; }
6617 if test $ac_cv_header_stdc = yes; then
6619 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6624 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6625 if ${ac_cv_header_sys_wait_h+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630 #include <sys/types.h>
6631 #include <sys/wait.h>
6632 #ifndef WEXITSTATUS
6633 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6634 #endif
6635 #ifndef WIFEXITED
6636 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6637 #endif
6640 main ()
6642 int s;
6643 wait (&s);
6644 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6646 return 0;
6648 _ACEOF
6649 if ac_fn_c_try_compile "$LINENO"; then :
6650 ac_cv_header_sys_wait_h=yes
6651 else
6652 ac_cv_header_sys_wait_h=no
6654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6657 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6658 if test $ac_cv_header_sys_wait_h = yes; then
6660 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6665 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6666 if ${ac_cv_header_time+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 #include <sys/types.h>
6672 #include <sys/time.h>
6673 #include <time.h>
6676 main ()
6678 if ((struct tm *) 0)
6679 return 0;
6681 return 0;
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685 ac_cv_header_time=yes
6686 else
6687 ac_cv_header_time=no
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6692 $as_echo "$ac_cv_header_time" >&6; }
6693 if test $ac_cv_header_time = yes; then
6695 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6699 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6700 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6702 cat >>confdefs.h <<_ACEOF
6703 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6704 _ACEOF
6707 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6712 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6713 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6715 cat >>confdefs.h <<_ACEOF
6716 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6717 _ACEOF
6720 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6722 else
6723 case " $LIBOBJS " in
6724 *" fileblocks.$ac_objext "* ) ;;
6725 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6727 esac
6732 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6733 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6735 cat >>confdefs.h <<_ACEOF
6736 #define HAVE_STRUCT_STAT_ST_RDEV 1
6737 _ACEOF
6740 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6746 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6747 if ${ac_cv_struct_tm+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752 #include <sys/types.h>
6753 #include <time.h>
6756 main ()
6758 struct tm tm;
6759 int *p = &tm.tm_sec;
6760 return !p;
6762 return 0;
6764 _ACEOF
6765 if ac_fn_c_try_compile "$LINENO"; then :
6766 ac_cv_struct_tm=time.h
6767 else
6768 ac_cv_struct_tm=sys/time.h
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6773 $as_echo "$ac_cv_struct_tm" >&6; }
6774 if test $ac_cv_struct_tm = sys/time.h; then
6776 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6780 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6781 #include <$ac_cv_struct_tm>
6784 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6786 cat >>confdefs.h <<_ACEOF
6787 #define HAVE_STRUCT_TM_TM_ZONE 1
6788 _ACEOF
6793 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6795 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6797 else
6798 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6800 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6801 ac_have_decl=1
6802 else
6803 ac_have_decl=0
6806 cat >>confdefs.h <<_ACEOF
6807 #define HAVE_DECL_TZNAME $ac_have_decl
6808 _ACEOF
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6811 $as_echo_n "checking for tzname... " >&6; }
6812 if ${ac_cv_var_tzname+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817 #include <time.h>
6818 #if !HAVE_DECL_TZNAME
6819 extern char *tzname[];
6820 #endif
6823 main ()
6825 return tzname[0][0];
6827 return 0;
6829 _ACEOF
6830 if ac_fn_c_try_link "$LINENO"; then :
6831 ac_cv_var_tzname=yes
6832 else
6833 ac_cv_var_tzname=no
6835 rm -f core conftest.err conftest.$ac_objext \
6836 conftest$ac_exeext conftest.$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6839 $as_echo "$ac_cv_var_tzname" >&6; }
6840 if test $ac_cv_var_tzname = yes; then
6842 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6847 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6848 if test "x$ac_cv_type_off_t" = xyes; then :
6850 else
6852 cat >>confdefs.h <<_ACEOF
6853 #define off_t long int
6854 _ACEOF
6858 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6859 if test "x$ac_cv_type_pid_t" = xyes; then :
6861 else
6863 cat >>confdefs.h <<_ACEOF
6864 #define pid_t int
6865 _ACEOF
6869 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6870 if test "x$ac_cv_type_size_t" = xyes; then :
6872 else
6874 cat >>confdefs.h <<_ACEOF
6875 #define size_t unsigned int
6876 _ACEOF
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6881 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6882 if ${ac_cv_type_uid_t+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 #include <sys/types.h>
6889 _ACEOF
6890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6891 $EGREP "uid_t" >/dev/null 2>&1; then :
6892 ac_cv_type_uid_t=yes
6893 else
6894 ac_cv_type_uid_t=no
6896 rm -f conftest*
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6900 $as_echo "$ac_cv_type_uid_t" >&6; }
6901 if test $ac_cv_type_uid_t = no; then
6903 $as_echo "#define uid_t int" >>confdefs.h
6906 $as_echo "#define gid_t int" >>confdefs.h
6911 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6912 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6914 cat >>confdefs.h <<_ACEOF
6915 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6916 _ACEOF
6922 # Look for some functions
6923 for ac_func in getpagesize kqueue statfs statvfs \
6924 clone kse_create rfork_thread thr_create sa_register \
6925 getcontext makecontext setcontext sigaltstack swapcontext
6926 do :
6927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6928 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6929 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6930 cat >>confdefs.h <<_ACEOF
6931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6932 _ACEOF
6935 done
6941 for ac_header in $ac_header_list
6942 do :
6943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6944 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6947 cat >>confdefs.h <<_ACEOF
6948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6949 _ACEOF
6953 done
6962 for ac_func in getpagesize
6963 do :
6964 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6965 if test "x$ac_cv_func_getpagesize" = xyes; then :
6966 cat >>confdefs.h <<_ACEOF
6967 #define HAVE_GETPAGESIZE 1
6968 _ACEOF
6971 done
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6974 $as_echo_n "checking for working mmap... " >&6; }
6975 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 if test "$cross_compiling" = yes; then :
6979 ac_cv_func_mmap_fixed_mapped=no
6980 else
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 $ac_includes_default
6984 /* malloc might have been renamed as rpl_malloc. */
6985 #undef malloc
6987 /* Thanks to Mike Haertel and Jim Avera for this test.
6988 Here is a matrix of mmap possibilities:
6989 mmap private not fixed
6990 mmap private fixed at somewhere currently unmapped
6991 mmap private fixed at somewhere already mapped
6992 mmap shared not fixed
6993 mmap shared fixed at somewhere currently unmapped
6994 mmap shared fixed at somewhere already mapped
6995 For private mappings, we should verify that changes cannot be read()
6996 back from the file, nor mmap's back from the file at a different
6997 address. (There have been systems where private was not correctly
6998 implemented like the infamous i386 svr4.0, and systems where the
6999 VM page cache was not coherent with the file system buffer cache
7000 like early versions of FreeBSD and possibly contemporary NetBSD.)
7001 For shared mappings, we should conversely verify that changes get
7002 propagated back to all the places they're supposed to be.
7004 Grep wants private fixed already mapped.
7005 The main things grep needs to know about mmap are:
7006 * does it exist and is it safe to write into the mmap'd area
7007 * how to use it (BSD variants) */
7009 #include <fcntl.h>
7010 #include <sys/mman.h>
7012 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7013 char *malloc ();
7014 #endif
7016 /* This mess was copied from the GNU getpagesize.h. */
7017 #ifndef HAVE_GETPAGESIZE
7018 # ifdef _SC_PAGESIZE
7019 # define getpagesize() sysconf(_SC_PAGESIZE)
7020 # else /* no _SC_PAGESIZE */
7021 # ifdef HAVE_SYS_PARAM_H
7022 # include <sys/param.h>
7023 # ifdef EXEC_PAGESIZE
7024 # define getpagesize() EXEC_PAGESIZE
7025 # else /* no EXEC_PAGESIZE */
7026 # ifdef NBPG
7027 # define getpagesize() NBPG * CLSIZE
7028 # ifndef CLSIZE
7029 # define CLSIZE 1
7030 # endif /* no CLSIZE */
7031 # else /* no NBPG */
7032 # ifdef NBPC
7033 # define getpagesize() NBPC
7034 # else /* no NBPC */
7035 # ifdef PAGESIZE
7036 # define getpagesize() PAGESIZE
7037 # endif /* PAGESIZE */
7038 # endif /* no NBPC */
7039 # endif /* no NBPG */
7040 # endif /* no EXEC_PAGESIZE */
7041 # else /* no HAVE_SYS_PARAM_H */
7042 # define getpagesize() 8192 /* punt totally */
7043 # endif /* no HAVE_SYS_PARAM_H */
7044 # endif /* no _SC_PAGESIZE */
7046 #endif /* no HAVE_GETPAGESIZE */
7049 main ()
7051 char *data, *data2, *data3;
7052 const char *cdata2;
7053 int i, pagesize;
7054 int fd, fd2;
7056 pagesize = getpagesize ();
7058 /* First, make a file with some known garbage in it. */
7059 data = (char *) malloc (pagesize);
7060 if (!data)
7061 return 1;
7062 for (i = 0; i < pagesize; ++i)
7063 *(data + i) = rand ();
7064 umask (0);
7065 fd = creat ("conftest.mmap", 0600);
7066 if (fd < 0)
7067 return 2;
7068 if (write (fd, data, pagesize) != pagesize)
7069 return 3;
7070 close (fd);
7072 /* Next, check that the tail of a page is zero-filled. File must have
7073 non-zero length, otherwise we risk SIGBUS for entire page. */
7074 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7075 if (fd2 < 0)
7076 return 4;
7077 cdata2 = "";
7078 if (write (fd2, cdata2, 1) != 1)
7079 return 5;
7080 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7081 if (data2 == MAP_FAILED)
7082 return 6;
7083 for (i = 0; i < pagesize; ++i)
7084 if (*(data2 + i))
7085 return 7;
7086 close (fd2);
7087 if (munmap (data2, pagesize))
7088 return 8;
7090 /* Next, try to mmap the file at a fixed address which already has
7091 something else allocated at it. If we can, also make sure that
7092 we see the same garbage. */
7093 fd = open ("conftest.mmap", O_RDWR);
7094 if (fd < 0)
7095 return 9;
7096 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7097 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7098 return 10;
7099 for (i = 0; i < pagesize; ++i)
7100 if (*(data + i) != *(data2 + i))
7101 return 11;
7103 /* Finally, make sure that changes to the mapped area do not
7104 percolate back to the file as seen by read(). (This is a bug on
7105 some variants of i386 svr4.0.) */
7106 for (i = 0; i < pagesize; ++i)
7107 *(data2 + i) = *(data2 + i) + 1;
7108 data3 = (char *) malloc (pagesize);
7109 if (!data3)
7110 return 12;
7111 if (read (fd, data3, pagesize) != pagesize)
7112 return 13;
7113 for (i = 0; i < pagesize; ++i)
7114 if (*(data + i) != *(data3 + i))
7115 return 14;
7116 close (fd);
7117 return 0;
7119 _ACEOF
7120 if ac_fn_c_try_run "$LINENO"; then :
7121 ac_cv_func_mmap_fixed_mapped=yes
7122 else
7123 ac_cv_func_mmap_fixed_mapped=no
7125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7126 conftest.$ac_objext conftest.beam conftest.$ac_ext
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7131 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7132 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7134 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7137 rm -f conftest.mmap conftest.txt
7142 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7143 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7144 aros_config_ldflags=""
7146 aros_shared_default=yes
7148 aros_shared_cflags="-fPIC"
7149 aros_shared_aflags=""
7150 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7151 aros_kernel_ldflags="-Wl,-rpath,./lib"
7153 aros_kernel_ar_flags="cr"
7154 aros_target_ar_flags="cr"
7155 aros_target_nm_flags="-C -ul"
7156 aros_target_strip_flags="--strip-unneeded -R.comment"
7158 aros_compiler_libs=
7159 aros_arch_libs=
7161 aros_target_genmap="-Wl,-Map -Xlinker"
7163 # Native flavour stuff
7164 aros_serial_debug="0"
7166 # Palm native flavour stuff
7167 aros_palm_debug_hack="0"
7169 # Unix flavour stuff
7170 aros_nesting_supervisor="0"
7172 # Collect-aros stuff: "-ius" to ignore undefined symbols
7173 ignore_undefined_symbols=""
7175 # Check for X11 by default
7176 need_x11="auto"
7178 #-----------------------------------------------------------------------------
7181 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7182 # it switched on by default, and we use the host compiler, so it compiles AROS
7183 # code with this enabled resulting in link failures as we don't have support
7184 # for it.
7186 # We use two methods to disable it. For the host compiler (used to compile
7187 # some hosted modules), we test to see if the compiler supports stack
7188 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7189 # work on all platforms.
7191 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7192 # (this is done unconditionally, as it should have no effect on compilers
7193 # without the stack protection feature). This may be specific to the way that
7194 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7195 # strong enough to disable it in a generic way though, so we'll live with it
7196 # until another vendor ships GCC with it enabled in a different way, and deal
7197 # with it then.
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7201 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7202 save_cflags="$CFLAGS"
7203 CFLAGS="$CFLAGS -fno-stack-protector"
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7208 main ()
7212 return 0;
7214 _ACEOF
7215 if ac_fn_c_try_compile "$LINENO"; then :
7216 use_no_stack_protector="yes"
7217 else
7218 use_no_stack_protector="no"
7220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7222 $as_echo "$use_no_stack_protector" >&6; }
7223 if test "x-$use_no_stack_protector" = "x-yes" ; then
7224 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7226 CFLAGS="$save_cflags"
7228 #-----------------------------------------------------------------------------
7230 # Disable pointer-signedness warnings if the compiler recognises the option
7231 # (this only works for the host compiler at the moment)
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7234 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7235 save_cflags="$CFLAGS"
7236 CFLAGS="$CFLAGS -Wno-pointer-sign"
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7241 main ()
7245 return 0;
7247 _ACEOF
7248 if ac_fn_c_try_compile "$LINENO"; then :
7249 use_no_sign_warning="yes"
7250 else
7251 use_no_sign_warning="no"
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7255 $as_echo "$use_no_sign_warning" >&6; }
7256 if test "x-$use_no_sign_warning" = "x-yes" ; then
7257 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7259 CFLAGS="$save_cflags"
7261 #-----------------------------------------------------------------------------
7263 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7266 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7267 save_cflags="$CFLAGS"
7268 CFLAGS="$CFLAGS -fgnu89-inline"
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7273 main ()
7277 return 0;
7279 _ACEOF
7280 if ac_fn_c_try_compile "$LINENO"; then :
7281 use_gnu89_inline="yes"
7282 else
7283 use_gnu89_inline="no"
7285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7287 $as_echo "$use_gnu89_inline" >&6; }
7288 if test "x-$use_gnu89_inline" = "x-yes" ; then
7289 gnu89_inline="-fgnu89-inline"
7291 CFLAGS="$save_cflags"
7293 #-----------------------------------------------------------------------------
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7296 $as_echo_n "checking for type of build... " >&6; }
7297 # Check whether --enable-build_type was given.
7298 if test "${enable_build_type+set}" = set; then :
7299 enableval=$enable_build_type; build_type=$enableval
7300 else
7301 build_type="personal"
7305 if test "$build_type" = "nightly"; then
7306 build_type_string="NIGHTLY"
7307 elif test "$build_type" = "snapshot"; then
7308 build_type_string="SNAPSHOT"
7309 elif test "$build_type" = "milestone"; then
7310 build_type_string="MILESTONE"
7311 elif test "$build_type" = "release"; then
7312 build_type_string="RELEASE"
7313 else
7314 build_type_string="PERSONAL"
7315 build_type="personal"
7318 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7321 $as_echo "$build_type" >&6; }
7323 #-----------------------------------------------------------------------------
7324 all_debug_types="messages stack modules mungwall symbols"
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7327 $as_echo_n "checking which debug types to enable... " >&6; }
7328 # Check whether --enable-debug was given.
7329 if test "${enable_debug+set}" = set; then :
7330 enableval=$enable_debug; debug="$enableval"
7331 else
7332 debug=""
7336 if test "$debug" = "" -o "$debug" = "no"; then
7337 debug="none"
7338 elif test "$debug" = "yes"; then
7339 debug="all"
7342 if test "$debug" = "all" ; then
7343 debug="messages stack modules symbols"
7344 for d in $all_debug_types; do
7345 export aros_${d}_debug="1"
7346 done
7347 else
7348 for d in $all_debug_types; do
7349 export aros_${d}_debug="0"
7350 done
7353 if test "$debug" != "none"; then
7354 debug=`echo $debug | sed s/,/\ /g`
7355 for d in $debug; do
7356 found="0"
7357 for d2 in $all_debug_types; do
7358 if test "$d2" = "$d"; then
7359 found="1"
7360 break
7362 done
7363 if test "$found" = "0"; then
7364 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7366 export aros_${d}_debug="1"
7367 done
7368 aros_debug="yes"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7371 $as_echo "$debug" >&6; }
7373 if test "$aros_messages_debug" = "1"; then
7374 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7375 else
7376 aros_messages_debug=""
7378 if test "$aros_symbols_debug" = "1"; then
7379 aros_symbols_debug="-g"
7380 else
7381 aros_symbols_debug=""
7384 # These are the flags to pass when compiling debugged programs
7385 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7386 aros_debug_aflags=""
7387 aros_debug_ldflags="$aros_symbols_debug"
7389 #-----------------------------------------------------------------------------
7390 # Checking for distcc and ccache.
7392 # Always apply the transforms in this particular order. Basically you should
7393 # always run 'ccache distcc compiler' in that order for the best performance.
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7396 $as_echo_n "checking whether to enable distcc... " >&6; }
7397 # Check whether --enable-distcc was given.
7398 if test "${enable_distcc+set}" = set; then :
7399 enableval=$enable_distcc; distcc="$enableval"
7400 else
7401 distcc="no"
7404 if test "$distcc" != "" -a "$distcc" != "no"; then
7405 # AC_CHECK_PROG will print out the result in this case
7406 # Extract the first word of "distcc", so it can be a program name with args.
7407 set dummy distcc; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_path_DISTCC+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 case $DISTCC in
7414 [\\/]* | ?:[\\/]*)
7415 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7429 done
7430 done
7431 IFS=$as_save_IFS
7433 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7435 esac
7437 DISTCC=$ac_cv_path_DISTCC
7438 if test -n "$DISTCC"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7440 $as_echo "$DISTCC" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7453 $as_echo_n "checking whether to enable ccache... " >&6; }
7454 # Check whether --enable-ccache was given.
7455 if test "${enable_ccache+set}" = set; then :
7456 enableval=$enable_ccache; ccache="$enableval"
7457 else
7458 ccache="no"
7461 if test "$ccache" != "" -a "$ccache" != "no"; then
7462 # AC_CHECK_PROG will print out the result in this case
7463 # Extract the first word of "ccache", so it can be a program name with args.
7464 set dummy ccache; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if ${ac_cv_prog_CCACHE+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test -n "$CCACHE"; then
7471 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_prog_CCACHE="ccache"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7484 done
7485 done
7486 IFS=$as_save_IFS
7490 CCACHE=$ac_cv_prog_CCACHE
7491 if test -n "$CCACHE"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7493 $as_echo "$CCACHE" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7505 #-----------------------------------------------------------------------------
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7507 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7509 # Check whether --with-kernel-gcc-version was given.
7510 if test "${with_kernel_gcc_version+set}" = set; then :
7511 withval=$with_kernel_gcc_version; kernel_tool_version="-$withval"
7512 else
7513 kernel_tool_version=""
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7517 $as_echo "$kernel_tool_version" >&6; }
7519 #-----------------------------------------------------------------------------
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7521 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7523 # Check whether --with-gcc-version was given.
7524 if test "${with_gcc_version+set}" = set; then :
7525 withval=$with_gcc_version; target_tool_version="$withval"
7526 else
7527 target_tool_version="default"
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7531 $as_echo "$target_tool_version" >&6; }
7533 #-----------------------------------------------------------------------------
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7535 $as_echo_n "checking what optimization flags to use... " >&6; }
7537 # Check whether --with-optimization was given.
7538 if test "${with_optimization+set}" = set; then :
7539 withval=$with_optimization; optimization="$withval"
7540 else
7541 optimization="unknown"
7544 if test "$optimization" = "unknown"; then
7545 if test "$debug" != "none"; then
7546 optimization="-O0"
7547 else
7548 optimization="-O2"
7551 aros_config_cflags="$aros_config_cflags $optimization"
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7553 $as_echo "$optimization" >&6; }
7555 #-----------------------------------------------------------------------------
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7557 $as_echo_n "checking what paranoia flags to use... " >&6; }
7559 # Check whether --with-paranoia was given.
7560 if test "${with_paranoia+set}" = set; then :
7561 withval=$with_paranoia; paranoia_flags="$withval"
7562 else
7563 paranoia_flags="default"
7566 if test "$paranoia_flags" = "default"; then
7567 paranoia_flags=""
7568 else if test "$paranoia_flags" = "yes"; then
7569 paranoia_flags="-Wall -Werror"
7570 fi fi
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7572 $as_echo "$paranoia_flags" >&6; }
7573 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7575 #-----------------------------------------------------------------------------
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7577 $as_echo_n "checking what target variant to enable... " >&6; }
7578 # Check whether --enable-target_variant was given.
7579 if test "${enable_target_variant+set}" = set; then :
7580 enableval=$enable_target_variant; target_variant=$enableval
7581 else
7582 target_variant=""
7585 if test "$target_variant" = ""; then
7586 aros_target_variant=""
7587 aros_target_suffix=""
7588 enableval="none"
7589 else
7590 aros_target_variant="$target_variant"
7591 aros_target_suffix="-$target_variant"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7594 $as_echo "$enableval" >&6; }
7596 #-----------------------------------------------------------------------------
7597 # Target-specific defaults. You can override then on a per-target basis.
7599 # Bootloader name. Currently used by PC target.
7600 target_bootloader="none"
7602 #-----------------------------------------------------------------------------
7603 # Additional options for some specific targets
7605 case "$aros_target_variant" in
7606 ios)
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7608 $as_echo_n "checking XCode path... " >&6; }
7610 # Check whether --with-xcode was given.
7611 if test "${with_xcode+set}" = set; then :
7612 withval=$with_xcode; aros_xcode_path="$withval"
7613 else
7614 aros_xcode_path="/Developer"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7618 $as_echo "$aros_xcode_path" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7621 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7623 # Check whether --with-sdk-version was given.
7624 if test "${with_sdk_version+set}" = set; then :
7625 withval=$with_sdk_version; aros_sdk_version="$withval"
7626 else
7627 aros_sdk_version="4.1"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7631 $as_echo "$aros_sdk_version" >&6; }
7635 "android")
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7637 $as_echo_n "checking Android SDK path... " >&6; }
7639 # Check whether --with-sdk was given.
7640 if test "${with_sdk+set}" = set; then :
7641 withval=$with_sdk; aros_android_sdk="$withval"
7642 else
7643 aros_android_sdk=$default_android_sdk
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7647 $as_echo "$aros_android_sdk" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7650 $as_echo_n "checking Android NDK path... " >&6; }
7652 # Check whether --with-ndk was given.
7653 if test "${with_ndk+set}" = set; then :
7654 withval=$with_ndk; aros_android_ndk="$withval"
7655 else
7656 aros_android_ndk="none"
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7660 $as_echo "$aros_android_ndk" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7663 $as_echo_n "checking what Android SDK version to use... " >&6; }
7665 # Check whether --with-sdk-version was given.
7666 if test "${with_sdk_version+set}" = set; then :
7667 withval=$with_sdk_version; aros_sdk_version="$withval"
7668 else
7669 aros_sdk_version="12"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7673 $as_echo "$aros_sdk_version" >&6; }
7675 if test "$aros_android_ndk" != "none"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7677 $as_echo_n "checking what Android NDK version to use... " >&6; }
7679 # Check whether --with-ndk-version was given.
7680 if test "${with_ndk_version+set}" = set; then :
7681 withval=$with_ndk_version; aros_ndk_version="$withval"
7682 else
7683 aros_ndk_version="9"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7687 $as_echo "$aros_ndk_version" >&6; }
7690 export PATH="$aros_android_sdk/tools:$PATH"
7691 # Extract the first word of "$android_tool", so it can be a program name with args.
7692 set dummy $android_tool; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_path_android_tool+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 case $android_tool in
7699 [\\/]* | ?:[\\/]*)
7700 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 break 2
7714 done
7715 done
7716 IFS=$as_save_IFS
7719 esac
7721 android_tool=$ac_cv_path_android_tool
7722 if test -n "$android_tool"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7724 $as_echo "$android_tool" >&6; }
7725 else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7731 if test "$android_tool" = ""; then
7732 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7735 aros_android_level=android-$aros_sdk_version
7736 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7737 echo "Platform $aros_android_level is not installed in your SDK"
7738 echo "Use --with-sdk-version=<API level number> to select another platform version"
7739 echo "You can check what plaform versions are installed in your SDK"
7740 echo "by examining contents of $aros_android_sdk/platforms directory"
7741 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7744 # Extract the first word of "ant", so it can be a program name with args.
7745 set dummy ant; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_path_ant+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 case $ant in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7767 done
7768 done
7769 IFS=$as_save_IFS
7772 esac
7774 ant=$ac_cv_path_ant
7775 if test -n "$ant"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7777 $as_echo "$ant" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7784 if test "$ant" = ""; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7786 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7789 if test "$host_os" = "mingw32"; then
7790 android_tool="cmd //c $android_tool"
7794 esac
7796 #-----------------------------------------------------------------------------
7797 # External toolchains
7798 kernel_tool_prefix="none"
7799 aros_tool_prefix="none"
7800 elf_tool_prefix="${target_cpu}-elf-"
7802 # This is the target configuration switch.
7803 case "$target_os" in
7804 linux*)
7805 aros_target_arch="linux"
7806 aros_target_family="unix"
7807 case "$target_cpu" in
7808 *m68k*)
7809 aros_target_cpu="m68k"
7810 aros_object_format="m68kelf"
7811 aros_flavour="emulcompat"
7812 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7813 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7814 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7815 gcc_target_cpu="mc68000"
7817 *i?86*)
7818 aros_target_cpu="i386"
7819 aros_object_format="elf_i386"
7820 aros_flavour="emulation"
7821 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7822 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7823 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7824 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7825 aros_config_ldflags="-m32 -march=i486"
7826 aros_kernel_ldflags="-melf_i386"
7827 aros_default_wbdepth=8
7828 gcc_target_cpu="i386"
7829 pci_hidd_target="hidd-pci-linux"
7830 android_tool_dir_prefix="x86"
7831 android_tool_prefix="i686-android-linux"
7832 android_ndk_arch="x86"
7834 *x86_64*)
7835 aros_target_cpu="x86_64"
7836 aros_object_format="elf_x86_64"
7837 aros_flavour="emulation"
7838 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7839 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7840 aros_default_wbdepth=8
7841 pci_hidd_target="hidd-pci-linux"
7843 *powerpc*)
7844 aros_target_cpu="ppc"
7845 aros_object_format="elf32ppc"
7846 aros_flavour="emulation"
7847 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7848 aros_default_wbdepth=8
7849 gcc_target_cpu="ppc"
7851 # TODO
7852 # Same as powerpc, but I need this for the nightly build to work again.
7853 # Actually, the nightly should be made working with powerpc target.
7854 # That just was too much work for the moment, another week or two.
7855 *ppc*)
7856 aros_target_cpu="ppc"
7857 aros_object_format="elf32ppc"
7858 aros_flavour="emulation"
7859 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7860 aros_default_wbdepth=8
7861 gcc_target_cpu="ppc"
7863 *armhf*)
7864 aros_target_cpu="arm"
7865 target_cpu="arm"
7866 aros_object_format="armelf_linux_eabi"
7867 aros_flavour="emulation"
7868 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7869 gcc_target_cpu="arm"
7870 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7871 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7872 aros_arch_libs="-laeabi"
7873 gcc_default_fpu="vfpv3-d16"
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_linux_eabi"
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-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7913 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7914 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7915 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7916 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7917 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7919 need_x11=no
7920 x11_hidd_target=kernel-hidd-androidgfx-kobj
7921 # Disable implicit PIC mode
7922 aros_target_cflags="$aros_target_cflags -fno-pic"
7923 kernel_tool_prefix="$android_tool_prefix-"
7925 esac
7929 aros_target_arch="pc"
7930 aros_shared_default="no"
7931 target_bootloader="grub2"
7932 case "$target_cpu" in
7933 *i?86*)
7934 aros_target_cpu="i386"
7937 if test "$aros_object_format" = "" ; then
7938 aros_object_format="elf_i386"
7940 aros_flavour="standalone"
7941 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7942 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7943 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7944 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7945 aros_config_ldflags="-m32 -march=i486"
7946 aros_kernel_ldflags="-melf_i386"
7947 aros_default_wbwidth=640
7948 aros_default_wbheight=480
7949 gcc_target_cpu="i386"
7951 *x86_64*)
7952 aros_target_cpu="x86_64"
7953 aros_serial_debug=1
7954 if test "$aros_object_format" = "" ; then
7955 aros_object_format="elf_x86_64"
7957 aros_flavour="standalone"
7958 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7959 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7960 aros_kernel_ldflags=""
7961 aros_default_wbwidth=640
7962 aros_default_wbheight=480
7965 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7967 esac
7970 prep)
7971 aros_target_arch="prep"
7972 aros_shared_default="no"
7973 aros_target_cpu="ppc"
7974 aros_object_format="elf32ppc"
7975 aros_flavour="ppcnative"
7976 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7977 aros_kernel_ldflags=""
7978 aros_default_wbwidth=640
7979 aros_default_wbheight=480
7980 gcc_target_cpu="ppc"
7983 freebsd*)
7984 aros_target_arch="freebsd"
7985 aros_target_family="unix"
7986 aros_target_cpu="i386"
7987 aros_flavour="emulation"
7988 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7989 gcc_target_cpu="i386"
7991 aros_target_strip_flags="-x"
7994 darwin*)
7995 aros_target_arch="darwin"
7996 aros_target_family="unix"
7997 aros_flavour="emulation"
7998 case "$target_cpu" in
7999 *i?86*)
8000 aros_ios_platform="iPhoneSimulator"
8001 aros_target_cpu="i386"
8002 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8003 aros_kernel_ldflags=""
8004 aros_macosx_version="10.4"
8005 aros_default_wbdepth=8
8006 gcc_target_cpu="i386"
8007 aros_object_format="elf_i386"
8008 aros_kernel_ar_flags="-cr"
8009 aros_target_strip_flags="-x"
8010 kernel_tool_flags="-m32"
8012 *x86_64*)
8013 aros_target_cpu="x86_64"
8014 aros_object_format="elf_x86_64"
8015 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8016 aros_macosx_version="10.6"
8017 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8018 aros_kernel_cflags="-m64"
8019 aros_kernel_ldflags="-m64"
8020 aros_target_cflags="-mcmodel=large"
8021 aros_default_wbdepth=8
8022 aros_kernel_ar="ar"
8023 aros_kernel_ar_flags="-cr"
8024 aros_kernel_ld="ld"
8025 aros_kernel_as="as"
8026 aros_kernel_ranlib="ranlib"
8027 aros_kernel_nm="nm"
8028 aros_kernel_strip="strip"
8029 kernel_tool_prefix="i686-apple-darwin10-"
8031 *ppc*)
8032 aros_target_cpu="ppc"
8033 aros_object_format="elf32ppc"
8034 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8035 aros_kernel_ldflags=""
8036 aros_macosx_version="10.0"
8037 aros_default_wbdepth=8
8038 gcc_target_cpu="ppc"
8039 aros_kernel_ar="ar"
8040 aros_kernel_ar_flags="-cr"
8041 aros_kernel_ld="ld -arch ppc"
8042 aros_kernel_as="as -arch ppc"
8043 aros_kernel_ranlib="ranlib -arch ppc"
8044 aros_kernel_nm="nm -arch ppc"
8045 aros_kernel_strip="strip -arch ppc"
8046 kernel_tool_prefix="powerpc-apple-darwin10-"
8048 *arm*)
8049 aros_ios_platform="iPhoneOS"
8050 aros_target_cpu="arm"
8051 aros_object_format="armelf_linux_eabi"
8052 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8053 aros_arch_libs="-laeabi"
8054 aros_default_wbdepth=8
8055 gcc_target_cpu="arm"
8056 aros_kernel_ar="ar"
8057 aros_kernel_ar_flags="-cr"
8058 aros_kernel_ld="ld -arch arm"
8059 aros_kernel_ranlib="ranlib -arch arm"
8060 kernel_tool_prefix="arm-apple-darwin10-"
8061 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8064 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8066 esac
8067 case "$aros_target_variant" in
8068 ios)
8069 aros_ios_version="3.0"
8070 aros_default_wbwidth=320
8071 aros_default_wbheight=480
8072 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8073 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8074 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8075 need_x11=no
8076 # This is here because it may depend on iOS or SDK version
8077 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8078 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8079 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8082 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8083 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8085 esac
8088 dragonfly*)
8089 aros_target_arch="dragonfly"
8090 aros_target_family="unix"
8091 aros_flavour="emulation"
8092 case "$target_cpu" in
8093 *i?86*)
8094 aros_target_cpu="i386"
8095 aros_object_format="elf_i386"
8096 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8098 *x86_64*)
8099 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8100 aros_target_cpu="x86_64"
8101 aros_object_format="elf_x86_64"
8102 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8105 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8107 esac
8110 netbsd*)
8111 aros_target_arch="netbsd"
8112 aros_target_family="unix"
8113 case "$target_cpu" in
8114 *m68k*)
8115 aros_target_cpu="m68k"
8116 aros_object_format="m68kelf"
8117 aros_flavour="emulcompat"
8118 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8119 gcc_target_cpu="mc68000"
8121 *i?86*)
8122 aros_target_cpu="i386"
8123 aros_object_format="elf_i386"
8124 aros_flavour="emulation"
8125 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8126 aros_default_wbdepth=8
8127 gcc_target_cpu="i386"
8130 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8132 esac
8133 aros_target_genmap="-Wl,-M -Xlinker >"
8134 aros_flavour="emulation"
8135 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8138 openbsd*)
8139 aros_target_arch="openbsd"
8140 aros_target_family="unix"
8141 case "$target_cpu" in
8142 *i?86*)
8143 aros_target_cpu="i386"
8144 aros_object_format="elf_i386"
8145 aros_flavour="emulation"
8146 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8147 gcc_target_cpu="i386"
8150 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8152 esac
8153 aros_target_genmap="-Wl,-M -Xlinker >"
8154 aros_target_nm_flags="-u"
8155 aros_flavour="emulation"
8158 solaris*)
8159 aros_target_arch="solaris"
8160 aros_target_family="unix"
8161 case "$target_cpu" in
8162 *i?86*)
8163 aros_target_cpu="i386"
8164 aros_object_format="elf_i386"
8165 aros_flavour="emulation"
8166 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8167 aros_default_wbdepth=8
8168 gcc_target_cpu="i386"
8170 *sparc*)
8171 aros_target_cpu="sparc"
8172 aros_object_format="elf_sparc"
8173 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8174 gcc_target_cpu="sparc"
8177 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8179 esac
8180 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8181 aros_flavour="emulation"
8184 morphos*)
8185 aros_target_arch="morphos"
8186 aros_shared_default="no"
8187 aros_target_cpu="ppc"
8188 aros_object_format="elf_ppc"
8189 aros_flavour="nativecompat"
8190 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8191 gcc_target_cpu="ppc"
8194 sam440)
8195 aros_target_arch="sam440"
8196 aros_shared_default="no"
8197 aros_target_cpu="ppc"
8198 aros_object_format="elf32ppc"
8199 aros_flavour="ppcnative"
8200 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8201 aros_kernel_ldflags=""
8202 aros_default_wbwidth=1024
8203 aros_default_wbheight=768
8204 aros_default_wbdepth=24
8205 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8206 gcc_target_cpu="powerpc"
8209 efika)
8210 aros_target_arch="efika"
8211 aros_shared_default="no"
8212 aros_target_cpu="arm"
8213 aros_object_format="armelf_linux_eabi"
8214 aros_flavour="standalone"
8215 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8216 aros_kernel_ldflags=""
8217 aros_default_wbwidth=1024
8218 aros_default_wbheight=600
8219 aros_arch_libs="-laeabi"
8220 gcc_default_cpu="armv7-a"
8221 gcc_default_fpu="vfpv3"
8222 gcc_default_float_abi="softfp"
8223 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8224 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8227 chrp)
8228 aros_target_arch="chrp"
8229 aros_shared_default="no"
8230 aros_target_cpu="ppc"
8231 aros_object_format="elf32ppc"
8232 aros_flavour="ppcnative"
8233 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8234 aros_kernel_ldflags=""
8235 aros_default_wbwidth=640
8236 aros_default_wbheight=480
8237 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8238 gcc_target_cpu="powerpc"
8239 case "$aros_target_variant" in
8240 efika)
8241 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8243 esac
8246 r*pi)
8247 aros_flavour="standalone"
8248 aros_target_arch="raspi"
8249 aros_target_cpu="arm"
8250 aros_object_format="armelf_linux_eabi"
8251 aros_shared_default="no"
8252 aros_arch_libs="-laeabi"
8254 gcc_default_cpu="armv6"
8255 gcc_default_cpu_tune="arm1176jzf-s"
8256 case "$target_cpu" in
8257 *armhf*)
8258 gcc_default_fpu="vfp"
8259 gcc_default_float_abi="hard"
8261 *arm*)
8262 gcc_default_fpu="vfp"
8263 gcc_default_float_abi="softfp"
8266 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8268 esac
8270 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8271 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8272 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8273 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8274 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8277 r*pidzy)
8278 aros_flavour="standalone"
8279 aros_target_arch="raspidzy"
8280 aros_target_cpu="arm"
8281 aros_object_format="armelf_linux_eabi"
8282 aros_shared_default="no"
8283 aros_arch_libs="-laeabi"
8285 gcc_default_cpu="armv6"
8286 gcc_default_cpu_tune="arm1176jzf-s"
8287 case "$target_cpu" in
8288 *armhf*)
8289 gcc_default_fpu="vfp"
8290 gcc_default_float_abi="hard"
8292 *arm*)
8293 gcc_default_fpu="vfp"
8294 gcc_default_float_abi="softfp"
8297 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8299 esac
8301 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8302 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8303 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8304 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8305 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8308 amiga*)
8309 aros_target_arch="amiga"
8310 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8311 aros_shared_default="no"
8313 case "$target_cpu" in
8314 *m68k*)
8315 # Check whether --enable-amigaos_compliance was given.
8316 if test "${enable_amigaos_compliance+set}" = set; then :
8317 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8320 aros_enable_mmu=no
8321 aros_target_cpu="m68k"
8322 aros_object_format="m68kelf"
8323 aros_flavour="standcompat"
8324 gcc_target_cpu="m68000"
8325 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8326 aros_config_aflags="$aros_config_aflags"
8327 aros_target_strip_flags="-R.comment --strip-debug"
8328 aros_default_wbwidth=640
8329 aros_default_wbheight=256
8330 aros_default_wbdepth=2
8332 *ppc*)
8333 aros_cpu="ppc"
8334 aros_flavour="native"
8335 gcc_target_cpu="ppc"
8338 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8340 esac
8343 mingw*)
8344 aros_target_arch="mingw32"
8345 aros_shared_default="no"
8346 aros_flavour="emulation"
8347 aros_shared_cflags=""
8348 need_crosstools="yes"
8349 need_dlopen="no"
8350 rescomp="windres"
8351 case "$target_cpu" in
8352 *i?86*)
8353 aros_target_cpu="i386"
8354 aros_object_format="elf_i386"
8355 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8356 aros_default_wbdepth=8
8357 gcc_target_cpu="i386"
8359 kernel_tool_prefix="i386-mingw32-"
8361 *x86_64*)
8362 aros_target_cpu="x86_64"
8363 aros_object_format="elf_x86_64"
8364 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8365 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8366 aros_default_wbdepth=8
8367 kernel_tool_prefix="x86_64-w64-mingw32-"
8369 *arm*)
8370 aros_target_cpu="arm"
8371 aros_object_format="armelf_linux_eabi"
8372 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8373 aros_arch_libs="-laeabi"
8374 aros_default_wbdepth=8
8375 gcc_target_cpu="arm"
8376 gcc_default_float_abi="soft"
8377 kernel_tool_prefix="arm-mingw32ce-"
8378 aros_default_wbwidth=160
8379 aros_default_wbheight=160
8382 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8384 esac
8385 if test $host_os = "cygwin"; then
8386 aros_kernel_cflags="-mno-cygwin"
8389 pp*)
8390 aros_target_arch="pp"
8391 aros_shared_default="no"
8392 case "$target_cpu" in
8393 *m68k*)
8394 aros_target_cpu="m68k"
8395 aros_object_format="m68kelf"
8396 aros_flavour="palmnative"
8397 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8398 aros_default_wbwidth=160
8399 aros_default_wbheight=160
8400 aros_default_wbdepth=1
8401 aros_target_ar_flags="cru"
8402 aros_compiler_libs="-lgcc1"
8403 aros_shared_default=no
8404 aros_shared_cflags="-fpic"
8405 aros_shared_aflags=""
8406 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8407 aros_kernel_ldflags="-Wl,-rpath,./lib"
8408 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8409 aros_debug_aflags=""
8410 aros_debug_ldflags="$aros_symbols_debug"
8411 aros_mungwall_debug="0"
8412 aros_modules_debug="0"
8413 gcc_target_cpu="mc68000"
8414 ignore_undefined_symbols="-ius"
8417 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8419 esac
8422 mac*)
8423 aros_target_arch="mac"
8424 aros_shared_default="no"
8425 case "$target_cpu" in
8426 *m68k*)
8427 aros_target_cpu="m68k"
8428 aros_object_format="m68kelf"
8429 aros_flavour="mac68knative"
8430 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8431 aros_default_wbwidth=512
8432 aros_default_wbheight=384
8433 aros_default_wbdepth=8
8434 aros_target_ar_flags="cru"
8435 aros_compiler_libs="-lgcc1"
8436 aros_shared_default=no
8437 aros_shared_cflags="-fpic"
8438 aros_shared_aflags=""
8439 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8440 aros_kernel_ldflags="-Wl,-rpath,./lib"
8441 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8442 aros_debug_aflags=""
8443 aros_debug_ldflags="$aros_symbols_debug"
8444 aros_mungwall_debug="0"
8445 aros_modules_debug="0"
8446 gcc_target_cpu="mc68000"
8447 ignore_undefined_symbols="-ius"
8450 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8452 esac
8456 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8458 esac
8460 #-----------------------------------------------------------------------------
8461 crosstools_guess=yes
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8464 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8466 # Check whether --with-kernel-toolchain-prefix was given.
8467 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8468 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8472 $as_echo "$kernel_tool_prefix" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8475 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8477 # Check whether --with-elf-toolchain-prefix was given.
8478 if test "${with_elf_toolchain_prefix+set}" = set; then :
8479 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8480 crosstools_guess=no
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8484 $as_echo "$elf_tool_prefix" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8487 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8489 # Check whether --with-aros-toolchain was given.
8490 if test "${with_aros_toolchain+set}" = set; then :
8491 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8492 crosstools_guess=no
8495 if test "$aros_tool_prefix" = "yes" ; then
8496 aros_tool_prefix=$aros_target_cpu-aros-
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8499 $as_echo "$aros_tool_prefix" >&6; }
8501 #-----------------------------------------------------------------------------
8502 # Checking if we should build crosstools..
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8504 $as_echo_n "checking whether to build crosstools... " >&6; }
8505 # Check whether --enable-crosstools was given.
8506 if test "${enable_crosstools+set}" = set; then :
8507 enableval=$enable_crosstools; crosstools="$enableval"
8508 else
8509 crosstools="$crosstools_guess"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8513 $as_echo "$crosstools" >&6; }
8515 if test "${crosstools}" = "yes"; then
8516 if test "${crosstools_guess}" = "no"; then
8517 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8522 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8524 # Check whether --with-aros-toolchain-install was given.
8525 if test "${with_aros_toolchain_install+set}" = set; then :
8526 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8529 if test "x$aros_toolchain_install" = "x"; then
8530 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8531 else
8532 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8533 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8536 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8539 # Now process extra architecture-specific options.
8540 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8541 # as well as floating-point ABI.
8542 case "$aros_target_cpu" in
8543 arm)
8544 if test "$gcc_default_cpu" = ""; then
8545 gcc_default_cpu="armv6"
8547 if test "$gcc_default_fpu" = ""; then
8548 gcc_default_fpu="vfp"
8550 if test "$gcc_default_float_abi" = ""; then
8551 gcc_default_float_abi="softfp"
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8555 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8557 # Check whether --with-cpu was given.
8558 if test "${with_cpu+set}" = set; then :
8559 withval=$with_cpu; aros_gcc_cpu="$withval"
8560 else
8561 aros_gcc_cpu=$gcc_default_cpu
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8565 $as_echo "$aros_gcc_cpu" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8568 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8570 # Check whether --with-fpu was given.
8571 if test "${with_fpu+set}" = set; then :
8572 withval=$with_fpu; aros_gcc_fpu="$withval"
8573 else
8574 aros_gcc_fpu=$gcc_default_fpu
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8578 $as_echo "$aros_gcc_fpu" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8581 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8583 # Check whether --with-float was given.
8584 if test "${with_float+set}" = set; then :
8585 withval=$with_float; aros_gcc_float_abi="$withval"
8586 else
8587 aros_gcc_float_abi=$gcc_default_float_abi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8591 $as_echo "$aros_gcc_float_abi" >&6; }
8593 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"
8594 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"
8596 esac
8598 # Some formats need custom ELF specs.
8599 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8600 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8601 elf_specs_in=config/${aros_object_format}-specs.in
8602 else
8603 elf_specs_in=config/elf-specs.in
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8607 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8609 # Check whether --with-aros-gcc was given.
8610 if test "${with_aros_gcc+set}" = set; then :
8611 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8612 else
8613 aros_gcc_version=""
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8617 $as_echo "$aros_gcc_version" >&6; }
8619 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8620 # Since we override specs, we may need to put these defines there
8621 if test "$gcc_target_cpu" != ""; then
8622 gcc_target_cpu="-D__${gcc_target_cpu}__"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8626 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8628 # Check whether --with-portssources was given.
8629 if test "${with_portssources+set}" = set; then :
8630 withval=$with_portssources; with_portssrcdir=$withval
8631 else
8632 with_portssrcdir="default"
8635 if test "$with_portssrcdir" = "default"; then
8636 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8637 else
8638 AROS_PORTSSRCDIR="$with_portssrcdir"
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8641 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8644 $as_echo_n "checking which bootloader to use... " >&6; }
8646 # Check whether --with-bootloader was given.
8647 if test "${with_bootloader+set}" = set; then :
8648 withval=$with_bootloader; target_bootloader=$withval
8649 else
8650 target_bootloader=$target_bootloader
8653 if test "$target_bootloader" = "none"; then
8654 aros_target_bootloader=""
8655 else
8656 aros_target_bootloader="$target_bootloader"
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8659 $as_echo "$target_bootloader" >&6; }
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8662 $as_echo_n "checking which icon-set to use... " >&6; }
8664 # Check whether --with-iconset was given.
8665 if test "${with_iconset+set}" = set; then :
8666 withval=$with_iconset; target_iconset=$withval
8667 else
8668 target_iconset="default"
8671 if test "$target_iconset" = "default"; then
8672 aros_target_iconset="Gorilla"
8673 target_iconset="default (Gorilla)"
8674 else
8675 aros_target_iconset="$target_iconset"
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8678 $as_echo "$target_iconset" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8681 $as_echo_n "checking which GUI Theme to use... " >&6; }
8683 # Check whether --with-theme was given.
8684 if test "${with_theme+set}" = set; then :
8685 withval=$with_theme; target_guitheme=$withval
8686 else
8687 target_guitheme="default"
8690 if test "$target_guitheme" = "default"; then
8691 aros_target_guitheme="Ice"
8692 else
8693 aros_target_guitheme="$target_guitheme"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8696 $as_echo "$aros_target_guitheme" >&6; }
8698 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8699 # for target code)
8700 cross_compiling=no
8702 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8703 cross_compiling=yes
8706 if test "$aros_host_cpu" == "x86_64" ; then
8707 if test "$aros_target_cpu" == "i386" ; then
8708 cross_compiling=no
8712 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8713 if test "$aros_host_arch" != "$aros_target_arch" ; then
8714 cross_compiling=yes
8716 else
8717 if test "$host_cc_elf" = "no" ; then
8718 cross_compiling=yes
8722 if test "$cross_compiling" = "no" ; then
8723 kernel_tool_prefix=""
8724 if test "$host_cc_elf" = "yes" ; then
8725 elf_tool_prefix=""
8729 #######################################################################
8730 ## Compute what toolchains to use, and their paths ##
8731 #######################################################################
8733 # This takes, as input:
8734 # crosstools {yes,no}
8735 # kernel_tool_version {"",[version]}
8736 # aros_gcc_version {"",[version]}
8737 # kernel_tool_prefix {none,[some-arch-os-]}
8738 # target_tool_prefix ${aros_target_cpu}-aros-
8739 # aros_tool_prefix ${aros_target_cpu}-aros-
8741 # The output is
8742 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8743 # Where the 'kernel' binaries are located
8744 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8745 # Where the 'target' binaries are located
8746 # (not the symlink farm - that is aros_target_*!)
8748 # The rules are:
8749 # if crosstools then
8750 # if kernel_tools_prefix = "no-kernel-prefix-"
8751 # aros_kernel_* = crosstools cc paths
8752 # aros_kernel_cc = elf cc wrapper around crosstools cc
8753 # else
8754 # VALIDATE(${kernel_tools_prefix}*)
8755 # aros_kernel_* = ${kernel_tools_prefix}*
8756 # if ${kernel_tools_prefix}cc is an AROS gcc
8757 # aros_kernel_cc = ${kernel_tools_prefix}cc
8758 # else
8759 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8760 # fi
8761 # fi
8763 # orig_target_* = aros built crosstools
8764 # orig_target_cc = elf cc wrapper around crosstools cc
8765 # else
8766 # VALIDATE(${kernel_tools_prefix}*)
8768 # orig_target_* = aros_kernel_*
8769 # if aros_kernel_cc is an AROS gcc
8770 # orig_target_cc = aros_kernel_cc
8771 # else
8772 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8773 # fi
8774 # fi
8776 target_tool_prefix="${aros_target_cpu}-aros-"
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8779 $as_echo_n "checking which kernel tools... " >&6; }
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8781 $as_echo "$kernel_tool_prefix" >&6; };
8783 if test "$kernel_tool_prefix" = "none" ; then
8784 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8785 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8787 else
8788 # Kernel tools required - find them
8789 # Note that 'normally', aros_kernel_* overrides will be
8790 # empty, unless specified in the per-arch sections above.
8791 if test "x$aros_kernel_cpp" = "x"; then
8792 aros_kernel_cpp=${kernel_tool_prefix}cpp
8795 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8796 if test "$cross_compiling" = "yes" ; then
8797 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8798 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 case $aros_kernel_cpp in
8805 [\\/]* | ?:[\\/]*)
8806 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in $PATH
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
8815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8816 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8820 done
8821 done
8822 IFS=$as_save_IFS
8825 esac
8827 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8828 if test -n "$aros_kernel_cpp"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8830 $as_echo "$aros_kernel_cpp" >&6; }
8831 else
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8837 else
8838 if test "$GCC" = "yes"; then
8839 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8840 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8841 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 $as_echo_n "checking for $ac_word... " >&6; }
8844 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 case $aros_kernel_cpp in
8848 [\\/]* | ?:[\\/]*)
8849 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in `dirname $aros_gcc_cpp`
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8859 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8863 done
8864 done
8865 IFS=$as_save_IFS
8868 esac
8870 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8871 if test -n "$aros_kernel_cpp"; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8873 $as_echo "$aros_kernel_cpp" >&6; }
8874 else
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876 $as_echo "no" >&6; }
8881 if test "$aros_kernel_cpp" = ""; then
8882 # Extract the first word of "cpp", so it can be a program name with args.
8883 set dummy cpp; ac_word=$2
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8885 $as_echo_n "checking for $ac_word... " >&6; }
8886 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 case $aros_kernel_cpp in
8890 [\\/]* | ?:[\\/]*)
8891 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8897 IFS=$as_save_IFS
8898 test -z "$as_dir" && as_dir=.
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8901 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8903 break 2
8905 done
8906 done
8907 IFS=$as_save_IFS
8910 esac
8912 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8913 if test -n "$aros_kernel_cpp"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8915 $as_echo "$aros_kernel_cpp" >&6; }
8916 else
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8924 else
8925 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8926 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931 else
8932 case $aros_kernel_cpp in
8933 [\\/]* | ?:[\\/]*)
8934 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
8942 for ac_exec_ext in '' $ac_executable_extensions; do
8943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8944 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 break 2
8948 done
8949 done
8950 IFS=$as_save_IFS
8953 esac
8955 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8956 if test -n "$aros_kernel_cpp"; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8958 $as_echo "$aros_kernel_cpp" >&6; }
8959 else
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8967 if test "$aros_kernel_cpp" = ""; then
8968 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8970 if test "x$aros_kernel_cc" = "x"; then
8971 aros_kernel_cc=${kernel_tool_prefix}gcc
8974 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8975 if test "$cross_compiling" = "yes" ; then
8976 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8977 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 case $aros_kernel_cc in
8984 [\\/]* | ?:[\\/]*)
8985 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 for as_dir in $PATH
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8999 done
9000 done
9001 IFS=$as_save_IFS
9004 esac
9006 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9007 if test -n "$aros_kernel_cc"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9009 $as_echo "$aros_kernel_cc" >&6; }
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9016 else
9017 if test "$GCC" = "yes"; then
9018 aros_gcc_cc=`$CC -print-prog-name=cc`
9019 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9020 set dummy `basename $aros_gcc_cc`; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 case $aros_kernel_cc in
9027 [\\/]* | ?:[\\/]*)
9028 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in `dirname $aros_gcc_cc`
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9038 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9042 done
9043 done
9044 IFS=$as_save_IFS
9047 esac
9049 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9050 if test -n "$aros_kernel_cc"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9052 $as_echo "$aros_kernel_cc" >&6; }
9053 else
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9060 if test "$aros_kernel_cc" = ""; then
9061 # Extract the first word of "cc", so it can be a program name with args.
9062 set dummy cc; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 case $aros_kernel_cc in
9069 [\\/]* | ?:[\\/]*)
9070 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9080 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9084 done
9085 done
9086 IFS=$as_save_IFS
9089 esac
9091 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9092 if test -n "$aros_kernel_cc"; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9094 $as_echo "$aros_kernel_cc" >&6; }
9095 else
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9103 else
9104 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9105 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 case $aros_kernel_cc in
9112 [\\/]* | ?:[\\/]*)
9113 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9127 done
9128 done
9129 IFS=$as_save_IFS
9132 esac
9134 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9135 if test -n "$aros_kernel_cc"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9137 $as_echo "$aros_kernel_cc" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9146 if test "$aros_kernel_cc" = ""; then
9147 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9149 if test "x$aros_kernel_cxx" = "x"; then
9150 aros_kernel_cxx=${kernel_tool_prefix}g++
9153 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9154 if test "$cross_compiling" = "yes" ; then
9155 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9156 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 case $aros_kernel_cxx in
9163 [\\/]* | ?:[\\/]*)
9164 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $PATH
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9174 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9178 done
9179 done
9180 IFS=$as_save_IFS
9183 esac
9185 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9186 if test -n "$aros_kernel_cxx"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9188 $as_echo "$aros_kernel_cxx" >&6; }
9189 else
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9195 else
9196 if test "$GCC" = "yes"; then
9197 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9198 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9199 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 case $aros_kernel_cxx in
9206 [\\/]* | ?:[\\/]*)
9207 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in `dirname $aros_gcc_cxx`
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9217 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9221 done
9222 done
9223 IFS=$as_save_IFS
9226 esac
9228 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9229 if test -n "$aros_kernel_cxx"; then
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9231 $as_echo "$aros_kernel_cxx" >&6; }
9232 else
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9239 if test "$aros_kernel_cxx" = ""; then
9240 # Extract the first word of "cxx", so it can be a program name with args.
9241 set dummy cxx; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 case $aros_kernel_cxx in
9248 [\\/]* | ?:[\\/]*)
9249 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 for as_dir in $PATH
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9259 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9263 done
9264 done
9265 IFS=$as_save_IFS
9268 esac
9270 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9271 if test -n "$aros_kernel_cxx"; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9273 $as_echo "$aros_kernel_cxx" >&6; }
9274 else
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276 $as_echo "no" >&6; }
9282 else
9283 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9284 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286 $as_echo_n "checking for $ac_word... " >&6; }
9287 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 case $aros_kernel_cxx in
9291 [\\/]* | ?:[\\/]*)
9292 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 for as_dir in $PATH
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9302 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9306 done
9307 done
9308 IFS=$as_save_IFS
9311 esac
9313 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9314 if test -n "$aros_kernel_cxx"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9316 $as_echo "$aros_kernel_cxx" >&6; }
9317 else
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9325 # If it's set, make sure it's really there
9326 if test "x$aros_kernel_cxx" != "x" ; then
9327 if test "$aros_kernel_cxx" = ""; then
9328 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9332 if test "$aros_kernel_ld" = ""; then
9333 if test "$cross_compiling" = "yes" ; then
9334 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9335 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337 $as_echo_n "checking for $ac_word... " >&6; }
9338 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 case $aros_kernel_ld in
9342 [\\/]* | ?:[\\/]*)
9343 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9357 done
9358 done
9359 IFS=$as_save_IFS
9362 esac
9364 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9365 if test -n "$aros_kernel_ld"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9367 $as_echo "$aros_kernel_ld" >&6; }
9368 else
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9374 else
9375 if test "$GCC" = "yes"; then
9376 aros_gcc_ld=`$CC -print-prog-name=ld`
9377 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9378 set dummy `basename $aros_gcc_ld`; ac_word=$2
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380 $as_echo_n "checking for $ac_word... " >&6; }
9381 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 case $aros_kernel_ld in
9385 [\\/]* | ?:[\\/]*)
9386 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in `dirname $aros_gcc_ld`
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9396 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9400 done
9401 done
9402 IFS=$as_save_IFS
9405 esac
9407 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9408 if test -n "$aros_kernel_ld"; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9410 $as_echo "$aros_kernel_ld" >&6; }
9411 else
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 $as_echo "no" >&6; }
9418 if test "$aros_kernel_ld" = ""; then
9419 # Extract the first word of "ld", so it can be a program name with args.
9420 set dummy ld; ac_word=$2
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 $as_echo_n "checking for $ac_word... " >&6; }
9423 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 case $aros_kernel_ld in
9427 [\\/]* | ?:[\\/]*)
9428 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9438 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9442 done
9443 done
9444 IFS=$as_save_IFS
9447 esac
9449 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9450 if test -n "$aros_kernel_ld"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9452 $as_echo "$aros_kernel_ld" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9461 else
9462 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9463 set dummy $aros_kernel_ld; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 case $aros_kernel_ld in
9470 [\\/]* | ?:[\\/]*)
9471 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 for as_dir in $PATH
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9485 done
9486 done
9487 IFS=$as_save_IFS
9490 esac
9492 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9493 if test -n "$aros_kernel_ld"; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9495 $as_echo "$aros_kernel_ld" >&6; }
9496 else
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9498 $as_echo "no" >&6; }
9504 if test "$aros_kernel_ld" = ""; then
9505 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9508 if test "$aros_kernel_as" = ""; then
9509 if test "$cross_compiling" = "yes" ; then
9510 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9511 set dummy ${kernel_tool_prefix}as; ac_word=$2
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9513 $as_echo_n "checking for $ac_word... " >&6; }
9514 if ${ac_cv_path_aros_kernel_as+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 case $aros_kernel_as in
9518 [\\/]* | ?:[\\/]*)
9519 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9525 IFS=$as_save_IFS
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531 break 2
9533 done
9534 done
9535 IFS=$as_save_IFS
9538 esac
9540 aros_kernel_as=$ac_cv_path_aros_kernel_as
9541 if test -n "$aros_kernel_as"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9543 $as_echo "$aros_kernel_as" >&6; }
9544 else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 $as_echo "no" >&6; }
9550 else
9551 if test "$GCC" = "yes"; then
9552 aros_gcc_as=`$CC -print-prog-name=as`
9553 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9554 set dummy `basename $aros_gcc_as`; ac_word=$2
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556 $as_echo_n "checking for $ac_word... " >&6; }
9557 if ${ac_cv_path_aros_kernel_as+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 case $aros_kernel_as in
9561 [\\/]* | ?:[\\/]*)
9562 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566 for as_dir in `dirname $aros_gcc_as`
9568 IFS=$as_save_IFS
9569 test -z "$as_dir" && as_dir=.
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9572 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 break 2
9576 done
9577 done
9578 IFS=$as_save_IFS
9581 esac
9583 aros_kernel_as=$ac_cv_path_aros_kernel_as
9584 if test -n "$aros_kernel_as"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9586 $as_echo "$aros_kernel_as" >&6; }
9587 else
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 $as_echo "no" >&6; }
9594 if test "$aros_kernel_as" = ""; then
9595 # Extract the first word of "as", so it can be a program name with args.
9596 set dummy as; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if ${ac_cv_path_aros_kernel_as+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 case $aros_kernel_as in
9603 [\\/]* | ?:[\\/]*)
9604 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in $PATH
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9614 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9618 done
9619 done
9620 IFS=$as_save_IFS
9623 esac
9625 aros_kernel_as=$ac_cv_path_aros_kernel_as
9626 if test -n "$aros_kernel_as"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9628 $as_echo "$aros_kernel_as" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9637 else
9638 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9639 set dummy $aros_kernel_as; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if ${ac_cv_path_aros_kernel_as+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 case $aros_kernel_as in
9646 [\\/]* | ?:[\\/]*)
9647 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in $PATH
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
9655 for ac_exec_ext in '' $ac_executable_extensions; do
9656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9657 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659 break 2
9661 done
9662 done
9663 IFS=$as_save_IFS
9666 esac
9668 aros_kernel_as=$ac_cv_path_aros_kernel_as
9669 if test -n "$aros_kernel_as"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9671 $as_echo "$aros_kernel_as" >&6; }
9672 else
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9680 if test "$aros_kernel_as" = ""; then
9681 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9684 if test "$aros_kernel_ar" = ""; then
9685 if test "$cross_compiling" = "yes" ; then
9686 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9687 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 case $aros_kernel_ar in
9694 [\\/]* | ?:[\\/]*)
9695 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 for as_dir in $PATH
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9705 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 break 2
9709 done
9710 done
9711 IFS=$as_save_IFS
9714 esac
9716 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9717 if test -n "$aros_kernel_ar"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9719 $as_echo "$aros_kernel_ar" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9726 else
9727 if test "$GCC" = "yes"; then
9728 aros_gcc_ar=`$CC -print-prog-name=ar`
9729 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9730 set dummy `basename $aros_gcc_ar`; ac_word=$2
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 $as_echo_n "checking for $ac_word... " >&6; }
9733 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 case $aros_kernel_ar in
9737 [\\/]* | ?:[\\/]*)
9738 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in `dirname $aros_gcc_ar`
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9752 done
9753 done
9754 IFS=$as_save_IFS
9757 esac
9759 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9760 if test -n "$aros_kernel_ar"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9762 $as_echo "$aros_kernel_ar" >&6; }
9763 else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9770 if test "$aros_kernel_ar" = ""; then
9771 # Extract the first word of "ar", so it can be a program name with args.
9772 set dummy ar; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 case $aros_kernel_ar in
9779 [\\/]* | ?:[\\/]*)
9780 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9794 done
9795 done
9796 IFS=$as_save_IFS
9799 esac
9801 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9802 if test -n "$aros_kernel_ar"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9804 $as_echo "$aros_kernel_ar" >&6; }
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9813 else
9814 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9815 set dummy $aros_kernel_ar; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 case $aros_kernel_ar in
9822 [\\/]* | ?:[\\/]*)
9823 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9833 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9837 done
9838 done
9839 IFS=$as_save_IFS
9842 esac
9844 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9845 if test -n "$aros_kernel_ar"; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9847 $as_echo "$aros_kernel_ar" >&6; }
9848 else
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850 $as_echo "no" >&6; }
9856 if test "$aros_kernel_ar" = ""; then
9857 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9860 if test "$aros_kernel_ranlib" = ""; then
9861 if test "$cross_compiling" = "yes" ; then
9862 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9863 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 case $aros_kernel_ranlib in
9870 [\\/]* | ?:[\\/]*)
9871 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 for as_dir in $PATH
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9885 done
9886 done
9887 IFS=$as_save_IFS
9890 esac
9892 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9893 if test -n "$aros_kernel_ranlib"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9895 $as_echo "$aros_kernel_ranlib" >&6; }
9896 else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9902 else
9903 if test "$GCC" = "yes"; then
9904 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9905 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9906 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9908 $as_echo_n "checking for $ac_word... " >&6; }
9909 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9910 $as_echo_n "(cached) " >&6
9911 else
9912 case $aros_kernel_ranlib in
9913 [\\/]* | ?:[\\/]*)
9914 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 for as_dir in `dirname $aros_gcc_ranlib`
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9928 done
9929 done
9930 IFS=$as_save_IFS
9933 esac
9935 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9936 if test -n "$aros_kernel_ranlib"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9938 $as_echo "$aros_kernel_ranlib" >&6; }
9939 else
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 $as_echo "no" >&6; }
9946 if test "$aros_kernel_ranlib" = ""; then
9947 # Extract the first word of "ranlib", so it can be a program name with args.
9948 set dummy ranlib; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 case $aros_kernel_ranlib in
9955 [\\/]* | ?:[\\/]*)
9956 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9962 IFS=$as_save_IFS
9963 test -z "$as_dir" && as_dir=.
9964 for ac_exec_ext in '' $ac_executable_extensions; do
9965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9966 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 break 2
9970 done
9971 done
9972 IFS=$as_save_IFS
9975 esac
9977 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9978 if test -n "$aros_kernel_ranlib"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9980 $as_echo "$aros_kernel_ranlib" >&6; }
9981 else
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9989 else
9990 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9991 set dummy $aros_kernel_ranlib; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 case $aros_kernel_ranlib in
9998 [\\/]* | ?:[\\/]*)
9999 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10013 done
10014 done
10015 IFS=$as_save_IFS
10018 esac
10020 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10021 if test -n "$aros_kernel_ranlib"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10023 $as_echo "$aros_kernel_ranlib" >&6; }
10024 else
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10032 if test "$aros_kernel_ranlib" = ""; then
10033 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10036 if test "$aros_kernel_nm" = ""; then
10037 if test "$cross_compiling" = "yes" ; then
10038 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10039 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 case $aros_kernel_nm in
10046 [\\/]* | ?:[\\/]*)
10047 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10061 done
10062 done
10063 IFS=$as_save_IFS
10066 esac
10068 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10069 if test -n "$aros_kernel_nm"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10071 $as_echo "$aros_kernel_nm" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10078 else
10079 if test "$GCC" = "yes"; then
10080 aros_gcc_nm=`$CC -print-prog-name=nm`
10081 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10082 set dummy `basename $aros_gcc_nm`; ac_word=$2
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084 $as_echo_n "checking for $ac_word... " >&6; }
10085 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 case $aros_kernel_nm in
10089 [\\/]* | ?:[\\/]*)
10090 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in `dirname $aros_gcc_nm`
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10100 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 break 2
10104 done
10105 done
10106 IFS=$as_save_IFS
10109 esac
10111 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10112 if test -n "$aros_kernel_nm"; then
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10114 $as_echo "$aros_kernel_nm" >&6; }
10115 else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10122 if test "$aros_kernel_nm" = ""; then
10123 # Extract the first word of "nm", so it can be a program name with args.
10124 set dummy nm; ac_word=$2
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 $as_echo_n "checking for $ac_word... " >&6; }
10127 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10128 $as_echo_n "(cached) " >&6
10129 else
10130 case $aros_kernel_nm in
10131 [\\/]* | ?:[\\/]*)
10132 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10142 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10146 done
10147 done
10148 IFS=$as_save_IFS
10151 esac
10153 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10154 if test -n "$aros_kernel_nm"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10156 $as_echo "$aros_kernel_nm" >&6; }
10157 else
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10165 else
10166 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10167 set dummy $aros_kernel_nm; ac_word=$2
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169 $as_echo_n "checking for $ac_word... " >&6; }
10170 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 case $aros_kernel_nm in
10174 [\\/]* | ?:[\\/]*)
10175 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 break 2
10189 done
10190 done
10191 IFS=$as_save_IFS
10194 esac
10196 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10197 if test -n "$aros_kernel_nm"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10199 $as_echo "$aros_kernel_nm" >&6; }
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10208 if test "$aros_kernel_nm" = ""; then
10209 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10212 if test "$aros_kernel_strip" = ""; then
10213 if test "$cross_compiling" = "yes" ; then
10214 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10215 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 case $aros_kernel_strip in
10222 [\\/]* | ?:[\\/]*)
10223 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10233 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10237 done
10238 done
10239 IFS=$as_save_IFS
10242 esac
10244 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10245 if test -n "$aros_kernel_strip"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10247 $as_echo "$aros_kernel_strip" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10254 else
10255 if test "$GCC" = "yes"; then
10256 aros_gcc_strip=`$CC -print-prog-name=strip`
10257 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10258 set dummy `basename $aros_gcc_strip`; ac_word=$2
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 case $aros_kernel_strip in
10265 [\\/]* | ?:[\\/]*)
10266 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in `dirname $aros_gcc_strip`
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10276 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 break 2
10280 done
10281 done
10282 IFS=$as_save_IFS
10285 esac
10287 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10288 if test -n "$aros_kernel_strip"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10290 $as_echo "$aros_kernel_strip" >&6; }
10291 else
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10298 if test "$aros_kernel_strip" = ""; then
10299 # Extract the first word of "strip", so it can be a program name with args.
10300 set dummy strip; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 case $aros_kernel_strip in
10307 [\\/]* | ?:[\\/]*)
10308 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10318 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10322 done
10323 done
10324 IFS=$as_save_IFS
10327 esac
10329 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10330 if test -n "$aros_kernel_strip"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10332 $as_echo "$aros_kernel_strip" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10341 else
10342 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10343 set dummy $aros_kernel_strip; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 case $aros_kernel_strip in
10350 [\\/]* | ?:[\\/]*)
10351 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10361 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10365 done
10366 done
10367 IFS=$as_save_IFS
10370 esac
10372 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10373 if test -n "$aros_kernel_strip"; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10375 $as_echo "$aros_kernel_strip" >&6; }
10376 else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10384 if test "$aros_kernel_strip" = ""; then
10385 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10388 # Objcopy and objdump are not required for the kernel
10389 # toolchain on many architectures.
10390 # So we'll look for them, but not make them strictly required.
10392 if test "$aros_kernel_objcopy" = ""; then
10393 if test "$cross_compiling" = "yes" ; then
10394 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10395 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10397 $as_echo_n "checking for $ac_word... " >&6; }
10398 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 case $aros_kernel_objcopy in
10402 [\\/]* | ?:[\\/]*)
10403 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10413 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10417 done
10418 done
10419 IFS=$as_save_IFS
10422 esac
10424 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10425 if test -n "$aros_kernel_objcopy"; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10427 $as_echo "$aros_kernel_objcopy" >&6; }
10428 else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; }
10434 else
10435 if test "$GCC" = "yes"; then
10436 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10437 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10438 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 case $aros_kernel_objcopy in
10445 [\\/]* | ?:[\\/]*)
10446 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in `dirname $aros_gcc_objcopy`
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10456 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10460 done
10461 done
10462 IFS=$as_save_IFS
10465 esac
10467 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10468 if test -n "$aros_kernel_objcopy"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10470 $as_echo "$aros_kernel_objcopy" >&6; }
10471 else
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10478 if test "$aros_kernel_objcopy" = ""; then
10479 # Extract the first word of "objcopy", so it can be a program name with args.
10480 set dummy objcopy; ac_word=$2
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482 $as_echo_n "checking for $ac_word... " >&6; }
10483 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 case $aros_kernel_objcopy in
10487 [\\/]* | ?:[\\/]*)
10488 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492 for as_dir in $PATH
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10498 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10502 done
10503 done
10504 IFS=$as_save_IFS
10507 esac
10509 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10510 if test -n "$aros_kernel_objcopy"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10512 $as_echo "$aros_kernel_objcopy" >&6; }
10513 else
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; }
10521 else
10522 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10523 set dummy $aros_kernel_objcopy; ac_word=$2
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525 $as_echo_n "checking for $ac_word... " >&6; }
10526 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10527 $as_echo_n "(cached) " >&6
10528 else
10529 case $aros_kernel_objcopy in
10530 [\\/]* | ?:[\\/]*)
10531 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10537 IFS=$as_save_IFS
10538 test -z "$as_dir" && as_dir=.
10539 for ac_exec_ext in '' $ac_executable_extensions; do
10540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10541 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 break 2
10545 done
10546 done
10547 IFS=$as_save_IFS
10550 esac
10552 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10553 if test -n "$aros_kernel_objcopy"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10555 $as_echo "$aros_kernel_objcopy" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10565 if test "$aros_kernel_objdump" = ""; then
10566 if test "$cross_compiling" = "yes" ; then
10567 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10568 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10570 $as_echo_n "checking for $ac_word... " >&6; }
10571 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 case $aros_kernel_objdump in
10575 [\\/]* | ?:[\\/]*)
10576 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10586 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 break 2
10590 done
10591 done
10592 IFS=$as_save_IFS
10595 esac
10597 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10598 if test -n "$aros_kernel_objdump"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10600 $as_echo "$aros_kernel_objdump" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10607 else
10608 if test "$GCC" = "yes"; then
10609 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10610 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10611 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613 $as_echo_n "checking for $ac_word... " >&6; }
10614 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 case $aros_kernel_objdump in
10618 [\\/]* | ?:[\\/]*)
10619 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in `dirname $aros_gcc_objdump`
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10633 done
10634 done
10635 IFS=$as_save_IFS
10638 esac
10640 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10641 if test -n "$aros_kernel_objdump"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10643 $as_echo "$aros_kernel_objdump" >&6; }
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10651 if test "$aros_kernel_objdump" = ""; then
10652 # Extract the first word of "objdump", so it can be a program name with args.
10653 set dummy objdump; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 case $aros_kernel_objdump in
10660 [\\/]* | ?:[\\/]*)
10661 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in $PATH
10667 IFS=$as_save_IFS
10668 test -z "$as_dir" && as_dir=.
10669 for ac_exec_ext in '' $ac_executable_extensions; do
10670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10671 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 break 2
10675 done
10676 done
10677 IFS=$as_save_IFS
10680 esac
10682 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10683 if test -n "$aros_kernel_objdump"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10685 $as_echo "$aros_kernel_objdump" >&6; }
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10694 else
10695 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10696 set dummy $aros_kernel_objdump; ac_word=$2
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698 $as_echo_n "checking for $ac_word... " >&6; }
10699 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 case $aros_kernel_objdump in
10703 [\\/]* | ?:[\\/]*)
10704 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10718 done
10719 done
10720 IFS=$as_save_IFS
10723 esac
10725 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10726 if test -n "$aros_kernel_objdump"; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10728 $as_echo "$aros_kernel_objdump" >&6; }
10729 else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; }
10737 if test "x${crosstools}" != "xyes" ; then
10738 if test "$aros_kernel_objcopy" = ""; then
10739 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10741 if test "$aros_kernel_objdump" = ""; then
10742 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10748 $as_echo_n "checking which target tools to use... " >&6; }
10749 if test "$crosstools" = "yes"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10751 $as_echo "$target_tool_prefix" >&6; }
10752 # We are are building AROS crosstools
10753 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10754 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10755 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10756 orig_target_cpp="${tmp_tool_prefix}cpp"
10757 orig_target_ld="${tmp_tool_prefix}ld"
10758 orig_target_as="${tmp_tool_prefix}as"
10759 orig_target_ar="${tmp_tool_prefix}ar"
10760 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10761 orig_target_nm="${tmp_tool_prefix}nm"
10762 orig_target_strip="${tmp_tool_prefix}strip"
10763 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10764 orig_target_objdump="${tmp_tool_prefix}objdump"
10765 else
10766 # Determine whether AROS or ELF tools should be used
10767 if test "$aros_tool_prefix" = "none"; then
10768 aros_tool_prefix="${elf_tool_prefix}"
10769 crosstools_cxx_target=tools-crosstools
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10773 $as_echo "$aros_tool_prefix" >&6; }
10774 # We are *not* building AROS crosstools - use the AROS or ELF tools
10776 if test "${aros_tool_prefix}cpp" = ""; then
10777 if test "$cross_compiling" = "yes" ; then
10778 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10779 set dummy ${target_tool_prefix}cpp; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if ${ac_cv_path_orig_target_cpp+:} false; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 case $orig_target_cpp in
10786 [\\/]* | ?:[\\/]*)
10787 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10797 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799 break 2
10801 done
10802 done
10803 IFS=$as_save_IFS
10806 esac
10808 orig_target_cpp=$ac_cv_path_orig_target_cpp
10809 if test -n "$orig_target_cpp"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10811 $as_echo "$orig_target_cpp" >&6; }
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10818 else
10819 if test "$GCC" = "yes"; then
10820 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10821 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10822 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824 $as_echo_n "checking for $ac_word... " >&6; }
10825 if ${ac_cv_path_orig_target_cpp+:} false; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 case $orig_target_cpp in
10829 [\\/]* | ?:[\\/]*)
10830 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in `dirname $aros_gcc_cpp`
10836 IFS=$as_save_IFS
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10840 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 break 2
10844 done
10845 done
10846 IFS=$as_save_IFS
10849 esac
10851 orig_target_cpp=$ac_cv_path_orig_target_cpp
10852 if test -n "$orig_target_cpp"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10854 $as_echo "$orig_target_cpp" >&6; }
10855 else
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857 $as_echo "no" >&6; }
10862 if test "$orig_target_cpp" = ""; then
10863 # Extract the first word of "cpp", so it can be a program name with args.
10864 set dummy cpp; ac_word=$2
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10866 $as_echo_n "checking for $ac_word... " >&6; }
10867 if ${ac_cv_path_orig_target_cpp+:} false; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 case $orig_target_cpp in
10871 [\\/]* | ?:[\\/]*)
10872 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876 for as_dir in $PATH
10878 IFS=$as_save_IFS
10879 test -z "$as_dir" && as_dir=.
10880 for ac_exec_ext in '' $ac_executable_extensions; do
10881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10882 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10884 break 2
10886 done
10887 done
10888 IFS=$as_save_IFS
10891 esac
10893 orig_target_cpp=$ac_cv_path_orig_target_cpp
10894 if test -n "$orig_target_cpp"; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10896 $as_echo "$orig_target_cpp" >&6; }
10897 else
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10905 else
10906 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10907 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909 $as_echo_n "checking for $ac_word... " >&6; }
10910 if ${ac_cv_path_orig_target_cpp+:} false; then :
10911 $as_echo_n "(cached) " >&6
10912 else
10913 case $orig_target_cpp in
10914 [\\/]* | ?:[\\/]*)
10915 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10925 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10929 done
10930 done
10931 IFS=$as_save_IFS
10934 esac
10936 orig_target_cpp=$ac_cv_path_orig_target_cpp
10937 if test -n "$orig_target_cpp"; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10939 $as_echo "$orig_target_cpp" >&6; }
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942 $as_echo "no" >&6; }
10948 if test "$orig_target_cpp" = ""; then
10949 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10952 if test "${aros_tool_prefix}gcc" = ""; then
10953 if test "$cross_compiling" = "yes" ; then
10954 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10955 set dummy ${target_tool_prefix}gcc; ac_word=$2
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10957 $as_echo_n "checking for $ac_word... " >&6; }
10958 if ${ac_cv_path_orig_target_cc+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960 else
10961 case $orig_target_cc in
10962 [\\/]* | ?:[\\/]*)
10963 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967 for as_dir in $PATH
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10973 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10977 done
10978 done
10979 IFS=$as_save_IFS
10982 esac
10984 orig_target_cc=$ac_cv_path_orig_target_cc
10985 if test -n "$orig_target_cc"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10987 $as_echo "$orig_target_cc" >&6; }
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10994 else
10995 if test "$GCC" = "yes"; then
10996 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10997 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10998 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11000 $as_echo_n "checking for $ac_word... " >&6; }
11001 if ${ac_cv_path_orig_target_cc+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 case $orig_target_cc in
11005 [\\/]* | ?:[\\/]*)
11006 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11010 for as_dir in `dirname $aros_gcc_gcc`
11012 IFS=$as_save_IFS
11013 test -z "$as_dir" && as_dir=.
11014 for ac_exec_ext in '' $ac_executable_extensions; do
11015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11016 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11018 break 2
11020 done
11021 done
11022 IFS=$as_save_IFS
11025 esac
11027 orig_target_cc=$ac_cv_path_orig_target_cc
11028 if test -n "$orig_target_cc"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11030 $as_echo "$orig_target_cc" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11038 if test "$orig_target_cc" = ""; then
11039 # Extract the first word of "gcc", so it can be a program name with args.
11040 set dummy gcc; ac_word=$2
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11042 $as_echo_n "checking for $ac_word... " >&6; }
11043 if ${ac_cv_path_orig_target_cc+:} false; then :
11044 $as_echo_n "(cached) " >&6
11045 else
11046 case $orig_target_cc in
11047 [\\/]* | ?:[\\/]*)
11048 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11052 for as_dir in $PATH
11054 IFS=$as_save_IFS
11055 test -z "$as_dir" && as_dir=.
11056 for ac_exec_ext in '' $ac_executable_extensions; do
11057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11058 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11060 break 2
11062 done
11063 done
11064 IFS=$as_save_IFS
11067 esac
11069 orig_target_cc=$ac_cv_path_orig_target_cc
11070 if test -n "$orig_target_cc"; then
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11072 $as_echo "$orig_target_cc" >&6; }
11073 else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 $as_echo "no" >&6; }
11081 else
11082 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
11083 set dummy ${aros_tool_prefix}gcc; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if ${ac_cv_path_orig_target_cc+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 case $orig_target_cc in
11090 [\\/]* | ?:[\\/]*)
11091 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11097 IFS=$as_save_IFS
11098 test -z "$as_dir" && as_dir=.
11099 for ac_exec_ext in '' $ac_executable_extensions; do
11100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11101 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103 break 2
11105 done
11106 done
11107 IFS=$as_save_IFS
11110 esac
11112 orig_target_cc=$ac_cv_path_orig_target_cc
11113 if test -n "$orig_target_cc"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11115 $as_echo "$orig_target_cc" >&6; }
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11124 if test "$orig_target_cc" = ""; then
11125 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11127 if test "x${crosstools_cxx_target}" = "x" ; then
11129 if test "${aros_tool_prefix}g++" = ""; then
11130 if test "$cross_compiling" = "yes" ; then
11131 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11132 set dummy ${target_tool_prefix}g++; ac_word=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if ${ac_cv_path_orig_target_cxx+:} false; then :
11136 $as_echo_n "(cached) " >&6
11137 else
11138 case $orig_target_cxx in
11139 [\\/]* | ?:[\\/]*)
11140 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11150 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 break 2
11154 done
11155 done
11156 IFS=$as_save_IFS
11159 esac
11161 orig_target_cxx=$ac_cv_path_orig_target_cxx
11162 if test -n "$orig_target_cxx"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11164 $as_echo "$orig_target_cxx" >&6; }
11165 else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11171 else
11172 if test "$GCC" = "yes"; then
11173 aros_gcc_g++=`$CC -print-prog-name=g++`
11174 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11175 set dummy `basename $aros_gcc_g++`; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if ${ac_cv_path_orig_target_cxx+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 case $orig_target_cxx in
11182 [\\/]* | ?:[\\/]*)
11183 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in `dirname $aros_gcc_g++`
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11193 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 break 2
11197 done
11198 done
11199 IFS=$as_save_IFS
11202 esac
11204 orig_target_cxx=$ac_cv_path_orig_target_cxx
11205 if test -n "$orig_target_cxx"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11207 $as_echo "$orig_target_cxx" >&6; }
11208 else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11215 if test "$orig_target_cxx" = ""; then
11216 # Extract the first word of "g++", so it can be a program name with args.
11217 set dummy g++; ac_word=$2
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219 $as_echo_n "checking for $ac_word... " >&6; }
11220 if ${ac_cv_path_orig_target_cxx+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 case $orig_target_cxx in
11224 [\\/]* | ?:[\\/]*)
11225 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11235 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11239 done
11240 done
11241 IFS=$as_save_IFS
11244 esac
11246 orig_target_cxx=$ac_cv_path_orig_target_cxx
11247 if test -n "$orig_target_cxx"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11249 $as_echo "$orig_target_cxx" >&6; }
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11258 else
11259 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11260 set dummy ${aros_tool_prefix}g++; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262 $as_echo_n "checking for $ac_word... " >&6; }
11263 if ${ac_cv_path_orig_target_cxx+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 case $orig_target_cxx in
11267 [\\/]* | ?:[\\/]*)
11268 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11282 done
11283 done
11284 IFS=$as_save_IFS
11287 esac
11289 orig_target_cxx=$ac_cv_path_orig_target_cxx
11290 if test -n "$orig_target_cxx"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11292 $as_echo "$orig_target_cxx" >&6; }
11293 else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11301 if test "$orig_target_cxx" = ""; then
11302 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11306 if test "${aros_tool_prefix}ld" = ""; then
11307 if test "$cross_compiling" = "yes" ; then
11308 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11309 set dummy ${target_tool_prefix}gcc; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_path_orig_target_ld+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 case $orig_target_ld in
11316 [\\/]* | ?:[\\/]*)
11317 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11331 done
11332 done
11333 IFS=$as_save_IFS
11336 esac
11338 orig_target_ld=$ac_cv_path_orig_target_ld
11339 if test -n "$orig_target_ld"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11341 $as_echo "$orig_target_ld" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11348 else
11349 if test "$GCC" = "yes"; then
11350 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11351 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11352 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if ${ac_cv_path_orig_target_ld+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 case $orig_target_ld in
11359 [\\/]* | ?:[\\/]*)
11360 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in `dirname $aros_gcc_gcc`
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11374 done
11375 done
11376 IFS=$as_save_IFS
11379 esac
11381 orig_target_ld=$ac_cv_path_orig_target_ld
11382 if test -n "$orig_target_ld"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11384 $as_echo "$orig_target_ld" >&6; }
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11392 if test "$orig_target_ld" = ""; then
11393 # Extract the first word of "gcc", so it can be a program name with args.
11394 set dummy gcc; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if ${ac_cv_path_orig_target_ld+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 case $orig_target_ld in
11401 [\\/]* | ?:[\\/]*)
11402 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11416 done
11417 done
11418 IFS=$as_save_IFS
11421 esac
11423 orig_target_ld=$ac_cv_path_orig_target_ld
11424 if test -n "$orig_target_ld"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11426 $as_echo "$orig_target_ld" >&6; }
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11435 else
11436 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11437 set dummy ${aros_tool_prefix}ld; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_orig_target_ld+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 case $orig_target_ld in
11444 [\\/]* | ?:[\\/]*)
11445 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11459 done
11460 done
11461 IFS=$as_save_IFS
11464 esac
11466 orig_target_ld=$ac_cv_path_orig_target_ld
11467 if test -n "$orig_target_ld"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11469 $as_echo "$orig_target_ld" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11478 if test "$orig_target_ld" = ""; then
11479 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11482 if test "${aros_tool_prefix}as" = ""; then
11483 if test "$cross_compiling" = "yes" ; then
11484 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11485 set dummy ${target_tool_prefix}as; ac_word=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if ${ac_cv_path_orig_target_as+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 case $orig_target_as in
11492 [\\/]* | ?:[\\/]*)
11493 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11503 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11507 done
11508 done
11509 IFS=$as_save_IFS
11512 esac
11514 orig_target_as=$ac_cv_path_orig_target_as
11515 if test -n "$orig_target_as"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11517 $as_echo "$orig_target_as" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11524 else
11525 if test "$GCC" = "yes"; then
11526 aros_gcc_as=`$CC -print-prog-name=as`
11527 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11528 set dummy `basename $aros_gcc_as`; ac_word=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if ${ac_cv_path_orig_target_as+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 case $orig_target_as in
11535 [\\/]* | ?:[\\/]*)
11536 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in `dirname $aros_gcc_as`
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11546 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11548 break 2
11550 done
11551 done
11552 IFS=$as_save_IFS
11555 esac
11557 orig_target_as=$ac_cv_path_orig_target_as
11558 if test -n "$orig_target_as"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11560 $as_echo "$orig_target_as" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11568 if test "$orig_target_as" = ""; then
11569 # Extract the first word of "as", so it can be a program name with args.
11570 set dummy as; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if ${ac_cv_path_orig_target_as+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 case $orig_target_as in
11577 [\\/]* | ?:[\\/]*)
11578 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582 for as_dir in $PATH
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11588 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 break 2
11592 done
11593 done
11594 IFS=$as_save_IFS
11597 esac
11599 orig_target_as=$ac_cv_path_orig_target_as
11600 if test -n "$orig_target_as"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11602 $as_echo "$orig_target_as" >&6; }
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11611 else
11612 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11613 set dummy ${aros_tool_prefix}as; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if ${ac_cv_path_orig_target_as+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 case $orig_target_as in
11620 [\\/]* | ?:[\\/]*)
11621 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11631 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 break 2
11635 done
11636 done
11637 IFS=$as_save_IFS
11640 esac
11642 orig_target_as=$ac_cv_path_orig_target_as
11643 if test -n "$orig_target_as"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11645 $as_echo "$orig_target_as" >&6; }
11646 else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11654 if test "$orig_target_as" = ""; then
11655 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11658 if test "${aros_tool_prefix}ar" = ""; then
11659 if test "$cross_compiling" = "yes" ; then
11660 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11661 set dummy ${target_tool_prefix}ar; ac_word=$2
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if ${ac_cv_path_orig_target_ar+:} false; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 case $orig_target_ar in
11668 [\\/]* | ?:[\\/]*)
11669 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11679 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 break 2
11683 done
11684 done
11685 IFS=$as_save_IFS
11688 esac
11690 orig_target_ar=$ac_cv_path_orig_target_ar
11691 if test -n "$orig_target_ar"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11693 $as_echo "$orig_target_ar" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11700 else
11701 if test "$GCC" = "yes"; then
11702 aros_gcc_ar=`$CC -print-prog-name=ar`
11703 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11704 set dummy `basename $aros_gcc_ar`; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if ${ac_cv_path_orig_target_ar+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 case $orig_target_ar in
11711 [\\/]* | ?:[\\/]*)
11712 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in `dirname $aros_gcc_ar`
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11726 done
11727 done
11728 IFS=$as_save_IFS
11731 esac
11733 orig_target_ar=$ac_cv_path_orig_target_ar
11734 if test -n "$orig_target_ar"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11736 $as_echo "$orig_target_ar" >&6; }
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11744 if test "$orig_target_ar" = ""; then
11745 # Extract the first word of "ar", so it can be a program name with args.
11746 set dummy ar; ac_word=$2
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 $as_echo_n "checking for $ac_word... " >&6; }
11749 if ${ac_cv_path_orig_target_ar+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 case $orig_target_ar in
11753 [\\/]* | ?:[\\/]*)
11754 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11764 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11768 done
11769 done
11770 IFS=$as_save_IFS
11773 esac
11775 orig_target_ar=$ac_cv_path_orig_target_ar
11776 if test -n "$orig_target_ar"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11778 $as_echo "$orig_target_ar" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11787 else
11788 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11789 set dummy ${aros_tool_prefix}ar; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791 $as_echo_n "checking for $ac_word... " >&6; }
11792 if ${ac_cv_path_orig_target_ar+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 case $orig_target_ar in
11796 [\\/]* | ?:[\\/]*)
11797 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11807 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11811 done
11812 done
11813 IFS=$as_save_IFS
11816 esac
11818 orig_target_ar=$ac_cv_path_orig_target_ar
11819 if test -n "$orig_target_ar"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11821 $as_echo "$orig_target_ar" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11830 if test "$orig_target_ar" = ""; then
11831 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11834 if test "${aros_tool_prefix}ranlib" = ""; then
11835 if test "$cross_compiling" = "yes" ; then
11836 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11837 set dummy ${target_tool_prefix}ar; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 case $orig_target_ranlib in
11844 [\\/]* | ?:[\\/]*)
11845 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11855 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 break 2
11859 done
11860 done
11861 IFS=$as_save_IFS
11864 esac
11866 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11867 if test -n "$orig_target_ranlib"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11869 $as_echo "$orig_target_ranlib" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11876 else
11877 if test "$GCC" = "yes"; then
11878 aros_gcc_ar=`$CC -print-prog-name=ar`
11879 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11880 set dummy `basename $aros_gcc_ar`; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 case $orig_target_ranlib in
11887 [\\/]* | ?:[\\/]*)
11888 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in `dirname $aros_gcc_ar`
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11902 done
11903 done
11904 IFS=$as_save_IFS
11907 esac
11909 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11910 if test -n "$orig_target_ranlib"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11912 $as_echo "$orig_target_ranlib" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11920 if test "$orig_target_ranlib" = ""; then
11921 # Extract the first word of "ar", so it can be a program name with args.
11922 set dummy ar; ac_word=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 case $orig_target_ranlib in
11929 [\\/]* | ?:[\\/]*)
11930 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11936 IFS=$as_save_IFS
11937 test -z "$as_dir" && as_dir=.
11938 for ac_exec_ext in '' $ac_executable_extensions; do
11939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11940 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11942 break 2
11944 done
11945 done
11946 IFS=$as_save_IFS
11949 esac
11951 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11952 if test -n "$orig_target_ranlib"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11954 $as_echo "$orig_target_ranlib" >&6; }
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11963 else
11964 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11965 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 case $orig_target_ranlib in
11972 [\\/]* | ?:[\\/]*)
11973 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11983 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11987 done
11988 done
11989 IFS=$as_save_IFS
11992 esac
11994 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11995 if test -n "$orig_target_ranlib"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11997 $as_echo "$orig_target_ranlib" >&6; }
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12006 if test "$orig_target_ranlib" = ""; then
12007 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12010 if test "${aros_tool_prefix}nm" = ""; then
12011 if test "$cross_compiling" = "yes" ; then
12012 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12013 set dummy ${target_tool_prefix}nm; ac_word=$2
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015 $as_echo_n "checking for $ac_word... " >&6; }
12016 if ${ac_cv_path_orig_target_nm+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 case $orig_target_nm in
12020 [\\/]* | ?:[\\/]*)
12021 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12031 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12035 done
12036 done
12037 IFS=$as_save_IFS
12040 esac
12042 orig_target_nm=$ac_cv_path_orig_target_nm
12043 if test -n "$orig_target_nm"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12045 $as_echo "$orig_target_nm" >&6; }
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12052 else
12053 if test "$GCC" = "yes"; then
12054 aros_gcc_nm=`$CC -print-prog-name=nm`
12055 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12056 set dummy `basename $aros_gcc_nm`; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_path_orig_target_nm+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 case $orig_target_nm in
12063 [\\/]* | ?:[\\/]*)
12064 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in `dirname $aros_gcc_nm`
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12074 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 break 2
12078 done
12079 done
12080 IFS=$as_save_IFS
12083 esac
12085 orig_target_nm=$ac_cv_path_orig_target_nm
12086 if test -n "$orig_target_nm"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12088 $as_echo "$orig_target_nm" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12096 if test "$orig_target_nm" = ""; then
12097 # Extract the first word of "nm", so it can be a program name with args.
12098 set dummy nm; ac_word=$2
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12100 $as_echo_n "checking for $ac_word... " >&6; }
12101 if ${ac_cv_path_orig_target_nm+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 case $orig_target_nm in
12105 [\\/]* | ?:[\\/]*)
12106 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12116 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 break 2
12120 done
12121 done
12122 IFS=$as_save_IFS
12125 esac
12127 orig_target_nm=$ac_cv_path_orig_target_nm
12128 if test -n "$orig_target_nm"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12130 $as_echo "$orig_target_nm" >&6; }
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12139 else
12140 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12141 set dummy ${aros_tool_prefix}nm; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 $as_echo_n "checking for $ac_word... " >&6; }
12144 if ${ac_cv_path_orig_target_nm+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 case $orig_target_nm in
12148 [\\/]* | ?:[\\/]*)
12149 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12159 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12163 done
12164 done
12165 IFS=$as_save_IFS
12168 esac
12170 orig_target_nm=$ac_cv_path_orig_target_nm
12171 if test -n "$orig_target_nm"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12173 $as_echo "$orig_target_nm" >&6; }
12174 else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12182 if test "$orig_target_nm" = ""; then
12183 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12186 if test "${aros_tool_prefix}strip" = ""; then
12187 if test "$cross_compiling" = "yes" ; then
12188 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12189 set dummy ${target_tool_prefix}strip; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_orig_target_strip+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 case $orig_target_strip in
12196 [\\/]* | ?:[\\/]*)
12197 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12207 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12211 done
12212 done
12213 IFS=$as_save_IFS
12216 esac
12218 orig_target_strip=$ac_cv_path_orig_target_strip
12219 if test -n "$orig_target_strip"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12221 $as_echo "$orig_target_strip" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12228 else
12229 if test "$GCC" = "yes"; then
12230 aros_gcc_strip=`$CC -print-prog-name=strip`
12231 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12232 set dummy `basename $aros_gcc_strip`; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_path_orig_target_strip+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 case $orig_target_strip in
12239 [\\/]* | ?:[\\/]*)
12240 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in `dirname $aros_gcc_strip`
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12250 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12254 done
12255 done
12256 IFS=$as_save_IFS
12259 esac
12261 orig_target_strip=$ac_cv_path_orig_target_strip
12262 if test -n "$orig_target_strip"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12264 $as_echo "$orig_target_strip" >&6; }
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12272 if test "$orig_target_strip" = ""; then
12273 # Extract the first word of "strip", so it can be a program name with args.
12274 set dummy strip; ac_word=$2
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276 $as_echo_n "checking for $ac_word... " >&6; }
12277 if ${ac_cv_path_orig_target_strip+:} false; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 case $orig_target_strip in
12281 [\\/]* | ?:[\\/]*)
12282 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12292 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12296 done
12297 done
12298 IFS=$as_save_IFS
12301 esac
12303 orig_target_strip=$ac_cv_path_orig_target_strip
12304 if test -n "$orig_target_strip"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12306 $as_echo "$orig_target_strip" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12315 else
12316 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12317 set dummy ${aros_tool_prefix}strip; ac_word=$2
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319 $as_echo_n "checking for $ac_word... " >&6; }
12320 if ${ac_cv_path_orig_target_strip+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 case $orig_target_strip in
12324 [\\/]* | ?:[\\/]*)
12325 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12339 done
12340 done
12341 IFS=$as_save_IFS
12344 esac
12346 orig_target_strip=$ac_cv_path_orig_target_strip
12347 if test -n "$orig_target_strip"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12349 $as_echo "$orig_target_strip" >&6; }
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12358 if test "$orig_target_strip" = ""; then
12359 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12362 if test "${aros_tool_prefix}objcopy" = ""; then
12363 if test "$cross_compiling" = "yes" ; then
12364 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12365 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 case $orig_target_objcopy in
12372 [\\/]* | ?:[\\/]*)
12373 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12383 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385 break 2
12387 done
12388 done
12389 IFS=$as_save_IFS
12392 esac
12394 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12395 if test -n "$orig_target_objcopy"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12397 $as_echo "$orig_target_objcopy" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12404 else
12405 if test "$GCC" = "yes"; then
12406 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12407 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12408 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 $as_echo_n "checking for $ac_word... " >&6; }
12411 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 case $orig_target_objcopy in
12415 [\\/]* | ?:[\\/]*)
12416 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in `dirname $aros_gcc_objcopy`
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12426 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12430 done
12431 done
12432 IFS=$as_save_IFS
12435 esac
12437 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12438 if test -n "$orig_target_objcopy"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12440 $as_echo "$orig_target_objcopy" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12448 if test "$orig_target_objcopy" = ""; then
12449 # Extract the first word of "objcopy", so it can be a program name with args.
12450 set dummy objcopy; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 case $orig_target_objcopy in
12457 [\\/]* | ?:[\\/]*)
12458 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $PATH
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12468 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 break 2
12472 done
12473 done
12474 IFS=$as_save_IFS
12477 esac
12479 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12480 if test -n "$orig_target_objcopy"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12482 $as_echo "$orig_target_objcopy" >&6; }
12483 else
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12491 else
12492 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12493 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 case $orig_target_objcopy in
12500 [\\/]* | ?:[\\/]*)
12501 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12515 done
12516 done
12517 IFS=$as_save_IFS
12520 esac
12522 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12523 if test -n "$orig_target_objcopy"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12525 $as_echo "$orig_target_objcopy" >&6; }
12526 else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12534 if test "$orig_target_objcopy" = ""; then
12535 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12538 if test "${aros_tool_prefix}objdump" = ""; then
12539 if test "$cross_compiling" = "yes" ; then
12540 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12541 set dummy ${target_tool_prefix}objdump; ac_word=$2
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543 $as_echo_n "checking for $ac_word... " >&6; }
12544 if ${ac_cv_path_orig_target_objdump+:} false; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 case $orig_target_objdump in
12548 [\\/]* | ?:[\\/]*)
12549 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12559 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12563 done
12564 done
12565 IFS=$as_save_IFS
12568 esac
12570 orig_target_objdump=$ac_cv_path_orig_target_objdump
12571 if test -n "$orig_target_objdump"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12573 $as_echo "$orig_target_objdump" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12580 else
12581 if test "$GCC" = "yes"; then
12582 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12583 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12584 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if ${ac_cv_path_orig_target_objdump+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 case $orig_target_objdump in
12591 [\\/]* | ?:[\\/]*)
12592 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in `dirname $aros_gcc_objdump`
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12602 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12606 done
12607 done
12608 IFS=$as_save_IFS
12611 esac
12613 orig_target_objdump=$ac_cv_path_orig_target_objdump
12614 if test -n "$orig_target_objdump"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12616 $as_echo "$orig_target_objdump" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12624 if test "$orig_target_objdump" = ""; then
12625 # Extract the first word of "objdump", so it can be a program name with args.
12626 set dummy objdump; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if ${ac_cv_path_orig_target_objdump+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 case $orig_target_objdump in
12633 [\\/]* | ?:[\\/]*)
12634 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638 for as_dir in $PATH
12640 IFS=$as_save_IFS
12641 test -z "$as_dir" && as_dir=.
12642 for ac_exec_ext in '' $ac_executable_extensions; do
12643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12644 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646 break 2
12648 done
12649 done
12650 IFS=$as_save_IFS
12653 esac
12655 orig_target_objdump=$ac_cv_path_orig_target_objdump
12656 if test -n "$orig_target_objdump"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12658 $as_echo "$orig_target_objdump" >&6; }
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661 $as_echo "no" >&6; }
12667 else
12668 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12669 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671 $as_echo_n "checking for $ac_word... " >&6; }
12672 if ${ac_cv_path_orig_target_objdump+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 case $orig_target_objdump in
12676 [\\/]* | ?:[\\/]*)
12677 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681 for as_dir in $PATH
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12687 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689 break 2
12691 done
12692 done
12693 IFS=$as_save_IFS
12696 esac
12698 orig_target_objdump=$ac_cv_path_orig_target_objdump
12699 if test -n "$orig_target_objdump"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12701 $as_echo "$orig_target_objdump" >&6; }
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12710 if test "$orig_target_objdump" = ""; then
12711 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12715 if test "$kernel_tool_prefix" = "none" ; then
12716 # No kernel tools specified
12717 # Assume target tools == kernel tools with ELF wrapper
12718 aros_kernel_cc=$orig_target_cc
12719 aros_kernel_cxx=$orig_target_cxx
12720 aros_kernel_cpp=$orig_target_cpp
12721 aros_kernel_ld=$orig_target_ld
12722 aros_kernel_as=$orig_target_as
12723 aros_kernel_ar=$orig_target_ar
12724 aros_kernel_ranlib=$orig_target_ranlib
12725 aros_kernel_nm=$orig_target_nm
12726 aros_kernel_strip=$orig_target_strip
12727 aros_kernel_objcopy=$orig_target_objcopy
12728 aros_kernel_objdump=$orig_target_objdump
12729 use_kernel_cc_wrapper=yes
12732 # At this point, all aros_kernel_* and aros_target_*
12733 # tools should be set up correctly
12735 CC="$aros_kernel_cc $kernel_tool_flags"
12736 CPP="$aros_kernel_cpp"
12738 #-----------------------------------------------------------------------------
12740 # Disable pointer-signedness warnings if the compiler recognises the option
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12743 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12744 save_cflags="$CFLAGS"
12745 if test "$crosstools" != "yes" ; then
12746 CFLAGS="$CFLAGS -Wno-pointer-sign"
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12751 main ()
12755 return 0;
12757 _ACEOF
12758 if ac_fn_c_try_compile "$LINENO"; then :
12759 use_no_sign_warning="yes"
12760 else
12761 use_no_sign_warning="no"
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 else
12765 # we do know it is supported for the smallest version of gcc we are going to build
12766 # we assume it's also supported by later versions
12767 use_no_sign_warning=yes
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12770 $as_echo "$use_no_sign_warning" >&6; }
12771 if test "x-$use_no_sign_warning" = "x-yes" ; then
12772 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12774 CFLAGS="$save_cflags"
12776 #-----------------------------------------------------------------------------
12778 # Find all the tools we need to compile. This could be cross-compiling
12779 # though! If that is the case we use the GNU form of the target and
12780 # simply add this to the front of the binary name. This is rather simple,
12781 # but it should work under most circumstances.
12783 # The default tools are to use the same as the host, but only if the
12784 # host and target CPU are the same. With GCC this is normally enough.
12787 aros_cc_pre=""
12788 aros_shared_ld="$aros_host_ld"
12790 aros_target_mkdep="$aros_host_mkdep"
12792 # The default tools executables to be linked to.
12793 if test "$rescomp" != ""; then
12794 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12795 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 case $aros_kernel_rescomp in
12802 [\\/]* | ?:[\\/]*)
12803 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12813 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12817 done
12818 done
12819 IFS=$as_save_IFS
12822 esac
12824 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12825 if test -n "$aros_kernel_rescomp"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12827 $as_echo "$aros_kernel_rescomp" >&6; }
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12834 if test "$aros_kernel_rescomp" = ""; then
12835 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12839 # Set up the sources for the symlink farm
12840 if test "$crosstools" = "yes"; then
12841 crosstools_target=tools-crosstools
12844 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12845 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12848 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12849 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12850 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12851 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12852 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12853 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12854 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12856 # aros_cc_pre is a variable that is added to the front of the compiler name
12857 # in the generated aros-gcc shell script. We need this to enable the cache
12858 # to work across cleaned builds. Also, support DISTCC using the correct
12859 # environment variable.
12862 if test "x${DISTCC}" != "x" ; then
12863 if test "x${CCACHE}" != "x" ; then
12864 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12865 else
12866 aros_cc_pre="${DISTCC} "
12868 else
12869 if test "x${CCACHE}" != "x" ; then
12870 aros_cc_pre="${CCACHE} "
12874 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12876 aros_target_nostdinc_cflags=-nostdinc
12878 aros_target_nostartup_ldflags=-nostartfiles
12880 aros_target_nix_ldflags=-nix
12882 aros_target_detach_ldflags=-detach
12884 aros_target_nostdlib_ldflags=-nostdlib
12887 # Target tools
12888 if test "$crosstools" != "yes"; then
12889 if test "$GCC" = "yes"; then
12890 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12892 else
12893 # We do not know which gcc version we are going to build and what we need to know
12894 # here is different for different versions so this will be set later during the
12895 # build of crosstools.
12896 aros_target_cc_path=@aros_target_cc_path@
12898 aros_target_cpp="${prefix}cpp"
12899 aros_target_cc="${prefix}gcc"
12900 aros_target_cxx="${prefix}g++"
12901 aros_target_as="${prefix}as"
12902 aros_target_ld="${prefix}ld"
12903 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12904 aros_target_objcopy="${prefix}objcopy"
12905 aros_target_objdump="${prefix}objdump"
12906 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12907 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12908 aros_target_strip="${prefix}strip"
12909 aros_plain_nm="${prefix}nm"
12910 aros_plain_ar="${prefix}ar"
12912 # Check whether --enable-includes was given.
12913 if test "${enable_includes+set}" = set; then :
12914 enableval=$enable_includes; aros_target_incl=$enable_includes
12915 else
12916 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12920 if test "$aros_kernel_includes" = ""; then
12921 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12922 aros_kernel_includes="-isystem $aros_target_incl"
12926 if test "$aros_kernel_includes" != "" ; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12928 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12929 if test "$aros_kernel_cc_includes" = "" ; then
12930 # Try to guess where the directory is.
12931 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12932 if test -d $aros_kernel_cc_includes; then
12933 # Check if there is also an include-fixed directory and add it
12934 # to kernel compiler's include path as it may contain some of
12935 # the headers we need.
12936 if test -d "$aros_kernel_cc_includes"-fixed; then
12937 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12939 # Check for specific includes directory. Neede for Ubuntu 11.10
12940 if test -d "/usr/include/i386-linux-gnu"; then
12941 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12943 else
12944 # The directory doesn't exist, we need to do some more work.
12945 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12947 # These are the headers we're looking for.
12948 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12949 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12950 zutil.h stdint.h"
12952 dirs=
12953 for h in $headers; do
12954 # Which other headers are needed by each of the above?
12955 deps=$(echo "#include <$h>" | \
12956 $aros_kernel_cc -E -M - 2>/dev/null | \
12957 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12959 # Copy all the needed headers to a directory beneath gendir.
12960 for d in $deps; do
12961 h=$(basename $d)
12962 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12963 sed -n "s,^.*/include\(/.*\),\1,p")
12964 ! test -d $dir && mkdir -p $dir
12965 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12966 done
12967 done
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12971 $as_echo "$aros_kernel_cc_includes" >&6; }
12972 # Adding -nostdinc to kernel includes as they are always used together.
12973 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12976 if test "$crosstools" != "yes"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12978 $as_echo_n "checking for the target compiler's include path... " >&6; }
12979 if test "$aros_target_cc_includes" = "" ; then
12980 #try to guess where the directory is
12981 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12982 if ! test -d $aros_target_cc_includes; then
12983 #the directory doesn't exist, we need to do some more work
12984 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12986 #these are the headers we're looking for
12987 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12988 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12989 zutil.h"
12991 dirs=
12992 for h in $headers; do
12993 #which other headers each of the above headers needs?
12994 deps=$(echo "#include <$h>" | \
12995 $orig_target_cc -E -M - 2>/dev/null | \
12996 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12998 #copy all the needed headers to a directory beneath gendir
12999 for d in $deps; do
13000 h=$(basename $d)
13001 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13002 sed -n "s,^.*/include\(/.*\),\1,p")
13003 ! test -d $dir && mkdir -p $dir
13004 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13005 done
13006 done
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13010 $as_echo "$aros_target_cc_includes" >&6; }
13011 else
13012 # We do not know which gcc version we are going to build and what we need to know
13013 # here is different for different versions so this will be set later during the
13014 # build of crosstools.
13015 aros_target_cc_includes=@aros_target_cc_includes@
13019 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13020 # On GCC >= 4.0 -iquote should be used
13023 save_cc="$CC"
13024 save_cflags="$CFLAGS"
13025 CFLAGS="-iquote."
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13027 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13028 if test "x-$crosstools" != "x-yes"; then
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13033 main ()
13037 return 0;
13039 _ACEOF
13040 if ac_fn_c_try_compile "$LINENO"; then :
13041 has_iquote="yes"
13042 else
13043 has_iquote="no"
13045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046 else
13047 # we do know it is supported for the smallest version of gcc we are going to build
13048 # we assume it's also supported by later versions
13049 has_iquote=yes
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13052 $as_echo "$has_iquote" >&6; }
13053 if test "x-$has_iquote" = "x-yes" ; then
13054 host_cflags_iquote=-iquote
13055 host_cflags_iquote_end=
13056 else
13057 host_cflags_iquote=-I
13058 host_cflags_iquote_end=-I-
13060 kernel_cflags_iquote=$host_cflags_iquote
13061 kernel_cflags_iquote_end=$host_cflags_iquote_end
13062 if test "x-$cross_compiling" = "x-yes"; then
13063 CC="$aros_kernel_cc"
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13065 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13066 if test "x-$crosstools" != "x-yes"; then
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13071 main ()
13075 return 0;
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079 use_no_stack_protector="yes"
13080 else
13081 use_no_stack_protector="no"
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 else
13085 # we do know it is supported for the smallest version of gcc we are going to build
13086 # we assume it's also supported by later versions
13087 use_no_stack_protector=yes
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13090 $as_echo "$use_no_stack_protector" >&6; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13092 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13093 if test "x-$crosstools" != "x-yes"; then
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13098 main ()
13102 return 0;
13104 _ACEOF
13105 if ac_fn_c_try_compile "$LINENO"; then :
13106 has_iquote="yes"
13107 else
13108 has_iquote="no"
13110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 else
13112 # we do know it is supported for the smallest version of gcc we are going to build
13113 # we assume it's also supported by later versions
13114 has_iquote=yes
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13117 $as_echo "$has_iquote" >&6; }
13118 if test "x-$has_iquote" = "x-yes" ; then
13119 kernel_cflags_iquote=-iquote
13120 kernel_cflags_iquote_end=
13121 else
13122 kernel_cflags_iquote=-I
13123 kernel_cflags_iquote_end=-I-
13126 aros_cflags_iquote=$kernel_cflags_iquote
13127 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13128 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13129 CC="$orig_target_cc"
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13131 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13132 if test "x-$crosstools" != "x-yes"; then
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13137 main ()
13141 return 0;
13143 _ACEOF
13144 if ac_fn_c_try_compile "$LINENO"; then :
13145 has_iquote="yes"
13146 else
13147 has_iquote="no"
13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 else
13151 # we do know it is supported for the smallest version of gcc we are going to build
13152 # we assume it's also supported by later versions
13153 has_iquote=yes
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13156 $as_echo "$has_iquote" >&6; }
13157 if test "x-$has_iquote" = "x-yes" ; then
13158 aros_cflags_iquote=-iquote
13159 aros_cflags_iquote_end=
13160 else
13161 aros_cflags_iquote=-I
13162 aros_cflags_iquote_end=-I-
13165 if test "x-$use_no_stack_protector" = "x-yes" ; then
13166 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13170 #-----------------------------------------------------------------------------
13172 # Check if the target compiler supports some options used for delinting:
13173 # -Wunused-but-set-variable
13174 # -Warray-bounds
13175 # -Wenum-compare
13176 # -Wstrict-overflow
13177 # -Wformat-security
13179 if test "x-$crosstools" != "x-yes"; then
13180 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13181 CC="$orig_target_cc"
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13184 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13185 CFLAGS=-Wunused-but-set-variable
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13190 main ()
13194 return 0;
13196 _ACEOF
13197 if ac_fn_c_try_compile "$LINENO"; then :
13198 aros_unused_but_set_variable="yes"
13199 else
13200 aros_unused_but_set_variable="no"
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13204 $as_echo "$aros_unused_but_set_variable" >&6; }
13205 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13206 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13210 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13211 CFLAGS=-Warray-bounds
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13216 main ()
13220 return 0;
13222 _ACEOF
13223 if ac_fn_c_try_compile "$LINENO"; then :
13224 aros_array_bounds="yes"
13225 else
13226 aros_array_bounds="no"
13228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13230 $as_echo "$aros_array_bounds" >&6; }
13231 if test "x-$aros_array_bounds" = "x-yes" ; then
13232 aros_cflags_array_bounds=-Wno-array-bounds
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13236 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13237 CFLAGS=-Wenum-compare
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13242 main ()
13246 return 0;
13248 _ACEOF
13249 if ac_fn_c_try_compile "$LINENO"; then :
13250 aros_enum_compare="yes"
13251 else
13252 aros_enum_compare="no"
13254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13256 $as_echo "$aros_enum_compare" >&6; }
13257 if test "x-$aros_enum_compare" = "x-yes" ; then
13258 aros_cflags_enum_compare=-Wno-enum-compare
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13262 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13263 CFLAGS=-Wstrict-overflow
13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h. */
13268 main ()
13272 return 0;
13274 _ACEOF
13275 if ac_fn_c_try_compile "$LINENO"; then :
13276 aros_strict_overflow="yes"
13277 else
13278 aros_strict_overflow="no"
13280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13282 $as_echo "$aros_strict_overflow" >&6; }
13283 if test "x-$aros_strict_overflow" = "x-yes" ; then
13284 aros_cflags_strict_overflow=-Wno-strict-overflow
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13288 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13289 CFLAGS=-Wformat-security
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13294 main ()
13298 return 0;
13300 _ACEOF
13301 if ac_fn_c_try_compile "$LINENO"; then :
13302 aros_format_security="yes"
13303 else
13304 aros_format_security="no"
13306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13308 $as_echo "$aros_format_security" >&6; }
13309 if test "x-$aros_format_security" = "x-yes" ; then
13310 aros_cflags_format_security=-Wno-format-security
13312 else
13313 # We do not know which gcc version we are going to build and what we need to know
13314 # here is different for different versions so this will be set later during the
13315 # build of crosstools.
13316 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13317 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13318 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13319 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13320 aros_cflags_format_security=@aros_cflags_format_security@
13323 #-----------------------------------------------------------------------------
13325 # Check if we can explicitly choose older version of symbol hashing
13327 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13328 CC="$aros_kernel_cc"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13330 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13335 main ()
13339 return 0;
13341 _ACEOF
13342 if ac_fn_c_try_link "$LINENO"; then :
13343 use_hash_style="yes"
13344 else
13345 use_hash_style="no"
13347 rm -f core conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13350 $as_echo "$use_hash_style" >&6; }
13351 if test "x-$use_hash_style" = "x-yes" ; then
13352 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13354 CC="$save_cc"
13355 CFLAGS="$save_cflags"
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13366 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13368 # Check whether --with-resolution was given.
13369 if test "${with_resolution+set}" = set; then :
13370 withval=$with_resolution; resolution=$withval
13371 else
13372 resolution=none
13375 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13376 if test "$resolution" = "yes" ; then
13377 resolution="none"
13379 if test "$resolution" = "no" ; then
13380 resolution="none"
13382 if test "$resolution" != "none" ; then
13383 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13384 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13385 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13388 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13389 aros_cv_default_wbwidth=$aros_default_wbwidth
13390 aros_cv_default_wbheight=$aros_default_wbheight
13391 aros_cv_default_wbdepth=$aros_default_wbdepth
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13394 $as_echo_n "checking if serial debug is enabled... " >&6; }
13396 # Check whether --with-serial-debug was given.
13397 if test "${with_serial_debug+set}" = set; then :
13398 withval=$with_serial_debug; serial_debug=$withval
13399 else
13400 serial_debug=none
13403 if test "$aros_serial_debug" = 0 ; then
13404 serial_debug_forced=""
13405 if test "$serial_debug" = "yes" ; then
13406 serial_debug="1"
13408 if test "$serial_debug" = "no" ; then
13409 serial_debug="none"
13411 else
13412 serial_debug_forced="(forced)"
13413 serial_debug=$aros_serial_debug
13415 if test "$serial_debug" != "none" ; then
13416 aros_serial_debug=$serial_debug
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13418 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13419 else
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 $as_echo "no" >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13425 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13426 # Check whether --enable-palm_debug_hack was given.
13427 if test "${enable_palm_debug_hack+set}" = set; then :
13428 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13429 else
13430 palm_debug_hack="no"
13433 if test "$palm_debug_hack" = "yes" ; then
13434 aros_palm_debug_hack="1"
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13437 $as_echo "$palm_debug_hack" >&6; }
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13440 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13441 # Check whether --enable-usb30_code was given.
13442 if test "${enable_usb30_code+set}" = set; then :
13443 enableval=$enable_usb30_code; usb30_code="yes"
13444 else
13445 usb30_code="no"
13448 if test "$usb30_code" = "yes" ; then
13449 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13450 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13453 $as_echo "$usb30_code" >&6; }
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13456 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13457 # Check whether --enable-nesting_supervisor was given.
13458 if test "${enable_nesting_supervisor+set}" = set; then :
13459 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13460 else
13461 nesting_supervisor="no"
13464 if test "$nesting_supervisor" = "yes" ; then
13465 aros_nesting_supervisor="1"
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13468 $as_echo "$nesting_supervisor" >&6; }
13470 if test "$aros_enable_mmu" = "" ; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13472 $as_echo_n "checking if MMU support is enabled... " >&6; }
13473 # Check whether --enable-mmu was given.
13474 if test "${enable_mmu+set}" = set; then :
13475 enableval=$enable_mmu; aros_enable_mmu=$enableval
13476 else
13477 aros_enable_mmu="yes"
13480 if test "$aros_enable_mmu" = "" ; then
13481 aros_enable_mmu="yes"
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13484 $as_echo "$aros_enable_mmu" >&6; }
13486 if test "$aros_enable_mmu" = "no" ; then
13487 aros_enable_mmu="0"
13488 else
13489 aros_enable_mmu="1"
13493 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13495 if test "x-$need_dlopen" != "x-no" ; then
13496 save_libs="$LIBS"
13497 LIBS=""
13498 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13499 if test "x$ac_cv_func_dlopen" = xyes; then :
13500 have_dl="yes"
13501 else
13502 have_dl="no"
13505 if test "x-$have_dl" = "x-no" ; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13507 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13508 if ${ac_cv_lib_dl_dlopen+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 ac_check_lib_save_LIBS=$LIBS
13512 LIBS="-ldl $LIBS"
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13516 /* Override any GCC internal prototype to avoid an error.
13517 Use char because int might match the return type of a GCC
13518 builtin and then its argument prototype would still apply. */
13519 #ifdef __cplusplus
13520 extern "C"
13521 #endif
13522 char dlopen ();
13524 main ()
13526 return dlopen ();
13528 return 0;
13530 _ACEOF
13531 if ac_fn_c_try_link "$LINENO"; then :
13532 ac_cv_lib_dl_dlopen=yes
13533 else
13534 ac_cv_lib_dl_dlopen=no
13536 rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538 LIBS=$ac_check_lib_save_LIBS
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13541 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13542 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13543 have_dl="yes"
13544 aros_host_ldflags="$aros_host_ldflags -ldl"
13545 else
13546 have_dl="no"
13550 if test "x-$have_dl" = "x-no" ; then
13551 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13553 LIBS="$save_libs"
13557 # Check whether --enable-x11_hidd was given.
13558 if test "${enable_x11_hidd+set}" = set; then :
13559 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13560 else
13561 x11_hidd="$need_x11"
13564 case "x-$x11_hidd" in
13565 x-yes|x-no|x-auto) ;;
13566 *) x11_hidd="$need_x11" ;;
13567 esac
13569 ENABLE_X11=0
13571 if test "x-$x11_hidd" != "x-no" ; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13574 $as_echo_n "checking for X... " >&6; }
13577 # Check whether --with-x was given.
13578 if test "${with_x+set}" = set; then :
13579 withval=$with_x;
13582 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13583 if test "x$with_x" = xno; then
13584 # The user explicitly disabled X.
13585 have_x=disabled
13586 else
13587 case $x_includes,$x_libraries in #(
13588 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13589 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 # One or both of the vars are not set, and there is no cached value.
13593 ac_x_includes=no ac_x_libraries=no
13594 rm -f -r conftest.dir
13595 if mkdir conftest.dir; then
13596 cd conftest.dir
13597 cat >Imakefile <<'_ACEOF'
13598 incroot:
13599 @echo incroot='${INCROOT}'
13600 usrlibdir:
13601 @echo usrlibdir='${USRLIBDIR}'
13602 libdir:
13603 @echo libdir='${LIBDIR}'
13604 _ACEOF
13605 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13606 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13607 for ac_var in incroot usrlibdir libdir; do
13608 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13609 done
13610 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13611 for ac_extension in a so sl dylib la dll; do
13612 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13613 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13614 ac_im_usrlibdir=$ac_im_libdir; break
13616 done
13617 # Screen out bogus values from the imake configuration. They are
13618 # bogus both because they are the default anyway, and because
13619 # using them would break gcc on systems where it needs fixed includes.
13620 case $ac_im_incroot in
13621 /usr/include) ac_x_includes= ;;
13622 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13623 esac
13624 case $ac_im_usrlibdir in
13625 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13626 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13627 esac
13629 cd ..
13630 rm -f -r conftest.dir
13633 # Standard set of common directories for X headers.
13634 # Check X11 before X11Rn because it is often a symlink to the current release.
13635 ac_x_header_dirs='
13636 /usr/X11/include
13637 /usr/X11R7/include
13638 /usr/X11R6/include
13639 /usr/X11R5/include
13640 /usr/X11R4/include
13642 /usr/include/X11
13643 /usr/include/X11R7
13644 /usr/include/X11R6
13645 /usr/include/X11R5
13646 /usr/include/X11R4
13648 /usr/local/X11/include
13649 /usr/local/X11R7/include
13650 /usr/local/X11R6/include
13651 /usr/local/X11R5/include
13652 /usr/local/X11R4/include
13654 /usr/local/include/X11
13655 /usr/local/include/X11R7
13656 /usr/local/include/X11R6
13657 /usr/local/include/X11R5
13658 /usr/local/include/X11R4
13660 /usr/X386/include
13661 /usr/x386/include
13662 /usr/XFree86/include/X11
13664 /usr/include
13665 /usr/local/include
13666 /usr/unsupported/include
13667 /usr/athena/include
13668 /usr/local/x11r5/include
13669 /usr/lpp/Xamples/include
13671 /usr/openwin/include
13672 /usr/openwin/share/include'
13674 if test "$ac_x_includes" = no; then
13675 # Guess where to find include files, by looking for Xlib.h.
13676 # First, try using that file with no special directory specified.
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 #include <X11/Xlib.h>
13680 _ACEOF
13681 if ac_fn_c_try_cpp "$LINENO"; then :
13682 # We can compile using X headers with no special include directory.
13683 ac_x_includes=
13684 else
13685 for ac_dir in $ac_x_header_dirs; do
13686 if test -r "$ac_dir/X11/Xlib.h"; then
13687 ac_x_includes=$ac_dir
13688 break
13690 done
13692 rm -f conftest.err conftest.i conftest.$ac_ext
13693 fi # $ac_x_includes = no
13695 if test "$ac_x_libraries" = no; then
13696 # Check for the libraries.
13697 # See if we find them without any special options.
13698 # Don't add to $LIBS permanently.
13699 ac_save_LIBS=$LIBS
13700 LIBS="-lX11 $LIBS"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703 #include <X11/Xlib.h>
13705 main ()
13707 XrmInitialize ()
13709 return 0;
13711 _ACEOF
13712 if ac_fn_c_try_link "$LINENO"; then :
13713 LIBS=$ac_save_LIBS
13714 # We can link X programs with no special library path.
13715 ac_x_libraries=
13716 else
13717 LIBS=$ac_save_LIBS
13718 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13720 # Don't even attempt the hair of trying to link an X program!
13721 for ac_extension in a so sl dylib la dll; do
13722 if test -r "$ac_dir/libX11.$ac_extension"; then
13723 ac_x_libraries=$ac_dir
13724 break 2
13726 done
13727 done
13729 rm -f core conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13731 fi # $ac_x_libraries = no
13733 case $ac_x_includes,$ac_x_libraries in #(
13734 no,* | *,no | *\'*)
13735 # Didn't find X, or a directory has "'" in its name.
13736 ac_cv_have_x="have_x=no";; #(
13738 # Record where we found X for the cache.
13739 ac_cv_have_x="have_x=yes\
13740 ac_x_includes='$ac_x_includes'\
13741 ac_x_libraries='$ac_x_libraries'"
13742 esac
13744 ;; #(
13745 *) have_x=yes;;
13746 esac
13747 eval "$ac_cv_have_x"
13748 fi # $with_x != no
13750 if test "$have_x" != yes; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13752 $as_echo "$have_x" >&6; }
13753 no_x=yes
13754 else
13755 # If each of the values was on the command line, it overrides each guess.
13756 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13757 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13758 # Update the cache value to reflect the command line values.
13759 ac_cv_have_x="have_x=yes\
13760 ac_x_includes='$x_includes'\
13761 ac_x_libraries='$x_libraries'"
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13763 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13767 x_cflags=
13768 for path in $x_libraries
13770 x_cflags="$x_cflags -L$path"
13771 done
13773 for path in $x_includes
13775 x_cflags="$x_cflags -I$path"
13776 done
13778 if test "x-$no_x" = "x-yes" ; then
13780 if test "x-$x11_hidd" != "x-auto" ; then
13781 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13784 else
13785 x11_hidd_target=kernel-x11gfx-kobj
13786 ENABLE_X11=1
13788 # Check whether --enable-x11_shm was given.
13789 if test "${enable_x11_shm+set}" = set; then :
13790 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13791 else
13792 x11_hidd_shm="auto"
13795 case "x-$x11_hidd_shm" in
13796 x-yes|x-no|x-auto) ;;
13797 *) x11_hidd_shm="auto" ;;
13798 esac
13800 have_xshm=no
13802 if test "x-$x11_hidd_shm" != "x-no" ; then
13804 for ac_header in sys/ipc.h
13805 do :
13806 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13807 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13808 cat >>confdefs.h <<_ACEOF
13809 #define HAVE_SYS_IPC_H 1
13810 _ACEOF
13814 done
13816 for ac_header in sys/shm.h
13817 do :
13818 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13819 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13820 cat >>confdefs.h <<_ACEOF
13821 #define HAVE_SYS_SHM_H 1
13822 _ACEOF
13826 done
13829 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13831 save_cflags="$CFLAGS"
13832 CFLAGS="$CFLAGS $x_cflags"
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13834 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13835 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838 ac_check_lib_save_LIBS=$LIBS
13839 LIBS="-lXext $LIBS"
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13843 /* Override any GCC internal prototype to avoid an error.
13844 Use char because int might match the return type of a GCC
13845 builtin and then its argument prototype would still apply. */
13846 #ifdef __cplusplus
13847 extern "C"
13848 #endif
13849 char XShmQueryExtension ();
13851 main ()
13853 return XShmQueryExtension ();
13855 return 0;
13857 _ACEOF
13858 if ac_fn_c_try_link "$LINENO"; then :
13859 ac_cv_lib_Xext_XShmQueryExtension=yes
13860 else
13861 ac_cv_lib_Xext_XShmQueryExtension=no
13863 rm -f core conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 LIBS=$ac_check_lib_save_LIBS
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13868 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13869 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13870 have_xshm=yes
13873 CFLAGS="$save_cflags"
13877 if test "x-$have_xshm" = "x-yes" ; then
13878 DO_XSHM_SUPPORT="1"
13879 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13880 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13881 else
13882 DO_XSHM_SUPPORT="0"
13886 # Check whether --enable-x11_vidmode was given.
13887 if test "${enable_x11_vidmode+set}" = set; then :
13888 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13889 else
13890 x11_hidd_vidmode="auto"
13893 case "x-$x11_hidd_vidmode" in
13894 x-yes|x-no|x-auto) ;;
13895 *) x11_hidd_vidmode="auto" ;;
13896 esac
13898 have_vidmode=no
13900 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13902 save_cflags="$CFLAGS"
13903 CFLAGS="$CFLAGS $x_cflags"
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13905 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13906 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13907 $as_echo_n "(cached) " >&6
13908 else
13909 ac_check_lib_save_LIBS=$LIBS
13910 LIBS="-lXxf86vm $LIBS"
13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h. */
13914 /* Override any GCC internal prototype to avoid an error.
13915 Use char because int might match the return type of a GCC
13916 builtin and then its argument prototype would still apply. */
13917 #ifdef __cplusplus
13918 extern "C"
13919 #endif
13920 char XF86VidModeQueryExtension ();
13922 main ()
13924 return XF86VidModeQueryExtension ();
13926 return 0;
13928 _ACEOF
13929 if ac_fn_c_try_link "$LINENO"; then :
13930 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13931 else
13932 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13934 rm -f core conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
13936 LIBS=$ac_check_lib_save_LIBS
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13939 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13940 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13941 have_vidmode=yes
13944 CFLAGS="$save_cflags"
13947 if test "x-$have_vidmode" = "x-yes" ; then
13948 DO_VIDMODE_SUPPORT="1"
13949 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13950 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13951 else
13952 DO_VIDMODE_SUPPORT="0"
13956 aros_host_x11_includes=$x_includes
13957 aros_host_x11_libdirs=$x_libraries
13961 # Check whether --enable-sdl_hidd was given.
13962 if test "${enable_sdl_hidd+set}" = set; then :
13963 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13964 else
13965 sdl_hidd="auto"
13968 case "x-$sdl_hidd" in
13969 x-yes|x-no|x-auto) ;;
13970 *) sdl_hidd="auto" ;;
13971 esac
13973 if test "x-$sdl_hidd" != "x-no" ; then
13976 # Check whether --with-sdl-prefix was given.
13977 if test "${with_sdl_prefix+set}" = set; then :
13978 withval=$with_sdl_prefix; sdl_prefix="$withval"
13979 else
13980 sdl_prefix=""
13984 # Check whether --with-sdl-exec-prefix was given.
13985 if test "${with_sdl_exec_prefix+set}" = set; then :
13986 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13987 else
13988 sdl_exec_prefix=""
13991 # Check whether --enable-sdltest was given.
13992 if test "${enable_sdltest+set}" = set; then :
13993 enableval=$enable_sdltest;
13994 else
13995 enable_sdltest=yes
13999 if test x$sdl_exec_prefix != x ; then
14000 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14001 if test x${SDL_CONFIG+set} != xset ; then
14002 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14005 if test x$sdl_prefix != x ; then
14006 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14007 if test x${SDL_CONFIG+set} != xset ; then
14008 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14012 as_save_PATH="$PATH"
14013 if test "x$prefix" != xNONE; then
14014 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14016 # Extract the first word of "sdl-config", so it can be a program name with args.
14017 set dummy sdl-config; ac_word=$2
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14019 $as_echo_n "checking for $ac_word... " >&6; }
14020 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14021 $as_echo_n "(cached) " >&6
14022 else
14023 case $SDL_CONFIG in
14024 [\\/]* | ?:[\\/]*)
14025 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029 for as_dir in $PATH
14031 IFS=$as_save_IFS
14032 test -z "$as_dir" && as_dir=.
14033 for ac_exec_ext in '' $ac_executable_extensions; do
14034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14035 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14037 break 2
14039 done
14040 done
14041 IFS=$as_save_IFS
14043 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14045 esac
14047 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14048 if test -n "$SDL_CONFIG"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14050 $as_echo "$SDL_CONFIG" >&6; }
14051 else
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14057 PATH="$as_save_PATH"
14058 min_sdl_version=1.2.10
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14060 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14061 no_sdl=""
14062 if test "$SDL_CONFIG" = "no" ; then
14063 no_sdl=yes
14064 else
14065 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14066 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14068 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14069 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14070 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14071 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14072 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14073 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14074 if test "x$enable_sdltest" = "xyes" ; then
14075 ac_save_CFLAGS="$CFLAGS"
14076 ac_save_CXXFLAGS="$CXXFLAGS"
14077 ac_save_LIBS="$LIBS"
14078 CFLAGS="$CFLAGS $SDL_CFLAGS"
14079 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14080 LIBS="$LIBS $SDL_LIBS"
14081 rm -f conf.sdltest
14082 if test "$cross_compiling" = yes; then :
14083 echo $ac_n "cross compiling; assumed OK... $ac_c"
14084 else
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14088 #include <stdio.h>
14089 #include <stdlib.h>
14090 #include <string.h>
14091 #include "SDL.h"
14093 char*
14094 my_strdup (char *str)
14096 char *new_str;
14098 if (str)
14100 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14101 strcpy (new_str, str);
14103 else
14104 new_str = NULL;
14106 return new_str;
14109 int main (int argc, char *argv[])
14111 int major, minor, micro;
14112 char *tmp_version;
14114 /* This hangs on some systems (?)
14115 system ("touch conf.sdltest");
14117 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14119 /* HP/UX 9 (%@#!) writes to sscanf strings */
14120 tmp_version = my_strdup("$min_sdl_version");
14121 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14122 printf("%s, bad version string\n", "$min_sdl_version");
14123 exit(1);
14126 if (($sdl_major_version > major) ||
14127 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14128 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14130 return 0;
14132 else
14134 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14135 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14136 printf("*** best to upgrade to the required version.\n");
14137 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14138 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14139 printf("*** config.cache before re-running configure\n");
14140 return 1;
14145 _ACEOF
14146 if ac_fn_c_try_run "$LINENO"; then :
14148 else
14149 no_sdl=yes
14151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14152 conftest.$ac_objext conftest.beam conftest.$ac_ext
14155 CFLAGS="$ac_save_CFLAGS"
14156 CXXFLAGS="$ac_save_CXXFLAGS"
14157 LIBS="$ac_save_LIBS"
14160 if test "x$no_sdl" = x ; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14162 $as_echo "yes" >&6; }
14163 have_sdl="yes"
14164 else
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14167 if test "$SDL_CONFIG" = "no" ; then
14168 echo "*** The sdl-config script installed by SDL could not be found"
14169 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14170 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14171 echo "*** full path to sdl-config."
14172 else
14173 if test -f conf.sdltest ; then
14175 else
14176 echo "*** Could not run SDL test program, checking why..."
14177 CFLAGS="$CFLAGS $SDL_CFLAGS"
14178 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14179 LIBS="$LIBS $SDL_LIBS"
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14183 #include <stdio.h>
14184 #include "SDL.h"
14186 int main(int argc, char *argv[])
14187 { return 0; }
14188 #undef main
14189 #define main K_and_R_C_main
14192 main ()
14194 return 0;
14196 return 0;
14198 _ACEOF
14199 if ac_fn_c_try_link "$LINENO"; then :
14200 echo "*** The test program compiled, but did not run. This usually means"
14201 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14202 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14203 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14204 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14205 echo "*** is required on your system"
14206 echo "***"
14207 echo "*** If you have an old version installed, it is best to remove it, although"
14208 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14209 else
14210 echo "*** The test program failed to compile or link. See the file config.log for the"
14211 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14212 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14213 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14215 rm -f core conftest.err conftest.$ac_objext \
14216 conftest$ac_exeext conftest.$ac_ext
14217 CFLAGS="$ac_save_CFLAGS"
14218 CXXFLAGS="$ac_save_CXXFLAGS"
14219 LIBS="$ac_save_LIBS"
14222 SDL_CFLAGS=""
14223 SDL_LIBS=""
14224 have_sdl="no"
14228 rm -f conf.sdltest
14231 if test "x-$have_sdl" != "x-yes" ; then
14233 if test "x-$sdl_hidd" != "x-auto" ; then
14234 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14237 else
14238 sdl_hidd_target=kernel-hidd-sdl
14239 aros_host_sdl_cflags=SDL_CFLAGS
14240 aros_host_sdl_libs=SDL_LIBS
14244 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14245 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14250 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14251 oss_library_target=workbench-libs-oss-unix
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14257 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14258 # Check whether --enable-dbus was given.
14259 if test "${enable_dbus+set}" = set; then :
14260 enableval=$enable_dbus; dbus="yes"
14261 else
14262 dbus="no"
14265 if test "$dbus" = "yes" ; then
14266 ENABLE_DBUS=1
14267 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14268 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14269 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14270 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14271 else
14272 ENABLE_DBUS=0
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14275 $as_echo "$dbus" >&6; }
14277 if test "$use_kernel_cc_wrapper" = "yes" ; then
14278 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14281 if test "${crosstools}" != "yes" ; then
14282 aros_target_toolchain=no
14283 else
14284 aros_target_toolchain=yes
14288 # Generic
14300 # Compatability with other Amiga-like operation systems
14303 # Host related
14331 # Target Related
14395 # Delinting target compiler flags
14402 # Graphics Related
14419 # Native version related
14422 # Palm native version related
14425 # Unix/Hosted version related
14428 # MMU related
14431 # Apple iOS related
14436 # ARM default GCC target related
14442 # Android related
14446 # DBUS related
14453 #X11 related
14456 # Debug related
14462 # Collect-aros stuff: "-ius" to ignore undefined symbols
14465 # C compiler related
14468 # USB3.0 code
14471 case "$aros_flavour" in
14472 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14473 aros_flavour="emulation" ;;
14474 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14475 aros_flavour="emulation" ;;
14476 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14477 aros_flavour="standalone";;
14478 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14479 aros_flavour="standalone";;
14480 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14481 aros_flavour="native" ;;
14482 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14483 aros_flavour="native" ;;
14484 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14485 aros_flavour="linklib" ;;
14486 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14487 aros_flavour="palmnative" ;;
14488 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14489 aros_flavour="mac68knative" ;;
14490 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14491 aros_flavour="ppcnative" ;;
14492 esac
14494 if test ! -d ${aros_inc_dir} ; then
14495 ${MKDIR} ${aros_inc_dir}
14497 if test ! -d ${aros_geninc_dir} ; then
14498 ${MKDIR} ${aros_geninc_dir}
14500 if test ! -d ${aros_hostcfg_dir} ; then
14501 ${MKDIR} ${aros_hostcfg_dir}
14503 if test ! -d ${aros_targetcfg_dir} ; then
14504 ${MKDIR} ${aros_targetcfg_dir}
14506 if test ! -d ${aros_tools_dir} ; then
14507 ${MKDIR} ${aros_tools_dir}
14509 if test ! -d ${aros_scripts_dir} ; then
14510 ${MKDIR} ${aros_scripts_dir}
14513 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14516 ac_config_commands="$ac_config_commands compiler_executable"
14518 ac_config_commands="$ac_config_commands genmf_executable"
14521 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"
14524 cat >confcache <<\_ACEOF
14525 # This file is a shell script that caches the results of configure
14526 # tests run on this system so they can be shared between configure
14527 # scripts and configure runs, see configure's option --config-cache.
14528 # It is not useful on other systems. If it contains results you don't
14529 # want to keep, you may remove or edit it.
14531 # config.status only pays attention to the cache file if you give it
14532 # the --recheck option to rerun configure.
14534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14536 # following values.
14538 _ACEOF
14540 # The following way of writing the cache mishandles newlines in values,
14541 # but we know of no workaround that is simple, portable, and efficient.
14542 # So, we kill variables containing newlines.
14543 # Ultrix sh set writes to stderr and can't be redirected directly,
14544 # and sets the high bit in the cache file unless we assign to the vars.
14546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14547 eval ac_val=\$$ac_var
14548 case $ac_val in #(
14549 *${as_nl}*)
14550 case $ac_var in #(
14551 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14553 esac
14554 case $ac_var in #(
14555 _ | IFS | as_nl) ;; #(
14556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14557 *) { eval $ac_var=; unset $ac_var;} ;;
14558 esac ;;
14559 esac
14560 done
14562 (set) 2>&1 |
14563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14564 *${as_nl}ac_space=\ *)
14565 # `set' does not quote correctly, so add quotes: double-quote
14566 # substitution turns \\\\ into \\, and sed turns \\ into \.
14567 sed -n \
14568 "s/'/'\\\\''/g;
14569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14570 ;; #(
14572 # `set' quotes correctly as required by POSIX, so do not add quotes.
14573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14575 esac |
14576 sort
14578 sed '
14579 /^ac_cv_env_/b end
14580 t clear
14581 :clear
14582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14583 t end
14584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14585 :end' >>confcache
14586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14587 if test -w "$cache_file"; then
14588 if test "x$cache_file" != "x/dev/null"; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14590 $as_echo "$as_me: updating cache $cache_file" >&6;}
14591 if test ! -f "$cache_file" || test -h "$cache_file"; then
14592 cat confcache >"$cache_file"
14593 else
14594 case $cache_file in #(
14595 */* | ?:*)
14596 mv -f confcache "$cache_file"$$ &&
14597 mv -f "$cache_file"$$ "$cache_file" ;; #(
14599 mv -f confcache "$cache_file" ;;
14600 esac
14603 else
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14605 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14608 rm -f confcache
14610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14611 # Let make expand exec_prefix.
14612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14614 DEFS=-DHAVE_CONFIG_H
14616 ac_libobjs=
14617 ac_ltlibobjs=
14619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14620 # 1. Remove the extension, and $U if already installed.
14621 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14622 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14623 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14624 # will be set to the directory where LIBOBJS objects are built.
14625 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14626 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14627 done
14628 LIBOBJS=$ac_libobjs
14630 LTLIBOBJS=$ac_ltlibobjs
14634 : "${CONFIG_STATUS=./config.status}"
14635 ac_write_fail=0
14636 ac_clean_files_save=$ac_clean_files
14637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14640 as_write_fail=0
14641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14642 #! $SHELL
14643 # Generated by $as_me.
14644 # Run this file to recreate the current configuration.
14645 # Compiler output produced by configure, useful for debugging
14646 # configure, is in config.log if it exists.
14648 debug=false
14649 ac_cs_recheck=false
14650 ac_cs_silent=false
14652 SHELL=\${CONFIG_SHELL-$SHELL}
14653 export SHELL
14654 _ASEOF
14655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14656 ## -------------------- ##
14657 ## M4sh Initialization. ##
14658 ## -------------------- ##
14660 # Be more Bourne compatible
14661 DUALCASE=1; export DUALCASE # for MKS sh
14662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14663 emulate sh
14664 NULLCMD=:
14665 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14666 # is contrary to our usage. Disable this feature.
14667 alias -g '${1+"$@"}'='"$@"'
14668 setopt NO_GLOB_SUBST
14669 else
14670 case `(set -o) 2>/dev/null` in #(
14671 *posix*) :
14672 set -o posix ;; #(
14673 *) :
14675 esac
14679 as_nl='
14681 export as_nl
14682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14686 # Prefer a ksh shell builtin over an external printf program on Solaris,
14687 # but without wasting forks for bash or zsh.
14688 if test -z "$BASH_VERSION$ZSH_VERSION" \
14689 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14690 as_echo='print -r --'
14691 as_echo_n='print -rn --'
14692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14693 as_echo='printf %s\n'
14694 as_echo_n='printf %s'
14695 else
14696 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14697 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14698 as_echo_n='/usr/ucb/echo -n'
14699 else
14700 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14701 as_echo_n_body='eval
14702 arg=$1;
14703 case $arg in #(
14704 *"$as_nl"*)
14705 expr "X$arg" : "X\\(.*\\)$as_nl";
14706 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14707 esac;
14708 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14710 export as_echo_n_body
14711 as_echo_n='sh -c $as_echo_n_body as_echo'
14713 export as_echo_body
14714 as_echo='sh -c $as_echo_body as_echo'
14717 # The user is always right.
14718 if test "${PATH_SEPARATOR+set}" != set; then
14719 PATH_SEPARATOR=:
14720 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14721 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14722 PATH_SEPARATOR=';'
14727 # IFS
14728 # We need space, tab and new line, in precisely that order. Quoting is
14729 # there to prevent editors from complaining about space-tab.
14730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14731 # splitting by setting IFS to empty value.)
14732 IFS=" "" $as_nl"
14734 # Find who we are. Look in the path if we contain no directory separator.
14735 as_myself=
14736 case $0 in #((
14737 *[\\/]* ) as_myself=$0 ;;
14738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14741 IFS=$as_save_IFS
14742 test -z "$as_dir" && as_dir=.
14743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14744 done
14745 IFS=$as_save_IFS
14748 esac
14749 # We did not find ourselves, most probably we were run as `sh COMMAND'
14750 # in which case we are not to be found in the path.
14751 if test "x$as_myself" = x; then
14752 as_myself=$0
14754 if test ! -f "$as_myself"; then
14755 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14756 exit 1
14759 # Unset variables that we do not need and which cause bugs (e.g. in
14760 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14761 # suppresses any "Segmentation fault" message there. '((' could
14762 # trigger a bug in pdksh 5.2.14.
14763 for as_var in BASH_ENV ENV MAIL MAILPATH
14764 do eval test x\${$as_var+set} = xset \
14765 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14766 done
14767 PS1='$ '
14768 PS2='> '
14769 PS4='+ '
14771 # NLS nuisances.
14772 LC_ALL=C
14773 export LC_ALL
14774 LANGUAGE=C
14775 export LANGUAGE
14777 # CDPATH.
14778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14782 # ----------------------------------------
14783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14785 # script with STATUS, using 1 if that was 0.
14786 as_fn_error ()
14788 as_status=$1; test $as_status -eq 0 && as_status=1
14789 if test "$4"; then
14790 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14791 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14793 $as_echo "$as_me: error: $2" >&2
14794 as_fn_exit $as_status
14795 } # as_fn_error
14798 # as_fn_set_status STATUS
14799 # -----------------------
14800 # Set $? to STATUS, without forking.
14801 as_fn_set_status ()
14803 return $1
14804 } # as_fn_set_status
14806 # as_fn_exit STATUS
14807 # -----------------
14808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14809 as_fn_exit ()
14811 set +e
14812 as_fn_set_status $1
14813 exit $1
14814 } # as_fn_exit
14816 # as_fn_unset VAR
14817 # ---------------
14818 # Portably unset VAR.
14819 as_fn_unset ()
14821 { eval $1=; unset $1;}
14823 as_unset=as_fn_unset
14824 # as_fn_append VAR VALUE
14825 # ----------------------
14826 # Append the text in VALUE to the end of the definition contained in VAR. Take
14827 # advantage of any shell optimizations that allow amortized linear growth over
14828 # repeated appends, instead of the typical quadratic growth present in naive
14829 # implementations.
14830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14831 eval 'as_fn_append ()
14833 eval $1+=\$2
14835 else
14836 as_fn_append ()
14838 eval $1=\$$1\$2
14840 fi # as_fn_append
14842 # as_fn_arith ARG...
14843 # ------------------
14844 # Perform arithmetic evaluation on the ARGs, and store the result in the
14845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14846 # must be portable across $(()) and expr.
14847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14848 eval 'as_fn_arith ()
14850 as_val=$(( $* ))
14852 else
14853 as_fn_arith ()
14855 as_val=`expr "$@" || test $? -eq 1`
14857 fi # as_fn_arith
14860 if expr a : '\(a\)' >/dev/null 2>&1 &&
14861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14862 as_expr=expr
14863 else
14864 as_expr=false
14867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14868 as_basename=basename
14869 else
14870 as_basename=false
14873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14874 as_dirname=dirname
14875 else
14876 as_dirname=false
14879 as_me=`$as_basename -- "$0" ||
14880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14881 X"$0" : 'X\(//\)$' \| \
14882 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14883 $as_echo X/"$0" |
14884 sed '/^.*\/\([^/][^/]*\)\/*$/{
14885 s//\1/
14888 /^X\/\(\/\/\)$/{
14889 s//\1/
14892 /^X\/\(\/\).*/{
14893 s//\1/
14896 s/.*/./; q'`
14898 # Avoid depending upon Character Ranges.
14899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14902 as_cr_digits='0123456789'
14903 as_cr_alnum=$as_cr_Letters$as_cr_digits
14905 ECHO_C= ECHO_N= ECHO_T=
14906 case `echo -n x` in #(((((
14907 -n*)
14908 case `echo 'xy\c'` in
14909 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14910 xy) ECHO_C='\c';;
14911 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14912 ECHO_T=' ';;
14913 esac;;
14915 ECHO_N='-n';;
14916 esac
14918 rm -f conf$$ conf$$.exe conf$$.file
14919 if test -d conf$$.dir; then
14920 rm -f conf$$.dir/conf$$.file
14921 else
14922 rm -f conf$$.dir
14923 mkdir conf$$.dir 2>/dev/null
14925 if (echo >conf$$.file) 2>/dev/null; then
14926 if ln -s conf$$.file conf$$ 2>/dev/null; then
14927 as_ln_s='ln -s'
14928 # ... but there are two gotchas:
14929 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14930 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14931 # In both cases, we have to default to `cp -p'.
14932 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14933 as_ln_s='cp -p'
14934 elif ln conf$$.file conf$$ 2>/dev/null; then
14935 as_ln_s=ln
14936 else
14937 as_ln_s='cp -p'
14939 else
14940 as_ln_s='cp -p'
14942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14943 rmdir conf$$.dir 2>/dev/null
14946 # as_fn_mkdir_p
14947 # -------------
14948 # Create "$as_dir" as a directory, including parents if necessary.
14949 as_fn_mkdir_p ()
14952 case $as_dir in #(
14953 -*) as_dir=./$as_dir;;
14954 esac
14955 test -d "$as_dir" || eval $as_mkdir_p || {
14956 as_dirs=
14957 while :; do
14958 case $as_dir in #(
14959 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14960 *) as_qdir=$as_dir;;
14961 esac
14962 as_dirs="'$as_qdir' $as_dirs"
14963 as_dir=`$as_dirname -- "$as_dir" ||
14964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14965 X"$as_dir" : 'X\(//\)[^/]' \| \
14966 X"$as_dir" : 'X\(//\)$' \| \
14967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14968 $as_echo X"$as_dir" |
14969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14970 s//\1/
14973 /^X\(\/\/\)[^/].*/{
14974 s//\1/
14977 /^X\(\/\/\)$/{
14978 s//\1/
14981 /^X\(\/\).*/{
14982 s//\1/
14985 s/.*/./; q'`
14986 test -d "$as_dir" && break
14987 done
14988 test -z "$as_dirs" || eval "mkdir $as_dirs"
14989 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14992 } # as_fn_mkdir_p
14993 if mkdir -p . 2>/dev/null; then
14994 as_mkdir_p='mkdir -p "$as_dir"'
14995 else
14996 test -d ./-p && rmdir ./-p
14997 as_mkdir_p=false
15000 if test -x / >/dev/null 2>&1; then
15001 as_test_x='test -x'
15002 else
15003 if ls -dL / >/dev/null 2>&1; then
15004 as_ls_L_option=L
15005 else
15006 as_ls_L_option=
15008 as_test_x='
15009 eval sh -c '\''
15010 if test -d "$1"; then
15011 test -d "$1/.";
15012 else
15013 case $1 in #(
15014 -*)set "./$1";;
15015 esac;
15016 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15017 ???[sx]*):;;*)false;;esac;fi
15018 '\'' sh
15021 as_executable_p=$as_test_x
15023 # Sed expression to map a string onto a valid CPP name.
15024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15026 # Sed expression to map a string onto a valid variable name.
15027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15030 exec 6>&1
15031 ## ----------------------------------- ##
15032 ## Main body of $CONFIG_STATUS script. ##
15033 ## ----------------------------------- ##
15034 _ASEOF
15035 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038 # Save the log message, to keep $0 and so on meaningful, and to
15039 # report actual input values of CONFIG_FILES etc. instead of their
15040 # values after options handling.
15041 ac_log="
15042 This file was extended by $as_me, which was
15043 generated by GNU Autoconf 2.68. Invocation command line was
15045 CONFIG_FILES = $CONFIG_FILES
15046 CONFIG_HEADERS = $CONFIG_HEADERS
15047 CONFIG_LINKS = $CONFIG_LINKS
15048 CONFIG_COMMANDS = $CONFIG_COMMANDS
15049 $ $0 $@
15051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15054 _ACEOF
15056 case $ac_config_files in *"
15057 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15058 esac
15060 case $ac_config_headers in *"
15061 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15062 esac
15065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15066 # Files that config.status was made for.
15067 config_files="$ac_config_files"
15068 config_headers="$ac_config_headers"
15069 config_commands="$ac_config_commands"
15071 _ACEOF
15073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15074 ac_cs_usage="\
15075 \`$as_me' instantiates files and other configuration actions
15076 from templates according to the current configuration. Unless the files
15077 and actions are specified as TAGs, all are instantiated by default.
15079 Usage: $0 [OPTION]... [TAG]...
15081 -h, --help print this help, then exit
15082 -V, --version print version number and configuration settings, then exit
15083 --config print configuration, then exit
15084 -q, --quiet, --silent
15085 do not print progress messages
15086 -d, --debug don't remove temporary files
15087 --recheck update $as_me by reconfiguring in the same conditions
15088 --file=FILE[:TEMPLATE]
15089 instantiate the configuration file FILE
15090 --header=FILE[:TEMPLATE]
15091 instantiate the configuration header FILE
15093 Configuration files:
15094 $config_files
15096 Configuration headers:
15097 $config_headers
15099 Configuration commands:
15100 $config_commands
15102 Report bugs to the package provider."
15104 _ACEOF
15105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15106 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15107 ac_cs_version="\\
15108 config.status
15109 configured by $0, generated by GNU Autoconf 2.68,
15110 with options \\"\$ac_cs_config\\"
15112 Copyright (C) 2010 Free Software Foundation, Inc.
15113 This config.status script is free software; the Free Software Foundation
15114 gives unlimited permission to copy, distribute and modify it."
15116 ac_pwd='$ac_pwd'
15117 srcdir='$srcdir'
15118 test -n "\$AWK" || AWK=awk
15119 _ACEOF
15121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15122 # The default lists apply if the user does not specify any file.
15123 ac_need_defaults=:
15124 while test $# != 0
15126 case $1 in
15127 --*=?*)
15128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15130 ac_shift=:
15132 --*=)
15133 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15134 ac_optarg=
15135 ac_shift=:
15138 ac_option=$1
15139 ac_optarg=$2
15140 ac_shift=shift
15142 esac
15144 case $ac_option in
15145 # Handling of the options.
15146 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15147 ac_cs_recheck=: ;;
15148 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15149 $as_echo "$ac_cs_version"; exit ;;
15150 --config | --confi | --conf | --con | --co | --c )
15151 $as_echo "$ac_cs_config"; exit ;;
15152 --debug | --debu | --deb | --de | --d | -d )
15153 debug=: ;;
15154 --file | --fil | --fi | --f )
15155 $ac_shift
15156 case $ac_optarg in
15157 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15158 '') as_fn_error $? "missing file argument" ;;
15159 esac
15160 as_fn_append CONFIG_FILES " '$ac_optarg'"
15161 ac_need_defaults=false;;
15162 --header | --heade | --head | --hea )
15163 $ac_shift
15164 case $ac_optarg in
15165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15166 esac
15167 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15168 ac_need_defaults=false;;
15169 --he | --h)
15170 # Conflict between --help and --header
15171 as_fn_error $? "ambiguous option: \`$1'
15172 Try \`$0 --help' for more information.";;
15173 --help | --hel | -h )
15174 $as_echo "$ac_cs_usage"; exit ;;
15175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15177 ac_cs_silent=: ;;
15179 # This is an error.
15180 -*) as_fn_error $? "unrecognized option: \`$1'
15181 Try \`$0 --help' for more information." ;;
15183 *) as_fn_append ac_config_targets " $1"
15184 ac_need_defaults=false ;;
15186 esac
15187 shift
15188 done
15190 ac_configure_extra_args=
15192 if $ac_cs_silent; then
15193 exec 6>/dev/null
15194 ac_configure_extra_args="$ac_configure_extra_args --silent"
15197 _ACEOF
15198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15199 if \$ac_cs_recheck; then
15200 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15201 shift
15202 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15203 CONFIG_SHELL='$SHELL'
15204 export CONFIG_SHELL
15205 exec "\$@"
15208 _ACEOF
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15210 exec 5>>config.log
15212 echo
15213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15214 ## Running $as_me. ##
15215 _ASBOX
15216 $as_echo "$ac_log"
15217 } >&5
15219 _ACEOF
15220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222 # INIT-COMMANDS
15225 aros_host_exe_suffix=${aros_host_exe_suffix}
15226 aros_tools_dir=${aros_tools_dir}
15227 aros_target_cpu=${aros_target_cpu}
15228 aros_target_arch=${aros_target_arch}
15229 aros_target_suffix=${aros_target_suffix}
15230 orig_target_nm=${orig_target_nm}
15231 orig_target_as=${orig_target_as}
15232 orig_target_ar=${orig_target_ar}
15233 orig_target_ranlib=${orig_target_ranlib}
15234 orig_target_objdump=${orig_target_objdump}
15235 orig_target_objcopy=${orig_target_objcopy}
15236 orig_target_strip=${orig_target_strip}
15237 aros_kernel_ld=${aros_kernel_ld}
15240 aros_tools_dir=${aros_tools_dir}
15243 _ACEOF
15245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15247 # Handling of arguments.
15248 for ac_config_target in $ac_config_targets
15250 case $ac_config_target in
15251 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15252 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15253 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15254 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15255 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15256 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15257 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15258 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15259 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15260 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15261 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15262 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15263 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15264 "${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" ;;
15265 "${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" ;;
15266 "${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" ;;
15267 "${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" ;;
15268 "${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" ;;
15269 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15270 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15271 "${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" ;;
15273 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15274 esac
15275 done
15278 # If the user did not use the arguments to specify the items to instantiate,
15279 # then the envvar interface is used. Set only those that are not.
15280 # We use the long form for the default assignment because of an extremely
15281 # bizarre bug on SunOS 4.1.3.
15282 if $ac_need_defaults; then
15283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15288 # Have a temporary directory for convenience. Make it in the build tree
15289 # simply because there is no reason against having it here, and in addition,
15290 # creating and moving files from /tmp can sometimes cause problems.
15291 # Hook for its removal unless debugging.
15292 # Note that there is a small window in which the directory will not be cleaned:
15293 # after its creation but before its name has been assigned to `$tmp'.
15294 $debug ||
15296 tmp= ac_tmp=
15297 trap 'exit_status=$?
15298 : "${ac_tmp:=$tmp}"
15299 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15301 trap 'as_fn_exit 1' 1 2 13 15
15303 # Create a (secure) tmp directory for tmp files.
15306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15307 test -d "$tmp"
15308 } ||
15310 tmp=./conf$$-$RANDOM
15311 (umask 077 && mkdir "$tmp")
15312 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15313 ac_tmp=$tmp
15315 # Set up the scripts for CONFIG_FILES section.
15316 # No need to generate them if there are no CONFIG_FILES.
15317 # This happens for instance with `./config.status config.h'.
15318 if test -n "$CONFIG_FILES"; then
15321 ac_cr=`echo X | tr X '\015'`
15322 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15323 # But we know of no other shell where ac_cr would be empty at this
15324 # point, so we can use a bashism as a fallback.
15325 if test "x$ac_cr" = x; then
15326 eval ac_cr=\$\'\\r\'
15328 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15329 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15330 ac_cs_awk_cr='\\r'
15331 else
15332 ac_cs_awk_cr=$ac_cr
15335 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15336 _ACEOF
15340 echo "cat >conf$$subs.awk <<_ACEOF" &&
15341 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15342 echo "_ACEOF"
15343 } >conf$$subs.sh ||
15344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15345 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15346 ac_delim='%!_!# '
15347 for ac_last_try in false false false false false :; do
15348 . ./conf$$subs.sh ||
15349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15351 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15352 if test $ac_delim_n = $ac_delim_num; then
15353 break
15354 elif $ac_last_try; then
15355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15356 else
15357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15359 done
15360 rm -f conf$$subs.sh
15362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15363 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15364 _ACEOF
15365 sed -n '
15367 s/^/S["/; s/!.*/"]=/
15370 s/^[^!]*!//
15371 :repl
15372 t repl
15373 s/'"$ac_delim"'$//
15374 t delim
15377 s/\(.\{148\}\)..*/\1/
15378 t more1
15379 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15382 b repl
15383 :more1
15384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15387 s/.\{148\}//
15388 t nl
15389 :delim
15391 s/\(.\{148\}\)..*/\1/
15392 t more2
15393 s/["\\]/\\&/g; s/^/"/; s/$/"/
15396 :more2
15397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15400 s/.\{148\}//
15401 t delim
15402 ' <conf$$subs.awk | sed '
15403 /^[^""]/{
15405 s/\n//
15407 ' >>$CONFIG_STATUS || ac_write_fail=1
15408 rm -f conf$$subs.awk
15409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15410 _ACAWK
15411 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15412 for (key in S) S_is_set[key] = 1
15413 FS = "\a"
15417 line = $ 0
15418 nfields = split(line, field, "@")
15419 substed = 0
15420 len = length(field[1])
15421 for (i = 2; i < nfields; i++) {
15422 key = field[i]
15423 keylen = length(key)
15424 if (S_is_set[key]) {
15425 value = S[key]
15426 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15427 len += length(value) + length(field[++i])
15428 substed = 1
15429 } else
15430 len += 1 + keylen
15433 print line
15436 _ACAWK
15437 _ACEOF
15438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15439 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15440 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15441 else
15443 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15444 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15445 _ACEOF
15447 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15448 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15449 # trailing colons and then remove the whole line if VPATH becomes empty
15450 # (actually we leave an empty line to preserve line numbers).
15451 if test "x$srcdir" = x.; then
15452 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15454 s///
15455 s/^/:/
15456 s/[ ]*$/:/
15457 s/:\$(srcdir):/:/g
15458 s/:\${srcdir}:/:/g
15459 s/:@srcdir@:/:/g
15460 s/^:*//
15461 s/:*$//
15463 s/\(=[ ]*\).*/\1/
15465 s/\n//
15466 s/^[^=]*=[ ]*$//
15470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15471 fi # test -n "$CONFIG_FILES"
15473 # Set up the scripts for CONFIG_HEADERS section.
15474 # No need to generate them if there are no CONFIG_HEADERS.
15475 # This happens for instance with `./config.status Makefile'.
15476 if test -n "$CONFIG_HEADERS"; then
15477 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15478 BEGIN {
15479 _ACEOF
15481 # Transform confdefs.h into an awk script `defines.awk', embedded as
15482 # here-document in config.status, that substitutes the proper values into
15483 # config.h.in to produce config.h.
15485 # Create a delimiter string that does not exist in confdefs.h, to ease
15486 # handling of long lines.
15487 ac_delim='%!_!# '
15488 for ac_last_try in false false :; do
15489 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15490 if test -z "$ac_tt"; then
15491 break
15492 elif $ac_last_try; then
15493 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15494 else
15495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15497 done
15499 # For the awk script, D is an array of macro values keyed by name,
15500 # likewise P contains macro parameters if any. Preserve backslash
15501 # newline sequences.
15503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15504 sed -n '
15505 s/.\{148\}/&'"$ac_delim"'/g
15506 t rset
15507 :rset
15508 s/^[ ]*#[ ]*define[ ][ ]*/ /
15509 t def
15511 :def
15512 s/\\$//
15513 t bsnl
15514 s/["\\]/\\&/g
15515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15516 D["\1"]=" \3"/p
15517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15519 :bsnl
15520 s/["\\]/\\&/g
15521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15522 D["\1"]=" \3\\\\\\n"\\/p
15523 t cont
15524 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15525 t cont
15527 :cont
15529 s/.\{148\}/&'"$ac_delim"'/g
15530 t clear
15531 :clear
15532 s/\\$//
15533 t bsnlc
15534 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15536 :bsnlc
15537 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15538 b cont
15539 ' <confdefs.h | sed '
15540 s/'"$ac_delim"'/"\\\
15541 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544 for (key in D) D_is_set[key] = 1
15545 FS = "\a"
15547 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15548 line = \$ 0
15549 split(line, arg, " ")
15550 if (arg[1] == "#") {
15551 defundef = arg[2]
15552 mac1 = arg[3]
15553 } else {
15554 defundef = substr(arg[1], 2)
15555 mac1 = arg[2]
15557 split(mac1, mac2, "(") #)
15558 macro = mac2[1]
15559 prefix = substr(line, 1, index(line, defundef) - 1)
15560 if (D_is_set[macro]) {
15561 # Preserve the white space surrounding the "#".
15562 print prefix "define", macro P[macro] D[macro]
15563 next
15564 } else {
15565 # Replace #undef with comments. This is necessary, for example,
15566 # in the case of _POSIX_SOURCE, which is predefined and required
15567 # on some systems where configure will not decide to define it.
15568 if (defundef == "undef") {
15569 print "/*", prefix defundef, macro, "*/"
15570 next
15574 { print }
15575 _ACAWK
15576 _ACEOF
15577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15578 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15579 fi # test -n "$CONFIG_HEADERS"
15582 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15583 shift
15584 for ac_tag
15586 case $ac_tag in
15587 :[FHLC]) ac_mode=$ac_tag; continue;;
15588 esac
15589 case $ac_mode$ac_tag in
15590 :[FHL]*:*);;
15591 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15592 :[FH]-) ac_tag=-:-;;
15593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15594 esac
15595 ac_save_IFS=$IFS
15596 IFS=:
15597 set x $ac_tag
15598 IFS=$ac_save_IFS
15599 shift
15600 ac_file=$1
15601 shift
15603 case $ac_mode in
15604 :L) ac_source=$1;;
15605 :[FH])
15606 ac_file_inputs=
15607 for ac_f
15609 case $ac_f in
15610 -) ac_f="$ac_tmp/stdin";;
15611 *) # Look for the file first in the build tree, then in the source tree
15612 # (if the path is not absolute). The absolute path cannot be DOS-style,
15613 # because $ac_f cannot contain `:'.
15614 test -f "$ac_f" ||
15615 case $ac_f in
15616 [\\/$]*) false;;
15617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15618 esac ||
15619 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15620 esac
15621 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15622 as_fn_append ac_file_inputs " '$ac_f'"
15623 done
15625 # Let's still pretend it is `configure' which instantiates (i.e., don't
15626 # use $as_me), people would be surprised to read:
15627 # /* config.h. Generated by config.status. */
15628 configure_input='Generated from '`
15629 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15630 `' by configure.'
15631 if test x"$ac_file" != x-; then
15632 configure_input="$ac_file. $configure_input"
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15634 $as_echo "$as_me: creating $ac_file" >&6;}
15636 # Neutralize special characters interpreted by sed in replacement strings.
15637 case $configure_input in #(
15638 *\&* | *\|* | *\\* )
15639 ac_sed_conf_input=`$as_echo "$configure_input" |
15640 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15641 *) ac_sed_conf_input=$configure_input;;
15642 esac
15644 case $ac_tag in
15645 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15647 esac
15649 esac
15651 ac_dir=`$as_dirname -- "$ac_file" ||
15652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15653 X"$ac_file" : 'X\(//\)[^/]' \| \
15654 X"$ac_file" : 'X\(//\)$' \| \
15655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15656 $as_echo X"$ac_file" |
15657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15658 s//\1/
15661 /^X\(\/\/\)[^/].*/{
15662 s//\1/
15665 /^X\(\/\/\)$/{
15666 s//\1/
15669 /^X\(\/\).*/{
15670 s//\1/
15673 s/.*/./; q'`
15674 as_dir="$ac_dir"; as_fn_mkdir_p
15675 ac_builddir=.
15677 case "$ac_dir" in
15678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15681 # A ".." for each directory in $ac_dir_suffix.
15682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15683 case $ac_top_builddir_sub in
15684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15686 esac ;;
15687 esac
15688 ac_abs_top_builddir=$ac_pwd
15689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15690 # for backward compatibility:
15691 ac_top_builddir=$ac_top_build_prefix
15693 case $srcdir in
15694 .) # We are building in place.
15695 ac_srcdir=.
15696 ac_top_srcdir=$ac_top_builddir_sub
15697 ac_abs_top_srcdir=$ac_pwd ;;
15698 [\\/]* | ?:[\\/]* ) # Absolute name.
15699 ac_srcdir=$srcdir$ac_dir_suffix;
15700 ac_top_srcdir=$srcdir
15701 ac_abs_top_srcdir=$srcdir ;;
15702 *) # Relative name.
15703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15704 ac_top_srcdir=$ac_top_build_prefix$srcdir
15705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15706 esac
15707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15710 case $ac_mode in
15713 # CONFIG_FILE
15716 _ACEOF
15718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15719 # If the template does not know about datarootdir, expand it.
15720 # FIXME: This hack should be removed a few years after 2.60.
15721 ac_datarootdir_hack=; ac_datarootdir_seen=
15722 ac_sed_dataroot='
15723 /datarootdir/ {
15727 /@datadir@/p
15728 /@docdir@/p
15729 /@infodir@/p
15730 /@localedir@/p
15731 /@mandir@/p'
15732 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15733 *datarootdir*) ac_datarootdir_seen=yes;;
15734 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15736 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15737 _ACEOF
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 ac_datarootdir_hack='
15740 s&@datadir@&$datadir&g
15741 s&@docdir@&$docdir&g
15742 s&@infodir@&$infodir&g
15743 s&@localedir@&$localedir&g
15744 s&@mandir@&$mandir&g
15745 s&\\\${datarootdir}&$datarootdir&g' ;;
15746 esac
15747 _ACEOF
15749 # Neutralize VPATH when `$srcdir' = `.'.
15750 # Shell code in configure.ac might set extrasub.
15751 # FIXME: do we really want to maintain this feature?
15752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15753 ac_sed_extra="$ac_vpsub
15754 $extrasub
15755 _ACEOF
15756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15759 s|@configure_input@|$ac_sed_conf_input|;t t
15760 s&@top_builddir@&$ac_top_builddir_sub&;t t
15761 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15762 s&@srcdir@&$ac_srcdir&;t t
15763 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15764 s&@top_srcdir@&$ac_top_srcdir&;t t
15765 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15766 s&@builddir@&$ac_builddir&;t t
15767 s&@abs_builddir@&$ac_abs_builddir&;t t
15768 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15769 $ac_datarootdir_hack
15771 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15772 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15774 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15775 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15776 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15777 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15779 which seems to be undefined. Please make sure it is defined" >&5
15780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15781 which seems to be undefined. Please make sure it is defined" >&2;}
15783 rm -f "$ac_tmp/stdin"
15784 case $ac_file in
15785 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15786 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15787 esac \
15788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15792 # CONFIG_HEADER
15794 if test x"$ac_file" != x-; then
15796 $as_echo "/* $configure_input */" \
15797 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15798 } >"$ac_tmp/config.h" \
15799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15800 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15802 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15803 else
15804 rm -f "$ac_file"
15805 mv "$ac_tmp/config.h" "$ac_file" \
15806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15808 else
15809 $as_echo "/* $configure_input */" \
15810 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15811 || as_fn_error $? "could not create -" "$LINENO" 5
15815 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15816 $as_echo "$as_me: executing $ac_file commands" >&6;}
15818 esac
15821 case $ac_file$ac_mode in
15822 "compiler_executable":C)
15823 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15824 mkdir -p $prefix
15825 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15826 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15828 echo ${prefix2}
15829 echo ${prefix3}
15830 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15832 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15833 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15834 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15835 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15836 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15837 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15838 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15840 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15842 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15844 esac
15845 done # for ac_tag
15848 as_fn_exit 0
15849 _ACEOF
15850 ac_clean_files=$ac_clean_files_save
15852 test $ac_write_fail = 0 ||
15853 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15856 # configure is writing to config.log, and then calls config.status.
15857 # config.status does its own redirection, appending to config.log.
15858 # Unfortunately, on DOS this fails, as config.log is still kept open
15859 # by configure, so config.status won't be able to write to it; its
15860 # output is simply discarded. So we exec the FD to /dev/null,
15861 # effectively closing config.log, so it can be properly (re)opened and
15862 # appended to by config.status. When coming back to configure, we
15863 # need to make the FD available again.
15864 if test "$no_create" != yes; then
15865 ac_cs_success=:
15866 ac_config_status_args=
15867 test "$silent" = yes &&
15868 ac_config_status_args="$ac_config_status_args --quiet"
15869 exec 5>/dev/null
15870 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15871 exec 5>>config.log
15872 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15873 # would make configure fail if this is the last instruction.
15874 $ac_cs_success || as_fn_exit 1
15876 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15878 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15883 #XXX compatability...
15884 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15886 if test -n "$aros_shared_cflags" ; then
15887 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15888 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg