add processor.resource to the build
[AROS.git] / configure
blob1476469b00ac28a6d1c7112a2aae46f8f6b9fa74
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 amiga*)
8278 aros_target_arch="amiga"
8279 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8280 aros_shared_default="no"
8282 case "$target_cpu" in
8283 *m68k*)
8284 # Check whether --enable-amigaos_compliance was given.
8285 if test "${enable_amigaos_compliance+set}" = set; then :
8286 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8289 aros_enable_mmu=no
8290 aros_target_cpu="m68k"
8291 aros_object_format="m68kelf"
8292 aros_flavour="standcompat"
8293 gcc_target_cpu="m68000"
8294 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8295 aros_config_aflags="$aros_config_aflags"
8296 aros_target_strip_flags="-R.comment --strip-debug"
8297 aros_default_wbwidth=640
8298 aros_default_wbheight=256
8299 aros_default_wbdepth=2
8301 *ppc*)
8302 aros_cpu="ppc"
8303 aros_flavour="native"
8304 gcc_target_cpu="ppc"
8307 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8309 esac
8312 mingw*)
8313 aros_target_arch="mingw32"
8314 aros_shared_default="no"
8315 aros_flavour="emulation"
8316 aros_shared_cflags=""
8317 need_crosstools="yes"
8318 need_dlopen="no"
8319 rescomp="windres"
8320 case "$target_cpu" in
8321 *i?86*)
8322 aros_target_cpu="i386"
8323 aros_object_format="elf_i386"
8324 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8325 aros_default_wbdepth=8
8326 gcc_target_cpu="i386"
8328 kernel_tool_prefix="i386-mingw32-"
8330 *x86_64*)
8331 aros_target_cpu="x86_64"
8332 aros_object_format="elf_x86_64"
8333 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8334 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8335 aros_default_wbdepth=8
8336 kernel_tool_prefix="x86_64-w64-mingw32-"
8338 *arm*)
8339 aros_target_cpu="arm"
8340 aros_object_format="armelf_linux_eabi"
8341 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8342 aros_arch_libs="-laeabi"
8343 aros_default_wbdepth=8
8344 gcc_target_cpu="arm"
8345 gcc_default_float_abi="soft"
8346 kernel_tool_prefix="arm-mingw32ce-"
8347 aros_default_wbwidth=160
8348 aros_default_wbheight=160
8351 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8353 esac
8354 if test $host_os = "cygwin"; then
8355 aros_kernel_cflags="-mno-cygwin"
8358 pp*)
8359 aros_target_arch="pp"
8360 aros_shared_default="no"
8361 case "$target_cpu" in
8362 *m68k*)
8363 aros_target_cpu="m68k"
8364 aros_object_format="m68kelf"
8365 aros_flavour="palmnative"
8366 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8367 aros_default_wbwidth=160
8368 aros_default_wbheight=160
8369 aros_default_wbdepth=1
8370 aros_target_ar_flags="cru"
8371 aros_compiler_libs="-lgcc1"
8372 aros_shared_default=no
8373 aros_shared_cflags="-fpic"
8374 aros_shared_aflags=""
8375 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8376 aros_kernel_ldflags="-Wl,-rpath,./lib"
8377 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8378 aros_debug_aflags=""
8379 aros_debug_ldflags="$aros_symbols_debug"
8380 aros_mungwall_debug="0"
8381 aros_modules_debug="0"
8382 gcc_target_cpu="mc68000"
8383 ignore_undefined_symbols="-ius"
8386 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8388 esac
8391 mac*)
8392 aros_target_arch="mac"
8393 aros_shared_default="no"
8394 case "$target_cpu" in
8395 *m68k*)
8396 aros_target_cpu="m68k"
8397 aros_object_format="m68kelf"
8398 aros_flavour="mac68knative"
8399 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8400 aros_default_wbwidth=512
8401 aros_default_wbheight=384
8402 aros_default_wbdepth=8
8403 aros_target_ar_flags="cru"
8404 aros_compiler_libs="-lgcc1"
8405 aros_shared_default=no
8406 aros_shared_cflags="-fpic"
8407 aros_shared_aflags=""
8408 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8409 aros_kernel_ldflags="-Wl,-rpath,./lib"
8410 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8411 aros_debug_aflags=""
8412 aros_debug_ldflags="$aros_symbols_debug"
8413 aros_mungwall_debug="0"
8414 aros_modules_debug="0"
8415 gcc_target_cpu="mc68000"
8416 ignore_undefined_symbols="-ius"
8419 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8421 esac
8425 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8427 esac
8429 #-----------------------------------------------------------------------------
8430 crosstools_guess=yes
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8433 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8435 # Check whether --with-kernel-toolchain-prefix was given.
8436 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8437 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8441 $as_echo "$kernel_tool_prefix" >&6; }
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8444 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8446 # Check whether --with-elf-toolchain-prefix was given.
8447 if test "${with_elf_toolchain_prefix+set}" = set; then :
8448 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8449 crosstools_guess=no
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8453 $as_echo "$elf_tool_prefix" >&6; }
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8456 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8458 # Check whether --with-aros-toolchain was given.
8459 if test "${with_aros_toolchain+set}" = set; then :
8460 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8461 crosstools_guess=no
8464 if test "$aros_tool_prefix" = "yes" ; then
8465 aros_tool_prefix=$aros_target_cpu-aros-
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8468 $as_echo "$aros_tool_prefix" >&6; }
8470 #-----------------------------------------------------------------------------
8471 # Checking if we should build crosstools..
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8473 $as_echo_n "checking whether to build crosstools... " >&6; }
8474 # Check whether --enable-crosstools was given.
8475 if test "${enable_crosstools+set}" = set; then :
8476 enableval=$enable_crosstools; crosstools="$enableval"
8477 else
8478 crosstools="$crosstools_guess"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8482 $as_echo "$crosstools" >&6; }
8484 if test "${crosstools}" = "yes"; then
8485 if test "${crosstools_guess}" = "no"; then
8486 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8491 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8493 # Check whether --with-aros-toolchain-install was given.
8494 if test "${with_aros_toolchain_install+set}" = set; then :
8495 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8498 if test "x$aros_toolchain_install" = "x"; then
8499 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8500 else
8501 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8502 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8505 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8508 # Now process extra architecture-specific options.
8509 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8510 # as well as floating-point ABI.
8511 case "$aros_target_cpu" in
8512 arm)
8513 if test "$gcc_default_cpu" = ""; then
8514 gcc_default_cpu="armv6"
8516 if test "$gcc_default_fpu" = ""; then
8517 gcc_default_fpu="vfp"
8519 if test "$gcc_default_float_abi" = ""; then
8520 gcc_default_float_abi="softfp"
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8524 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8526 # Check whether --with-cpu was given.
8527 if test "${with_cpu+set}" = set; then :
8528 withval=$with_cpu; aros_gcc_cpu="$withval"
8529 else
8530 aros_gcc_cpu=$gcc_default_cpu
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8534 $as_echo "$aros_gcc_cpu" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8537 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8539 # Check whether --with-fpu was given.
8540 if test "${with_fpu+set}" = set; then :
8541 withval=$with_fpu; aros_gcc_fpu="$withval"
8542 else
8543 aros_gcc_fpu=$gcc_default_fpu
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8547 $as_echo "$aros_gcc_fpu" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8550 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8552 # Check whether --with-float was given.
8553 if test "${with_float+set}" = set; then :
8554 withval=$with_float; aros_gcc_float_abi="$withval"
8555 else
8556 aros_gcc_float_abi=$gcc_default_float_abi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8560 $as_echo "$aros_gcc_float_abi" >&6; }
8562 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"
8563 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"
8565 esac
8567 # Some formats need custom ELF specs.
8568 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8569 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8570 elf_specs_in=config/${aros_object_format}-specs.in
8571 else
8572 elf_specs_in=config/elf-specs.in
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8576 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8578 # Check whether --with-aros-gcc was given.
8579 if test "${with_aros_gcc+set}" = set; then :
8580 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8581 else
8582 aros_gcc_version=""
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8586 $as_echo "$aros_gcc_version" >&6; }
8588 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8589 # Since we override specs, we may need to put these defines there
8590 if test "$gcc_target_cpu" != ""; then
8591 gcc_target_cpu="-D__${gcc_target_cpu}__"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8595 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8597 # Check whether --with-portssources was given.
8598 if test "${with_portssources+set}" = set; then :
8599 withval=$with_portssources; with_portssrcdir=$withval
8600 else
8601 with_portssrcdir="default"
8604 if test "$with_portssrcdir" = "default"; then
8605 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8606 else
8607 AROS_PORTSSRCDIR="$with_portssrcdir"
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8610 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8613 $as_echo_n "checking which bootloader to use... " >&6; }
8615 # Check whether --with-bootloader was given.
8616 if test "${with_bootloader+set}" = set; then :
8617 withval=$with_bootloader; target_bootloader=$withval
8618 else
8619 target_bootloader=$target_bootloader
8622 if test "$target_bootloader" = "none"; then
8623 aros_target_bootloader=""
8624 else
8625 aros_target_bootloader="$target_bootloader"
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8628 $as_echo "$target_bootloader" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8631 $as_echo_n "checking which icon-set to use... " >&6; }
8633 # Check whether --with-iconset was given.
8634 if test "${with_iconset+set}" = set; then :
8635 withval=$with_iconset; target_iconset=$withval
8636 else
8637 target_iconset="default"
8640 if test "$target_iconset" = "default"; then
8641 aros_target_iconset="Gorilla"
8642 target_iconset="default (Gorilla)"
8643 else
8644 aros_target_iconset="$target_iconset"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8647 $as_echo "$target_iconset" >&6; }
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8650 $as_echo_n "checking which GUI Theme to use... " >&6; }
8652 # Check whether --with-theme was given.
8653 if test "${with_theme+set}" = set; then :
8654 withval=$with_theme; target_guitheme=$withval
8655 else
8656 target_guitheme="default"
8659 if test "$target_guitheme" = "default"; then
8660 aros_target_guitheme="Ice"
8661 else
8662 aros_target_guitheme="$target_guitheme"
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8665 $as_echo "$aros_target_guitheme" >&6; }
8667 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8668 # for target code)
8669 cross_compiling=no
8671 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8672 cross_compiling=yes
8675 if test "$aros_host_cpu" == "x86_64" ; then
8676 if test "$aros_target_cpu" == "i386" ; then
8677 cross_compiling=no
8681 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8682 if test "$aros_host_arch" != "$aros_target_arch" ; then
8683 cross_compiling=yes
8685 else
8686 if test "$host_cc_elf" = "no" ; then
8687 cross_compiling=yes
8691 if test "$cross_compiling" = "no" ; then
8692 kernel_tool_prefix=""
8693 if test "$host_cc_elf" = "yes" ; then
8694 elf_tool_prefix=""
8698 #######################################################################
8699 ## Compute what toolchains to use, and their paths ##
8700 #######################################################################
8702 # This takes, as input:
8703 # crosstools {yes,no}
8704 # kernel_tool_version {"",[version]}
8705 # aros_gcc_version {"",[version]}
8706 # kernel_tool_prefix {none,[some-arch-os-]}
8707 # target_tool_prefix ${aros_target_cpu}-aros-
8708 # aros_tool_prefix ${aros_target_cpu}-aros-
8710 # The output is
8711 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8712 # Where the 'kernel' binaries are located
8713 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8714 # Where the 'target' binaries are located
8715 # (not the symlink farm - that is aros_target_*!)
8717 # The rules are:
8718 # if crosstools then
8719 # if kernel_tools_prefix = "no-kernel-prefix-"
8720 # aros_kernel_* = crosstools cc paths
8721 # aros_kernel_cc = elf cc wrapper around crosstools cc
8722 # else
8723 # VALIDATE(${kernel_tools_prefix}*)
8724 # aros_kernel_* = ${kernel_tools_prefix}*
8725 # if ${kernel_tools_prefix}cc is an AROS gcc
8726 # aros_kernel_cc = ${kernel_tools_prefix}cc
8727 # else
8728 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8729 # fi
8730 # fi
8732 # orig_target_* = aros built crosstools
8733 # orig_target_cc = elf cc wrapper around crosstools cc
8734 # else
8735 # VALIDATE(${kernel_tools_prefix}*)
8737 # orig_target_* = aros_kernel_*
8738 # if aros_kernel_cc is an AROS gcc
8739 # orig_target_cc = aros_kernel_cc
8740 # else
8741 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8742 # fi
8743 # fi
8745 target_tool_prefix="${aros_target_cpu}-aros-"
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8748 $as_echo_n "checking which kernel tools... " >&6; }
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8750 $as_echo "$kernel_tool_prefix" >&6; };
8752 if test "$kernel_tool_prefix" = "none" ; then
8753 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8754 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8756 else
8757 # Kernel tools required - find them
8758 # Note that 'normally', aros_kernel_* overrides will be
8759 # empty, unless specified in the per-arch sections above.
8760 if test "x$aros_kernel_cpp" = "x"; then
8761 aros_kernel_cpp=${kernel_tool_prefix}cpp
8764 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8765 if test "$cross_compiling" = "yes" ; then
8766 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8767 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773 case $aros_kernel_cpp in
8774 [\\/]* | ?:[\\/]*)
8775 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8785 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 break 2
8789 done
8790 done
8791 IFS=$as_save_IFS
8794 esac
8796 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8797 if test -n "$aros_kernel_cpp"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8799 $as_echo "$aros_kernel_cpp" >&6; }
8800 else
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8806 else
8807 if test "$GCC" = "yes"; then
8808 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8809 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8810 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 case $aros_kernel_cpp in
8817 [\\/]* | ?:[\\/]*)
8818 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in `dirname $aros_gcc_cpp`
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8828 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8832 done
8833 done
8834 IFS=$as_save_IFS
8837 esac
8839 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8840 if test -n "$aros_kernel_cpp"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8842 $as_echo "$aros_kernel_cpp" >&6; }
8843 else
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8850 if test "$aros_kernel_cpp" = ""; then
8851 # Extract the first word of "cpp", so it can be a program name with args.
8852 set dummy cpp; ac_word=$2
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8854 $as_echo_n "checking for $ac_word... " >&6; }
8855 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 case $aros_kernel_cpp in
8859 [\\/]* | ?:[\\/]*)
8860 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8866 IFS=$as_save_IFS
8867 test -z "$as_dir" && as_dir=.
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8870 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872 break 2
8874 done
8875 done
8876 IFS=$as_save_IFS
8879 esac
8881 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8882 if test -n "$aros_kernel_cpp"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8884 $as_echo "$aros_kernel_cpp" >&6; }
8885 else
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8893 else
8894 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8895 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 case $aros_kernel_cpp in
8902 [\\/]* | ?:[\\/]*)
8903 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8913 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8917 done
8918 done
8919 IFS=$as_save_IFS
8922 esac
8924 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8925 if test -n "$aros_kernel_cpp"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8927 $as_echo "$aros_kernel_cpp" >&6; }
8928 else
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8936 if test "$aros_kernel_cpp" = ""; then
8937 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8939 if test "x$aros_kernel_cc" = "x"; then
8940 aros_kernel_cc=${kernel_tool_prefix}gcc
8943 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8944 if test "$cross_compiling" = "yes" ; then
8945 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8946 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948 $as_echo_n "checking for $ac_word... " >&6; }
8949 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 case $aros_kernel_cc in
8953 [\\/]* | ?:[\\/]*)
8954 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958 for as_dir in $PATH
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8964 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8968 done
8969 done
8970 IFS=$as_save_IFS
8973 esac
8975 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8976 if test -n "$aros_kernel_cc"; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8978 $as_echo "$aros_kernel_cc" >&6; }
8979 else
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8981 $as_echo "no" >&6; }
8985 else
8986 if test "$GCC" = "yes"; then
8987 aros_gcc_cc=`$CC -print-prog-name=cc`
8988 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8989 set dummy `basename $aros_gcc_cc`; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 case $aros_kernel_cc in
8996 [\\/]* | ?:[\\/]*)
8997 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in `dirname $aros_gcc_cc`
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9011 done
9012 done
9013 IFS=$as_save_IFS
9016 esac
9018 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9019 if test -n "$aros_kernel_cc"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9021 $as_echo "$aros_kernel_cc" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9029 if test "$aros_kernel_cc" = ""; then
9030 # Extract the first word of "cc", so it can be a program name with args.
9031 set dummy cc; ac_word=$2
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033 $as_echo_n "checking for $ac_word... " >&6; }
9034 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 case $aros_kernel_cc in
9038 [\\/]* | ?:[\\/]*)
9039 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 for as_dir in $PATH
9045 IFS=$as_save_IFS
9046 test -z "$as_dir" && as_dir=.
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9049 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051 break 2
9053 done
9054 done
9055 IFS=$as_save_IFS
9058 esac
9060 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9061 if test -n "$aros_kernel_cc"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9063 $as_echo "$aros_kernel_cc" >&6; }
9064 else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9072 else
9073 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9074 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076 $as_echo_n "checking for $ac_word... " >&6; }
9077 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 case $aros_kernel_cc in
9081 [\\/]* | ?:[\\/]*)
9082 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 for as_dir in $PATH
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9092 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9096 done
9097 done
9098 IFS=$as_save_IFS
9101 esac
9103 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9104 if test -n "$aros_kernel_cc"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9106 $as_echo "$aros_kernel_cc" >&6; }
9107 else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9115 if test "$aros_kernel_cc" = ""; then
9116 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9118 if test "x$aros_kernel_cxx" = "x"; then
9119 aros_kernel_cxx=${kernel_tool_prefix}g++
9122 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9123 if test "$cross_compiling" = "yes" ; then
9124 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9125 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127 $as_echo_n "checking for $ac_word... " >&6; }
9128 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 case $aros_kernel_cxx in
9132 [\\/]* | ?:[\\/]*)
9133 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9143 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9147 done
9148 done
9149 IFS=$as_save_IFS
9152 esac
9154 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9155 if test -n "$aros_kernel_cxx"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9157 $as_echo "$aros_kernel_cxx" >&6; }
9158 else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9164 else
9165 if test "$GCC" = "yes"; then
9166 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9167 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9168 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 case $aros_kernel_cxx in
9175 [\\/]* | ?:[\\/]*)
9176 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in `dirname $aros_gcc_cxx`
9182 IFS=$as_save_IFS
9183 test -z "$as_dir" && as_dir=.
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9186 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 break 2
9190 done
9191 done
9192 IFS=$as_save_IFS
9195 esac
9197 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9198 if test -n "$aros_kernel_cxx"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9200 $as_echo "$aros_kernel_cxx" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9208 if test "$aros_kernel_cxx" = ""; then
9209 # Extract the first word of "cxx", so it can be a program name with args.
9210 set dummy cxx; ac_word=$2
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9212 $as_echo_n "checking for $ac_word... " >&6; }
9213 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 case $aros_kernel_cxx in
9217 [\\/]* | ?:[\\/]*)
9218 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222 for as_dir in $PATH
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9228 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 break 2
9232 done
9233 done
9234 IFS=$as_save_IFS
9237 esac
9239 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9240 if test -n "$aros_kernel_cxx"; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9242 $as_echo "$aros_kernel_cxx" >&6; }
9243 else
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245 $as_echo "no" >&6; }
9251 else
9252 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9253 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9255 $as_echo_n "checking for $ac_word... " >&6; }
9256 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 case $aros_kernel_cxx in
9260 [\\/]* | ?:[\\/]*)
9261 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 for as_dir in $PATH
9267 IFS=$as_save_IFS
9268 test -z "$as_dir" && as_dir=.
9269 for ac_exec_ext in '' $ac_executable_extensions; do
9270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9271 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9273 break 2
9275 done
9276 done
9277 IFS=$as_save_IFS
9280 esac
9282 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9283 if test -n "$aros_kernel_cxx"; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9285 $as_echo "$aros_kernel_cxx" >&6; }
9286 else
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288 $as_echo "no" >&6; }
9294 # If it's set, make sure it's really there
9295 if test "x$aros_kernel_cxx" != "x" ; then
9296 if test "$aros_kernel_cxx" = ""; then
9297 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9301 if test "$aros_kernel_ld" = ""; then
9302 if test "$cross_compiling" = "yes" ; then
9303 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9304 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 case $aros_kernel_ld in
9311 [\\/]* | ?:[\\/]*)
9312 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9322 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 break 2
9326 done
9327 done
9328 IFS=$as_save_IFS
9331 esac
9333 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9334 if test -n "$aros_kernel_ld"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9336 $as_echo "$aros_kernel_ld" >&6; }
9337 else
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9343 else
9344 if test "$GCC" = "yes"; then
9345 aros_gcc_ld=`$CC -print-prog-name=ld`
9346 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9347 set dummy `basename $aros_gcc_ld`; ac_word=$2
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349 $as_echo_n "checking for $ac_word... " >&6; }
9350 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 case $aros_kernel_ld in
9354 [\\/]* | ?:[\\/]*)
9355 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in `dirname $aros_gcc_ld`
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9365 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9369 done
9370 done
9371 IFS=$as_save_IFS
9374 esac
9376 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9377 if test -n "$aros_kernel_ld"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9379 $as_echo "$aros_kernel_ld" >&6; }
9380 else
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382 $as_echo "no" >&6; }
9387 if test "$aros_kernel_ld" = ""; then
9388 # Extract the first word of "ld", so it can be a program name with args.
9389 set dummy ld; ac_word=$2
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391 $as_echo_n "checking for $ac_word... " >&6; }
9392 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 case $aros_kernel_ld in
9396 [\\/]* | ?:[\\/]*)
9397 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401 for as_dir in $PATH
9403 IFS=$as_save_IFS
9404 test -z "$as_dir" && as_dir=.
9405 for ac_exec_ext in '' $ac_executable_extensions; do
9406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9407 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 break 2
9411 done
9412 done
9413 IFS=$as_save_IFS
9416 esac
9418 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9419 if test -n "$aros_kernel_ld"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9421 $as_echo "$aros_kernel_ld" >&6; }
9422 else
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424 $as_echo "no" >&6; }
9430 else
9431 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9432 set dummy $aros_kernel_ld; ac_word=$2
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434 $as_echo_n "checking for $ac_word... " >&6; }
9435 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 case $aros_kernel_ld in
9439 [\\/]* | ?:[\\/]*)
9440 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444 for as_dir in $PATH
9446 IFS=$as_save_IFS
9447 test -z "$as_dir" && as_dir=.
9448 for ac_exec_ext in '' $ac_executable_extensions; do
9449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9450 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452 break 2
9454 done
9455 done
9456 IFS=$as_save_IFS
9459 esac
9461 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9462 if test -n "$aros_kernel_ld"; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9464 $as_echo "$aros_kernel_ld" >&6; }
9465 else
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9467 $as_echo "no" >&6; }
9473 if test "$aros_kernel_ld" = ""; then
9474 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9477 if test "$aros_kernel_as" = ""; then
9478 if test "$cross_compiling" = "yes" ; then
9479 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9480 set dummy ${kernel_tool_prefix}as; ac_word=$2
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if ${ac_cv_path_aros_kernel_as+:} false; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9486 case $aros_kernel_as in
9487 [\\/]* | ?:[\\/]*)
9488 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492 for as_dir in $PATH
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9498 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9500 break 2
9502 done
9503 done
9504 IFS=$as_save_IFS
9507 esac
9509 aros_kernel_as=$ac_cv_path_aros_kernel_as
9510 if test -n "$aros_kernel_as"; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9512 $as_echo "$aros_kernel_as" >&6; }
9513 else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; }
9519 else
9520 if test "$GCC" = "yes"; then
9521 aros_gcc_as=`$CC -print-prog-name=as`
9522 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9523 set dummy `basename $aros_gcc_as`; ac_word=$2
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if ${ac_cv_path_aros_kernel_as+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 case $aros_kernel_as in
9530 [\\/]* | ?:[\\/]*)
9531 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535 for as_dir in `dirname $aros_gcc_as`
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9541 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 break 2
9545 done
9546 done
9547 IFS=$as_save_IFS
9550 esac
9552 aros_kernel_as=$ac_cv_path_aros_kernel_as
9553 if test -n "$aros_kernel_as"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9555 $as_echo "$aros_kernel_as" >&6; }
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9563 if test "$aros_kernel_as" = ""; then
9564 # Extract the first word of "as", so it can be a program name with args.
9565 set dummy as; ac_word=$2
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9567 $as_echo_n "checking for $ac_word... " >&6; }
9568 if ${ac_cv_path_aros_kernel_as+:} false; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 case $aros_kernel_as in
9572 [\\/]* | ?:[\\/]*)
9573 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $PATH
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9583 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9585 break 2
9587 done
9588 done
9589 IFS=$as_save_IFS
9592 esac
9594 aros_kernel_as=$ac_cv_path_aros_kernel_as
9595 if test -n "$aros_kernel_as"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9597 $as_echo "$aros_kernel_as" >&6; }
9598 else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9606 else
9607 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9608 set dummy $aros_kernel_as; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_path_aros_kernel_as+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 case $aros_kernel_as in
9615 [\\/]* | ?:[\\/]*)
9616 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9626 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 break 2
9630 done
9631 done
9632 IFS=$as_save_IFS
9635 esac
9637 aros_kernel_as=$ac_cv_path_aros_kernel_as
9638 if test -n "$aros_kernel_as"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9640 $as_echo "$aros_kernel_as" >&6; }
9641 else
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9649 if test "$aros_kernel_as" = ""; then
9650 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9653 if test "$aros_kernel_ar" = ""; then
9654 if test "$cross_compiling" = "yes" ; then
9655 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9656 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658 $as_echo_n "checking for $ac_word... " >&6; }
9659 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662 case $aros_kernel_ar in
9663 [\\/]* | ?:[\\/]*)
9664 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668 for as_dir in $PATH
9670 IFS=$as_save_IFS
9671 test -z "$as_dir" && as_dir=.
9672 for ac_exec_ext in '' $ac_executable_extensions; do
9673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9674 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9676 break 2
9678 done
9679 done
9680 IFS=$as_save_IFS
9683 esac
9685 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9686 if test -n "$aros_kernel_ar"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9688 $as_echo "$aros_kernel_ar" >&6; }
9689 else
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9695 else
9696 if test "$GCC" = "yes"; then
9697 aros_gcc_ar=`$CC -print-prog-name=ar`
9698 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9699 set dummy `basename $aros_gcc_ar`; ac_word=$2
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 case $aros_kernel_ar in
9706 [\\/]* | ?:[\\/]*)
9707 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in `dirname $aros_gcc_ar`
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9721 done
9722 done
9723 IFS=$as_save_IFS
9726 esac
9728 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9729 if test -n "$aros_kernel_ar"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9731 $as_echo "$aros_kernel_ar" >&6; }
9732 else
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9739 if test "$aros_kernel_ar" = ""; then
9740 # Extract the first word of "ar", so it can be a program name with args.
9741 set dummy ar; ac_word=$2
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9743 $as_echo_n "checking for $ac_word... " >&6; }
9744 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 case $aros_kernel_ar in
9748 [\\/]* | ?:[\\/]*)
9749 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753 for as_dir in $PATH
9755 IFS=$as_save_IFS
9756 test -z "$as_dir" && as_dir=.
9757 for ac_exec_ext in '' $ac_executable_extensions; do
9758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9759 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 break 2
9763 done
9764 done
9765 IFS=$as_save_IFS
9768 esac
9770 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9771 if test -n "$aros_kernel_ar"; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9773 $as_echo "$aros_kernel_ar" >&6; }
9774 else
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9782 else
9783 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9784 set dummy $aros_kernel_ar; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 case $aros_kernel_ar in
9791 [\\/]* | ?:[\\/]*)
9792 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796 for as_dir in $PATH
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9802 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9806 done
9807 done
9808 IFS=$as_save_IFS
9811 esac
9813 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9814 if test -n "$aros_kernel_ar"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9816 $as_echo "$aros_kernel_ar" >&6; }
9817 else
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 $as_echo "no" >&6; }
9825 if test "$aros_kernel_ar" = ""; then
9826 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9829 if test "$aros_kernel_ranlib" = ""; then
9830 if test "$cross_compiling" = "yes" ; then
9831 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9832 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 case $aros_kernel_ranlib in
9839 [\\/]* | ?:[\\/]*)
9840 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9854 done
9855 done
9856 IFS=$as_save_IFS
9859 esac
9861 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9862 if test -n "$aros_kernel_ranlib"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9864 $as_echo "$aros_kernel_ranlib" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9871 else
9872 if test "$GCC" = "yes"; then
9873 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9874 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9875 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877 $as_echo_n "checking for $ac_word... " >&6; }
9878 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 case $aros_kernel_ranlib in
9882 [\\/]* | ?:[\\/]*)
9883 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in `dirname $aros_gcc_ranlib`
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9897 done
9898 done
9899 IFS=$as_save_IFS
9902 esac
9904 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9905 if test -n "$aros_kernel_ranlib"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9907 $as_echo "$aros_kernel_ranlib" >&6; }
9908 else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9915 if test "$aros_kernel_ranlib" = ""; then
9916 # Extract the first word of "ranlib", so it can be a program name with args.
9917 set dummy ranlib; ac_word=$2
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919 $as_echo_n "checking for $ac_word... " >&6; }
9920 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 case $aros_kernel_ranlib in
9924 [\\/]* | ?:[\\/]*)
9925 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 break 2
9939 done
9940 done
9941 IFS=$as_save_IFS
9944 esac
9946 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9947 if test -n "$aros_kernel_ranlib"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9949 $as_echo "$aros_kernel_ranlib" >&6; }
9950 else
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9958 else
9959 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9960 set dummy $aros_kernel_ranlib; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 case $aros_kernel_ranlib in
9967 [\\/]* | ?:[\\/]*)
9968 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 break 2
9982 done
9983 done
9984 IFS=$as_save_IFS
9987 esac
9989 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9990 if test -n "$aros_kernel_ranlib"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9992 $as_echo "$aros_kernel_ranlib" >&6; }
9993 else
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
10001 if test "$aros_kernel_ranlib" = ""; then
10002 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10005 if test "$aros_kernel_nm" = ""; then
10006 if test "$cross_compiling" = "yes" ; then
10007 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10008 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010 $as_echo_n "checking for $ac_word... " >&6; }
10011 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 case $aros_kernel_nm in
10015 [\\/]* | ?:[\\/]*)
10016 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10022 IFS=$as_save_IFS
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10026 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 break 2
10030 done
10031 done
10032 IFS=$as_save_IFS
10035 esac
10037 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10038 if test -n "$aros_kernel_nm"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10040 $as_echo "$aros_kernel_nm" >&6; }
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10047 else
10048 if test "$GCC" = "yes"; then
10049 aros_gcc_nm=`$CC -print-prog-name=nm`
10050 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10051 set dummy `basename $aros_gcc_nm`; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 case $aros_kernel_nm in
10058 [\\/]* | ?:[\\/]*)
10059 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in `dirname $aros_gcc_nm`
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10069 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10075 IFS=$as_save_IFS
10078 esac
10080 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10081 if test -n "$aros_kernel_nm"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10083 $as_echo "$aros_kernel_nm" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10091 if test "$aros_kernel_nm" = ""; then
10092 # Extract the first word of "nm", so it can be a program name with args.
10093 set dummy nm; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 case $aros_kernel_nm in
10100 [\\/]* | ?:[\\/]*)
10101 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10107 IFS=$as_save_IFS
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10111 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 break 2
10115 done
10116 done
10117 IFS=$as_save_IFS
10120 esac
10122 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10123 if test -n "$aros_kernel_nm"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10125 $as_echo "$aros_kernel_nm" >&6; }
10126 else
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10134 else
10135 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10136 set dummy $aros_kernel_nm; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 case $aros_kernel_nm in
10143 [\\/]* | ?:[\\/]*)
10144 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10154 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10158 done
10159 done
10160 IFS=$as_save_IFS
10163 esac
10165 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10166 if test -n "$aros_kernel_nm"; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10168 $as_echo "$aros_kernel_nm" >&6; }
10169 else
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10177 if test "$aros_kernel_nm" = ""; then
10178 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10181 if test "$aros_kernel_strip" = ""; then
10182 if test "$cross_compiling" = "yes" ; then
10183 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10184 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 case $aros_kernel_strip in
10191 [\\/]* | ?:[\\/]*)
10192 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196 for as_dir in $PATH
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10202 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 break 2
10206 done
10207 done
10208 IFS=$as_save_IFS
10211 esac
10213 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10214 if test -n "$aros_kernel_strip"; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10216 $as_echo "$aros_kernel_strip" >&6; }
10217 else
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10223 else
10224 if test "$GCC" = "yes"; then
10225 aros_gcc_strip=`$CC -print-prog-name=strip`
10226 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10227 set dummy `basename $aros_gcc_strip`; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 case $aros_kernel_strip in
10234 [\\/]* | ?:[\\/]*)
10235 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in `dirname $aros_gcc_strip`
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10245 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 break 2
10249 done
10250 done
10251 IFS=$as_save_IFS
10254 esac
10256 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10257 if test -n "$aros_kernel_strip"; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10259 $as_echo "$aros_kernel_strip" >&6; }
10260 else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 $as_echo "no" >&6; }
10267 if test "$aros_kernel_strip" = ""; then
10268 # Extract the first word of "strip", so it can be a program name with args.
10269 set dummy strip; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 case $aros_kernel_strip in
10276 [\\/]* | ?:[\\/]*)
10277 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
10285 for ac_exec_ext in '' $ac_executable_extensions; do
10286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10287 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10289 break 2
10291 done
10292 done
10293 IFS=$as_save_IFS
10296 esac
10298 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10299 if test -n "$aros_kernel_strip"; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10301 $as_echo "$aros_kernel_strip" >&6; }
10302 else
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; }
10310 else
10311 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10312 set dummy $aros_kernel_strip; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 case $aros_kernel_strip in
10319 [\\/]* | ?:[\\/]*)
10320 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10330 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10334 done
10335 done
10336 IFS=$as_save_IFS
10339 esac
10341 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10342 if test -n "$aros_kernel_strip"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10344 $as_echo "$aros_kernel_strip" >&6; }
10345 else
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10353 if test "$aros_kernel_strip" = ""; then
10354 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10357 # Objcopy and objdump are not required for the kernel
10358 # toolchain on many architectures.
10359 # So we'll look for them, but not make them strictly required.
10361 if test "$aros_kernel_objcopy" = ""; then
10362 if test "$cross_compiling" = "yes" ; then
10363 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10364 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366 $as_echo_n "checking for $ac_word... " >&6; }
10367 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 case $aros_kernel_objcopy in
10371 [\\/]* | ?:[\\/]*)
10372 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10382 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10386 done
10387 done
10388 IFS=$as_save_IFS
10391 esac
10393 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10394 if test -n "$aros_kernel_objcopy"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10396 $as_echo "$aros_kernel_objcopy" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10403 else
10404 if test "$GCC" = "yes"; then
10405 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10406 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10407 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10409 $as_echo_n "checking for $ac_word... " >&6; }
10410 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 case $aros_kernel_objcopy in
10414 [\\/]* | ?:[\\/]*)
10415 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10419 for as_dir in `dirname $aros_gcc_objcopy`
10421 IFS=$as_save_IFS
10422 test -z "$as_dir" && as_dir=.
10423 for ac_exec_ext in '' $ac_executable_extensions; do
10424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10425 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10427 break 2
10429 done
10430 done
10431 IFS=$as_save_IFS
10434 esac
10436 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10437 if test -n "$aros_kernel_objcopy"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10439 $as_echo "$aros_kernel_objcopy" >&6; }
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10447 if test "$aros_kernel_objcopy" = ""; then
10448 # Extract the first word of "objcopy", so it can be a program name with args.
10449 set dummy objcopy; ac_word=$2
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451 $as_echo_n "checking for $ac_word... " >&6; }
10452 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 case $aros_kernel_objcopy in
10456 [\\/]* | ?:[\\/]*)
10457 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10467 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10471 done
10472 done
10473 IFS=$as_save_IFS
10476 esac
10478 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10479 if test -n "$aros_kernel_objcopy"; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10481 $as_echo "$aros_kernel_objcopy" >&6; }
10482 else
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10490 else
10491 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10492 set dummy $aros_kernel_objcopy; ac_word=$2
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494 $as_echo_n "checking for $ac_word... " >&6; }
10495 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 case $aros_kernel_objcopy in
10499 [\\/]* | ?:[\\/]*)
10500 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504 for as_dir in $PATH
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10510 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10514 done
10515 done
10516 IFS=$as_save_IFS
10519 esac
10521 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10522 if test -n "$aros_kernel_objcopy"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10524 $as_echo "$aros_kernel_objcopy" >&6; }
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; }
10534 if test "$aros_kernel_objdump" = ""; then
10535 if test "$cross_compiling" = "yes" ; then
10536 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10537 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 case $aros_kernel_objdump in
10544 [\\/]* | ?:[\\/]*)
10545 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10551 IFS=$as_save_IFS
10552 test -z "$as_dir" && as_dir=.
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10555 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557 break 2
10559 done
10560 done
10561 IFS=$as_save_IFS
10564 esac
10566 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10567 if test -n "$aros_kernel_objdump"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10569 $as_echo "$aros_kernel_objdump" >&6; }
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10576 else
10577 if test "$GCC" = "yes"; then
10578 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10579 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10580 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582 $as_echo_n "checking for $ac_word... " >&6; }
10583 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 case $aros_kernel_objdump in
10587 [\\/]* | ?:[\\/]*)
10588 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592 for as_dir in `dirname $aros_gcc_objdump`
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10598 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10602 done
10603 done
10604 IFS=$as_save_IFS
10607 esac
10609 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10610 if test -n "$aros_kernel_objdump"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10612 $as_echo "$aros_kernel_objdump" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10620 if test "$aros_kernel_objdump" = ""; then
10621 # Extract the first word of "objdump", so it can be a program name with args.
10622 set dummy objdump; ac_word=$2
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10624 $as_echo_n "checking for $ac_word... " >&6; }
10625 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 case $aros_kernel_objdump in
10629 [\\/]* | ?:[\\/]*)
10630 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10644 done
10645 done
10646 IFS=$as_save_IFS
10649 esac
10651 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10652 if test -n "$aros_kernel_objdump"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10654 $as_echo "$aros_kernel_objdump" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10663 else
10664 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10665 set dummy $aros_kernel_objdump; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 case $aros_kernel_objdump in
10672 [\\/]* | ?:[\\/]*)
10673 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in $PATH
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10683 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 break 2
10687 done
10688 done
10689 IFS=$as_save_IFS
10692 esac
10694 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10695 if test -n "$aros_kernel_objdump"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10697 $as_echo "$aros_kernel_objdump" >&6; }
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10706 if test "x${crosstools}" != "xyes" ; then
10707 if test "$aros_kernel_objcopy" = ""; then
10708 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10710 if test "$aros_kernel_objdump" = ""; then
10711 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10717 $as_echo_n "checking which target tools to use... " >&6; }
10718 if test "$crosstools" = "yes"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10720 $as_echo "$target_tool_prefix" >&6; }
10721 # We are are building AROS crosstools
10722 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10723 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10724 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10725 orig_target_cpp="${tmp_tool_prefix}cpp"
10726 orig_target_ld="${tmp_tool_prefix}ld"
10727 orig_target_as="${tmp_tool_prefix}as"
10728 orig_target_ar="${tmp_tool_prefix}ar"
10729 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10730 orig_target_nm="${tmp_tool_prefix}nm"
10731 orig_target_strip="${tmp_tool_prefix}strip"
10732 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10733 orig_target_objdump="${tmp_tool_prefix}objdump"
10734 else
10735 # Determine whether AROS or ELF tools should be used
10736 if test "$aros_tool_prefix" = "none"; then
10737 aros_tool_prefix="${elf_tool_prefix}"
10738 crosstools_cxx_target=tools-crosstools
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10742 $as_echo "$aros_tool_prefix" >&6; }
10743 # We are *not* building AROS crosstools - use the AROS or ELF tools
10745 if test "${aros_tool_prefix}cpp" = ""; then
10746 if test "$cross_compiling" = "yes" ; then
10747 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10748 set dummy ${target_tool_prefix}cpp; ac_word=$2
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10750 $as_echo_n "checking for $ac_word... " >&6; }
10751 if ${ac_cv_path_orig_target_cpp+:} false; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 case $orig_target_cpp in
10755 [\\/]* | ?:[\\/]*)
10756 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10766 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10770 done
10771 done
10772 IFS=$as_save_IFS
10775 esac
10777 orig_target_cpp=$ac_cv_path_orig_target_cpp
10778 if test -n "$orig_target_cpp"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10780 $as_echo "$orig_target_cpp" >&6; }
10781 else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10787 else
10788 if test "$GCC" = "yes"; then
10789 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10790 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10791 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if ${ac_cv_path_orig_target_cpp+:} false; then :
10795 $as_echo_n "(cached) " >&6
10796 else
10797 case $orig_target_cpp in
10798 [\\/]* | ?:[\\/]*)
10799 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in `dirname $aros_gcc_cpp`
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10809 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10813 done
10814 done
10815 IFS=$as_save_IFS
10818 esac
10820 orig_target_cpp=$ac_cv_path_orig_target_cpp
10821 if test -n "$orig_target_cpp"; then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10823 $as_echo "$orig_target_cpp" >&6; }
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10831 if test "$orig_target_cpp" = ""; then
10832 # Extract the first word of "cpp", so it can be a program name with args.
10833 set dummy cpp; ac_word=$2
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10835 $as_echo_n "checking for $ac_word... " >&6; }
10836 if ${ac_cv_path_orig_target_cpp+:} false; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 case $orig_target_cpp in
10840 [\\/]* | ?:[\\/]*)
10841 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10851 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10855 done
10856 done
10857 IFS=$as_save_IFS
10860 esac
10862 orig_target_cpp=$ac_cv_path_orig_target_cpp
10863 if test -n "$orig_target_cpp"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10865 $as_echo "$orig_target_cpp" >&6; }
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; }
10874 else
10875 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10876 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if ${ac_cv_path_orig_target_cpp+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 case $orig_target_cpp in
10883 [\\/]* | ?:[\\/]*)
10884 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10894 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10898 done
10899 done
10900 IFS=$as_save_IFS
10903 esac
10905 orig_target_cpp=$ac_cv_path_orig_target_cpp
10906 if test -n "$orig_target_cpp"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10908 $as_echo "$orig_target_cpp" >&6; }
10909 else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10917 if test "$orig_target_cpp" = ""; then
10918 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10921 if test "${aros_tool_prefix}gcc" = ""; then
10922 if test "$cross_compiling" = "yes" ; then
10923 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10924 set dummy ${target_tool_prefix}gcc; ac_word=$2
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926 $as_echo_n "checking for $ac_word... " >&6; }
10927 if ${ac_cv_path_orig_target_cc+:} false; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 case $orig_target_cc in
10931 [\\/]* | ?:[\\/]*)
10932 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10942 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10946 done
10947 done
10948 IFS=$as_save_IFS
10951 esac
10953 orig_target_cc=$ac_cv_path_orig_target_cc
10954 if test -n "$orig_target_cc"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10956 $as_echo "$orig_target_cc" >&6; }
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10963 else
10964 if test "$GCC" = "yes"; then
10965 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10966 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10967 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969 $as_echo_n "checking for $ac_word... " >&6; }
10970 if ${ac_cv_path_orig_target_cc+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 case $orig_target_cc in
10974 [\\/]* | ?:[\\/]*)
10975 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in `dirname $aros_gcc_gcc`
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10989 done
10990 done
10991 IFS=$as_save_IFS
10994 esac
10996 orig_target_cc=$ac_cv_path_orig_target_cc
10997 if test -n "$orig_target_cc"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10999 $as_echo "$orig_target_cc" >&6; }
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11007 if test "$orig_target_cc" = ""; then
11008 # Extract the first word of "gcc", so it can be a program name with args.
11009 set dummy gcc; ac_word=$2
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011 $as_echo_n "checking for $ac_word... " >&6; }
11012 if ${ac_cv_path_orig_target_cc+:} false; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 case $orig_target_cc in
11016 [\\/]* | ?:[\\/]*)
11017 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in $PATH
11023 IFS=$as_save_IFS
11024 test -z "$as_dir" && as_dir=.
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11027 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11029 break 2
11031 done
11032 done
11033 IFS=$as_save_IFS
11036 esac
11038 orig_target_cc=$ac_cv_path_orig_target_cc
11039 if test -n "$orig_target_cc"; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11041 $as_echo "$orig_target_cc" >&6; }
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11050 else
11051 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
11052 set dummy ${aros_tool_prefix}gcc; ac_word=$2
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11054 $as_echo_n "checking for $ac_word... " >&6; }
11055 if ${ac_cv_path_orig_target_cc+:} false; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 case $orig_target_cc in
11059 [\\/]* | ?:[\\/]*)
11060 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064 for as_dir in $PATH
11066 IFS=$as_save_IFS
11067 test -z "$as_dir" && as_dir=.
11068 for ac_exec_ext in '' $ac_executable_extensions; do
11069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11070 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11072 break 2
11074 done
11075 done
11076 IFS=$as_save_IFS
11079 esac
11081 orig_target_cc=$ac_cv_path_orig_target_cc
11082 if test -n "$orig_target_cc"; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11084 $as_echo "$orig_target_cc" >&6; }
11085 else
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11093 if test "$orig_target_cc" = ""; then
11094 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11096 if test "x${crosstools_cxx_target}" = "x" ; then
11098 if test "${aros_tool_prefix}g++" = ""; then
11099 if test "$cross_compiling" = "yes" ; then
11100 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11101 set dummy ${target_tool_prefix}g++; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if ${ac_cv_path_orig_target_cxx+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 case $orig_target_cxx in
11108 [\\/]* | ?:[\\/]*)
11109 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in $PATH
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11119 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 break 2
11123 done
11124 done
11125 IFS=$as_save_IFS
11128 esac
11130 orig_target_cxx=$ac_cv_path_orig_target_cxx
11131 if test -n "$orig_target_cxx"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11133 $as_echo "$orig_target_cxx" >&6; }
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11140 else
11141 if test "$GCC" = "yes"; then
11142 aros_gcc_g++=`$CC -print-prog-name=g++`
11143 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11144 set dummy `basename $aros_gcc_g++`; ac_word=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146 $as_echo_n "checking for $ac_word... " >&6; }
11147 if ${ac_cv_path_orig_target_cxx+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 case $orig_target_cxx in
11151 [\\/]* | ?:[\\/]*)
11152 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in `dirname $aros_gcc_g++`
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 break 2
11166 done
11167 done
11168 IFS=$as_save_IFS
11171 esac
11173 orig_target_cxx=$ac_cv_path_orig_target_cxx
11174 if test -n "$orig_target_cxx"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11176 $as_echo "$orig_target_cxx" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11184 if test "$orig_target_cxx" = ""; then
11185 # Extract the first word of "g++", so it can be a program name with args.
11186 set dummy g++; ac_word=$2
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 $as_echo_n "checking for $ac_word... " >&6; }
11189 if ${ac_cv_path_orig_target_cxx+:} false; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 case $orig_target_cxx in
11193 [\\/]* | ?:[\\/]*)
11194 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11204 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11208 done
11209 done
11210 IFS=$as_save_IFS
11213 esac
11215 orig_target_cxx=$ac_cv_path_orig_target_cxx
11216 if test -n "$orig_target_cxx"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11218 $as_echo "$orig_target_cxx" >&6; }
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11227 else
11228 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11229 set dummy ${aros_tool_prefix}g++; ac_word=$2
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11231 $as_echo_n "checking for $ac_word... " >&6; }
11232 if ${ac_cv_path_orig_target_cxx+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 case $orig_target_cxx in
11236 [\\/]* | ?:[\\/]*)
11237 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11247 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11249 break 2
11251 done
11252 done
11253 IFS=$as_save_IFS
11256 esac
11258 orig_target_cxx=$ac_cv_path_orig_target_cxx
11259 if test -n "$orig_target_cxx"; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11261 $as_echo "$orig_target_cxx" >&6; }
11262 else
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264 $as_echo "no" >&6; }
11270 if test "$orig_target_cxx" = ""; then
11271 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11275 if test "${aros_tool_prefix}ld" = ""; then
11276 if test "$cross_compiling" = "yes" ; then
11277 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11278 set dummy ${target_tool_prefix}gcc; ac_word=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if ${ac_cv_path_orig_target_ld+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 case $orig_target_ld in
11285 [\\/]* | ?:[\\/]*)
11286 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11300 done
11301 done
11302 IFS=$as_save_IFS
11305 esac
11307 orig_target_ld=$ac_cv_path_orig_target_ld
11308 if test -n "$orig_target_ld"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11310 $as_echo "$orig_target_ld" >&6; }
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11317 else
11318 if test "$GCC" = "yes"; then
11319 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11320 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11321 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if ${ac_cv_path_orig_target_ld+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 case $orig_target_ld in
11328 [\\/]* | ?:[\\/]*)
11329 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in `dirname $aros_gcc_gcc`
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11339 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11343 done
11344 done
11345 IFS=$as_save_IFS
11348 esac
11350 orig_target_ld=$ac_cv_path_orig_target_ld
11351 if test -n "$orig_target_ld"; then
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11353 $as_echo "$orig_target_ld" >&6; }
11354 else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11361 if test "$orig_target_ld" = ""; then
11362 # Extract the first word of "gcc", so it can be a program name with args.
11363 set dummy gcc; ac_word=$2
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365 $as_echo_n "checking for $ac_word... " >&6; }
11366 if ${ac_cv_path_orig_target_ld+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 case $orig_target_ld in
11370 [\\/]* | ?:[\\/]*)
11371 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375 for as_dir in $PATH
11377 IFS=$as_save_IFS
11378 test -z "$as_dir" && as_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11381 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11383 break 2
11385 done
11386 done
11387 IFS=$as_save_IFS
11390 esac
11392 orig_target_ld=$ac_cv_path_orig_target_ld
11393 if test -n "$orig_target_ld"; then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11395 $as_echo "$orig_target_ld" >&6; }
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11404 else
11405 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11406 set dummy ${aros_tool_prefix}ld; ac_word=$2
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11408 $as_echo_n "checking for $ac_word... " >&6; }
11409 if ${ac_cv_path_orig_target_ld+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 case $orig_target_ld in
11413 [\\/]* | ?:[\\/]*)
11414 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11420 IFS=$as_save_IFS
11421 test -z "$as_dir" && as_dir=.
11422 for ac_exec_ext in '' $ac_executable_extensions; do
11423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11424 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11426 break 2
11428 done
11429 done
11430 IFS=$as_save_IFS
11433 esac
11435 orig_target_ld=$ac_cv_path_orig_target_ld
11436 if test -n "$orig_target_ld"; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11438 $as_echo "$orig_target_ld" >&6; }
11439 else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441 $as_echo "no" >&6; }
11447 if test "$orig_target_ld" = ""; then
11448 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11451 if test "${aros_tool_prefix}as" = ""; then
11452 if test "$cross_compiling" = "yes" ; then
11453 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11454 set dummy ${target_tool_prefix}as; ac_word=$2
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456 $as_echo_n "checking for $ac_word... " >&6; }
11457 if ${ac_cv_path_orig_target_as+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 case $orig_target_as in
11461 [\\/]* | ?:[\\/]*)
11462 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11472 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 break 2
11476 done
11477 done
11478 IFS=$as_save_IFS
11481 esac
11483 orig_target_as=$ac_cv_path_orig_target_as
11484 if test -n "$orig_target_as"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11486 $as_echo "$orig_target_as" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11493 else
11494 if test "$GCC" = "yes"; then
11495 aros_gcc_as=`$CC -print-prog-name=as`
11496 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11497 set dummy `basename $aros_gcc_as`; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_path_orig_target_as+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 case $orig_target_as in
11504 [\\/]* | ?:[\\/]*)
11505 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in `dirname $aros_gcc_as`
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11519 done
11520 done
11521 IFS=$as_save_IFS
11524 esac
11526 orig_target_as=$ac_cv_path_orig_target_as
11527 if test -n "$orig_target_as"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11529 $as_echo "$orig_target_as" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11537 if test "$orig_target_as" = ""; then
11538 # Extract the first word of "as", so it can be a program name with args.
11539 set dummy as; ac_word=$2
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11541 $as_echo_n "checking for $ac_word... " >&6; }
11542 if ${ac_cv_path_orig_target_as+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 case $orig_target_as in
11546 [\\/]* | ?:[\\/]*)
11547 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11557 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11561 done
11562 done
11563 IFS=$as_save_IFS
11566 esac
11568 orig_target_as=$ac_cv_path_orig_target_as
11569 if test -n "$orig_target_as"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11571 $as_echo "$orig_target_as" >&6; }
11572 else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574 $as_echo "no" >&6; }
11580 else
11581 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11582 set dummy ${aros_tool_prefix}as; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if ${ac_cv_path_orig_target_as+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 case $orig_target_as in
11589 [\\/]* | ?:[\\/]*)
11590 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11600 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 break 2
11604 done
11605 done
11606 IFS=$as_save_IFS
11609 esac
11611 orig_target_as=$ac_cv_path_orig_target_as
11612 if test -n "$orig_target_as"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11614 $as_echo "$orig_target_as" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11623 if test "$orig_target_as" = ""; then
11624 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11627 if test "${aros_tool_prefix}ar" = ""; then
11628 if test "$cross_compiling" = "yes" ; then
11629 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11630 set dummy ${target_tool_prefix}ar; ac_word=$2
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if ${ac_cv_path_orig_target_ar+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 case $orig_target_ar in
11637 [\\/]* | ?:[\\/]*)
11638 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11644 IFS=$as_save_IFS
11645 test -z "$as_dir" && as_dir=.
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11648 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650 break 2
11652 done
11653 done
11654 IFS=$as_save_IFS
11657 esac
11659 orig_target_ar=$ac_cv_path_orig_target_ar
11660 if test -n "$orig_target_ar"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11662 $as_echo "$orig_target_ar" >&6; }
11663 else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11669 else
11670 if test "$GCC" = "yes"; then
11671 aros_gcc_ar=`$CC -print-prog-name=ar`
11672 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11673 set dummy `basename $aros_gcc_ar`; ac_word=$2
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675 $as_echo_n "checking for $ac_word... " >&6; }
11676 if ${ac_cv_path_orig_target_ar+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 case $orig_target_ar in
11680 [\\/]* | ?:[\\/]*)
11681 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in `dirname $aros_gcc_ar`
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11691 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 break 2
11695 done
11696 done
11697 IFS=$as_save_IFS
11700 esac
11702 orig_target_ar=$ac_cv_path_orig_target_ar
11703 if test -n "$orig_target_ar"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11705 $as_echo "$orig_target_ar" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11713 if test "$orig_target_ar" = ""; then
11714 # Extract the first word of "ar", so it can be a program name with args.
11715 set dummy ar; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if ${ac_cv_path_orig_target_ar+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 case $orig_target_ar in
11722 [\\/]* | ?:[\\/]*)
11723 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735 break 2
11737 done
11738 done
11739 IFS=$as_save_IFS
11742 esac
11744 orig_target_ar=$ac_cv_path_orig_target_ar
11745 if test -n "$orig_target_ar"; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11747 $as_echo "$orig_target_ar" >&6; }
11748 else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11756 else
11757 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11758 set dummy ${aros_tool_prefix}ar; ac_word=$2
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760 $as_echo_n "checking for $ac_word... " >&6; }
11761 if ${ac_cv_path_orig_target_ar+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 case $orig_target_ar in
11765 [\\/]* | ?:[\\/]*)
11766 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11776 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11778 break 2
11780 done
11781 done
11782 IFS=$as_save_IFS
11785 esac
11787 orig_target_ar=$ac_cv_path_orig_target_ar
11788 if test -n "$orig_target_ar"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11790 $as_echo "$orig_target_ar" >&6; }
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; }
11799 if test "$orig_target_ar" = ""; then
11800 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11803 if test "${aros_tool_prefix}ranlib" = ""; then
11804 if test "$cross_compiling" = "yes" ; then
11805 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11806 set dummy ${target_tool_prefix}ar; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 case $orig_target_ranlib in
11813 [\\/]* | ?:[\\/]*)
11814 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11828 done
11829 done
11830 IFS=$as_save_IFS
11833 esac
11835 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11836 if test -n "$orig_target_ranlib"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11838 $as_echo "$orig_target_ranlib" >&6; }
11839 else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11845 else
11846 if test "$GCC" = "yes"; then
11847 aros_gcc_ar=`$CC -print-prog-name=ar`
11848 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11849 set dummy `basename $aros_gcc_ar`; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 case $orig_target_ranlib in
11856 [\\/]* | ?:[\\/]*)
11857 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in `dirname $aros_gcc_ar`
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11867 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11871 done
11872 done
11873 IFS=$as_save_IFS
11876 esac
11878 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11879 if test -n "$orig_target_ranlib"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11881 $as_echo "$orig_target_ranlib" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11889 if test "$orig_target_ranlib" = ""; then
11890 # Extract the first word of "ar", so it can be a program name with args.
11891 set dummy ar; ac_word=$2
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11893 $as_echo_n "checking for $ac_word... " >&6; }
11894 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897 case $orig_target_ranlib in
11898 [\\/]* | ?:[\\/]*)
11899 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903 for as_dir in $PATH
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11909 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11911 break 2
11913 done
11914 done
11915 IFS=$as_save_IFS
11918 esac
11920 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11921 if test -n "$orig_target_ranlib"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11923 $as_echo "$orig_target_ranlib" >&6; }
11924 else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11932 else
11933 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11934 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11936 $as_echo_n "checking for $ac_word... " >&6; }
11937 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 case $orig_target_ranlib in
11941 [\\/]* | ?:[\\/]*)
11942 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11952 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11956 done
11957 done
11958 IFS=$as_save_IFS
11961 esac
11963 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11964 if test -n "$orig_target_ranlib"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11966 $as_echo "$orig_target_ranlib" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11975 if test "$orig_target_ranlib" = ""; then
11976 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11979 if test "${aros_tool_prefix}nm" = ""; then
11980 if test "$cross_compiling" = "yes" ; then
11981 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11982 set dummy ${target_tool_prefix}nm; ac_word=$2
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984 $as_echo_n "checking for $ac_word... " >&6; }
11985 if ${ac_cv_path_orig_target_nm+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 case $orig_target_nm in
11989 [\\/]* | ?:[\\/]*)
11990 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994 for as_dir in $PATH
11996 IFS=$as_save_IFS
11997 test -z "$as_dir" && as_dir=.
11998 for ac_exec_ext in '' $ac_executable_extensions; do
11999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12000 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12002 break 2
12004 done
12005 done
12006 IFS=$as_save_IFS
12009 esac
12011 orig_target_nm=$ac_cv_path_orig_target_nm
12012 if test -n "$orig_target_nm"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12014 $as_echo "$orig_target_nm" >&6; }
12015 else
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12021 else
12022 if test "$GCC" = "yes"; then
12023 aros_gcc_nm=`$CC -print-prog-name=nm`
12024 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12025 set dummy `basename $aros_gcc_nm`; ac_word=$2
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12027 $as_echo_n "checking for $ac_word... " >&6; }
12028 if ${ac_cv_path_orig_target_nm+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 case $orig_target_nm in
12032 [\\/]* | ?:[\\/]*)
12033 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037 for as_dir in `dirname $aros_gcc_nm`
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12043 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 break 2
12047 done
12048 done
12049 IFS=$as_save_IFS
12052 esac
12054 orig_target_nm=$ac_cv_path_orig_target_nm
12055 if test -n "$orig_target_nm"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12057 $as_echo "$orig_target_nm" >&6; }
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12065 if test "$orig_target_nm" = ""; then
12066 # Extract the first word of "nm", so it can be a program name with args.
12067 set dummy nm; ac_word=$2
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12069 $as_echo_n "checking for $ac_word... " >&6; }
12070 if ${ac_cv_path_orig_target_nm+:} false; then :
12071 $as_echo_n "(cached) " >&6
12072 else
12073 case $orig_target_nm in
12074 [\\/]* | ?:[\\/]*)
12075 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12081 IFS=$as_save_IFS
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
12084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12085 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12087 break 2
12089 done
12090 done
12091 IFS=$as_save_IFS
12094 esac
12096 orig_target_nm=$ac_cv_path_orig_target_nm
12097 if test -n "$orig_target_nm"; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12099 $as_echo "$orig_target_nm" >&6; }
12100 else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12108 else
12109 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12110 set dummy ${aros_tool_prefix}nm; ac_word=$2
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112 $as_echo_n "checking for $ac_word... " >&6; }
12113 if ${ac_cv_path_orig_target_nm+:} false; then :
12114 $as_echo_n "(cached) " >&6
12115 else
12116 case $orig_target_nm in
12117 [\\/]* | ?:[\\/]*)
12118 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12132 done
12133 done
12134 IFS=$as_save_IFS
12137 esac
12139 orig_target_nm=$ac_cv_path_orig_target_nm
12140 if test -n "$orig_target_nm"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12142 $as_echo "$orig_target_nm" >&6; }
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12151 if test "$orig_target_nm" = ""; then
12152 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12155 if test "${aros_tool_prefix}strip" = ""; then
12156 if test "$cross_compiling" = "yes" ; then
12157 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12158 set dummy ${target_tool_prefix}strip; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if ${ac_cv_path_orig_target_strip+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 case $orig_target_strip in
12165 [\\/]* | ?:[\\/]*)
12166 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
12175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12176 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 break 2
12180 done
12181 done
12182 IFS=$as_save_IFS
12185 esac
12187 orig_target_strip=$ac_cv_path_orig_target_strip
12188 if test -n "$orig_target_strip"; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12190 $as_echo "$orig_target_strip" >&6; }
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12197 else
12198 if test "$GCC" = "yes"; then
12199 aros_gcc_strip=`$CC -print-prog-name=strip`
12200 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12201 set dummy `basename $aros_gcc_strip`; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_path_orig_target_strip+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 case $orig_target_strip in
12208 [\\/]* | ?:[\\/]*)
12209 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in `dirname $aros_gcc_strip`
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12219 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12223 done
12224 done
12225 IFS=$as_save_IFS
12228 esac
12230 orig_target_strip=$ac_cv_path_orig_target_strip
12231 if test -n "$orig_target_strip"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12233 $as_echo "$orig_target_strip" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12241 if test "$orig_target_strip" = ""; then
12242 # Extract the first word of "strip", so it can be a program name with args.
12243 set dummy strip; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if ${ac_cv_path_orig_target_strip+:} false; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 case $orig_target_strip in
12250 [\\/]* | ?:[\\/]*)
12251 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12265 done
12266 done
12267 IFS=$as_save_IFS
12270 esac
12272 orig_target_strip=$ac_cv_path_orig_target_strip
12273 if test -n "$orig_target_strip"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12275 $as_echo "$orig_target_strip" >&6; }
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12284 else
12285 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12286 set dummy ${aros_tool_prefix}strip; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_path_orig_target_strip+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 case $orig_target_strip in
12293 [\\/]* | ?:[\\/]*)
12294 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12300 IFS=$as_save_IFS
12301 test -z "$as_dir" && as_dir=.
12302 for ac_exec_ext in '' $ac_executable_extensions; do
12303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12304 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12306 break 2
12308 done
12309 done
12310 IFS=$as_save_IFS
12313 esac
12315 orig_target_strip=$ac_cv_path_orig_target_strip
12316 if test -n "$orig_target_strip"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12318 $as_echo "$orig_target_strip" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12327 if test "$orig_target_strip" = ""; then
12328 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12331 if test "${aros_tool_prefix}objcopy" = ""; then
12332 if test "$cross_compiling" = "yes" ; then
12333 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12334 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 case $orig_target_objcopy in
12341 [\\/]* | ?:[\\/]*)
12342 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12352 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354 break 2
12356 done
12357 done
12358 IFS=$as_save_IFS
12361 esac
12363 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12364 if test -n "$orig_target_objcopy"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12366 $as_echo "$orig_target_objcopy" >&6; }
12367 else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12373 else
12374 if test "$GCC" = "yes"; then
12375 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12376 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12377 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 case $orig_target_objcopy in
12384 [\\/]* | ?:[\\/]*)
12385 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in `dirname $aros_gcc_objcopy`
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for ac_exec_ext in '' $ac_executable_extensions; do
12394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12395 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397 break 2
12399 done
12400 done
12401 IFS=$as_save_IFS
12404 esac
12406 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12407 if test -n "$orig_target_objcopy"; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12409 $as_echo "$orig_target_objcopy" >&6; }
12410 else
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12417 if test "$orig_target_objcopy" = ""; then
12418 # Extract the first word of "objcopy", so it can be a program name with args.
12419 set dummy objcopy; ac_word=$2
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421 $as_echo_n "checking for $ac_word... " >&6; }
12422 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12423 $as_echo_n "(cached) " >&6
12424 else
12425 case $orig_target_objcopy in
12426 [\\/]* | ?:[\\/]*)
12427 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431 for as_dir in $PATH
12433 IFS=$as_save_IFS
12434 test -z "$as_dir" && as_dir=.
12435 for ac_exec_ext in '' $ac_executable_extensions; do
12436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12437 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12439 break 2
12441 done
12442 done
12443 IFS=$as_save_IFS
12446 esac
12448 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12449 if test -n "$orig_target_objcopy"; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12451 $as_echo "$orig_target_objcopy" >&6; }
12452 else
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454 $as_echo "no" >&6; }
12460 else
12461 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12462 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464 $as_echo_n "checking for $ac_word... " >&6; }
12465 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 case $orig_target_objcopy in
12469 [\\/]* | ?:[\\/]*)
12470 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12480 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 break 2
12484 done
12485 done
12486 IFS=$as_save_IFS
12489 esac
12491 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12492 if test -n "$orig_target_objcopy"; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12494 $as_echo "$orig_target_objcopy" >&6; }
12495 else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12503 if test "$orig_target_objcopy" = ""; then
12504 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12507 if test "${aros_tool_prefix}objdump" = ""; then
12508 if test "$cross_compiling" = "yes" ; then
12509 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12510 set dummy ${target_tool_prefix}objdump; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if ${ac_cv_path_orig_target_objdump+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 case $orig_target_objdump in
12517 [\\/]* | ?:[\\/]*)
12518 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12528 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12532 done
12533 done
12534 IFS=$as_save_IFS
12537 esac
12539 orig_target_objdump=$ac_cv_path_orig_target_objdump
12540 if test -n "$orig_target_objdump"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12542 $as_echo "$orig_target_objdump" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12549 else
12550 if test "$GCC" = "yes"; then
12551 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12552 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12553 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_path_orig_target_objdump+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 case $orig_target_objdump in
12560 [\\/]* | ?:[\\/]*)
12561 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in `dirname $aros_gcc_objdump`
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12575 done
12576 done
12577 IFS=$as_save_IFS
12580 esac
12582 orig_target_objdump=$ac_cv_path_orig_target_objdump
12583 if test -n "$orig_target_objdump"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12585 $as_echo "$orig_target_objdump" >&6; }
12586 else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588 $as_echo "no" >&6; }
12593 if test "$orig_target_objdump" = ""; then
12594 # Extract the first word of "objdump", so it can be a program name with args.
12595 set dummy objdump; ac_word=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if ${ac_cv_path_orig_target_objdump+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 case $orig_target_objdump in
12602 [\\/]* | ?:[\\/]*)
12603 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 break 2
12617 done
12618 done
12619 IFS=$as_save_IFS
12622 esac
12624 orig_target_objdump=$ac_cv_path_orig_target_objdump
12625 if test -n "$orig_target_objdump"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12627 $as_echo "$orig_target_objdump" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12636 else
12637 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12638 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640 $as_echo_n "checking for $ac_word... " >&6; }
12641 if ${ac_cv_path_orig_target_objdump+:} false; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 case $orig_target_objdump in
12645 [\\/]* | ?:[\\/]*)
12646 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650 for as_dir in $PATH
12652 IFS=$as_save_IFS
12653 test -z "$as_dir" && as_dir=.
12654 for ac_exec_ext in '' $ac_executable_extensions; do
12655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12656 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12658 break 2
12660 done
12661 done
12662 IFS=$as_save_IFS
12665 esac
12667 orig_target_objdump=$ac_cv_path_orig_target_objdump
12668 if test -n "$orig_target_objdump"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12670 $as_echo "$orig_target_objdump" >&6; }
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12679 if test "$orig_target_objdump" = ""; then
12680 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12684 if test "$kernel_tool_prefix" = "none" ; then
12685 # No kernel tools specified
12686 # Assume target tools == kernel tools with ELF wrapper
12687 aros_kernel_cc=$orig_target_cc
12688 aros_kernel_cxx=$orig_target_cxx
12689 aros_kernel_cpp=$orig_target_cpp
12690 aros_kernel_ld=$orig_target_ld
12691 aros_kernel_as=$orig_target_as
12692 aros_kernel_ar=$orig_target_ar
12693 aros_kernel_ranlib=$orig_target_ranlib
12694 aros_kernel_nm=$orig_target_nm
12695 aros_kernel_strip=$orig_target_strip
12696 aros_kernel_objcopy=$orig_target_objcopy
12697 aros_kernel_objdump=$orig_target_objdump
12698 use_kernel_cc_wrapper=yes
12701 # At this point, all aros_kernel_* and aros_target_*
12702 # tools should be set up correctly
12704 CC="$aros_kernel_cc $kernel_tool_flags"
12705 CPP="$aros_kernel_cpp"
12707 #-----------------------------------------------------------------------------
12709 # Disable pointer-signedness warnings if the compiler recognises the option
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12712 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12713 save_cflags="$CFLAGS"
12714 if test "$crosstools" != "yes" ; then
12715 CFLAGS="$CFLAGS -Wno-pointer-sign"
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12720 main ()
12724 return 0;
12726 _ACEOF
12727 if ac_fn_c_try_compile "$LINENO"; then :
12728 use_no_sign_warning="yes"
12729 else
12730 use_no_sign_warning="no"
12732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733 else
12734 # we do know it is supported for the smallest version of gcc we are going to build
12735 # we assume it's also supported by later versions
12736 use_no_sign_warning=yes
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12739 $as_echo "$use_no_sign_warning" >&6; }
12740 if test "x-$use_no_sign_warning" = "x-yes" ; then
12741 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12743 CFLAGS="$save_cflags"
12745 #-----------------------------------------------------------------------------
12747 # Find all the tools we need to compile. This could be cross-compiling
12748 # though! If that is the case we use the GNU form of the target and
12749 # simply add this to the front of the binary name. This is rather simple,
12750 # but it should work under most circumstances.
12752 # The default tools are to use the same as the host, but only if the
12753 # host and target CPU are the same. With GCC this is normally enough.
12756 aros_cc_pre=""
12757 aros_shared_ld="$aros_host_ld"
12759 aros_target_mkdep="$aros_host_mkdep"
12761 # The default tools executables to be linked to.
12762 if test "$rescomp" != ""; then
12763 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12764 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 case $aros_kernel_rescomp in
12771 [\\/]* | ?:[\\/]*)
12772 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12782 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 break 2
12786 done
12787 done
12788 IFS=$as_save_IFS
12791 esac
12793 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12794 if test -n "$aros_kernel_rescomp"; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12796 $as_echo "$aros_kernel_rescomp" >&6; }
12797 else
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12803 if test "$aros_kernel_rescomp" = ""; then
12804 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12808 # Set up the sources for the symlink farm
12809 if test "$crosstools" = "yes"; then
12810 crosstools_target=tools-crosstools
12813 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12814 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12817 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12818 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12819 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12820 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12821 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12822 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12823 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12825 # aros_cc_pre is a variable that is added to the front of the compiler name
12826 # in the generated aros-gcc shell script. We need this to enable the cache
12827 # to work across cleaned builds. Also, support DISTCC using the correct
12828 # environment variable.
12831 if test "x${DISTCC}" != "x" ; then
12832 if test "x${CCACHE}" != "x" ; then
12833 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12834 else
12835 aros_cc_pre="${DISTCC} "
12837 else
12838 if test "x${CCACHE}" != "x" ; then
12839 aros_cc_pre="${CCACHE} "
12843 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12845 aros_target_nostdinc_cflags=-nostdinc
12847 aros_target_nostartup_ldflags=-nostartfiles
12849 aros_target_nix_ldflags=-nix
12851 aros_target_detach_ldflags=-detach
12853 aros_target_nostdlib_ldflags=-nostdlib
12856 # Target tools
12857 if test "$crosstools" != "yes"; then
12858 if test "$GCC" = "yes"; then
12859 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12861 else
12862 # We do not know which gcc version we are going to build and what we need to know
12863 # here is different for different versions so this will be set later during the
12864 # build of crosstools.
12865 aros_target_cc_path=@aros_target_cc_path@
12867 aros_target_cpp="${prefix}cpp"
12868 aros_target_cc="${prefix}gcc"
12869 aros_target_cxx="${prefix}g++"
12870 aros_target_as="${prefix}as"
12871 aros_target_ld="${prefix}ld"
12872 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12873 aros_target_objcopy="${prefix}objcopy"
12874 aros_target_objdump="${prefix}objdump"
12875 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12876 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12877 aros_target_strip="${prefix}strip"
12878 aros_plain_nm="${prefix}nm"
12879 aros_plain_ar="${prefix}ar"
12881 # Check whether --enable-includes was given.
12882 if test "${enable_includes+set}" = set; then :
12883 enableval=$enable_includes; aros_target_incl=$enable_includes
12884 else
12885 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12889 if test "$aros_kernel_includes" = ""; then
12890 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12891 aros_kernel_includes="-isystem $aros_target_incl"
12895 if test "$aros_kernel_includes" != "" ; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12897 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12898 if test "$aros_kernel_cc_includes" = "" ; then
12899 # Try to guess where the directory is.
12900 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12901 if test -d $aros_kernel_cc_includes; then
12902 # Check if there is also an include-fixed directory and add it
12903 # to kernel compiler's include path as it may contain some of
12904 # the headers we need.
12905 if test -d "$aros_kernel_cc_includes"-fixed; then
12906 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12908 # Check for specific includes directory. Neede for Ubuntu 11.10
12909 if test -d "/usr/include/i386-linux-gnu"; then
12910 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12912 else
12913 # The directory doesn't exist, we need to do some more work.
12914 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12916 # These are the headers we're looking for.
12917 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12918 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12919 zutil.h stdint.h"
12921 dirs=
12922 for h in $headers; do
12923 # Which other headers are needed by each of the above?
12924 deps=$(echo "#include <$h>" | \
12925 $aros_kernel_cc -E -M - 2>/dev/null | \
12926 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12928 # Copy all the needed headers to a directory beneath gendir.
12929 for d in $deps; do
12930 h=$(basename $d)
12931 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12932 sed -n "s,^.*/include\(/.*\),\1,p")
12933 ! test -d $dir && mkdir -p $dir
12934 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12935 done
12936 done
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12940 $as_echo "$aros_kernel_cc_includes" >&6; }
12941 # Adding -nostdinc to kernel includes as they are always used together.
12942 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12945 if test "$crosstools" != "yes"; then
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12947 $as_echo_n "checking for the target compiler's include path... " >&6; }
12948 if test "$aros_target_cc_includes" = "" ; then
12949 #try to guess where the directory is
12950 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12951 if ! test -d $aros_target_cc_includes; then
12952 #the directory doesn't exist, we need to do some more work
12953 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12955 #these are the headers we're looking for
12956 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12957 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12958 zutil.h"
12960 dirs=
12961 for h in $headers; do
12962 #which other headers each of the above headers needs?
12963 deps=$(echo "#include <$h>" | \
12964 $orig_target_cc -E -M - 2>/dev/null | \
12965 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12967 #copy all the needed headers to a directory beneath gendir
12968 for d in $deps; do
12969 h=$(basename $d)
12970 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12971 sed -n "s,^.*/include\(/.*\),\1,p")
12972 ! test -d $dir && mkdir -p $dir
12973 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12974 done
12975 done
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12979 $as_echo "$aros_target_cc_includes" >&6; }
12980 else
12981 # We do not know which gcc version we are going to build and what we need to know
12982 # here is different for different versions so this will be set later during the
12983 # build of crosstools.
12984 aros_target_cc_includes=@aros_target_cc_includes@
12988 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12989 # On GCC >= 4.0 -iquote should be used
12992 save_cc="$CC"
12993 save_cflags="$CFLAGS"
12994 CFLAGS="-iquote."
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12996 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12997 if test "x-$crosstools" != "x-yes"; then
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13002 main ()
13006 return 0;
13008 _ACEOF
13009 if ac_fn_c_try_compile "$LINENO"; then :
13010 has_iquote="yes"
13011 else
13012 has_iquote="no"
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015 else
13016 # we do know it is supported for the smallest version of gcc we are going to build
13017 # we assume it's also supported by later versions
13018 has_iquote=yes
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13021 $as_echo "$has_iquote" >&6; }
13022 if test "x-$has_iquote" = "x-yes" ; then
13023 host_cflags_iquote=-iquote
13024 host_cflags_iquote_end=
13025 else
13026 host_cflags_iquote=-I
13027 host_cflags_iquote_end=-I-
13029 kernel_cflags_iquote=$host_cflags_iquote
13030 kernel_cflags_iquote_end=$host_cflags_iquote_end
13031 if test "x-$cross_compiling" = "x-yes"; then
13032 CC="$aros_kernel_cc"
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13034 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13035 if test "x-$crosstools" != "x-yes"; then
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13040 main ()
13044 return 0;
13046 _ACEOF
13047 if ac_fn_c_try_compile "$LINENO"; then :
13048 use_no_stack_protector="yes"
13049 else
13050 use_no_stack_protector="no"
13052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053 else
13054 # we do know it is supported for the smallest version of gcc we are going to build
13055 # we assume it's also supported by later versions
13056 use_no_stack_protector=yes
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13059 $as_echo "$use_no_stack_protector" >&6; }
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13061 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13062 if test "x-$crosstools" != "x-yes"; then
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13067 main ()
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_compile "$LINENO"; then :
13075 has_iquote="yes"
13076 else
13077 has_iquote="no"
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 else
13081 # we do know it is supported for the smallest version of gcc we are going to build
13082 # we assume it's also supported by later versions
13083 has_iquote=yes
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13086 $as_echo "$has_iquote" >&6; }
13087 if test "x-$has_iquote" = "x-yes" ; then
13088 kernel_cflags_iquote=-iquote
13089 kernel_cflags_iquote_end=
13090 else
13091 kernel_cflags_iquote=-I
13092 kernel_cflags_iquote_end=-I-
13095 aros_cflags_iquote=$kernel_cflags_iquote
13096 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13097 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13098 CC="$orig_target_cc"
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13100 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13101 if test "x-$crosstools" != "x-yes"; then
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13106 main ()
13110 return 0;
13112 _ACEOF
13113 if ac_fn_c_try_compile "$LINENO"; then :
13114 has_iquote="yes"
13115 else
13116 has_iquote="no"
13118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13119 else
13120 # we do know it is supported for the smallest version of gcc we are going to build
13121 # we assume it's also supported by later versions
13122 has_iquote=yes
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13125 $as_echo "$has_iquote" >&6; }
13126 if test "x-$has_iquote" = "x-yes" ; then
13127 aros_cflags_iquote=-iquote
13128 aros_cflags_iquote_end=
13129 else
13130 aros_cflags_iquote=-I
13131 aros_cflags_iquote_end=-I-
13134 if test "x-$use_no_stack_protector" = "x-yes" ; then
13135 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13139 #-----------------------------------------------------------------------------
13141 # Check if the target compiler supports some options used for delinting:
13142 # -Wunused-but-set-variable
13143 # -Warray-bounds
13144 # -Wenum-compare
13145 # -Wstrict-overflow
13146 # -Wformat-security
13148 if test "x-$crosstools" != "x-yes"; then
13149 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13150 CC="$orig_target_cc"
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13153 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13154 CFLAGS=-Wunused-but-set-variable
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13159 main ()
13163 return 0;
13165 _ACEOF
13166 if ac_fn_c_try_compile "$LINENO"; then :
13167 aros_unused_but_set_variable="yes"
13168 else
13169 aros_unused_but_set_variable="no"
13171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13173 $as_echo "$aros_unused_but_set_variable" >&6; }
13174 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13175 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13179 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13180 CFLAGS=-Warray-bounds
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13185 main ()
13189 return 0;
13191 _ACEOF
13192 if ac_fn_c_try_compile "$LINENO"; then :
13193 aros_array_bounds="yes"
13194 else
13195 aros_array_bounds="no"
13197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13199 $as_echo "$aros_array_bounds" >&6; }
13200 if test "x-$aros_array_bounds" = "x-yes" ; then
13201 aros_cflags_array_bounds=-Wno-array-bounds
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13205 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13206 CFLAGS=-Wenum-compare
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13211 main ()
13215 return 0;
13217 _ACEOF
13218 if ac_fn_c_try_compile "$LINENO"; then :
13219 aros_enum_compare="yes"
13220 else
13221 aros_enum_compare="no"
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13225 $as_echo "$aros_enum_compare" >&6; }
13226 if test "x-$aros_enum_compare" = "x-yes" ; then
13227 aros_cflags_enum_compare=-Wno-enum-compare
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13231 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13232 CFLAGS=-Wstrict-overflow
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13237 main ()
13241 return 0;
13243 _ACEOF
13244 if ac_fn_c_try_compile "$LINENO"; then :
13245 aros_strict_overflow="yes"
13246 else
13247 aros_strict_overflow="no"
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13251 $as_echo "$aros_strict_overflow" >&6; }
13252 if test "x-$aros_strict_overflow" = "x-yes" ; then
13253 aros_cflags_strict_overflow=-Wno-strict-overflow
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13257 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13258 CFLAGS=-Wformat-security
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13263 main ()
13267 return 0;
13269 _ACEOF
13270 if ac_fn_c_try_compile "$LINENO"; then :
13271 aros_format_security="yes"
13272 else
13273 aros_format_security="no"
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13277 $as_echo "$aros_format_security" >&6; }
13278 if test "x-$aros_format_security" = "x-yes" ; then
13279 aros_cflags_format_security=-Wno-format-security
13281 else
13282 # We do not know which gcc version we are going to build and what we need to know
13283 # here is different for different versions so this will be set later during the
13284 # build of crosstools.
13285 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13286 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13287 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13288 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13289 aros_cflags_format_security=@aros_cflags_format_security@
13292 #-----------------------------------------------------------------------------
13294 # Check if we can explicitly choose older version of symbol hashing
13296 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13297 CC="$aros_kernel_cc"
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13299 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13304 main ()
13308 return 0;
13310 _ACEOF
13311 if ac_fn_c_try_link "$LINENO"; then :
13312 use_hash_style="yes"
13313 else
13314 use_hash_style="no"
13316 rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13319 $as_echo "$use_hash_style" >&6; }
13320 if test "x-$use_hash_style" = "x-yes" ; then
13321 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13323 CC="$save_cc"
13324 CFLAGS="$save_cflags"
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13335 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13337 # Check whether --with-resolution was given.
13338 if test "${with_resolution+set}" = set; then :
13339 withval=$with_resolution; resolution=$withval
13340 else
13341 resolution=none
13344 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13345 if test "$resolution" = "yes" ; then
13346 resolution="none"
13348 if test "$resolution" = "no" ; then
13349 resolution="none"
13351 if test "$resolution" != "none" ; then
13352 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13353 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13354 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13357 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13358 aros_cv_default_wbwidth=$aros_default_wbwidth
13359 aros_cv_default_wbheight=$aros_default_wbheight
13360 aros_cv_default_wbdepth=$aros_default_wbdepth
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13363 $as_echo_n "checking if serial debug is enabled... " >&6; }
13365 # Check whether --with-serial-debug was given.
13366 if test "${with_serial_debug+set}" = set; then :
13367 withval=$with_serial_debug; serial_debug=$withval
13368 else
13369 serial_debug=none
13372 if test "$aros_serial_debug" = 0 ; then
13373 serial_debug_forced=""
13374 if test "$serial_debug" = "yes" ; then
13375 serial_debug="1"
13377 if test "$serial_debug" = "no" ; then
13378 serial_debug="none"
13380 else
13381 serial_debug_forced="(forced)"
13382 serial_debug=$aros_serial_debug
13384 if test "$serial_debug" != "none" ; then
13385 aros_serial_debug=$serial_debug
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13387 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13388 else
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13394 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13395 # Check whether --enable-palm_debug_hack was given.
13396 if test "${enable_palm_debug_hack+set}" = set; then :
13397 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13398 else
13399 palm_debug_hack="no"
13402 if test "$palm_debug_hack" = "yes" ; then
13403 aros_palm_debug_hack="1"
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13406 $as_echo "$palm_debug_hack" >&6; }
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13409 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13410 # Check whether --enable-usb30_code was given.
13411 if test "${enable_usb30_code+set}" = set; then :
13412 enableval=$enable_usb30_code; usb30_code="yes"
13413 else
13414 usb30_code="no"
13417 if test "$usb30_code" = "yes" ; then
13418 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13419 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13422 $as_echo "$usb30_code" >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13425 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13426 # Check whether --enable-nesting_supervisor was given.
13427 if test "${enable_nesting_supervisor+set}" = set; then :
13428 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13429 else
13430 nesting_supervisor="no"
13433 if test "$nesting_supervisor" = "yes" ; then
13434 aros_nesting_supervisor="1"
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13437 $as_echo "$nesting_supervisor" >&6; }
13439 if test "$aros_enable_mmu" = "" ; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13441 $as_echo_n "checking if MMU support is enabled... " >&6; }
13442 # Check whether --enable-mmu was given.
13443 if test "${enable_mmu+set}" = set; then :
13444 enableval=$enable_mmu; aros_enable_mmu=$enableval
13445 else
13446 aros_enable_mmu="yes"
13449 if test "$aros_enable_mmu" = "" ; then
13450 aros_enable_mmu="yes"
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13453 $as_echo "$aros_enable_mmu" >&6; }
13455 if test "$aros_enable_mmu" = "no" ; then
13456 aros_enable_mmu="0"
13457 else
13458 aros_enable_mmu="1"
13462 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13464 if test "x-$need_dlopen" != "x-no" ; then
13465 save_libs="$LIBS"
13466 LIBS=""
13467 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13468 if test "x$ac_cv_func_dlopen" = xyes; then :
13469 have_dl="yes"
13470 else
13471 have_dl="no"
13474 if test "x-$have_dl" = "x-no" ; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13476 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13477 if ${ac_cv_lib_dl_dlopen+:} false; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 ac_check_lib_save_LIBS=$LIBS
13481 LIBS="-ldl $LIBS"
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13485 /* Override any GCC internal prototype to avoid an error.
13486 Use char because int might match the return type of a GCC
13487 builtin and then its argument prototype would still apply. */
13488 #ifdef __cplusplus
13489 extern "C"
13490 #endif
13491 char dlopen ();
13493 main ()
13495 return dlopen ();
13497 return 0;
13499 _ACEOF
13500 if ac_fn_c_try_link "$LINENO"; then :
13501 ac_cv_lib_dl_dlopen=yes
13502 else
13503 ac_cv_lib_dl_dlopen=no
13505 rm -f core conftest.err conftest.$ac_objext \
13506 conftest$ac_exeext conftest.$ac_ext
13507 LIBS=$ac_check_lib_save_LIBS
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13510 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13511 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13512 have_dl="yes"
13513 aros_host_ldflags="$aros_host_ldflags -ldl"
13514 else
13515 have_dl="no"
13519 if test "x-$have_dl" = "x-no" ; then
13520 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13522 LIBS="$save_libs"
13526 # Check whether --enable-x11_hidd was given.
13527 if test "${enable_x11_hidd+set}" = set; then :
13528 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13529 else
13530 x11_hidd="$need_x11"
13533 case "x-$x11_hidd" in
13534 x-yes|x-no|x-auto) ;;
13535 *) x11_hidd="$need_x11" ;;
13536 esac
13538 ENABLE_X11=0
13540 if test "x-$x11_hidd" != "x-no" ; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13543 $as_echo_n "checking for X... " >&6; }
13546 # Check whether --with-x was given.
13547 if test "${with_x+set}" = set; then :
13548 withval=$with_x;
13551 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13552 if test "x$with_x" = xno; then
13553 # The user explicitly disabled X.
13554 have_x=disabled
13555 else
13556 case $x_includes,$x_libraries in #(
13557 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13558 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 # One or both of the vars are not set, and there is no cached value.
13562 ac_x_includes=no ac_x_libraries=no
13563 rm -f -r conftest.dir
13564 if mkdir conftest.dir; then
13565 cd conftest.dir
13566 cat >Imakefile <<'_ACEOF'
13567 incroot:
13568 @echo incroot='${INCROOT}'
13569 usrlibdir:
13570 @echo usrlibdir='${USRLIBDIR}'
13571 libdir:
13572 @echo libdir='${LIBDIR}'
13573 _ACEOF
13574 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13575 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13576 for ac_var in incroot usrlibdir libdir; do
13577 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13578 done
13579 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13580 for ac_extension in a so sl dylib la dll; do
13581 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13582 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13583 ac_im_usrlibdir=$ac_im_libdir; break
13585 done
13586 # Screen out bogus values from the imake configuration. They are
13587 # bogus both because they are the default anyway, and because
13588 # using them would break gcc on systems where it needs fixed includes.
13589 case $ac_im_incroot in
13590 /usr/include) ac_x_includes= ;;
13591 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13592 esac
13593 case $ac_im_usrlibdir in
13594 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13595 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13596 esac
13598 cd ..
13599 rm -f -r conftest.dir
13602 # Standard set of common directories for X headers.
13603 # Check X11 before X11Rn because it is often a symlink to the current release.
13604 ac_x_header_dirs='
13605 /usr/X11/include
13606 /usr/X11R7/include
13607 /usr/X11R6/include
13608 /usr/X11R5/include
13609 /usr/X11R4/include
13611 /usr/include/X11
13612 /usr/include/X11R7
13613 /usr/include/X11R6
13614 /usr/include/X11R5
13615 /usr/include/X11R4
13617 /usr/local/X11/include
13618 /usr/local/X11R7/include
13619 /usr/local/X11R6/include
13620 /usr/local/X11R5/include
13621 /usr/local/X11R4/include
13623 /usr/local/include/X11
13624 /usr/local/include/X11R7
13625 /usr/local/include/X11R6
13626 /usr/local/include/X11R5
13627 /usr/local/include/X11R4
13629 /usr/X386/include
13630 /usr/x386/include
13631 /usr/XFree86/include/X11
13633 /usr/include
13634 /usr/local/include
13635 /usr/unsupported/include
13636 /usr/athena/include
13637 /usr/local/x11r5/include
13638 /usr/lpp/Xamples/include
13640 /usr/openwin/include
13641 /usr/openwin/share/include'
13643 if test "$ac_x_includes" = no; then
13644 # Guess where to find include files, by looking for Xlib.h.
13645 # First, try using that file with no special directory specified.
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648 #include <X11/Xlib.h>
13649 _ACEOF
13650 if ac_fn_c_try_cpp "$LINENO"; then :
13651 # We can compile using X headers with no special include directory.
13652 ac_x_includes=
13653 else
13654 for ac_dir in $ac_x_header_dirs; do
13655 if test -r "$ac_dir/X11/Xlib.h"; then
13656 ac_x_includes=$ac_dir
13657 break
13659 done
13661 rm -f conftest.err conftest.i conftest.$ac_ext
13662 fi # $ac_x_includes = no
13664 if test "$ac_x_libraries" = no; then
13665 # Check for the libraries.
13666 # See if we find them without any special options.
13667 # Don't add to $LIBS permanently.
13668 ac_save_LIBS=$LIBS
13669 LIBS="-lX11 $LIBS"
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672 #include <X11/Xlib.h>
13674 main ()
13676 XrmInitialize ()
13678 return 0;
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13682 LIBS=$ac_save_LIBS
13683 # We can link X programs with no special library path.
13684 ac_x_libraries=
13685 else
13686 LIBS=$ac_save_LIBS
13687 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13689 # Don't even attempt the hair of trying to link an X program!
13690 for ac_extension in a so sl dylib la dll; do
13691 if test -r "$ac_dir/libX11.$ac_extension"; then
13692 ac_x_libraries=$ac_dir
13693 break 2
13695 done
13696 done
13698 rm -f core conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13700 fi # $ac_x_libraries = no
13702 case $ac_x_includes,$ac_x_libraries in #(
13703 no,* | *,no | *\'*)
13704 # Didn't find X, or a directory has "'" in its name.
13705 ac_cv_have_x="have_x=no";; #(
13707 # Record where we found X for the cache.
13708 ac_cv_have_x="have_x=yes\
13709 ac_x_includes='$ac_x_includes'\
13710 ac_x_libraries='$ac_x_libraries'"
13711 esac
13713 ;; #(
13714 *) have_x=yes;;
13715 esac
13716 eval "$ac_cv_have_x"
13717 fi # $with_x != no
13719 if test "$have_x" != yes; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13721 $as_echo "$have_x" >&6; }
13722 no_x=yes
13723 else
13724 # If each of the values was on the command line, it overrides each guess.
13725 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13726 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13727 # Update the cache value to reflect the command line values.
13728 ac_cv_have_x="have_x=yes\
13729 ac_x_includes='$x_includes'\
13730 ac_x_libraries='$x_libraries'"
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13732 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13736 x_cflags=
13737 for path in $x_libraries
13739 x_cflags="$x_cflags -L$path"
13740 done
13742 for path in $x_includes
13744 x_cflags="$x_cflags -I$path"
13745 done
13747 if test "x-$no_x" = "x-yes" ; then
13749 if test "x-$x11_hidd" != "x-auto" ; then
13750 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13753 else
13754 x11_hidd_target=kernel-x11gfx-kobj
13755 ENABLE_X11=1
13757 # Check whether --enable-x11_shm was given.
13758 if test "${enable_x11_shm+set}" = set; then :
13759 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13760 else
13761 x11_hidd_shm="auto"
13764 case "x-$x11_hidd_shm" in
13765 x-yes|x-no|x-auto) ;;
13766 *) x11_hidd_shm="auto" ;;
13767 esac
13769 have_xshm=no
13771 if test "x-$x11_hidd_shm" != "x-no" ; then
13773 for ac_header in sys/ipc.h
13774 do :
13775 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13776 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13777 cat >>confdefs.h <<_ACEOF
13778 #define HAVE_SYS_IPC_H 1
13779 _ACEOF
13783 done
13785 for ac_header in sys/shm.h
13786 do :
13787 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13788 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13789 cat >>confdefs.h <<_ACEOF
13790 #define HAVE_SYS_SHM_H 1
13791 _ACEOF
13795 done
13798 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13800 save_cflags="$CFLAGS"
13801 CFLAGS="$CFLAGS $x_cflags"
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13803 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13804 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 ac_check_lib_save_LIBS=$LIBS
13808 LIBS="-lXext $LIBS"
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13812 /* Override any GCC internal prototype to avoid an error.
13813 Use char because int might match the return type of a GCC
13814 builtin and then its argument prototype would still apply. */
13815 #ifdef __cplusplus
13816 extern "C"
13817 #endif
13818 char XShmQueryExtension ();
13820 main ()
13822 return XShmQueryExtension ();
13824 return 0;
13826 _ACEOF
13827 if ac_fn_c_try_link "$LINENO"; then :
13828 ac_cv_lib_Xext_XShmQueryExtension=yes
13829 else
13830 ac_cv_lib_Xext_XShmQueryExtension=no
13832 rm -f core conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext conftest.$ac_ext
13834 LIBS=$ac_check_lib_save_LIBS
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13837 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13838 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13839 have_xshm=yes
13842 CFLAGS="$save_cflags"
13846 if test "x-$have_xshm" = "x-yes" ; then
13847 DO_XSHM_SUPPORT="1"
13848 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13849 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13850 else
13851 DO_XSHM_SUPPORT="0"
13855 # Check whether --enable-x11_vidmode was given.
13856 if test "${enable_x11_vidmode+set}" = set; then :
13857 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13858 else
13859 x11_hidd_vidmode="auto"
13862 case "x-$x11_hidd_vidmode" in
13863 x-yes|x-no|x-auto) ;;
13864 *) x11_hidd_vidmode="auto" ;;
13865 esac
13867 have_vidmode=no
13869 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13871 save_cflags="$CFLAGS"
13872 CFLAGS="$CFLAGS $x_cflags"
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13874 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13875 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878 ac_check_lib_save_LIBS=$LIBS
13879 LIBS="-lXxf86vm $LIBS"
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13886 #ifdef __cplusplus
13887 extern "C"
13888 #endif
13889 char XF86VidModeQueryExtension ();
13891 main ()
13893 return XF86VidModeQueryExtension ();
13895 return 0;
13897 _ACEOF
13898 if ac_fn_c_try_link "$LINENO"; then :
13899 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13900 else
13901 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13905 LIBS=$ac_check_lib_save_LIBS
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13908 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13909 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13910 have_vidmode=yes
13913 CFLAGS="$save_cflags"
13916 if test "x-$have_vidmode" = "x-yes" ; then
13917 DO_VIDMODE_SUPPORT="1"
13918 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13919 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13920 else
13921 DO_VIDMODE_SUPPORT="0"
13925 aros_host_x11_includes=$x_includes
13926 aros_host_x11_libdirs=$x_libraries
13930 # Check whether --enable-sdl_hidd was given.
13931 if test "${enable_sdl_hidd+set}" = set; then :
13932 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13933 else
13934 sdl_hidd="auto"
13937 case "x-$sdl_hidd" in
13938 x-yes|x-no|x-auto) ;;
13939 *) sdl_hidd="auto" ;;
13940 esac
13942 if test "x-$sdl_hidd" != "x-no" ; then
13945 # Check whether --with-sdl-prefix was given.
13946 if test "${with_sdl_prefix+set}" = set; then :
13947 withval=$with_sdl_prefix; sdl_prefix="$withval"
13948 else
13949 sdl_prefix=""
13953 # Check whether --with-sdl-exec-prefix was given.
13954 if test "${with_sdl_exec_prefix+set}" = set; then :
13955 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13956 else
13957 sdl_exec_prefix=""
13960 # Check whether --enable-sdltest was given.
13961 if test "${enable_sdltest+set}" = set; then :
13962 enableval=$enable_sdltest;
13963 else
13964 enable_sdltest=yes
13968 if test x$sdl_exec_prefix != x ; then
13969 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13970 if test x${SDL_CONFIG+set} != xset ; then
13971 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13974 if test x$sdl_prefix != x ; then
13975 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13976 if test x${SDL_CONFIG+set} != xset ; then
13977 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13981 as_save_PATH="$PATH"
13982 if test "x$prefix" != xNONE; then
13983 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13985 # Extract the first word of "sdl-config", so it can be a program name with args.
13986 set dummy sdl-config; ac_word=$2
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988 $as_echo_n "checking for $ac_word... " >&6; }
13989 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 case $SDL_CONFIG in
13993 [\\/]* | ?:[\\/]*)
13994 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998 for as_dir in $PATH
14000 IFS=$as_save_IFS
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14004 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14006 break 2
14008 done
14009 done
14010 IFS=$as_save_IFS
14012 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14014 esac
14016 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14017 if test -n "$SDL_CONFIG"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14019 $as_echo "$SDL_CONFIG" >&6; }
14020 else
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14026 PATH="$as_save_PATH"
14027 min_sdl_version=1.2.10
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14029 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14030 no_sdl=""
14031 if test "$SDL_CONFIG" = "no" ; then
14032 no_sdl=yes
14033 else
14034 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14035 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14037 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14039 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14040 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14041 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14042 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14043 if test "x$enable_sdltest" = "xyes" ; then
14044 ac_save_CFLAGS="$CFLAGS"
14045 ac_save_CXXFLAGS="$CXXFLAGS"
14046 ac_save_LIBS="$LIBS"
14047 CFLAGS="$CFLAGS $SDL_CFLAGS"
14048 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14049 LIBS="$LIBS $SDL_LIBS"
14050 rm -f conf.sdltest
14051 if test "$cross_compiling" = yes; then :
14052 echo $ac_n "cross compiling; assumed OK... $ac_c"
14053 else
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14057 #include <stdio.h>
14058 #include <stdlib.h>
14059 #include <string.h>
14060 #include "SDL.h"
14062 char*
14063 my_strdup (char *str)
14065 char *new_str;
14067 if (str)
14069 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14070 strcpy (new_str, str);
14072 else
14073 new_str = NULL;
14075 return new_str;
14078 int main (int argc, char *argv[])
14080 int major, minor, micro;
14081 char *tmp_version;
14083 /* This hangs on some systems (?)
14084 system ("touch conf.sdltest");
14086 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14088 /* HP/UX 9 (%@#!) writes to sscanf strings */
14089 tmp_version = my_strdup("$min_sdl_version");
14090 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14091 printf("%s, bad version string\n", "$min_sdl_version");
14092 exit(1);
14095 if (($sdl_major_version > major) ||
14096 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14097 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14099 return 0;
14101 else
14103 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14104 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14105 printf("*** best to upgrade to the required version.\n");
14106 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14107 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14108 printf("*** config.cache before re-running configure\n");
14109 return 1;
14114 _ACEOF
14115 if ac_fn_c_try_run "$LINENO"; then :
14117 else
14118 no_sdl=yes
14120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14121 conftest.$ac_objext conftest.beam conftest.$ac_ext
14124 CFLAGS="$ac_save_CFLAGS"
14125 CXXFLAGS="$ac_save_CXXFLAGS"
14126 LIBS="$ac_save_LIBS"
14129 if test "x$no_sdl" = x ; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14131 $as_echo "yes" >&6; }
14132 have_sdl="yes"
14133 else
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14135 $as_echo "no" >&6; }
14136 if test "$SDL_CONFIG" = "no" ; then
14137 echo "*** The sdl-config script installed by SDL could not be found"
14138 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14139 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14140 echo "*** full path to sdl-config."
14141 else
14142 if test -f conf.sdltest ; then
14144 else
14145 echo "*** Could not run SDL test program, checking why..."
14146 CFLAGS="$CFLAGS $SDL_CFLAGS"
14147 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14148 LIBS="$LIBS $SDL_LIBS"
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14152 #include <stdio.h>
14153 #include "SDL.h"
14155 int main(int argc, char *argv[])
14156 { return 0; }
14157 #undef main
14158 #define main K_and_R_C_main
14161 main ()
14163 return 0;
14165 return 0;
14167 _ACEOF
14168 if ac_fn_c_try_link "$LINENO"; then :
14169 echo "*** The test program compiled, but did not run. This usually means"
14170 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14171 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14172 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14173 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14174 echo "*** is required on your system"
14175 echo "***"
14176 echo "*** If you have an old version installed, it is best to remove it, although"
14177 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14178 else
14179 echo "*** The test program failed to compile or link. See the file config.log for the"
14180 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14181 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14182 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14184 rm -f core conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
14186 CFLAGS="$ac_save_CFLAGS"
14187 CXXFLAGS="$ac_save_CXXFLAGS"
14188 LIBS="$ac_save_LIBS"
14191 SDL_CFLAGS=""
14192 SDL_LIBS=""
14193 have_sdl="no"
14197 rm -f conf.sdltest
14200 if test "x-$have_sdl" != "x-yes" ; then
14202 if test "x-$sdl_hidd" != "x-auto" ; then
14203 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14206 else
14207 sdl_hidd_target=kernel-hidd-sdl
14208 aros_host_sdl_cflags=SDL_CFLAGS
14209 aros_host_sdl_libs=SDL_LIBS
14213 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14214 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14219 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14220 oss_library_target=workbench-libs-oss-unix
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14226 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14227 # Check whether --enable-dbus was given.
14228 if test "${enable_dbus+set}" = set; then :
14229 enableval=$enable_dbus; dbus="yes"
14230 else
14231 dbus="no"
14234 if test "$dbus" = "yes" ; then
14235 ENABLE_DBUS=1
14236 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14237 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14238 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14239 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14240 else
14241 ENABLE_DBUS=0
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14244 $as_echo "$dbus" >&6; }
14246 if test "$use_kernel_cc_wrapper" = "yes" ; then
14247 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14250 if test "${crosstools}" != "yes" ; then
14251 aros_target_toolchain=no
14252 else
14253 aros_target_toolchain=yes
14257 # Generic
14269 # Compatability with other Amiga-like operation systems
14272 # Host related
14300 # Target Related
14364 # Delinting target compiler flags
14371 # Graphics Related
14388 # Native version related
14391 # Palm native version related
14394 # Unix/Hosted version related
14397 # MMU related
14400 # Apple iOS related
14405 # ARM default GCC target related
14411 # Android related
14415 # DBUS related
14422 #X11 related
14425 # Debug related
14431 # Collect-aros stuff: "-ius" to ignore undefined symbols
14434 # C compiler related
14437 # USB3.0 code
14440 case "$aros_flavour" in
14441 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14442 aros_flavour="emulation" ;;
14443 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14444 aros_flavour="emulation" ;;
14445 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14446 aros_flavour="standalone";;
14447 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14448 aros_flavour="standalone";;
14449 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14450 aros_flavour="native" ;;
14451 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14452 aros_flavour="native" ;;
14453 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14454 aros_flavour="linklib" ;;
14455 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14456 aros_flavour="palmnative" ;;
14457 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14458 aros_flavour="mac68knative" ;;
14459 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14460 aros_flavour="ppcnative" ;;
14461 esac
14463 if test ! -d ${aros_inc_dir} ; then
14464 ${MKDIR} ${aros_inc_dir}
14466 if test ! -d ${aros_geninc_dir} ; then
14467 ${MKDIR} ${aros_geninc_dir}
14469 if test ! -d ${aros_hostcfg_dir} ; then
14470 ${MKDIR} ${aros_hostcfg_dir}
14472 if test ! -d ${aros_targetcfg_dir} ; then
14473 ${MKDIR} ${aros_targetcfg_dir}
14475 if test ! -d ${aros_tools_dir} ; then
14476 ${MKDIR} ${aros_tools_dir}
14478 if test ! -d ${aros_scripts_dir} ; then
14479 ${MKDIR} ${aros_scripts_dir}
14482 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14485 ac_config_commands="$ac_config_commands compiler_executable"
14487 ac_config_commands="$ac_config_commands genmf_executable"
14490 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"
14493 cat >confcache <<\_ACEOF
14494 # This file is a shell script that caches the results of configure
14495 # tests run on this system so they can be shared between configure
14496 # scripts and configure runs, see configure's option --config-cache.
14497 # It is not useful on other systems. If it contains results you don't
14498 # want to keep, you may remove or edit it.
14500 # config.status only pays attention to the cache file if you give it
14501 # the --recheck option to rerun configure.
14503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14505 # following values.
14507 _ACEOF
14509 # The following way of writing the cache mishandles newlines in values,
14510 # but we know of no workaround that is simple, portable, and efficient.
14511 # So, we kill variables containing newlines.
14512 # Ultrix sh set writes to stderr and can't be redirected directly,
14513 # and sets the high bit in the cache file unless we assign to the vars.
14515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14516 eval ac_val=\$$ac_var
14517 case $ac_val in #(
14518 *${as_nl}*)
14519 case $ac_var in #(
14520 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14521 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14522 esac
14523 case $ac_var in #(
14524 _ | IFS | as_nl) ;; #(
14525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14526 *) { eval $ac_var=; unset $ac_var;} ;;
14527 esac ;;
14528 esac
14529 done
14531 (set) 2>&1 |
14532 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14533 *${as_nl}ac_space=\ *)
14534 # `set' does not quote correctly, so add quotes: double-quote
14535 # substitution turns \\\\ into \\, and sed turns \\ into \.
14536 sed -n \
14537 "s/'/'\\\\''/g;
14538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14539 ;; #(
14541 # `set' quotes correctly as required by POSIX, so do not add quotes.
14542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14544 esac |
14545 sort
14547 sed '
14548 /^ac_cv_env_/b end
14549 t clear
14550 :clear
14551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14552 t end
14553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14554 :end' >>confcache
14555 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14556 if test -w "$cache_file"; then
14557 if test "x$cache_file" != "x/dev/null"; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14559 $as_echo "$as_me: updating cache $cache_file" >&6;}
14560 if test ! -f "$cache_file" || test -h "$cache_file"; then
14561 cat confcache >"$cache_file"
14562 else
14563 case $cache_file in #(
14564 */* | ?:*)
14565 mv -f confcache "$cache_file"$$ &&
14566 mv -f "$cache_file"$$ "$cache_file" ;; #(
14568 mv -f confcache "$cache_file" ;;
14569 esac
14572 else
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14574 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14577 rm -f confcache
14579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14580 # Let make expand exec_prefix.
14581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14583 DEFS=-DHAVE_CONFIG_H
14585 ac_libobjs=
14586 ac_ltlibobjs=
14588 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14589 # 1. Remove the extension, and $U if already installed.
14590 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14591 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14593 # will be set to the directory where LIBOBJS objects are built.
14594 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14595 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14596 done
14597 LIBOBJS=$ac_libobjs
14599 LTLIBOBJS=$ac_ltlibobjs
14603 : "${CONFIG_STATUS=./config.status}"
14604 ac_write_fail=0
14605 ac_clean_files_save=$ac_clean_files
14606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14608 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14609 as_write_fail=0
14610 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14611 #! $SHELL
14612 # Generated by $as_me.
14613 # Run this file to recreate the current configuration.
14614 # Compiler output produced by configure, useful for debugging
14615 # configure, is in config.log if it exists.
14617 debug=false
14618 ac_cs_recheck=false
14619 ac_cs_silent=false
14621 SHELL=\${CONFIG_SHELL-$SHELL}
14622 export SHELL
14623 _ASEOF
14624 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14625 ## -------------------- ##
14626 ## M4sh Initialization. ##
14627 ## -------------------- ##
14629 # Be more Bourne compatible
14630 DUALCASE=1; export DUALCASE # for MKS sh
14631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14632 emulate sh
14633 NULLCMD=:
14634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14635 # is contrary to our usage. Disable this feature.
14636 alias -g '${1+"$@"}'='"$@"'
14637 setopt NO_GLOB_SUBST
14638 else
14639 case `(set -o) 2>/dev/null` in #(
14640 *posix*) :
14641 set -o posix ;; #(
14642 *) :
14644 esac
14648 as_nl='
14650 export as_nl
14651 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14652 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14655 # Prefer a ksh shell builtin over an external printf program on Solaris,
14656 # but without wasting forks for bash or zsh.
14657 if test -z "$BASH_VERSION$ZSH_VERSION" \
14658 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14659 as_echo='print -r --'
14660 as_echo_n='print -rn --'
14661 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14662 as_echo='printf %s\n'
14663 as_echo_n='printf %s'
14664 else
14665 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14666 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14667 as_echo_n='/usr/ucb/echo -n'
14668 else
14669 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14670 as_echo_n_body='eval
14671 arg=$1;
14672 case $arg in #(
14673 *"$as_nl"*)
14674 expr "X$arg" : "X\\(.*\\)$as_nl";
14675 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14676 esac;
14677 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14679 export as_echo_n_body
14680 as_echo_n='sh -c $as_echo_n_body as_echo'
14682 export as_echo_body
14683 as_echo='sh -c $as_echo_body as_echo'
14686 # The user is always right.
14687 if test "${PATH_SEPARATOR+set}" != set; then
14688 PATH_SEPARATOR=:
14689 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14690 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14691 PATH_SEPARATOR=';'
14696 # IFS
14697 # We need space, tab and new line, in precisely that order. Quoting is
14698 # there to prevent editors from complaining about space-tab.
14699 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14700 # splitting by setting IFS to empty value.)
14701 IFS=" "" $as_nl"
14703 # Find who we are. Look in the path if we contain no directory separator.
14704 as_myself=
14705 case $0 in #((
14706 *[\\/]* ) as_myself=$0 ;;
14707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708 for as_dir in $PATH
14710 IFS=$as_save_IFS
14711 test -z "$as_dir" && as_dir=.
14712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14713 done
14714 IFS=$as_save_IFS
14717 esac
14718 # We did not find ourselves, most probably we were run as `sh COMMAND'
14719 # in which case we are not to be found in the path.
14720 if test "x$as_myself" = x; then
14721 as_myself=$0
14723 if test ! -f "$as_myself"; then
14724 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14725 exit 1
14728 # Unset variables that we do not need and which cause bugs (e.g. in
14729 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14730 # suppresses any "Segmentation fault" message there. '((' could
14731 # trigger a bug in pdksh 5.2.14.
14732 for as_var in BASH_ENV ENV MAIL MAILPATH
14733 do eval test x\${$as_var+set} = xset \
14734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14735 done
14736 PS1='$ '
14737 PS2='> '
14738 PS4='+ '
14740 # NLS nuisances.
14741 LC_ALL=C
14742 export LC_ALL
14743 LANGUAGE=C
14744 export LANGUAGE
14746 # CDPATH.
14747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14750 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14751 # ----------------------------------------
14752 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14753 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14754 # script with STATUS, using 1 if that was 0.
14755 as_fn_error ()
14757 as_status=$1; test $as_status -eq 0 && as_status=1
14758 if test "$4"; then
14759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14760 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14762 $as_echo "$as_me: error: $2" >&2
14763 as_fn_exit $as_status
14764 } # as_fn_error
14767 # as_fn_set_status STATUS
14768 # -----------------------
14769 # Set $? to STATUS, without forking.
14770 as_fn_set_status ()
14772 return $1
14773 } # as_fn_set_status
14775 # as_fn_exit STATUS
14776 # -----------------
14777 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14778 as_fn_exit ()
14780 set +e
14781 as_fn_set_status $1
14782 exit $1
14783 } # as_fn_exit
14785 # as_fn_unset VAR
14786 # ---------------
14787 # Portably unset VAR.
14788 as_fn_unset ()
14790 { eval $1=; unset $1;}
14792 as_unset=as_fn_unset
14793 # as_fn_append VAR VALUE
14794 # ----------------------
14795 # Append the text in VALUE to the end of the definition contained in VAR. Take
14796 # advantage of any shell optimizations that allow amortized linear growth over
14797 # repeated appends, instead of the typical quadratic growth present in naive
14798 # implementations.
14799 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14800 eval 'as_fn_append ()
14802 eval $1+=\$2
14804 else
14805 as_fn_append ()
14807 eval $1=\$$1\$2
14809 fi # as_fn_append
14811 # as_fn_arith ARG...
14812 # ------------------
14813 # Perform arithmetic evaluation on the ARGs, and store the result in the
14814 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14815 # must be portable across $(()) and expr.
14816 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14817 eval 'as_fn_arith ()
14819 as_val=$(( $* ))
14821 else
14822 as_fn_arith ()
14824 as_val=`expr "$@" || test $? -eq 1`
14826 fi # as_fn_arith
14829 if expr a : '\(a\)' >/dev/null 2>&1 &&
14830 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14831 as_expr=expr
14832 else
14833 as_expr=false
14836 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14837 as_basename=basename
14838 else
14839 as_basename=false
14842 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14843 as_dirname=dirname
14844 else
14845 as_dirname=false
14848 as_me=`$as_basename -- "$0" ||
14849 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14850 X"$0" : 'X\(//\)$' \| \
14851 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14852 $as_echo X/"$0" |
14853 sed '/^.*\/\([^/][^/]*\)\/*$/{
14854 s//\1/
14857 /^X\/\(\/\/\)$/{
14858 s//\1/
14861 /^X\/\(\/\).*/{
14862 s//\1/
14865 s/.*/./; q'`
14867 # Avoid depending upon Character Ranges.
14868 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14869 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14870 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14871 as_cr_digits='0123456789'
14872 as_cr_alnum=$as_cr_Letters$as_cr_digits
14874 ECHO_C= ECHO_N= ECHO_T=
14875 case `echo -n x` in #(((((
14876 -n*)
14877 case `echo 'xy\c'` in
14878 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14879 xy) ECHO_C='\c';;
14880 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14881 ECHO_T=' ';;
14882 esac;;
14884 ECHO_N='-n';;
14885 esac
14887 rm -f conf$$ conf$$.exe conf$$.file
14888 if test -d conf$$.dir; then
14889 rm -f conf$$.dir/conf$$.file
14890 else
14891 rm -f conf$$.dir
14892 mkdir conf$$.dir 2>/dev/null
14894 if (echo >conf$$.file) 2>/dev/null; then
14895 if ln -s conf$$.file conf$$ 2>/dev/null; then
14896 as_ln_s='ln -s'
14897 # ... but there are two gotchas:
14898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14900 # In both cases, we have to default to `cp -p'.
14901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14902 as_ln_s='cp -p'
14903 elif ln conf$$.file conf$$ 2>/dev/null; then
14904 as_ln_s=ln
14905 else
14906 as_ln_s='cp -p'
14908 else
14909 as_ln_s='cp -p'
14911 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14912 rmdir conf$$.dir 2>/dev/null
14915 # as_fn_mkdir_p
14916 # -------------
14917 # Create "$as_dir" as a directory, including parents if necessary.
14918 as_fn_mkdir_p ()
14921 case $as_dir in #(
14922 -*) as_dir=./$as_dir;;
14923 esac
14924 test -d "$as_dir" || eval $as_mkdir_p || {
14925 as_dirs=
14926 while :; do
14927 case $as_dir in #(
14928 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14929 *) as_qdir=$as_dir;;
14930 esac
14931 as_dirs="'$as_qdir' $as_dirs"
14932 as_dir=`$as_dirname -- "$as_dir" ||
14933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14934 X"$as_dir" : 'X\(//\)[^/]' \| \
14935 X"$as_dir" : 'X\(//\)$' \| \
14936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14937 $as_echo X"$as_dir" |
14938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14939 s//\1/
14942 /^X\(\/\/\)[^/].*/{
14943 s//\1/
14946 /^X\(\/\/\)$/{
14947 s//\1/
14950 /^X\(\/\).*/{
14951 s//\1/
14954 s/.*/./; q'`
14955 test -d "$as_dir" && break
14956 done
14957 test -z "$as_dirs" || eval "mkdir $as_dirs"
14958 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14961 } # as_fn_mkdir_p
14962 if mkdir -p . 2>/dev/null; then
14963 as_mkdir_p='mkdir -p "$as_dir"'
14964 else
14965 test -d ./-p && rmdir ./-p
14966 as_mkdir_p=false
14969 if test -x / >/dev/null 2>&1; then
14970 as_test_x='test -x'
14971 else
14972 if ls -dL / >/dev/null 2>&1; then
14973 as_ls_L_option=L
14974 else
14975 as_ls_L_option=
14977 as_test_x='
14978 eval sh -c '\''
14979 if test -d "$1"; then
14980 test -d "$1/.";
14981 else
14982 case $1 in #(
14983 -*)set "./$1";;
14984 esac;
14985 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14986 ???[sx]*):;;*)false;;esac;fi
14987 '\'' sh
14990 as_executable_p=$as_test_x
14992 # Sed expression to map a string onto a valid CPP name.
14993 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14995 # Sed expression to map a string onto a valid variable name.
14996 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14999 exec 6>&1
15000 ## ----------------------------------- ##
15001 ## Main body of $CONFIG_STATUS script. ##
15002 ## ----------------------------------- ##
15003 _ASEOF
15004 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15007 # Save the log message, to keep $0 and so on meaningful, and to
15008 # report actual input values of CONFIG_FILES etc. instead of their
15009 # values after options handling.
15010 ac_log="
15011 This file was extended by $as_me, which was
15012 generated by GNU Autoconf 2.68. Invocation command line was
15014 CONFIG_FILES = $CONFIG_FILES
15015 CONFIG_HEADERS = $CONFIG_HEADERS
15016 CONFIG_LINKS = $CONFIG_LINKS
15017 CONFIG_COMMANDS = $CONFIG_COMMANDS
15018 $ $0 $@
15020 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15023 _ACEOF
15025 case $ac_config_files in *"
15026 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15027 esac
15029 case $ac_config_headers in *"
15030 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15031 esac
15034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15035 # Files that config.status was made for.
15036 config_files="$ac_config_files"
15037 config_headers="$ac_config_headers"
15038 config_commands="$ac_config_commands"
15040 _ACEOF
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 ac_cs_usage="\
15044 \`$as_me' instantiates files and other configuration actions
15045 from templates according to the current configuration. Unless the files
15046 and actions are specified as TAGs, all are instantiated by default.
15048 Usage: $0 [OPTION]... [TAG]...
15050 -h, --help print this help, then exit
15051 -V, --version print version number and configuration settings, then exit
15052 --config print configuration, then exit
15053 -q, --quiet, --silent
15054 do not print progress messages
15055 -d, --debug don't remove temporary files
15056 --recheck update $as_me by reconfiguring in the same conditions
15057 --file=FILE[:TEMPLATE]
15058 instantiate the configuration file FILE
15059 --header=FILE[:TEMPLATE]
15060 instantiate the configuration header FILE
15062 Configuration files:
15063 $config_files
15065 Configuration headers:
15066 $config_headers
15068 Configuration commands:
15069 $config_commands
15071 Report bugs to the package provider."
15073 _ACEOF
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15076 ac_cs_version="\\
15077 config.status
15078 configured by $0, generated by GNU Autoconf 2.68,
15079 with options \\"\$ac_cs_config\\"
15081 Copyright (C) 2010 Free Software Foundation, Inc.
15082 This config.status script is free software; the Free Software Foundation
15083 gives unlimited permission to copy, distribute and modify it."
15085 ac_pwd='$ac_pwd'
15086 srcdir='$srcdir'
15087 test -n "\$AWK" || AWK=awk
15088 _ACEOF
15090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15091 # The default lists apply if the user does not specify any file.
15092 ac_need_defaults=:
15093 while test $# != 0
15095 case $1 in
15096 --*=?*)
15097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15099 ac_shift=:
15101 --*=)
15102 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15103 ac_optarg=
15104 ac_shift=:
15107 ac_option=$1
15108 ac_optarg=$2
15109 ac_shift=shift
15111 esac
15113 case $ac_option in
15114 # Handling of the options.
15115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15116 ac_cs_recheck=: ;;
15117 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15118 $as_echo "$ac_cs_version"; exit ;;
15119 --config | --confi | --conf | --con | --co | --c )
15120 $as_echo "$ac_cs_config"; exit ;;
15121 --debug | --debu | --deb | --de | --d | -d )
15122 debug=: ;;
15123 --file | --fil | --fi | --f )
15124 $ac_shift
15125 case $ac_optarg in
15126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15127 '') as_fn_error $? "missing file argument" ;;
15128 esac
15129 as_fn_append CONFIG_FILES " '$ac_optarg'"
15130 ac_need_defaults=false;;
15131 --header | --heade | --head | --hea )
15132 $ac_shift
15133 case $ac_optarg in
15134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15135 esac
15136 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15137 ac_need_defaults=false;;
15138 --he | --h)
15139 # Conflict between --help and --header
15140 as_fn_error $? "ambiguous option: \`$1'
15141 Try \`$0 --help' for more information.";;
15142 --help | --hel | -h )
15143 $as_echo "$ac_cs_usage"; exit ;;
15144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15146 ac_cs_silent=: ;;
15148 # This is an error.
15149 -*) as_fn_error $? "unrecognized option: \`$1'
15150 Try \`$0 --help' for more information." ;;
15152 *) as_fn_append ac_config_targets " $1"
15153 ac_need_defaults=false ;;
15155 esac
15156 shift
15157 done
15159 ac_configure_extra_args=
15161 if $ac_cs_silent; then
15162 exec 6>/dev/null
15163 ac_configure_extra_args="$ac_configure_extra_args --silent"
15166 _ACEOF
15167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168 if \$ac_cs_recheck; then
15169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15170 shift
15171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15172 CONFIG_SHELL='$SHELL'
15173 export CONFIG_SHELL
15174 exec "\$@"
15177 _ACEOF
15178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179 exec 5>>config.log
15181 echo
15182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15183 ## Running $as_me. ##
15184 _ASBOX
15185 $as_echo "$ac_log"
15186 } >&5
15188 _ACEOF
15189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15191 # INIT-COMMANDS
15194 aros_host_exe_suffix=${aros_host_exe_suffix}
15195 aros_tools_dir=${aros_tools_dir}
15196 aros_target_cpu=${aros_target_cpu}
15197 aros_target_arch=${aros_target_arch}
15198 aros_target_suffix=${aros_target_suffix}
15199 orig_target_nm=${orig_target_nm}
15200 orig_target_as=${orig_target_as}
15201 orig_target_ar=${orig_target_ar}
15202 orig_target_ranlib=${orig_target_ranlib}
15203 orig_target_objdump=${orig_target_objdump}
15204 orig_target_objcopy=${orig_target_objcopy}
15205 orig_target_strip=${orig_target_strip}
15206 aros_kernel_ld=${aros_kernel_ld}
15209 aros_tools_dir=${aros_tools_dir}
15212 _ACEOF
15214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15216 # Handling of arguments.
15217 for ac_config_target in $ac_config_targets
15219 case $ac_config_target in
15220 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15221 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15222 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15223 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15224 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15225 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15226 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15227 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15228 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15229 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15230 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15231 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15232 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15233 "${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" ;;
15234 "${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" ;;
15235 "${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" ;;
15236 "${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" ;;
15237 "${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" ;;
15238 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15239 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15240 "${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" ;;
15242 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15243 esac
15244 done
15247 # If the user did not use the arguments to specify the items to instantiate,
15248 # then the envvar interface is used. Set only those that are not.
15249 # We use the long form for the default assignment because of an extremely
15250 # bizarre bug on SunOS 4.1.3.
15251 if $ac_need_defaults; then
15252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15257 # Have a temporary directory for convenience. Make it in the build tree
15258 # simply because there is no reason against having it here, and in addition,
15259 # creating and moving files from /tmp can sometimes cause problems.
15260 # Hook for its removal unless debugging.
15261 # Note that there is a small window in which the directory will not be cleaned:
15262 # after its creation but before its name has been assigned to `$tmp'.
15263 $debug ||
15265 tmp= ac_tmp=
15266 trap 'exit_status=$?
15267 : "${ac_tmp:=$tmp}"
15268 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15270 trap 'as_fn_exit 1' 1 2 13 15
15272 # Create a (secure) tmp directory for tmp files.
15275 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15276 test -d "$tmp"
15277 } ||
15279 tmp=./conf$$-$RANDOM
15280 (umask 077 && mkdir "$tmp")
15281 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15282 ac_tmp=$tmp
15284 # Set up the scripts for CONFIG_FILES section.
15285 # No need to generate them if there are no CONFIG_FILES.
15286 # This happens for instance with `./config.status config.h'.
15287 if test -n "$CONFIG_FILES"; then
15290 ac_cr=`echo X | tr X '\015'`
15291 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15292 # But we know of no other shell where ac_cr would be empty at this
15293 # point, so we can use a bashism as a fallback.
15294 if test "x$ac_cr" = x; then
15295 eval ac_cr=\$\'\\r\'
15297 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15298 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15299 ac_cs_awk_cr='\\r'
15300 else
15301 ac_cs_awk_cr=$ac_cr
15304 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15305 _ACEOF
15309 echo "cat >conf$$subs.awk <<_ACEOF" &&
15310 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15311 echo "_ACEOF"
15312 } >conf$$subs.sh ||
15313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15314 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15315 ac_delim='%!_!# '
15316 for ac_last_try in false false false false false :; do
15317 . ./conf$$subs.sh ||
15318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15320 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15321 if test $ac_delim_n = $ac_delim_num; then
15322 break
15323 elif $ac_last_try; then
15324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15325 else
15326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15328 done
15329 rm -f conf$$subs.sh
15331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15333 _ACEOF
15334 sed -n '
15336 s/^/S["/; s/!.*/"]=/
15339 s/^[^!]*!//
15340 :repl
15341 t repl
15342 s/'"$ac_delim"'$//
15343 t delim
15346 s/\(.\{148\}\)..*/\1/
15347 t more1
15348 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15351 b repl
15352 :more1
15353 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15356 s/.\{148\}//
15357 t nl
15358 :delim
15360 s/\(.\{148\}\)..*/\1/
15361 t more2
15362 s/["\\]/\\&/g; s/^/"/; s/$/"/
15365 :more2
15366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15369 s/.\{148\}//
15370 t delim
15371 ' <conf$$subs.awk | sed '
15372 /^[^""]/{
15374 s/\n//
15376 ' >>$CONFIG_STATUS || ac_write_fail=1
15377 rm -f conf$$subs.awk
15378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15379 _ACAWK
15380 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15381 for (key in S) S_is_set[key] = 1
15382 FS = "\a"
15386 line = $ 0
15387 nfields = split(line, field, "@")
15388 substed = 0
15389 len = length(field[1])
15390 for (i = 2; i < nfields; i++) {
15391 key = field[i]
15392 keylen = length(key)
15393 if (S_is_set[key]) {
15394 value = S[key]
15395 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15396 len += length(value) + length(field[++i])
15397 substed = 1
15398 } else
15399 len += 1 + keylen
15402 print line
15405 _ACAWK
15406 _ACEOF
15407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15408 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15409 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15410 else
15412 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15413 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15414 _ACEOF
15416 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15417 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15418 # trailing colons and then remove the whole line if VPATH becomes empty
15419 # (actually we leave an empty line to preserve line numbers).
15420 if test "x$srcdir" = x.; then
15421 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15423 s///
15424 s/^/:/
15425 s/[ ]*$/:/
15426 s/:\$(srcdir):/:/g
15427 s/:\${srcdir}:/:/g
15428 s/:@srcdir@:/:/g
15429 s/^:*//
15430 s/:*$//
15432 s/\(=[ ]*\).*/\1/
15434 s/\n//
15435 s/^[^=]*=[ ]*$//
15439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15440 fi # test -n "$CONFIG_FILES"
15442 # Set up the scripts for CONFIG_HEADERS section.
15443 # No need to generate them if there are no CONFIG_HEADERS.
15444 # This happens for instance with `./config.status Makefile'.
15445 if test -n "$CONFIG_HEADERS"; then
15446 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15447 BEGIN {
15448 _ACEOF
15450 # Transform confdefs.h into an awk script `defines.awk', embedded as
15451 # here-document in config.status, that substitutes the proper values into
15452 # config.h.in to produce config.h.
15454 # Create a delimiter string that does not exist in confdefs.h, to ease
15455 # handling of long lines.
15456 ac_delim='%!_!# '
15457 for ac_last_try in false false :; do
15458 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15459 if test -z "$ac_tt"; then
15460 break
15461 elif $ac_last_try; then
15462 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15463 else
15464 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15466 done
15468 # For the awk script, D is an array of macro values keyed by name,
15469 # likewise P contains macro parameters if any. Preserve backslash
15470 # newline sequences.
15472 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15473 sed -n '
15474 s/.\{148\}/&'"$ac_delim"'/g
15475 t rset
15476 :rset
15477 s/^[ ]*#[ ]*define[ ][ ]*/ /
15478 t def
15480 :def
15481 s/\\$//
15482 t bsnl
15483 s/["\\]/\\&/g
15484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15485 D["\1"]=" \3"/p
15486 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15488 :bsnl
15489 s/["\\]/\\&/g
15490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15491 D["\1"]=" \3\\\\\\n"\\/p
15492 t cont
15493 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15494 t cont
15496 :cont
15498 s/.\{148\}/&'"$ac_delim"'/g
15499 t clear
15500 :clear
15501 s/\\$//
15502 t bsnlc
15503 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15505 :bsnlc
15506 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15507 b cont
15508 ' <confdefs.h | sed '
15509 s/'"$ac_delim"'/"\\\
15510 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15513 for (key in D) D_is_set[key] = 1
15514 FS = "\a"
15516 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15517 line = \$ 0
15518 split(line, arg, " ")
15519 if (arg[1] == "#") {
15520 defundef = arg[2]
15521 mac1 = arg[3]
15522 } else {
15523 defundef = substr(arg[1], 2)
15524 mac1 = arg[2]
15526 split(mac1, mac2, "(") #)
15527 macro = mac2[1]
15528 prefix = substr(line, 1, index(line, defundef) - 1)
15529 if (D_is_set[macro]) {
15530 # Preserve the white space surrounding the "#".
15531 print prefix "define", macro P[macro] D[macro]
15532 next
15533 } else {
15534 # Replace #undef with comments. This is necessary, for example,
15535 # in the case of _POSIX_SOURCE, which is predefined and required
15536 # on some systems where configure will not decide to define it.
15537 if (defundef == "undef") {
15538 print "/*", prefix defundef, macro, "*/"
15539 next
15543 { print }
15544 _ACAWK
15545 _ACEOF
15546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15547 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15548 fi # test -n "$CONFIG_HEADERS"
15551 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15552 shift
15553 for ac_tag
15555 case $ac_tag in
15556 :[FHLC]) ac_mode=$ac_tag; continue;;
15557 esac
15558 case $ac_mode$ac_tag in
15559 :[FHL]*:*);;
15560 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15561 :[FH]-) ac_tag=-:-;;
15562 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15563 esac
15564 ac_save_IFS=$IFS
15565 IFS=:
15566 set x $ac_tag
15567 IFS=$ac_save_IFS
15568 shift
15569 ac_file=$1
15570 shift
15572 case $ac_mode in
15573 :L) ac_source=$1;;
15574 :[FH])
15575 ac_file_inputs=
15576 for ac_f
15578 case $ac_f in
15579 -) ac_f="$ac_tmp/stdin";;
15580 *) # Look for the file first in the build tree, then in the source tree
15581 # (if the path is not absolute). The absolute path cannot be DOS-style,
15582 # because $ac_f cannot contain `:'.
15583 test -f "$ac_f" ||
15584 case $ac_f in
15585 [\\/$]*) false;;
15586 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15587 esac ||
15588 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15589 esac
15590 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15591 as_fn_append ac_file_inputs " '$ac_f'"
15592 done
15594 # Let's still pretend it is `configure' which instantiates (i.e., don't
15595 # use $as_me), people would be surprised to read:
15596 # /* config.h. Generated by config.status. */
15597 configure_input='Generated from '`
15598 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15599 `' by configure.'
15600 if test x"$ac_file" != x-; then
15601 configure_input="$ac_file. $configure_input"
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15603 $as_echo "$as_me: creating $ac_file" >&6;}
15605 # Neutralize special characters interpreted by sed in replacement strings.
15606 case $configure_input in #(
15607 *\&* | *\|* | *\\* )
15608 ac_sed_conf_input=`$as_echo "$configure_input" |
15609 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15610 *) ac_sed_conf_input=$configure_input;;
15611 esac
15613 case $ac_tag in
15614 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15616 esac
15618 esac
15620 ac_dir=`$as_dirname -- "$ac_file" ||
15621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15622 X"$ac_file" : 'X\(//\)[^/]' \| \
15623 X"$ac_file" : 'X\(//\)$' \| \
15624 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15625 $as_echo X"$ac_file" |
15626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15627 s//\1/
15630 /^X\(\/\/\)[^/].*/{
15631 s//\1/
15634 /^X\(\/\/\)$/{
15635 s//\1/
15638 /^X\(\/\).*/{
15639 s//\1/
15642 s/.*/./; q'`
15643 as_dir="$ac_dir"; as_fn_mkdir_p
15644 ac_builddir=.
15646 case "$ac_dir" in
15647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15650 # A ".." for each directory in $ac_dir_suffix.
15651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15652 case $ac_top_builddir_sub in
15653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15655 esac ;;
15656 esac
15657 ac_abs_top_builddir=$ac_pwd
15658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15659 # for backward compatibility:
15660 ac_top_builddir=$ac_top_build_prefix
15662 case $srcdir in
15663 .) # We are building in place.
15664 ac_srcdir=.
15665 ac_top_srcdir=$ac_top_builddir_sub
15666 ac_abs_top_srcdir=$ac_pwd ;;
15667 [\\/]* | ?:[\\/]* ) # Absolute name.
15668 ac_srcdir=$srcdir$ac_dir_suffix;
15669 ac_top_srcdir=$srcdir
15670 ac_abs_top_srcdir=$srcdir ;;
15671 *) # Relative name.
15672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15673 ac_top_srcdir=$ac_top_build_prefix$srcdir
15674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15675 esac
15676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15679 case $ac_mode in
15682 # CONFIG_FILE
15685 _ACEOF
15687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15688 # If the template does not know about datarootdir, expand it.
15689 # FIXME: This hack should be removed a few years after 2.60.
15690 ac_datarootdir_hack=; ac_datarootdir_seen=
15691 ac_sed_dataroot='
15692 /datarootdir/ {
15696 /@datadir@/p
15697 /@docdir@/p
15698 /@infodir@/p
15699 /@localedir@/p
15700 /@mandir@/p'
15701 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15702 *datarootdir*) ac_datarootdir_seen=yes;;
15703 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15705 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15706 _ACEOF
15707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15708 ac_datarootdir_hack='
15709 s&@datadir@&$datadir&g
15710 s&@docdir@&$docdir&g
15711 s&@infodir@&$infodir&g
15712 s&@localedir@&$localedir&g
15713 s&@mandir@&$mandir&g
15714 s&\\\${datarootdir}&$datarootdir&g' ;;
15715 esac
15716 _ACEOF
15718 # Neutralize VPATH when `$srcdir' = `.'.
15719 # Shell code in configure.ac might set extrasub.
15720 # FIXME: do we really want to maintain this feature?
15721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15722 ac_sed_extra="$ac_vpsub
15723 $extrasub
15724 _ACEOF
15725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15728 s|@configure_input@|$ac_sed_conf_input|;t t
15729 s&@top_builddir@&$ac_top_builddir_sub&;t t
15730 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15731 s&@srcdir@&$ac_srcdir&;t t
15732 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15733 s&@top_srcdir@&$ac_top_srcdir&;t t
15734 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15735 s&@builddir@&$ac_builddir&;t t
15736 s&@abs_builddir@&$ac_abs_builddir&;t t
15737 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15738 $ac_datarootdir_hack
15740 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15741 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15744 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15746 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15748 which seems to be undefined. Please make sure it is defined" >&5
15749 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15750 which seems to be undefined. Please make sure it is defined" >&2;}
15752 rm -f "$ac_tmp/stdin"
15753 case $ac_file in
15754 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15755 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15756 esac \
15757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15761 # CONFIG_HEADER
15763 if test x"$ac_file" != x-; then
15765 $as_echo "/* $configure_input */" \
15766 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15767 } >"$ac_tmp/config.h" \
15768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15769 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15771 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15772 else
15773 rm -f "$ac_file"
15774 mv "$ac_tmp/config.h" "$ac_file" \
15775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15777 else
15778 $as_echo "/* $configure_input */" \
15779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15780 || as_fn_error $? "could not create -" "$LINENO" 5
15784 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15785 $as_echo "$as_me: executing $ac_file commands" >&6;}
15787 esac
15790 case $ac_file$ac_mode in
15791 "compiler_executable":C)
15792 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15793 mkdir -p $prefix
15794 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15795 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15797 echo ${prefix2}
15798 echo ${prefix3}
15799 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15801 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15802 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15803 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15804 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15805 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15806 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15807 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15809 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15811 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15813 esac
15814 done # for ac_tag
15817 as_fn_exit 0
15818 _ACEOF
15819 ac_clean_files=$ac_clean_files_save
15821 test $ac_write_fail = 0 ||
15822 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15825 # configure is writing to config.log, and then calls config.status.
15826 # config.status does its own redirection, appending to config.log.
15827 # Unfortunately, on DOS this fails, as config.log is still kept open
15828 # by configure, so config.status won't be able to write to it; its
15829 # output is simply discarded. So we exec the FD to /dev/null,
15830 # effectively closing config.log, so it can be properly (re)opened and
15831 # appended to by config.status. When coming back to configure, we
15832 # need to make the FD available again.
15833 if test "$no_create" != yes; then
15834 ac_cs_success=:
15835 ac_config_status_args=
15836 test "$silent" = yes &&
15837 ac_config_status_args="$ac_config_status_args --quiet"
15838 exec 5>/dev/null
15839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15840 exec 5>>config.log
15841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15842 # would make configure fail if this is the last instruction.
15843 $ac_cs_success || as_fn_exit 1
15845 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15847 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15852 #XXX compatability...
15853 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15855 if test -n "$aros_shared_cflags" ; then
15856 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15857 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg