Let configure check for libpng development files.
[AROS.git] / configure
blob9cd7eae58d45d04bdf7c6b402739b4dc011e4cad
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 gcc_default_float_abi
618 gcc_default_fpu
619 gcc_default_cpu
620 aros_ios_sdk
621 aros_ios_version
622 aros_ios_platform
623 aros_enable_mmu
624 aros_nesting_supervisor
625 aros_palm_debug_hack
626 aros_serial_debug
627 aros_host_sdl_libs
628 aros_host_sdl_cflags
629 aros_host_x11_libdirs
630 aros_host_x11_includes
631 DO_VIDMODE_SUPPORT
632 DO_XSHM_SUPPORT
633 aros_default_wbdepth
634 aros_default_wbheight
635 aros_default_wbwidth
636 oss_library_target
637 pci_hidd_target
638 sdl_hidd_target
639 x11_hidd_target
640 aros_cflags_format_security
641 aros_cflags_strict_overflow
642 aros_cflags_enum_compare
643 aros_cflags_array_bounds
644 aros_cflags_unused_but_set_variable
645 crosstools_cxx_target
646 crosstools_target
647 aros_target_strip_flags
648 aros_target_genmap
649 aros_debug_ldflags
650 aros_debug_aflags
651 aros_debug_cflags
652 aros_target_cflags
653 aros_kernel_ldflags
654 aros_kernel_objcflags
655 aros_kernel_includes
656 aros_kernel_cflags
657 aros_shared_ldflags
658 aros_shared_aflags
659 aros_shared_cflags
660 aros_config_ldflags
661 aros_config_aflags
662 aros_config_cflags
663 aros_arch_libs
664 aros_compiler_libs
665 aros_object_format
666 aros_shared_ld
667 aros_shared_default
668 aros_target_nm
669 aros_target_strip
670 aros_target_objcopy
671 aros_target_objdump
672 aros_target_cc_path
673 aros_target_cc_includes
674 aros_target_ld
675 aros_target_as
676 aros_target_cpp
677 aros_target_cxx
678 aros_target_cc
679 aros_plain_ar
680 aros_plain_nm
681 aros_target_ranlib
682 aros_target_ar
683 aros_target_suffix
684 aros_target_variant
685 aros_target_cpu
686 aros_target_family
687 aros_target_arch
688 aros_target_bootloader
689 aros_target_iconset
690 aros_target_guitheme
691 aros_tools_dir
692 aros_host_lib_suffix
693 aros_host_exe_suffix
694 aros_host_mkargs
695 aros_host_mkdep
696 aros_host_debug
697 aros_host_ldflags
698 gnu89_inline
699 aros_host_cxxflags
700 aros_host_cflags
701 aros_host_make
702 aros_host_cxx
703 aros_host_cc
704 aros_host_cpp
705 aros_host_cpu
706 aros_host_arch
707 aros_cc_pre
708 aros_amigaos_compliance
709 AROS_PORTSSRCDIR
710 AROS_CROSSTOOLSDIR
711 SRCDIR
712 AROS_BUILDDIR_UNIX
713 AROS_BUILDDIR
714 aros_target_toolchain
715 aros_flavour_uc
716 aros_flavour
717 aros_cpu
718 aros_arch
719 SDL_LIBS
720 SDL_CFLAGS
721 SDL_CONFIG
722 XMKMF
723 aros_cflags_iquote_end
724 aros_cflags_iquote
725 kernel_cflags_iquote_end
726 kernel_cflags_iquote
727 host_cflags_iquote_end
728 host_cflags_iquote
729 aros_target_nostdlib_ldflags
730 aros_target_detach_ldflags
731 aros_target_nix_ldflags
732 aros_target_nostartup_ldflags
733 aros_target_nostdinc_cflags
734 aros_kernel_rescomp
735 orig_target_objdump
736 orig_target_objcopy
737 orig_target_strip
738 orig_target_nm
739 orig_target_ranlib
740 orig_target_ar
741 orig_target_as
742 orig_target_ld
743 orig_target_cxx
744 orig_target_cc
745 orig_target_cpp
746 aros_kernel_objdump
747 aros_kernel_objcopy
748 aros_kernel_strip
749 aros_kernel_nm
750 aros_kernel_ranlib
751 aros_kernel_ar
752 aros_kernel_as
753 aros_kernel_ld
754 aros_kernel_cxx
755 aros_kernel_cc
756 aros_kernel_cpp
758 android_tool
759 CCACHE
760 DISTCC
761 LIBOBJS
762 EGREP
763 GREP
765 TEST
768 pkgpyexecdir
769 pyexecdir
770 pkgpythondir
771 pythondir
772 PYTHON_PLATFORM
773 PYTHON_EXEC_PREFIX
774 PYTHON_PREFIX
775 PYTHON_VERSION
776 PYTHON
777 PATCH
778 CHMOD
780 PPMTOILBM
781 PNGTOPNM
782 FLEX
783 BISON
786 UNIQ
787 SORT
788 TOUCH
789 MKDIR
790 ECHO
794 aros_host_strip
795 aros_host_ranlib
796 aros_host_ar
797 aros_host_automake
798 aros_host_autoheader
799 aros_host_autoconf
800 aros_host_aclocal
801 aros_host_ld
802 MMAKE
805 ac_ct_CXX
806 CXXFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files=''
862 ac_user_opts='
863 enable_option_checking
864 enable_build_type
865 enable_debug
866 enable_distcc
867 enable_ccache
868 with_kernel_gcc_version
869 with_gcc_version
870 with_optimization
871 with_paranoia
872 enable_target_variant
873 with_xcode
874 with_sdk_version
875 with_sdk
876 with_ndk
877 with_ndk_version
878 enable_amigaos_compliance
879 with_kernel_toolchain_prefix
880 with_elf_toolchain_prefix
881 with_aros_toolchain
882 enable_crosstools
883 with_aros_toolchain_install
884 with_cpu
885 with_fpu
886 with_float
887 with_aros_gcc
888 with_portssources
889 with_bootloader
890 with_iconset
891 with_theme
892 enable_includes
893 with_resolution
894 with_serial_debug
895 enable_palm_debug_hack
896 enable_nesting_supervisor
897 enable_mmu
898 enable_x11_hidd
899 with_x
900 enable_x11_shm
901 enable_x11_vidmode
902 enable_sdl_hidd
903 with_sdl_prefix
904 with_sdl_exec_prefix
905 enable_sdltest
906 enable_dbus
908 ac_precious_vars='build_alias
909 host_alias
910 target_alias
912 CFLAGS
913 LDFLAGS
914 LIBS
915 CPPFLAGS
917 CXXFLAGS
920 PYTHON
921 XMKMF'
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
972 ac_prev=
973 ac_dashdash=
974 for ac_option
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
983 case $ac_option in
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *=) ac_optarg= ;;
986 *) ac_optarg=yes ;;
987 esac
989 # Accept the important Cygnus configure options, so we can diagnose typos.
991 case $ac_dashdash$ac_option in
993 ac_dashdash=yes ;;
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 ac_prev=bindir ;;
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 bindir=$ac_optarg ;;
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1015 -datadir | --datadir | --datadi | --datad)
1016 ac_prev=datadir ;;
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1147 no_create=yes ;;
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 ac_prev=sbindir ;;
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 | --sbi=* | --sb=*)
1216 sbindir=$ac_optarg ;;
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1221 | --sha | --sh)
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 | --sha=* | --sh=*)
1227 sharedstatedir=$ac_optarg ;;
1229 -site | --site | --sit)
1230 ac_prev=site ;;
1231 -site=* | --site=* | --sit=*)
1232 site=$ac_optarg ;;
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 ac_prev=srcdir ;;
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 verbose=yes ;;
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1257 -with-* | --with-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=no ;;
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information"
1311 *=*)
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 case $ac_envvar in #(
1315 '' | [0-9]* | *[!_$as_cr_alnum]* )
1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1317 esac
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 esac
1330 done
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 as_fn_error $? "missing argument to $ac_option"
1337 if test -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1339 no) ;;
1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 esac
1345 # Check all directory arguments for consistency.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
1353 case $ac_val in
1354 */ )
1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
1357 esac
1358 # Be sure to have absolute directory names.
1359 case $ac_val in
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362 esac
1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1364 done
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1369 build=$build_alias
1370 host=$host_alias
1371 target=$target_alias
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1378 If a cross compiler is detected then cross compile mode will be used" >&2
1379 elif test "x$build_alias" != "x$host_alias"; then
1380 cross_compiling=yes
1384 ac_tool_prefix=
1385 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387 test "$silent" = yes && exec 6>/dev/null
1390 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391 ac_ls_di=`ls -di .` &&
1392 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393 as_fn_error $? "working directory cannot be determined"
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 as_fn_error $? "pwd does not report name of working directory"
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1416 /^X\(\/\/\)$/{
1417 s//\1/
1420 /^X\(\/\).*/{
1421 s//\1/
1424 s/.*/./; q'`
1425 srcdir=$ac_confdir
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 srcdir=..
1429 else
1430 ac_srcdir_defaulted=no
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1439 pwd)`
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1447 case $srcdir in
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 esac
1450 for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 done
1458 # Report the --help message.
1460 if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464 \`configure' configures this package to adapt to many kinds of systems.
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE. See below for descriptions of some of the useful variables.
1471 Defaults for the options are specified in brackets.
1473 Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking ...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1495 For better control, use the options below.
1497 Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1517 _ACEOF
1519 cat <<\_ACEOF
1521 X features:
1522 --x-includes=DIR X include files are in DIR
1523 --x-libraries=DIR X library files are in DIR
1525 System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 _ACEOF
1531 if test -n "$ac_init_help"; then
1533 cat <<\_ACEOF
1535 Optional Features:
1536 --disable-option-checking ignore unrecognized --enable/--with options
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-build-type=TYPE
1540 Select the build type. Available types are:
1541 personal, nightly, snapshot, milestone, release. Do
1542 NOT use this option unless you know what you are
1543 doing! (default=personal)
1544 --enable-debug=list Enable different types of debug. Commas or
1545 whitespaces can be used to separate the items in the
1546 list. Available types of debug are: all, none,
1547 messages, stack, mungwall, modules, symbols. If no
1548 list is provided then "all" is assumed.
1549 (default=none)
1550 --enable-distcc Use distcc as a front end to the compiler
1551 (default=no).
1552 --enable-ccache Use ccache as a front end to the compiler
1553 (default=no).
1554 --enable-target-variant=NAME
1555 Enable a specific target variant(default=none)
1556 --enable-amigaos-compliance=VERSION
1557 Enforce userspace AmigaOS compliance to a specific
1558 KickStart version (default=none).
1559 --disable-crosstools Do not build cross-compiler toolchain
1560 --enable-includes=dir Alternative system include directory
1561 --enable-palm-debug-hack
1562 Enable palm debug output hack in palm native
1563 (default=no)
1564 --enable-nesting-supervisor
1565 Enable nesting supervisor support in unix
1566 (default=no)
1567 --disable-mmu Disable MMU support (default=enabled)
1568 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1569 --enable-x11-shm use X11 shared memory (default=auto)
1570 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1571 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1572 --disable-sdltest Do not try to compile and run a test SDL program
1573 --enable-dbus Enable DBUS support via dbus.library (default=no)
1575 Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-kernel-gcc-version=VERSION
1579 Use host gcc-VERSION for building AROS
1580 --with-gcc-version=VERSION
1581 Use host gcc-VERSION for building AROS
1582 --with-optimization=FLAGS
1583 Use optimization flags FLAGS (default=-O2).
1584 --with-paranoia=FLAGS CC flags to enable paranoia
1585 --with-xcode=PATH Specify XCode path for iOS targets
1586 (default=/Developer).
1587 --with-sdk-version=VERSION
1588 Use iOS SDK version VERSION (default=4.1).
1589 --with-sdk=PATH Specify Android SDK path
1590 (default=$default_android_sdk).
1591 --with-ndk=PATH Specify Android NDK path (default=none).
1592 --with-sdk-version=LEVEL
1593 Use Android SDK for API LEVEL (default=12).
1594 --with-ndk-version=LEVEL
1595 Use Android NDK for API LEVEL (default=9).
1596 --with-kernel-toolchain-prefix=...
1597 Specify crosscompile toolchain prefix for kernel
1598 objects
1599 --with-elf-toolchain-prefix=...
1600 Specify crosscompile toolchain prefix to wrap for
1601 AROS objects
1602 --with-aros-toolchain=PREFIX
1603 Specify prebuilt AROS toolchain
1604 --with-aros-toolchain-install=DIR
1605 Where to install or search for cross tools binaries
1606 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1607 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1608 --with-float=<spec> Specify floating point ABI
1609 (default=$gcc_default_float_abi).
1610 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1611 --with-portssources=DIR Where to download sourcecode for external ports
1612 --with-bootloader=NAME Use a specific bootloader
1613 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1614 --with-theme=NAME Use a specific GUI Theme
1615 --with-resolution=XRESxYRESxDEPTH
1616 Default resolution of the initial WorkbenchScreen
1617 --with-serial-debug Enable serial debug output in native (default=no)
1618 --with-x use the X Window System
1619 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1620 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1630 CXX C++ compiler command
1631 CXXFLAGS C++ compiler flags
1632 CPP C preprocessor
1633 PYTHON the Python interpreter
1634 XMKMF Path to xmkmf, Makefile generator for X Window System
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1639 Report bugs to the package provider.
1640 _ACEOF
1641 ac_status=$?
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.68
1705 Copyright (C) 2010 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709 exit
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=1
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_c_try_compile
1754 # ac_fn_cxx_try_compile LINENO
1755 # ----------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_cxx_try_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_cxx_try_compile
1792 # ac_fn_c_try_cpp LINENO
1793 # ----------------------
1794 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_cpp ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_cpp conftest.$ac_ext"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } > conftest.i && {
1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=1
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_cpp
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_link
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if eval \${$3+:} false; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1903 else
1904 ac_header_compiler=no
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1919 else
1920 ac_header_preproc=no
1922 rm -f conftest.err conftest.i conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 yes:no: )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934 no:yes:* )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 esac
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 eval "$3=\$ac_header_compiler"
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_mongrel
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1966 ac_fn_c_try_run ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_link"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>&5
1977 ac_status=$?
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980 { { case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_try") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; }; }; then :
1990 ac_retval=0
1991 else
1992 $as_echo "$as_me: program exited with status $ac_status" >&5
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 ac_retval=$ac_status
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_c_try_run
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$3=yes"
2023 else
2024 eval "$3=no"
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2036 # ----------------------------------------------------
2037 # Tries to find if the field MEMBER exists in type AGGR, after including
2038 # INCLUDES, setting cache variable VAR accordingly.
2039 ac_fn_c_check_member ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2043 $as_echo_n "checking for $2.$3... " >&6; }
2044 if eval \${$4+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static $2 ac_aggr;
2054 if (ac_aggr.$3)
2055 return 0;
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 eval "$4=yes"
2062 else
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2067 main ()
2069 static $2 ac_aggr;
2070 if (sizeof ac_aggr.$3)
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 eval "$4=yes"
2078 else
2079 eval "$4=no"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 eval ac_res=\$$4
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 } # ac_fn_c_check_member
2092 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2093 # ---------------------------------------------
2094 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2095 # accordingly.
2096 ac_fn_c_check_decl ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 as_decl_name=`echo $2|sed 's/ *(.*//'`
2100 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2102 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 #ifndef $as_decl_name
2113 #ifdef __cplusplus
2114 (void) $as_decl_use;
2115 #else
2116 (void) $as_decl_name;
2117 #endif
2118 #endif
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 eval "$3=yes"
2126 else
2127 eval "$3=no"
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 eval ac_res=\$$3
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 } # ac_fn_c_check_decl
2138 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2139 # -------------------------------------------
2140 # Tests whether TYPE exists after having included INCLUDES, setting cache
2141 # variable VAR accordingly.
2142 ac_fn_c_check_type ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 eval "$3=no"
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 if (sizeof ($2))
2158 return 0;
2160 return 0;
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 if (sizeof (($2)))
2171 return 0;
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2178 else
2179 eval "$3=yes"
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 eval ac_res=\$$3
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 } # ac_fn_c_check_type
2192 # ac_fn_c_check_func LINENO FUNC VAR
2193 # ----------------------------------
2194 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2195 ac_fn_c_check_func ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if eval \${$3+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2207 #define $2 innocuous_$2
2209 /* System header to define __stub macros and hopefully few prototypes,
2210 which can conflict with char $2 (); below.
2211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2212 <limits.h> exists even on freestanding compilers. */
2214 #ifdef __STDC__
2215 # include <limits.h>
2216 #else
2217 # include <assert.h>
2218 #endif
2220 #undef $2
2222 /* Override any GCC internal prototype to avoid an error.
2223 Use char because int might match the return type of a GCC
2224 builtin and then its argument prototype would still apply. */
2225 #ifdef __cplusplus
2226 extern "C"
2227 #endif
2228 char $2 ();
2229 /* The GNU C library defines this for functions which it implements
2230 to always fail with ENOSYS. Some functions are actually named
2231 something starting with __ and the normal name is an alias. */
2232 #if defined __stub_$2 || defined __stub___$2
2233 choke me
2234 #endif
2237 main ()
2239 return $2 ();
2241 return 0;
2243 _ACEOF
2244 if ac_fn_c_try_link "$LINENO"; then :
2245 eval "$3=yes"
2246 else
2247 eval "$3=no"
2249 rm -f core conftest.err conftest.$ac_objext \
2250 conftest$ac_exeext conftest.$ac_ext
2252 eval ac_res=\$$3
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 } # ac_fn_c_check_func
2258 cat >config.log <<_ACEOF
2259 This file contains any messages produced by compilers while
2260 running configure, to aid debugging if configure makes a mistake.
2262 It was created by $as_me, which was
2263 generated by GNU Autoconf 2.68. Invocation command line was
2265 $ $0 $@
2267 _ACEOF
2268 exec 5>>config.log
2270 cat <<_ASUNAME
2271 ## --------- ##
2272 ## Platform. ##
2273 ## --------- ##
2275 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2281 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2284 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2288 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2292 _ASUNAME
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2300 done
2301 IFS=$as_save_IFS
2303 } >&5
2305 cat >&5 <<_ACEOF
2308 ## ----------- ##
2309 ## Core tests. ##
2310 ## ----------- ##
2312 _ACEOF
2315 # Keep a trace of the command line.
2316 # Strip out --no-create and --no-recursion so they do not pile up.
2317 # Strip out --silent because we don't want to record it for future runs.
2318 # Also quote any args containing shell meta-characters.
2319 # Make two passes to allow for proper duplicate-argument suppression.
2320 ac_configure_args=
2321 ac_configure_args0=
2322 ac_configure_args1=
2323 ac_must_keep_next=false
2324 for ac_pass in 1 2
2326 for ac_arg
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
2333 *\'*)
2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 esac
2336 case $ac_pass in
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2355 as_fn_append ac_configure_args " '$ac_arg'"
2357 esac
2358 done
2359 done
2360 { ac_configure_args0=; unset ac_configure_args0;}
2361 { ac_configure_args1=; unset ac_configure_args1;}
2363 # When interrupted or exit'd, cleanup temporary files, and complete
2364 # config.log. We remove comments because anyway the quotes in there
2365 # would cause problems or look ugly.
2366 # WARNING: Use '\'' to represent an apostrophe within the trap.
2367 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368 trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2371 echo
2373 $as_echo "## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##"
2376 echo
2377 # The following way of writing the cache mishandles newlines in values,
2379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in #(
2382 *${as_nl}*)
2383 case $ac_var in #(
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 esac
2387 case $ac_var in #(
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2391 esac ;;
2392 esac
2393 done
2394 (set) 2>&1 |
2395 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
2397 sed -n \
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 ;; #(
2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 esac |
2405 sort
2407 echo
2409 $as_echo "## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##"
2412 echo
2413 for ac_var in $ac_subst_vars
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2423 if test -n "$ac_subst_files"; then
2424 $as_echo "## ------------------- ##
2425 ## File substitutions. ##
2426 ## ------------------- ##"
2427 echo
2428 for ac_var in $ac_subst_files
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
2435 done | sort
2436 echo
2439 if test -s confdefs.h; then
2440 $as_echo "## ----------- ##
2441 ## confdefs.h. ##
2442 ## ----------- ##"
2443 echo
2444 cat confdefs.h
2445 echo
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2455 for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 done
2458 ac_signal=0
2460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2461 rm -f -r conftest* confdefs.h
2463 $as_echo "/* confdefs.h */" > confdefs.h
2465 # Predefined preprocessor variables.
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_NAME "$PACKAGE_NAME"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_STRING "$PACKAGE_STRING"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_URL "$PACKAGE_URL"
2489 _ACEOF
2492 # Let the site file select an alternate cache file if it wants to.
2493 # Prefer an explicitly selected file to automatically selected ones.
2494 ac_site_file1=NONE
2495 ac_site_file2=NONE
2496 if test -n "$CONFIG_SITE"; then
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2502 esac
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file" \
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 as_fn_error $? "failed to load site script $ac_site_file
2521 See \`config.log' for more details" "$LINENO" 5; }
2523 done
2525 if test -r "$cache_file"; then
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530 $as_echo "$as_me: loading cache $cache_file" >&6;}
2531 case $cache_file in
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
2534 esac
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538 $as_echo "$as_me: creating cache $cache_file" >&6;}
2539 >$cache_file
2542 as_fn_append ac_header_list " stdlib.h"
2543 as_fn_append ac_header_list " unistd.h"
2544 as_fn_append ac_header_list " sys/param.h"
2545 # Check that the precious variables saved in the cache have kept the same
2546 # value.
2547 ac_cache_corrupted=false
2548 for ac_var in $ac_precious_vars; do
2549 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2550 eval ac_new_set=\$ac_env_${ac_var}_set
2551 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2552 eval ac_new_val=\$ac_env_${ac_var}_value
2553 case $ac_old_set,$ac_new_set in
2554 set,)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,set)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,);;
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
2565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w=`echo x $ac_old_val`
2567 ac_new_val_w=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted=:
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\$ac_old_val
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2581 fi;;
2582 esac
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2585 case $ac_new_val in
2586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2587 *) ac_arg=$ac_var=$ac_new_val ;;
2588 esac
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2591 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2592 esac
2594 done
2595 if $ac_cache_corrupted; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2600 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 ac_aux_dir=
2615 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2616 if test -f "$ac_dir/install-sh"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/install-sh -c"
2619 break
2620 elif 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/shtool"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/shtool install -c"
2627 break
2629 done
2630 if test -z "$ac_aux_dir"; then
2631 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2634 # These three variables are undocumented and unsupported,
2635 # and are intended to be withdrawn in a future Autoconf release.
2636 # They can cause serious problems if a builder's source tree is in a directory
2637 # whose full name contains unusual characters.
2638 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2639 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2640 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2644 # Check what host we are running on.
2645 # If a target is not suggested, we use this one.
2646 # Note that what we call a target, Autoconf calls a host.
2647 # Make sure we can run config.sub.
2648 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2649 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2652 $as_echo_n "checking build system type... " >&6; }
2653 if ${ac_cv_build+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 ac_build_alias=$build_alias
2657 test "x$ac_build_alias" = x &&
2658 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2659 test "x$ac_build_alias" = x &&
2660 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2661 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2662 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2666 $as_echo "$ac_cv_build" >&6; }
2667 case $ac_cv_build in
2668 *-*-*) ;;
2669 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2670 esac
2671 build=$ac_cv_build
2672 ac_save_IFS=$IFS; IFS='-'
2673 set x $ac_cv_build
2674 shift
2675 build_cpu=$1
2676 build_vendor=$2
2677 shift; shift
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2680 build_os=$*
2681 IFS=$ac_save_IFS
2682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2686 $as_echo_n "checking host system type... " >&6; }
2687 if ${ac_cv_host+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test "x$host_alias" = x; then
2691 ac_cv_host=$ac_cv_build
2692 else
2693 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2699 $as_echo "$ac_cv_host" >&6; }
2700 case $ac_cv_host in
2701 *-*-*) ;;
2702 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2703 esac
2704 host=$ac_cv_host
2705 ac_save_IFS=$IFS; IFS='-'
2706 set x $ac_cv_host
2707 shift
2708 host_cpu=$1
2709 host_vendor=$2
2710 shift; shift
2711 # Remember, the first character of IFS is used to create $*,
2712 # except with old shells:
2713 host_os=$*
2714 IFS=$ac_save_IFS
2715 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2719 # The AROS target is slightly different to the normal GNU style
2720 # format. We don't have the middle part, and we reverse the order
2721 # of the $(CPU) and $(OS) bits.
2723 # Don't strip the version of the target yet, it might be
2724 # useful on some systems.
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2727 $as_echo_n "checking for AROS style target... " >&6; }
2729 if test "$target" = "NONE" ; then
2730 target=$host_os-$host_cpu
2731 else
2732 if test "$target" = "" ; then
2733 target=$host_os-$host_cpu
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2737 $as_echo "$target" >&6; }
2739 if test "$host_os" = "mingw32" ; then
2740 PWDCMD="pwd -W"
2743 # Don't know where else to put this...
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2745 $as_echo_n "checking building AROS in... " >&6; }
2746 AROS_BUILDDIR=`${PWDCMD-pwd}`
2747 AROS_BUILDDIR_UNIX=${PWD}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2749 $as_echo "$AROS_BUILDDIR" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2752 $as_echo_n "checking AROS source in... " >&6; }
2753 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2754 SRCDIR=${srcpwd}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2756 $as_echo "$SRCDIR" >&6; }
2758 # Parse the target field into something useful.
2760 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2761 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2764 # Some debug output, to be removed again.
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2766 $as_echo_n "checking for target system (debug output)... " >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2768 $as_echo "$target_os" >&6; }
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2770 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2772 $as_echo "$target_cpu" >&6; }
2774 aros_default_wbwidth=800
2775 aros_default_wbheight=600
2776 aros_default_wbdepth=4
2779 # The first step is to find the host binaries.
2780 # Check for a compiler.
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CC+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2808 done
2809 done
2810 IFS=$as_save_IFS
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 $as_echo "$CC" >&6; }
2818 else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2825 if test -z "$ac_cv_prog_CC"; then
2826 ac_ct_CC=$CC
2827 # Extract the first word of "gcc", so it can be a program name with args.
2828 set dummy gcc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_ac_ct_CC="gcc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2850 IFS=$as_save_IFS
2854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2855 if test -n "$ac_ct_CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2857 $as_echo "$ac_ct_CC" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2863 if test "x$ac_ct_CC" = x; then
2864 CC=""
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872 CC=$ac_ct_CC
2874 else
2875 CC="$ac_cv_prog_CC"
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}cc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="${ac_tool_prefix}cc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2901 done
2902 done
2903 IFS=$as_save_IFS
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2919 if test -z "$CC"; then
2920 # Extract the first word of "cc", so it can be a program name with args.
2921 set dummy cc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 ac_prog_rejected=no
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2939 ac_prog_rejected=yes
2940 continue
2942 ac_cv_prog_CC="cc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2950 if test $ac_prog_rejected = yes; then
2951 # We found a bogon in the path, so make sure we never use it.
2952 set dummy $ac_cv_prog_CC
2953 shift
2954 if test $# != 0; then
2955 # We chose a different compiler from the bogus one.
2956 # However, it has the same basename, so the bogon will be chosen
2957 # first if we set CC to just the basename; use the full file name.
2958 shift
2959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 for ac_prog in cl.exe
2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3002 IFS=$as_save_IFS
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3016 test -n "$CC" && break
3017 done
3019 if test -z "$CC"; then
3020 ac_ct_CC=$CC
3021 for ac_prog in cl.exe
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_ac_ct_CC="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3046 IFS=$as_save_IFS
3050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051 if test -n "$ac_ct_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053 $as_echo "$ac_ct_CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$ac_ct_CC" && break
3061 done
3063 if test "x$ac_ct_CC" = x; then
3064 CC=""
3065 else
3066 case $cross_compiling:$ac_tool_warned in
3067 yes:)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned=yes ;;
3071 esac
3072 CC=$ac_ct_CC
3079 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "no acceptable C compiler found in \$PATH
3082 See \`config.log' for more details" "$LINENO" 5; }
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3086 set X $ac_compile
3087 ac_compiler=$2
3088 for ac_option in --version -v -V -qversion; do
3089 { { ac_try="$ac_compiler $ac_option >&5"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3097 ac_status=$?
3098 if test -s conftest.err; then
3099 sed '10a\
3100 ... rest of stderr output deleted ...
3101 10q' conftest.err >conftest.er1
3102 cat conftest.er1 >&5
3104 rm -f conftest.er1 conftest.err
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 done
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3113 main ()
3117 return 0;
3119 _ACEOF
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3124 # of exeext.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 $as_echo_n "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3132 ac_rmfiles=
3133 for ac_file in $ac_files
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 esac
3139 done
3140 rm -f $ac_rmfiles
3142 if { { ac_try="$ac_link_default"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3156 # so that the user can short-circuit this test for compilers unknown to
3157 # Autoconf.
3158 for ac_file in $ac_files ''
3160 test -f "$ac_file" || continue
3161 case $ac_file in
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3164 [ab].out )
3165 # We found the default executable, but exeext='' is most
3166 # certainly right.
3167 break;;
3168 *.* )
3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3170 then :; else
3171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3173 # We set ac_cv_exeext here because the later test for it is not
3174 # safe: cross compilers may not add the suffix if given an `-o'
3175 # argument, so we may need to know it at that point already.
3176 # Even if this section looks crufty: it has the advantage of
3177 # actually working.
3178 break;;
3180 break;;
3181 esac
3182 done
3183 test "$ac_cv_exeext" = no && ac_cv_exeext=
3185 else
3186 ac_file=''
3188 if test -z "$ac_file"; then :
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error 77 "C compiler cannot create executables
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 ac_exeext=$ac_cv_exeext
3208 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3209 ac_clean_files=$ac_clean_files_save
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 rm -f conftest conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251 #include <stdio.h>
3253 main ()
3255 FILE *f = fopen ("conftest.out", "w");
3256 return ferror (f) || fclose (f) != 0;
3259 return 0;
3261 _ACEOF
3262 ac_clean_files="$ac_clean_files conftest.out"
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 if test "$cross_compiling" != yes; then
3268 { { ac_try="$ac_link"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_link") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3279 if { ac_try='./conftest$ac_cv_exeext'
3280 { { case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; }; then
3290 cross_compiling=no
3291 else
3292 if test "$cross_compiling" = maybe; then
3293 cross_compiling=yes
3294 else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details" "$LINENO" 5; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 $as_echo "$cross_compiling" >&6; }
3306 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3307 ac_clean_files=$ac_clean_files_save
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3309 $as_echo_n "checking for suffix of object files... " >&6; }
3310 if ${ac_cv_objext+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3317 main ()
3321 return 0;
3323 _ACEOF
3324 rm -f conftest.o conftest.obj
3325 if { { ac_try="$ac_compile"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_compile") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
3336 for ac_file in conftest.o conftest.obj conftest.*; do
3337 test -f "$ac_file" || continue;
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341 break;;
3342 esac
3343 done
3344 else
3345 $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot compute suffix of object files: cannot compile
3351 See \`config.log' for more details" "$LINENO" 5; }
3353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3356 $as_echo "$ac_cv_objext" >&6; }
3357 OBJEXT=$ac_cv_objext
3358 ac_objext=$OBJEXT
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3360 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3361 if ${ac_cv_c_compiler_gnu+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3368 main ()
3370 #ifndef __GNUC__
3371 choke me
3372 #endif
3375 return 0;
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379 ac_compiler_gnu=yes
3380 else
3381 ac_compiler_gnu=no
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3388 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3389 if test $ac_compiler_gnu = yes; then
3390 GCC=yes
3391 else
3392 GCC=
3394 ac_test_CFLAGS=${CFLAGS+set}
3395 ac_save_CFLAGS=$CFLAGS
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3397 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3398 if ${ac_cv_prog_cc_g+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 ac_save_c_werror_flag=$ac_c_werror_flag
3402 ac_c_werror_flag=yes
3403 ac_cv_prog_cc_g=no
3404 CFLAGS="-g"
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3409 main ()
3413 return 0;
3415 _ACEOF
3416 if ac_fn_c_try_compile "$LINENO"; then :
3417 ac_cv_prog_cc_g=yes
3418 else
3419 CFLAGS=""
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3424 main ()
3428 return 0;
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3433 else
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3435 CFLAGS="-g"
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_cv_prog_cc_g=yes
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3458 $as_echo "$ac_cv_prog_cc_g" >&6; }
3459 if test "$ac_test_CFLAGS" = set; then
3460 CFLAGS=$ac_save_CFLAGS
3461 elif test $ac_cv_prog_cc_g = yes; then
3462 if test "$GCC" = yes; then
3463 CFLAGS="-g -O2"
3464 else
3465 CFLAGS="-g"
3467 else
3468 if test "$GCC" = yes; then
3469 CFLAGS="-O2"
3470 else
3471 CFLAGS=
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3475 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3476 if ${ac_cv_prog_cc_c89+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 ac_cv_prog_cc_c89=no
3480 ac_save_CC=$CC
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdarg.h>
3484 #include <stdio.h>
3485 #include <sys/types.h>
3486 #include <sys/stat.h>
3487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3488 struct buf { int x; };
3489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3490 static char *e (p, i)
3491 char **p;
3492 int i;
3494 return p[i];
3496 static char *f (char * (*g) (char **, int), char **p, ...)
3498 char *s;
3499 va_list v;
3500 va_start (v,p);
3501 s = g (p, va_arg (v,int));
3502 va_end (v);
3503 return s;
3506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3507 function prototypes and stuff, but not '\xHH' hex character constants.
3508 These don't provoke an error unfortunately, instead are silently treated
3509 as 'x'. The following induces an error, until -std is added to get
3510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3511 array size at least. It's necessary to write '\x00'==0 to get something
3512 that's true only with -std. */
3513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3516 inside strings and character constants. */
3517 #define FOO(x) 'x'
3518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3520 int test (int i, double x);
3521 struct s1 {int (*f) (int a);};
3522 struct s2 {int (*f) (double a);};
3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 int argc;
3525 char **argv;
3527 main ()
3529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3531 return 0;
3533 _ACEOF
3534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537 CC="$ac_save_CC $ac_arg"
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_cv_prog_cc_c89=$ac_arg
3541 rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC
3548 # AC_CACHE_VAL
3549 case "x$ac_cv_prog_cc_c89" in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552 $as_echo "none needed" >&6; } ;;
3553 xno)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3555 $as_echo "unsupported" >&6; } ;;
3557 CC="$CC $ac_cv_prog_cc_c89"
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3560 esac
3561 if test "x$ac_cv_prog_cc_c89" != xno; then :
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 case $ac_cv_prog_cc_stdc in #(
3572 no) :
3573 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3574 *) :
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3576 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3577 if ${ac_cv_prog_cc_c99+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 ac_cv_prog_cc_c99=no
3581 ac_save_CC=$CC
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584 #include <stdarg.h>
3585 #include <stdbool.h>
3586 #include <stdlib.h>
3587 #include <wchar.h>
3588 #include <stdio.h>
3590 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3591 #define debug(...) fprintf (stderr, __VA_ARGS__)
3592 #define showlist(...) puts (#__VA_ARGS__)
3593 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3594 static void
3595 test_varargs_macros (void)
3597 int x = 1234;
3598 int y = 5678;
3599 debug ("Flag");
3600 debug ("X = %d\n", x);
3601 showlist (The first, second, and third items.);
3602 report (x>y, "x is %d but y is %d", x, y);
3605 // Check long long types.
3606 #define BIG64 18446744073709551615ull
3607 #define BIG32 4294967295ul
3608 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3609 #if !BIG_OK
3610 your preprocessor is broken;
3611 #endif
3612 #if BIG_OK
3613 #else
3614 your preprocessor is broken;
3615 #endif
3616 static long long int bignum = -9223372036854775807LL;
3617 static unsigned long long int ubignum = BIG64;
3619 struct incomplete_array
3621 int datasize;
3622 double data[];
3625 struct named_init {
3626 int number;
3627 const wchar_t *name;
3628 double average;
3631 typedef const char *ccp;
3633 static inline int
3634 test_restrict (ccp restrict text)
3636 // See if C++-style comments work.
3637 // Iterate through items via the restricted pointer.
3638 // Also check for declarations in for loops.
3639 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3640 continue;
3641 return 0;
3644 // Check varargs and va_copy.
3645 static void
3646 test_varargs (const char *format, ...)
3648 va_list args;
3649 va_start (args, format);
3650 va_list args_copy;
3651 va_copy (args_copy, args);
3653 const char *str;
3654 int number;
3655 float fnumber;
3657 while (*format)
3659 switch (*format++)
3661 case 's': // string
3662 str = va_arg (args_copy, const char *);
3663 break;
3664 case 'd': // int
3665 number = va_arg (args_copy, int);
3666 break;
3667 case 'f': // float
3668 fnumber = va_arg (args_copy, double);
3669 break;
3670 default:
3671 break;
3674 va_end (args_copy);
3675 va_end (args);
3679 main ()
3682 // Check bool.
3683 _Bool success = false;
3685 // Check restrict.
3686 if (test_restrict ("String literal") == 0)
3687 success = true;
3688 char *restrict newvar = "Another string";
3690 // Check varargs.
3691 test_varargs ("s, d' f .", "string", 65, 34.234);
3692 test_varargs_macros ();
3694 // Check flexible array members.
3695 struct incomplete_array *ia =
3696 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3697 ia->datasize = 10;
3698 for (int i = 0; i < ia->datasize; ++i)
3699 ia->data[i] = i * 1.234;
3701 // Check named initializers.
3702 struct named_init ni = {
3703 .number = 34,
3704 .name = L"Test wide string",
3705 .average = 543.34343,
3708 ni.number = 58;
3710 int dynamic_array[ni.number];
3711 dynamic_array[ni.number - 1] = 543;
3713 // work around unused variable warnings
3714 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3715 || dynamic_array[ni.number - 1] != 543);
3718 return 0;
3720 _ACEOF
3721 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3723 CC="$ac_save_CC $ac_arg"
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_cv_prog_cc_c99=$ac_arg
3727 rm -f core conftest.err conftest.$ac_objext
3728 test "x$ac_cv_prog_cc_c99" != "xno" && break
3729 done
3730 rm -f conftest.$ac_ext
3731 CC=$ac_save_CC
3734 # AC_CACHE_VAL
3735 case "x$ac_cv_prog_cc_c99" in
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3738 $as_echo "none needed" >&6; } ;;
3739 xno)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3741 $as_echo "unsupported" >&6; } ;;
3743 CC="$CC $ac_cv_prog_cc_c99"
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3745 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3746 esac
3747 if test "x$ac_cv_prog_cc_c99" != xno; then :
3748 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3749 else
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3751 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3752 if ${ac_cv_prog_cc_c89+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 ac_cv_prog_cc_c89=no
3756 ac_save_CC=$CC
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 #include <stdarg.h>
3760 #include <stdio.h>
3761 #include <sys/types.h>
3762 #include <sys/stat.h>
3763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3764 struct buf { int x; };
3765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3766 static char *e (p, i)
3767 char **p;
3768 int i;
3770 return p[i];
3772 static char *f (char * (*g) (char **, int), char **p, ...)
3774 char *s;
3775 va_list v;
3776 va_start (v,p);
3777 s = g (p, va_arg (v,int));
3778 va_end (v);
3779 return s;
3782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3783 function prototypes and stuff, but not '\xHH' hex character constants.
3784 These don't provoke an error unfortunately, instead are silently treated
3785 as 'x'. The following induces an error, until -std is added to get
3786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3787 array size at least. It's necessary to write '\x00'==0 to get something
3788 that's true only with -std. */
3789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3792 inside strings and character constants. */
3793 #define FOO(x) 'x'
3794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3796 int test (int i, double x);
3797 struct s1 {int (*f) (int a);};
3798 struct s2 {int (*f) (double a);};
3799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3800 int argc;
3801 char **argv;
3803 main ()
3805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3807 return 0;
3809 _ACEOF
3810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3813 CC="$ac_save_CC $ac_arg"
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_prog_cc_c89=$ac_arg
3817 rm -f core conftest.err conftest.$ac_objext
3818 test "x$ac_cv_prog_cc_c89" != "xno" && break
3819 done
3820 rm -f conftest.$ac_ext
3821 CC=$ac_save_CC
3824 # AC_CACHE_VAL
3825 case "x$ac_cv_prog_cc_c89" in
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3828 $as_echo "none needed" >&6; } ;;
3829 xno)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3831 $as_echo "unsupported" >&6; } ;;
3833 CC="$CC $ac_cv_prog_cc_c89"
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3835 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3836 esac
3837 if test "x$ac_cv_prog_cc_c89" != xno; then :
3838 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3839 else
3840 ac_cv_prog_cc_stdc=no
3845 esac
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3847 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3848 if ${ac_cv_prog_cc_stdc+:} false; then :
3849 $as_echo_n "(cached) " >&6
3852 case $ac_cv_prog_cc_stdc in #(
3853 no) :
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3855 $as_echo "unsupported" >&6; } ;; #(
3856 '') :
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858 $as_echo "none needed" >&6; } ;; #(
3859 *) :
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3861 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3862 esac
3864 ac_ext=cpp
3865 ac_cpp='$CXXCPP $CPPFLAGS'
3866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3869 if test -z "$CXX"; then
3870 if test -n "$CCC"; then
3871 CXX=$CCC
3872 else
3873 if test -n "$ac_tool_prefix"; then
3874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_CXX+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$CXX"; then
3884 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3897 done
3898 done
3899 IFS=$as_save_IFS
3903 CXX=$ac_cv_prog_CXX
3904 if test -n "$CXX"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3906 $as_echo "$CXX" >&6; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3913 test -n "$CXX" && break
3914 done
3916 if test -z "$CXX"; then
3917 ac_ct_CXX=$CXX
3918 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 if test -n "$ac_ct_CXX"; then
3928 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_ac_ct_CXX="$ac_prog"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3941 done
3942 done
3943 IFS=$as_save_IFS
3947 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3948 if test -n "$ac_ct_CXX"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3950 $as_echo "$ac_ct_CXX" >&6; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3957 test -n "$ac_ct_CXX" && break
3958 done
3960 if test "x$ac_ct_CXX" = x; then
3961 CXX="g++"
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964 yes:)
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3967 ac_tool_warned=yes ;;
3968 esac
3969 CXX=$ac_ct_CXX
3975 # Provide some information about the compiler.
3976 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3977 set X $ac_compile
3978 ac_compiler=$2
3979 for ac_option in --version -v -V -qversion; do
3980 { { ac_try="$ac_compiler $ac_option >&5"
3981 case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3988 ac_status=$?
3989 if test -s conftest.err; then
3990 sed '10a\
3991 ... rest of stderr output deleted ...
3992 10q' conftest.err >conftest.er1
3993 cat conftest.er1 >&5
3995 rm -f conftest.er1 conftest.err
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }
3998 done
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4001 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4002 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4009 main ()
4011 #ifndef __GNUC__
4012 choke me
4013 #endif
4016 return 0;
4018 _ACEOF
4019 if ac_fn_cxx_try_compile "$LINENO"; then :
4020 ac_compiler_gnu=yes
4021 else
4022 ac_compiler_gnu=no
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4029 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4030 if test $ac_compiler_gnu = yes; then
4031 GXX=yes
4032 else
4033 GXX=
4035 ac_test_CXXFLAGS=${CXXFLAGS+set}
4036 ac_save_CXXFLAGS=$CXXFLAGS
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4038 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4039 if ${ac_cv_prog_cxx_g+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4043 ac_cxx_werror_flag=yes
4044 ac_cv_prog_cxx_g=no
4045 CXXFLAGS="-g"
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4050 main ()
4054 return 0;
4056 _ACEOF
4057 if ac_fn_cxx_try_compile "$LINENO"; then :
4058 ac_cv_prog_cxx_g=yes
4059 else
4060 CXXFLAGS=""
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4065 main ()
4069 return 0;
4071 _ACEOF
4072 if ac_fn_cxx_try_compile "$LINENO"; then :
4074 else
4075 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4076 CXXFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_cxx_try_compile "$LINENO"; then :
4089 ac_cv_prog_cxx_g=yes
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4099 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4100 if test "$ac_test_CXXFLAGS" = set; then
4101 CXXFLAGS=$ac_save_CXXFLAGS
4102 elif test $ac_cv_prog_cxx_g = yes; then
4103 if test "$GXX" = yes; then
4104 CXXFLAGS="-g -O2"
4105 else
4106 CXXFLAGS="-g"
4108 else
4109 if test "$GXX" = yes; then
4110 CXXFLAGS="-O2"
4111 else
4112 CXXFLAGS=
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4127 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4128 # On Suns, sometimes $CPP names a directory.
4129 if test -n "$CPP" && test -d "$CPP"; then
4130 CPP=
4132 if test -z "$CPP"; then
4133 if ${ac_cv_prog_CPP+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 # Double quotes because CPP needs to be expanded
4137 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4139 ac_preproc_ok=false
4140 for ac_c_preproc_warn_flag in '' yes
4142 # Use a header file that comes with gcc, so configuring glibc
4143 # with a fresh cross-compiler works.
4144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145 # <limits.h> exists even on freestanding compilers.
4146 # On the NeXT, cc -E runs the code through the compiler's parser,
4147 # not just through cpp. "Syntax error" is here to catch this case.
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #ifdef __STDC__
4151 # include <limits.h>
4152 #else
4153 # include <assert.h>
4154 #endif
4155 Syntax error
4156 _ACEOF
4157 if ac_fn_c_try_cpp "$LINENO"; then :
4159 else
4160 # Broken: fails on valid input.
4161 continue
4163 rm -f conftest.err conftest.i conftest.$ac_ext
4165 # OK, works on sane cases. Now check whether nonexistent headers
4166 # can be detected and how.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <ac_nonexistent.h>
4170 _ACEOF
4171 if ac_fn_c_try_cpp "$LINENO"; then :
4172 # Broken: success on invalid input.
4173 continue
4174 else
4175 # Passes both tests.
4176 ac_preproc_ok=:
4177 break
4179 rm -f conftest.err conftest.i conftest.$ac_ext
4181 done
4182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4183 rm -f conftest.i conftest.err conftest.$ac_ext
4184 if $ac_preproc_ok; then :
4185 break
4188 done
4189 ac_cv_prog_CPP=$CPP
4192 CPP=$ac_cv_prog_CPP
4193 else
4194 ac_cv_prog_CPP=$CPP
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4197 $as_echo "$CPP" >&6; }
4198 ac_preproc_ok=false
4199 for ac_c_preproc_warn_flag in '' yes
4201 # Use a header file that comes with gcc, so configuring glibc
4202 # with a fresh cross-compiler works.
4203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204 # <limits.h> exists even on freestanding compilers.
4205 # On the NeXT, cc -E runs the code through the compiler's parser,
4206 # not just through cpp. "Syntax error" is here to catch this case.
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #ifdef __STDC__
4210 # include <limits.h>
4211 #else
4212 # include <assert.h>
4213 #endif
4214 Syntax error
4215 _ACEOF
4216 if ac_fn_c_try_cpp "$LINENO"; then :
4218 else
4219 # Broken: fails on valid input.
4220 continue
4222 rm -f conftest.err conftest.i conftest.$ac_ext
4224 # OK, works on sane cases. Now check whether nonexistent headers
4225 # can be detected and how.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <ac_nonexistent.h>
4229 _ACEOF
4230 if ac_fn_c_try_cpp "$LINENO"; then :
4231 # Broken: success on invalid input.
4232 continue
4233 else
4234 # Passes both tests.
4235 ac_preproc_ok=:
4236 break
4238 rm -f conftest.err conftest.i conftest.$ac_ext
4240 done
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.i conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then :
4245 else
4246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4249 See \`config.log' for more details" "$LINENO" 5; }
4252 ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 # Check for a compatible awk
4260 for ac_prog in gawk nawk
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_AWK+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$AWK"; then
4270 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_AWK="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4285 IFS=$as_save_IFS
4289 AWK=$ac_cv_prog_AWK
4290 if test -n "$AWK"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4292 $as_echo "$AWK" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4299 test -n "$AWK" && break
4300 done
4302 if test "$AWK" = ""; then
4303 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4305 # Extract the first word of "mmake", so it can be a program name with args.
4306 set dummy mmake; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_MMAKE+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$MMAKE"; then
4313 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_MMAKE="mmake "
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 MMAKE=$ac_cv_prog_MMAKE
4333 if test -n "$MMAKE"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4335 $as_echo "$MMAKE" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4343 # Perform some default variable assignments. Note all of these will be
4344 # Regenerated from the script, so there is no need to cache them.
4346 aros_host_cpp="$CPP"
4347 aros_host_cc="$CC"
4348 aros_host_cxx="$CXX"
4349 if test "$GCC" = "yes"; then
4350 aros_gcc_ld=`$CC -print-prog-name=ld`
4351 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4352 set dummy `basename $aros_gcc_ld`; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_path_aros_host_ld+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 case $aros_host_ld in
4359 [\\/]* | ?:[\\/]*)
4360 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in `dirname $aros_gcc_ld`
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4376 IFS=$as_save_IFS
4379 esac
4381 aros_host_ld=$ac_cv_path_aros_host_ld
4382 if test -n "$aros_host_ld"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4384 $as_echo "$aros_host_ld" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4392 if test "$aros_host_ld" = ""; then
4393 # Extract the first word of "ld", so it can be a program name with args.
4394 set dummy ld; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_path_aros_host_ld+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 case $aros_host_ld in
4401 [\\/]* | ?:[\\/]*)
4402 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4416 done
4417 done
4418 IFS=$as_save_IFS
4421 esac
4423 aros_host_ld=$ac_cv_path_aros_host_ld
4424 if test -n "$aros_host_ld"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4426 $as_echo "$aros_host_ld" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4434 if test "$aros_host_ld" = ""; then
4435 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4437 aros_host_make="make"
4438 aros_host_cflags=$CFLAGS
4439 aros_host_cxxflags=$CXXFLAGS
4440 aros_host_ldflags=$LDFLAGS
4441 aros_host_debug="-g -O0"
4442 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4443 aros_host_mkargs="--no-print-directory"
4444 aros_host_exe_suffix="$EXEEXT"
4445 aros_host_lib_suffix=""
4447 # Ignore all compliance, AROS ROMs = 0
4448 # KickStart v1.0 = 30
4449 # KickStart v1.3 = 34
4450 # KickStart v2.0 = 37
4451 # KickStart v3.0 = 39
4452 # KickStart v3.1 = 40
4453 # AmigaOS v3.5 = 44
4454 aros_amigaos_compliance=0
4456 for ac_prog in aclocal aclocal19 aclocal-1.9
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$aros_host_aclocal"; then
4466 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_aros_host_aclocal="$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4486 if test -n "$aros_host_aclocal"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4488 $as_echo "$aros_host_aclocal" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4495 test -n "$aros_host_aclocal" && break
4496 done
4498 for ac_prog in autoconf autoconf259 autoconf253
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 if test -n "$aros_host_autoconf"; then
4508 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_prog_aros_host_autoconf="$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4521 done
4522 done
4523 IFS=$as_save_IFS
4527 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4528 if test -n "$aros_host_autoconf"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4530 $as_echo "$aros_host_autoconf" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4537 test -n "$aros_host_autoconf" && break
4538 done
4540 for ac_prog in autoheader autoheader259 autoheader253
4542 # Extract the first word of "$ac_prog", so it can be a program name with args.
4543 set dummy $ac_prog; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 if test -n "$aros_host_autoheader"; then
4550 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_prog_aros_host_autoheader="$ac_prog"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4563 done
4564 done
4565 IFS=$as_save_IFS
4569 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4570 if test -n "$aros_host_autoheader"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4572 $as_echo "$aros_host_autoheader" >&6; }
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4579 test -n "$aros_host_autoheader" && break
4580 done
4582 for ac_prog in automake automake19 automake-1.9
4584 # Extract the first word of "$ac_prog", so it can be a program name with args.
4585 set dummy $ac_prog; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_aros_host_automake+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$aros_host_automake"; then
4592 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_prog_aros_host_automake="$ac_prog"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4605 done
4606 done
4607 IFS=$as_save_IFS
4611 aros_host_automake=$ac_cv_prog_aros_host_automake
4612 if test -n "$aros_host_automake"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4614 $as_echo "$aros_host_automake" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4621 test -n "$aros_host_automake" && break
4622 done
4625 if test "$aros_host_aclocal" = ""; then
4626 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4628 if test "$aros_host_automake" = ""; then
4629 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4632 case "$aros_host_cc" in
4633 *gcc*)
4634 aros_host_cc_pipe="-pipe"
4636 icc)
4637 aros_host_cc_pipe=""
4640 aros_host_cc_pipe=""
4642 esac
4644 aros_kernel_cc_includes=""
4645 aros_target_cc_includes=""
4646 host_cc_elf=yes
4648 # ----------------------------------------------------------------------------------------
4649 # Host-specific defaults
4651 # This is the main host configuration section. It is where the host
4652 # can change the values of any variables it needs to change. We do
4653 # not look at anything that compiles to the target yet, we'll get
4654 # to that later.
4656 case "$host_os" in
4657 aros*)
4658 aros_host_arch="aros"
4659 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4660 case "$host_cpu" in
4661 *i?86*)
4662 aros_host_cpu="i386"
4664 *x86_64*)
4665 aros_host_cpu="x86_64"
4667 *powerpc*)
4668 aros_host_cpu="ppc"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4672 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4673 aros_host_cpu="$host_cpu"
4675 esac
4678 linux*)
4679 aros_host_arch="linux"
4680 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4681 android_build_os="linux-x86"
4682 android_tool="android"
4683 default_android_sdk="/opt/android-sdk-linux_x86"
4684 case "$host_cpu" in
4685 *i?86*)
4686 aros_host_cpu="i386"
4688 *x86_64*)
4689 aros_host_cpu="x86_64"
4691 *m68k*)
4692 aros_host_cpu="m68k"
4694 *powerpc*)
4695 aros_host_cpu="ppc"
4697 *arm*)
4698 aros_host_cpu="arm"
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4702 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4703 aros_host_cpu="$host_cpu"
4705 esac
4708 freebsd*)
4709 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4710 aros_host_make="gmake"
4711 aros_host_arch="freebsd"
4712 aros_host_cpu="i386"
4714 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4716 case $host_os in
4717 freebsd[234]*)
4718 aros_object_format="elf_i386"
4722 aros_object_format="elf_i386_fbsd"
4724 esac
4728 darwin*)
4729 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4730 aros_host_arch="darwin"
4731 host_cc_elf=no
4732 android_build_os="darwin-x86"
4733 android_tool="android"
4734 default_android_sdk="/android-sdk-mac_x86"
4735 case "$host_cpu" in
4736 *i?86*)
4737 aros_host_cpu="i386"
4739 *x86_64*)
4740 aros_host_cpu="x86_64"
4742 *powerpc*)
4743 aros_host_cpu="ppc"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4747 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4748 aros_host_cpu="$host_cpu"
4750 esac
4752 aros_host_ldflags="$aros_host_ldflags -liconv"
4756 dragonfly*)
4757 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4758 aros_host_make="gmake"
4759 aros_host_arch="dragonfly"
4760 case $host_cpu in
4761 *i?86*)
4762 aros_host_cpu="i386"
4764 *amd64*)
4765 aros_host_cpu="x86_64"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4769 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4770 aros_host_cpu="$host_cpu"
4772 esac
4775 netbsd*)
4776 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4777 aros_host_make="gmake"
4778 aros_host_arch="netbsd"
4779 case "$host_cpu" in
4780 *i?86*)
4781 aros_host_cpu="i386"
4783 *m68k*)
4784 aros_host_cpu="m68k"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4788 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4789 aros_host_cpu="$host_cpu"
4791 esac
4792 aros_host_lib_suffix=".0.0"
4795 openbsd*)
4796 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4797 aros_host_make="gmake"
4798 aros_host_arch="openbsd"
4799 case "$host_cpu" in
4800 *i?86*)
4801 aros_host_cpu="i386"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4805 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4806 aros_host_cpu="$host_cpu"
4808 esac
4811 solaris*)
4812 aros_host_arch="solaris"
4813 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4814 case "$host_cpu" in
4815 *i?86*)
4816 aros_host_cpu="i386"
4818 *sparc*)
4819 aros_host_cpu="sparc"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4823 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4824 aros_host_cpu="$host_cpu"
4826 esac
4829 morphos*)
4830 aros_host_arch="morphos"
4831 aros_host_cpu="ppc"
4832 host_cc_elf=no
4835 amiga*)
4836 aros_host_arch="amiga"
4837 host_cc_elf=no
4838 SORT="/gg/bin/sort"
4839 TEST="/gg/bin/test"
4840 UNIQ="/gg/bin/uniq"
4841 FOR="for"
4842 TOUCH="/gg/bin/touch"
4843 case "$host_cpu" in
4844 *m68k*)
4845 aros_host_cpu="m68k"
4847 *powerpc*)
4848 aros_host_cpu="ppc"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4852 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4853 aros_host_cpu="$host_cpu"
4855 esac
4858 cygwin*)
4859 aros_host_arch="cygwin"
4860 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4861 host_cc_elf=no
4862 android_build_os="windows"
4863 android_tool="android.bat"
4864 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4866 case "$host_cpu" in
4867 *i?86*)
4868 aros_host_cpu="i386"
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4872 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4873 aros_host_cpu="$host_cpu"
4875 esac
4878 mingw32*)
4879 aros_host_arch="mingw32"
4880 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4881 host_cc_elf=no
4882 android_build_os="windows"
4883 android_tool="android.bat"
4884 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4886 case "$host_cpu" in
4887 *i?86*)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4890 $as_echo_n "checking for Windows native gcc target... " >&6; }
4891 host_cpu=`gcc -dumpmachine`
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4893 $as_echo "$host_cpu" >&6; }
4896 esac
4898 case "$host_cpu" in
4899 *i?86*)
4900 aros_host_cpu="i386"
4903 mingw32*)
4904 aros_host_cpu="i386"
4907 *x86_64*)
4908 aros_host_cpu="x86_64"
4909 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4914 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4915 aros_host_cpu="$host_cpu"
4917 esac
4920 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4922 esac
4924 # Extract the first word of "ar", so it can be a program name with args.
4925 set dummy ar; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_aros_host_ar+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$aros_host_ar"; then
4932 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_aros_host_ar="ar cr"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 aros_host_ar=$ac_cv_prog_aros_host_ar
4952 if test -n "$aros_host_ar"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4954 $as_echo "$aros_host_ar" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 if test "$aros_host_ar" = ""; then
4962 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4964 # Extract the first word of "ranlib", so it can be a program name with args.
4965 set dummy ranlib; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if test -n "$aros_host_ranlib"; then
4972 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_prog_aros_host_ranlib="ranlib "
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4985 done
4986 done
4987 IFS=$as_save_IFS
4991 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4992 if test -n "$aros_host_ranlib"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4994 $as_echo "$aros_host_ranlib" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5001 if test "$aros_host_ranlib" = ""; then
5002 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5004 # Extract the first word of "strip", so it can be a program name with args.
5005 set dummy strip; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_aros_host_strip+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$aros_host_strip"; then
5012 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_aros_host_strip="strip "
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 aros_host_strip=$ac_cv_prog_aros_host_strip
5032 if test -n "$aros_host_strip"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5034 $as_echo "$aros_host_strip" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5041 if test "$aros_host_strip" = ""; then
5042 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5045 # Extract the first word of "rm", so it can be a program name with args.
5046 set dummy rm; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_RM+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$RM"; then
5053 ac_cv_prog_RM="$RM" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_RM="rm -rf"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 RM=$ac_cv_prog_RM
5073 if test -n "$RM"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5075 $as_echo "$RM" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 if test "$RM" = ""; then
5083 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5085 # Extract the first word of "cp", so it can be a program name with args.
5086 set dummy cp; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_CP+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$CP"; then
5093 ac_cv_prog_CP="$CP" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_CP="cp "
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 CP=$ac_cv_prog_CP
5113 if test -n "$CP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5115 $as_echo "$CP" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 if test "$CP" = ""; then
5123 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5125 # Extract the first word of "mv", so it can be a program name with args.
5126 set dummy mv; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_MV+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$MV"; then
5133 ac_cv_prog_MV="$MV" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_MV="mv "
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5152 MV=$ac_cv_prog_MV
5153 if test -n "$MV"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5155 $as_echo "$MV" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 if test "$MV" = ""; then
5163 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5165 # Extract the first word of "echo", so it can be a program name with args.
5166 set dummy echo; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_ECHO+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$ECHO"; then
5173 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_ECHO="echo "
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5192 ECHO=$ac_cv_prog_ECHO
5193 if test -n "$ECHO"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5195 $as_echo "$ECHO" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5202 if test "$ECHO" = ""; then
5203 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5205 # Extract the first word of "mkdir", so it can be a program name with args.
5206 set dummy mkdir; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_MKDIR+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$MKDIR"; then
5213 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_MKDIR="mkdir -p"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5228 IFS=$as_save_IFS
5232 MKDIR=$ac_cv_prog_MKDIR
5233 if test -n "$MKDIR"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5235 $as_echo "$MKDIR" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5242 if test "$MKDIR" = ""; then
5243 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5245 # Extract the first word of "touch", so it can be a program name with args.
5246 set dummy touch; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_TOUCH+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$TOUCH"; then
5253 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_TOUCH="touch "
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 TOUCH=$ac_cv_prog_TOUCH
5273 if test -n "$TOUCH"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5275 $as_echo "$TOUCH" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 if test "$TOUCH" = ""; then
5283 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5285 # Extract the first word of "sort", so it can be a program name with args.
5286 set dummy sort; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_SORT+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$SORT"; then
5293 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_prog_SORT="sort "
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5306 done
5307 done
5308 IFS=$as_save_IFS
5312 SORT=$ac_cv_prog_SORT
5313 if test -n "$SORT"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5315 $as_echo "$SORT" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 if test "$SORT" = ""; then
5323 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5325 # Extract the first word of "uniq", so it can be a program name with args.
5326 set dummy uniq; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_UNIQ+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$UNIQ"; then
5333 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_UNIQ="uniq "
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5348 IFS=$as_save_IFS
5352 UNIQ=$ac_cv_prog_UNIQ
5353 if test -n "$UNIQ"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5355 $as_echo "$UNIQ" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 if test "$UNIQ" = ""; then
5363 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5365 # Extract the first word of "true", so it can be a program name with args.
5366 set dummy true; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_NOP+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$NOP"; then
5373 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_prog_NOP="true "
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5386 done
5387 done
5388 IFS=$as_save_IFS
5392 NOP=$ac_cv_prog_NOP
5393 if test -n "$NOP"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5395 $as_echo "$NOP" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5402 if test "$NOP" = ""; then
5403 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5405 # Extract the first word of "cat", so it can be a program name with args.
5406 set dummy cat; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_CAT+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$CAT"; then
5413 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_prog_CAT="cat "
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5426 done
5427 done
5428 IFS=$as_save_IFS
5432 CAT=$ac_cv_prog_CAT
5433 if test -n "$CAT"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5435 $as_echo "$CAT" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5442 if test "$CAT" = ""; then
5443 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5445 # Extract the first word of "bison", so it can be a program name with args.
5446 set dummy bison; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_BISON+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 if test -n "$BISON"; then
5453 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462 ac_cv_prog_BISON="bison "
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5466 done
5467 done
5468 IFS=$as_save_IFS
5472 BISON=$ac_cv_prog_BISON
5473 if test -n "$BISON"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5475 $as_echo "$BISON" >&6; }
5476 else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5482 if test "$BISON" = ""; then
5483 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5485 # Extract the first word of "flex", so it can be a program name with args.
5486 set dummy flex; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_FLEX+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$FLEX"; then
5493 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_FLEX="flex "
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5506 done
5507 done
5508 IFS=$as_save_IFS
5512 FLEX=$ac_cv_prog_FLEX
5513 if test -n "$FLEX"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5515 $as_echo "$FLEX" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5522 if test "$FLEX" = ""; then
5523 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5525 # Extract the first word of "pngtopnm", so it can be a program name with args.
5526 set dummy pngtopnm; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$PNGTOPNM"; then
5533 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542 ac_cv_prog_PNGTOPNM="pngtopnm "
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5546 done
5547 done
5548 IFS=$as_save_IFS
5552 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5553 if test -n "$PNGTOPNM"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5555 $as_echo "$PNGTOPNM" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5562 if test "$PNGTOPNM" = ""; then
5563 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5565 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5566 set dummy ppmtoilbm; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 if test -n "$PPMTOILBM"; then
5573 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5586 done
5587 done
5588 IFS=$as_save_IFS
5592 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5593 if test -n "$PPMTOILBM"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5595 $as_echo "$PPMTOILBM" >&6; }
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5602 if test "$PPMTOILBM" = ""; then
5603 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5605 # Extract the first word of "sed", so it can be a program name with args.
5606 set dummy sed; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_SED+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 if test -n "$SED"; then
5613 ac_cv_prog_SED="$SED" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_prog_SED="sed "
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5626 done
5627 done
5628 IFS=$as_save_IFS
5632 SED=$ac_cv_prog_SED
5633 if test -n "$SED"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5635 $as_echo "$SED" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5642 if test "$SED" = ""; then
5643 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5645 # Extract the first word of "chmod", so it can be a program name with args.
5646 set dummy chmod; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_CHMOD+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if test -n "$CHMOD"; then
5653 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_prog_CHMOD="chmod "
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5666 done
5667 done
5668 IFS=$as_save_IFS
5672 CHMOD=$ac_cv_prog_CHMOD
5673 if test -n "$CHMOD"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5675 $as_echo "$CHMOD" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5682 if test "$CHMOD" = ""; then
5683 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5685 # Extract the first word of "patch", so it can be a program name with args.
5686 set dummy patch; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_PATCH+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if test -n "$PATCH"; then
5693 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_PATCH="patch "
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5708 IFS=$as_save_IFS
5712 PATCH=$ac_cv_prog_PATCH
5713 if test -n "$PATCH"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5715 $as_echo "$PATCH" >&6; }
5716 else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5722 if test "$PATCH" = ""; then
5723 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5732 if test -n "$PYTHON"; then
5733 # If the user set $PYTHON, use it and don't search something else.
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5735 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5736 prog="import sys
5737 # split strings by '.' and convert to numeric. Append some zeros
5738 # because we need at least 4 digits for the hex conversion.
5739 # map returns an iterator in Python 3.0 and a list in 2.x
5740 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5741 minverhex = 0
5742 # xrange is not present in Python 3.0 and range returns an iterator
5743 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5744 sys.exit(sys.hexversion < minverhex)"
5745 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5746 ($PYTHON -c "$prog") >&5 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; then :
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751 $as_echo "yes" >&6; }
5752 else
5753 as_fn_error $? "too old" "$LINENO" 5
5755 am_display_PYTHON=$PYTHON
5756 else
5757 # Otherwise, try each interpreter until we find one that satisfies
5758 # VERSION.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5760 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5761 if ${am_cv_pathless_PYTHON+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5765 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
5766 test "$am_cv_pathless_PYTHON" = none && break
5767 prog="import sys
5768 # split strings by '.' and convert to numeric. Append some zeros
5769 # because we need at least 4 digits for the hex conversion.
5770 # map returns an iterator in Python 3.0 and a list in 2.x
5771 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5772 minverhex = 0
5773 # xrange is not present in Python 3.0 and range returns an iterator
5774 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5775 sys.exit(sys.hexversion < minverhex)"
5776 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5777 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; then :
5781 break
5783 done
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5786 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5787 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5788 if test "$am_cv_pathless_PYTHON" = none; then
5789 PYTHON=:
5790 else
5791 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5792 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_path_PYTHON+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 case $PYTHON in
5799 [\\/]* | ?:[\\/]*)
5800 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5819 esac
5821 PYTHON=$ac_cv_path_PYTHON
5822 if test -n "$PYTHON"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5824 $as_echo "$PYTHON" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5832 am_display_PYTHON=$am_cv_pathless_PYTHON
5836 if test "$PYTHON" = :; then
5837 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5838 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5842 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5843 if ${am_cv_python_version+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5849 $as_echo "$am_cv_python_version" >&6; }
5850 PYTHON_VERSION=$am_cv_python_version
5854 PYTHON_PREFIX='${prefix}'
5856 PYTHON_EXEC_PREFIX='${exec_prefix}'
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5861 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5862 if ${am_cv_python_platform+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5868 $as_echo "$am_cv_python_platform" >&6; }
5869 PYTHON_PLATFORM=$am_cv_python_platform
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5875 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5876 if ${am_cv_python_pythondir+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test "x$prefix" = xNONE
5880 then
5881 am_py_prefix=$ac_default_prefix
5882 else
5883 am_py_prefix=$prefix
5885 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`
5886 case $am_cv_python_pythondir in
5887 $am_py_prefix*)
5888 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5889 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5892 case $am_py_prefix in
5893 /usr|/System*) ;;
5895 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5897 esac
5899 esac
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5903 $as_echo "$am_cv_python_pythondir" >&6; }
5904 pythondir=$am_cv_python_pythondir
5908 pkgpythondir=\${pythondir}/$PACKAGE
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5912 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5913 if ${am_cv_python_pyexecdir+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test "x$exec_prefix" = xNONE
5917 then
5918 am_py_exec_prefix=$am_py_prefix
5919 else
5920 am_py_exec_prefix=$exec_prefix
5922 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`
5923 case $am_cv_python_pyexecdir in
5924 $am_py_exec_prefix*)
5925 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5926 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5929 case $am_py_exec_prefix in
5930 /usr|/System*) ;;
5932 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5934 esac
5936 esac
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5940 $as_echo "$am_cv_python_pyexecdir" >&6; }
5941 pyexecdir=$am_cv_python_pyexecdir
5945 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5955 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5956 if ${ac_cv_lib_png_png_read_png+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 ac_check_lib_save_LIBS=$LIBS
5960 LIBS="-lpng $LIBS"
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5964 /* Override any GCC internal prototype to avoid an error.
5965 Use char because int might match the return type of a GCC
5966 builtin and then its argument prototype would still apply. */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 char png_read_png ();
5972 main ()
5974 return png_read_png ();
5976 return 0;
5978 _ACEOF
5979 if ac_fn_c_try_link "$LINENO"; then :
5980 ac_cv_lib_png_png_read_png=yes
5981 else
5982 ac_cv_lib_png_png_read_png=no
5984 rm -f core conftest.err conftest.$ac_objext \
5985 conftest$ac_exeext conftest.$ac_ext
5986 LIBS=$ac_check_lib_save_LIBS
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
5989 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
5990 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
5991 cat >>confdefs.h <<_ACEOF
5992 #define HAVE_LIBPNG 1
5993 _ACEOF
5995 LIBS="-lpng $LIBS"
5997 else
5998 as_fn_error $? "libpng development files missing" "$LINENO" 5
6002 FOR=for
6004 IF=if
6006 TEST=test
6008 CMP=cmp
6012 # Check for some includes for the X11 HIDD and the kernel
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6016 if ${ac_cv_path_GREP+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 if test -z "$GREP"; then
6020 ac_path_GREP_found=false
6021 # Loop through the user's path and test for each of PROGNAME-LIST
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_prog in grep ggrep; do
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6030 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6031 # Check for GNU ac_path_GREP and select it if it is found.
6032 # Check for GNU $ac_path_GREP
6033 case `"$ac_path_GREP" --version 2>&1` in
6034 *GNU*)
6035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6037 ac_count=0
6038 $as_echo_n 0123456789 >"conftest.in"
6039 while :
6041 cat "conftest.in" "conftest.in" >"conftest.tmp"
6042 mv "conftest.tmp" "conftest.in"
6043 cp "conftest.in" "conftest.nl"
6044 $as_echo 'GREP' >> "conftest.nl"
6045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6047 as_fn_arith $ac_count + 1 && ac_count=$as_val
6048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6049 # Best one so far, save it but keep looking for a better one
6050 ac_cv_path_GREP="$ac_path_GREP"
6051 ac_path_GREP_max=$ac_count
6053 # 10*(2^10) chars as input seems more than enough
6054 test $ac_count -gt 10 && break
6055 done
6056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6057 esac
6059 $ac_path_GREP_found && break 3
6060 done
6061 done
6062 done
6063 IFS=$as_save_IFS
6064 if test -z "$ac_cv_path_GREP"; then
6065 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6067 else
6068 ac_cv_path_GREP=$GREP
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6073 $as_echo "$ac_cv_path_GREP" >&6; }
6074 GREP="$ac_cv_path_GREP"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6078 $as_echo_n "checking for egrep... " >&6; }
6079 if ${ac_cv_path_EGREP+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6083 then ac_cv_path_EGREP="$GREP -E"
6084 else
6085 if test -z "$EGREP"; then
6086 ac_path_EGREP_found=false
6087 # Loop through the user's path and test for each of PROGNAME-LIST
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_prog in egrep; do
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6096 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6097 # Check for GNU ac_path_EGREP and select it if it is found.
6098 # Check for GNU $ac_path_EGREP
6099 case `"$ac_path_EGREP" --version 2>&1` in
6100 *GNU*)
6101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6103 ac_count=0
6104 $as_echo_n 0123456789 >"conftest.in"
6105 while :
6107 cat "conftest.in" "conftest.in" >"conftest.tmp"
6108 mv "conftest.tmp" "conftest.in"
6109 cp "conftest.in" "conftest.nl"
6110 $as_echo 'EGREP' >> "conftest.nl"
6111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6113 as_fn_arith $ac_count + 1 && ac_count=$as_val
6114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6115 # Best one so far, save it but keep looking for a better one
6116 ac_cv_path_EGREP="$ac_path_EGREP"
6117 ac_path_EGREP_max=$ac_count
6119 # 10*(2^10) chars as input seems more than enough
6120 test $ac_count -gt 10 && break
6121 done
6122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6123 esac
6125 $ac_path_EGREP_found && break 3
6126 done
6127 done
6128 done
6129 IFS=$as_save_IFS
6130 if test -z "$ac_cv_path_EGREP"; then
6131 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6133 else
6134 ac_cv_path_EGREP=$EGREP
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6140 $as_echo "$ac_cv_path_EGREP" >&6; }
6141 EGREP="$ac_cv_path_EGREP"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6145 $as_echo_n "checking for ANSI C header files... " >&6; }
6146 if ${ac_cv_header_stdc+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 #include <stdlib.h>
6152 #include <stdarg.h>
6153 #include <string.h>
6154 #include <float.h>
6157 main ()
6161 return 0;
6163 _ACEOF
6164 if ac_fn_c_try_compile "$LINENO"; then :
6165 ac_cv_header_stdc=yes
6166 else
6167 ac_cv_header_stdc=no
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 if test $ac_cv_header_stdc = yes; then
6172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 #include <string.h>
6177 _ACEOF
6178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6179 $EGREP "memchr" >/dev/null 2>&1; then :
6181 else
6182 ac_cv_header_stdc=no
6184 rm -f conftest*
6188 if test $ac_cv_header_stdc = yes; then
6189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <stdlib.h>
6194 _ACEOF
6195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6196 $EGREP "free" >/dev/null 2>&1; then :
6198 else
6199 ac_cv_header_stdc=no
6201 rm -f conftest*
6205 if test $ac_cv_header_stdc = yes; then
6206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6207 if test "$cross_compiling" = yes; then :
6209 else
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <ctype.h>
6213 #include <stdlib.h>
6214 #if ((' ' & 0x0FF) == 0x020)
6215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6217 #else
6218 # define ISLOWER(c) \
6219 (('a' <= (c) && (c) <= 'i') \
6220 || ('j' <= (c) && (c) <= 'r') \
6221 || ('s' <= (c) && (c) <= 'z'))
6222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6223 #endif
6225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6227 main ()
6229 int i;
6230 for (i = 0; i < 256; i++)
6231 if (XOR (islower (i), ISLOWER (i))
6232 || toupper (i) != TOUPPER (i))
6233 return 2;
6234 return 0;
6236 _ACEOF
6237 if ac_fn_c_try_run "$LINENO"; then :
6239 else
6240 ac_cv_header_stdc=no
6242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6243 conftest.$ac_objext conftest.beam conftest.$ac_ext
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6249 $as_echo "$ac_cv_header_stdc" >&6; }
6250 if test $ac_cv_header_stdc = yes; then
6252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6258 inttypes.h stdint.h unistd.h
6259 do :
6260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6264 cat >>confdefs.h <<_ACEOF
6265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6270 done
6273 for ac_header in sys/ipc.h sys/shm.h \
6274 sys/mmap.h sys/mman.h sysexits.h \
6275 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6277 do :
6278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6279 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6280 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6281 cat >>confdefs.h <<_ACEOF
6282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6283 _ACEOF
6287 done
6290 for ac_header in sys/mount.h
6291 do :
6292 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6294 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6295 cat >>confdefs.h <<_ACEOF
6296 #define HAVE_SYS_MOUNT_H 1
6297 _ACEOF
6301 done
6304 ac_header_dirent=no
6305 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6306 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6308 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6309 if eval \${$as_ac_Header+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 #include <sys/types.h>
6315 #include <$ac_hdr>
6318 main ()
6320 if ((DIR *) 0)
6321 return 0;
6323 return 0;
6325 _ACEOF
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 eval "$as_ac_Header=yes"
6328 else
6329 eval "$as_ac_Header=no"
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 eval ac_res=\$$as_ac_Header
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6335 $as_echo "$ac_res" >&6; }
6336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6337 cat >>confdefs.h <<_ACEOF
6338 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6339 _ACEOF
6341 ac_header_dirent=$ac_hdr; break
6344 done
6345 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6346 if test $ac_header_dirent = dirent.h; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6348 $as_echo_n "checking for library containing opendir... " >&6; }
6349 if ${ac_cv_search_opendir+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 ac_func_search_save_LIBS=$LIBS
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 /* Override any GCC internal prototype to avoid an error.
6357 Use char because int might match the return type of a GCC
6358 builtin and then its argument prototype would still apply. */
6359 #ifdef __cplusplus
6360 extern "C"
6361 #endif
6362 char opendir ();
6364 main ()
6366 return opendir ();
6368 return 0;
6370 _ACEOF
6371 for ac_lib in '' dir; do
6372 if test -z "$ac_lib"; then
6373 ac_res="none required"
6374 else
6375 ac_res=-l$ac_lib
6376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6378 if ac_fn_c_try_link "$LINENO"; then :
6379 ac_cv_search_opendir=$ac_res
6381 rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext
6383 if ${ac_cv_search_opendir+:} false; then :
6384 break
6386 done
6387 if ${ac_cv_search_opendir+:} false; then :
6389 else
6390 ac_cv_search_opendir=no
6392 rm conftest.$ac_ext
6393 LIBS=$ac_func_search_save_LIBS
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6396 $as_echo "$ac_cv_search_opendir" >&6; }
6397 ac_res=$ac_cv_search_opendir
6398 if test "$ac_res" != no; then :
6399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6403 else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6405 $as_echo_n "checking for library containing opendir... " >&6; }
6406 if ${ac_cv_search_opendir+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 ac_func_search_save_LIBS=$LIBS
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6413 /* Override any GCC internal prototype to avoid an error.
6414 Use char because int might match the return type of a GCC
6415 builtin and then its argument prototype would still apply. */
6416 #ifdef __cplusplus
6417 extern "C"
6418 #endif
6419 char opendir ();
6421 main ()
6423 return opendir ();
6425 return 0;
6427 _ACEOF
6428 for ac_lib in '' x; do
6429 if test -z "$ac_lib"; then
6430 ac_res="none required"
6431 else
6432 ac_res=-l$ac_lib
6433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6435 if ac_fn_c_try_link "$LINENO"; then :
6436 ac_cv_search_opendir=$ac_res
6438 rm -f core conftest.err conftest.$ac_objext \
6439 conftest$ac_exeext
6440 if ${ac_cv_search_opendir+:} false; then :
6441 break
6443 done
6444 if ${ac_cv_search_opendir+:} false; then :
6446 else
6447 ac_cv_search_opendir=no
6449 rm conftest.$ac_ext
6450 LIBS=$ac_func_search_save_LIBS
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6453 $as_echo "$ac_cv_search_opendir" >&6; }
6454 ac_res=$ac_cv_search_opendir
6455 if test "$ac_res" != no; then :
6456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6463 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6464 if ${ac_cv_header_stat_broken+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 #include <sys/types.h>
6470 #include <sys/stat.h>
6472 #if defined S_ISBLK && defined S_IFDIR
6473 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6474 #endif
6476 #if defined S_ISBLK && defined S_IFCHR
6477 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6478 #endif
6480 #if defined S_ISLNK && defined S_IFREG
6481 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6482 #endif
6484 #if defined S_ISSOCK && defined S_IFREG
6485 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6486 #endif
6488 _ACEOF
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 ac_cv_header_stat_broken=no
6491 else
6492 ac_cv_header_stat_broken=yes
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6497 $as_echo "$ac_cv_header_stat_broken" >&6; }
6498 if test $ac_cv_header_stat_broken = yes; then
6500 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6505 $as_echo_n "checking for ANSI C header files... " >&6; }
6506 if ${ac_cv_header_stdc+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 #include <stdlib.h>
6512 #include <stdarg.h>
6513 #include <string.h>
6514 #include <float.h>
6517 main ()
6521 return 0;
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"; then :
6525 ac_cv_header_stdc=yes
6526 else
6527 ac_cv_header_stdc=no
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 if test $ac_cv_header_stdc = yes; then
6532 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 #include <string.h>
6537 _ACEOF
6538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6539 $EGREP "memchr" >/dev/null 2>&1; then :
6541 else
6542 ac_cv_header_stdc=no
6544 rm -f conftest*
6548 if test $ac_cv_header_stdc = yes; then
6549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552 #include <stdlib.h>
6554 _ACEOF
6555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6556 $EGREP "free" >/dev/null 2>&1; then :
6558 else
6559 ac_cv_header_stdc=no
6561 rm -f conftest*
6565 if test $ac_cv_header_stdc = yes; then
6566 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6567 if test "$cross_compiling" = yes; then :
6569 else
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #include <ctype.h>
6573 #include <stdlib.h>
6574 #if ((' ' & 0x0FF) == 0x020)
6575 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6576 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6577 #else
6578 # define ISLOWER(c) \
6579 (('a' <= (c) && (c) <= 'i') \
6580 || ('j' <= (c) && (c) <= 'r') \
6581 || ('s' <= (c) && (c) <= 'z'))
6582 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6583 #endif
6585 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6587 main ()
6589 int i;
6590 for (i = 0; i < 256; i++)
6591 if (XOR (islower (i), ISLOWER (i))
6592 || toupper (i) != TOUPPER (i))
6593 return 2;
6594 return 0;
6596 _ACEOF
6597 if ac_fn_c_try_run "$LINENO"; then :
6599 else
6600 ac_cv_header_stdc=no
6602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6603 conftest.$ac_objext conftest.beam conftest.$ac_ext
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6609 $as_echo "$ac_cv_header_stdc" >&6; }
6610 if test $ac_cv_header_stdc = yes; then
6612 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6617 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6618 if ${ac_cv_header_sys_wait_h+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 #include <sys/types.h>
6624 #include <sys/wait.h>
6625 #ifndef WEXITSTATUS
6626 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6627 #endif
6628 #ifndef WIFEXITED
6629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6630 #endif
6633 main ()
6635 int s;
6636 wait (&s);
6637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6639 return 0;
6641 _ACEOF
6642 if ac_fn_c_try_compile "$LINENO"; then :
6643 ac_cv_header_sys_wait_h=yes
6644 else
6645 ac_cv_header_sys_wait_h=no
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6650 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6651 if test $ac_cv_header_sys_wait_h = yes; then
6653 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6658 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6659 if ${ac_cv_header_time+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 #include <sys/types.h>
6665 #include <sys/time.h>
6666 #include <time.h>
6669 main ()
6671 if ((struct tm *) 0)
6672 return 0;
6674 return 0;
6676 _ACEOF
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678 ac_cv_header_time=yes
6679 else
6680 ac_cv_header_time=no
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6685 $as_echo "$ac_cv_header_time" >&6; }
6686 if test $ac_cv_header_time = yes; then
6688 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6692 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6693 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6695 cat >>confdefs.h <<_ACEOF
6696 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6697 _ACEOF
6700 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6705 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6706 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6708 cat >>confdefs.h <<_ACEOF
6709 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6710 _ACEOF
6713 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6715 else
6716 case " $LIBOBJS " in
6717 *" fileblocks.$ac_objext "* ) ;;
6718 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6720 esac
6725 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6726 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6728 cat >>confdefs.h <<_ACEOF
6729 #define HAVE_STRUCT_STAT_ST_RDEV 1
6730 _ACEOF
6733 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6739 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6740 if ${ac_cv_struct_tm+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 #include <sys/types.h>
6746 #include <time.h>
6749 main ()
6751 struct tm tm;
6752 int *p = &tm.tm_sec;
6753 return !p;
6755 return 0;
6757 _ACEOF
6758 if ac_fn_c_try_compile "$LINENO"; then :
6759 ac_cv_struct_tm=time.h
6760 else
6761 ac_cv_struct_tm=sys/time.h
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6766 $as_echo "$ac_cv_struct_tm" >&6; }
6767 if test $ac_cv_struct_tm = sys/time.h; then
6769 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6773 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6774 #include <$ac_cv_struct_tm>
6777 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6779 cat >>confdefs.h <<_ACEOF
6780 #define HAVE_STRUCT_TM_TM_ZONE 1
6781 _ACEOF
6786 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6788 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6790 else
6791 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6793 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6794 ac_have_decl=1
6795 else
6796 ac_have_decl=0
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_DECL_TZNAME $ac_have_decl
6801 _ACEOF
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6804 $as_echo_n "checking for tzname... " >&6; }
6805 if ${ac_cv_var_tzname+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 #include <time.h>
6811 #if !HAVE_DECL_TZNAME
6812 extern char *tzname[];
6813 #endif
6816 main ()
6818 return tzname[0][0];
6820 return 0;
6822 _ACEOF
6823 if ac_fn_c_try_link "$LINENO"; then :
6824 ac_cv_var_tzname=yes
6825 else
6826 ac_cv_var_tzname=no
6828 rm -f core conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6832 $as_echo "$ac_cv_var_tzname" >&6; }
6833 if test $ac_cv_var_tzname = yes; then
6835 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6840 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6841 if test "x$ac_cv_type_off_t" = xyes; then :
6843 else
6845 cat >>confdefs.h <<_ACEOF
6846 #define off_t long int
6847 _ACEOF
6851 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6852 if test "x$ac_cv_type_pid_t" = xyes; then :
6854 else
6856 cat >>confdefs.h <<_ACEOF
6857 #define pid_t int
6858 _ACEOF
6862 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6863 if test "x$ac_cv_type_size_t" = xyes; then :
6865 else
6867 cat >>confdefs.h <<_ACEOF
6868 #define size_t unsigned int
6869 _ACEOF
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6874 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6875 if ${ac_cv_type_uid_t+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 #include <sys/types.h>
6882 _ACEOF
6883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6884 $EGREP "uid_t" >/dev/null 2>&1; then :
6885 ac_cv_type_uid_t=yes
6886 else
6887 ac_cv_type_uid_t=no
6889 rm -f conftest*
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6893 $as_echo "$ac_cv_type_uid_t" >&6; }
6894 if test $ac_cv_type_uid_t = no; then
6896 $as_echo "#define uid_t int" >>confdefs.h
6899 $as_echo "#define gid_t int" >>confdefs.h
6904 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6905 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6909 _ACEOF
6915 # Look for some functions
6916 for ac_func in getpagesize kqueue statfs statvfs \
6917 clone kse_create rfork_thread thr_create sa_register \
6918 getcontext makecontext setcontext sigaltstack swapcontext
6919 do :
6920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6922 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6923 cat >>confdefs.h <<_ACEOF
6924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6925 _ACEOF
6928 done
6934 for ac_header in $ac_header_list
6935 do :
6936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6937 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6940 cat >>confdefs.h <<_ACEOF
6941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6942 _ACEOF
6946 done
6955 for ac_func in getpagesize
6956 do :
6957 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6958 if test "x$ac_cv_func_getpagesize" = xyes; then :
6959 cat >>confdefs.h <<_ACEOF
6960 #define HAVE_GETPAGESIZE 1
6961 _ACEOF
6964 done
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6967 $as_echo_n "checking for working mmap... " >&6; }
6968 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test "$cross_compiling" = yes; then :
6972 ac_cv_func_mmap_fixed_mapped=no
6973 else
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 $ac_includes_default
6977 /* malloc might have been renamed as rpl_malloc. */
6978 #undef malloc
6980 /* Thanks to Mike Haertel and Jim Avera for this test.
6981 Here is a matrix of mmap possibilities:
6982 mmap private not fixed
6983 mmap private fixed at somewhere currently unmapped
6984 mmap private fixed at somewhere already mapped
6985 mmap shared not fixed
6986 mmap shared fixed at somewhere currently unmapped
6987 mmap shared fixed at somewhere already mapped
6988 For private mappings, we should verify that changes cannot be read()
6989 back from the file, nor mmap's back from the file at a different
6990 address. (There have been systems where private was not correctly
6991 implemented like the infamous i386 svr4.0, and systems where the
6992 VM page cache was not coherent with the file system buffer cache
6993 like early versions of FreeBSD and possibly contemporary NetBSD.)
6994 For shared mappings, we should conversely verify that changes get
6995 propagated back to all the places they're supposed to be.
6997 Grep wants private fixed already mapped.
6998 The main things grep needs to know about mmap are:
6999 * does it exist and is it safe to write into the mmap'd area
7000 * how to use it (BSD variants) */
7002 #include <fcntl.h>
7003 #include <sys/mman.h>
7005 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7006 char *malloc ();
7007 #endif
7009 /* This mess was copied from the GNU getpagesize.h. */
7010 #ifndef HAVE_GETPAGESIZE
7011 # ifdef _SC_PAGESIZE
7012 # define getpagesize() sysconf(_SC_PAGESIZE)
7013 # else /* no _SC_PAGESIZE */
7014 # ifdef HAVE_SYS_PARAM_H
7015 # include <sys/param.h>
7016 # ifdef EXEC_PAGESIZE
7017 # define getpagesize() EXEC_PAGESIZE
7018 # else /* no EXEC_PAGESIZE */
7019 # ifdef NBPG
7020 # define getpagesize() NBPG * CLSIZE
7021 # ifndef CLSIZE
7022 # define CLSIZE 1
7023 # endif /* no CLSIZE */
7024 # else /* no NBPG */
7025 # ifdef NBPC
7026 # define getpagesize() NBPC
7027 # else /* no NBPC */
7028 # ifdef PAGESIZE
7029 # define getpagesize() PAGESIZE
7030 # endif /* PAGESIZE */
7031 # endif /* no NBPC */
7032 # endif /* no NBPG */
7033 # endif /* no EXEC_PAGESIZE */
7034 # else /* no HAVE_SYS_PARAM_H */
7035 # define getpagesize() 8192 /* punt totally */
7036 # endif /* no HAVE_SYS_PARAM_H */
7037 # endif /* no _SC_PAGESIZE */
7039 #endif /* no HAVE_GETPAGESIZE */
7042 main ()
7044 char *data, *data2, *data3;
7045 const char *cdata2;
7046 int i, pagesize;
7047 int fd, fd2;
7049 pagesize = getpagesize ();
7051 /* First, make a file with some known garbage in it. */
7052 data = (char *) malloc (pagesize);
7053 if (!data)
7054 return 1;
7055 for (i = 0; i < pagesize; ++i)
7056 *(data + i) = rand ();
7057 umask (0);
7058 fd = creat ("conftest.mmap", 0600);
7059 if (fd < 0)
7060 return 2;
7061 if (write (fd, data, pagesize) != pagesize)
7062 return 3;
7063 close (fd);
7065 /* Next, check that the tail of a page is zero-filled. File must have
7066 non-zero length, otherwise we risk SIGBUS for entire page. */
7067 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7068 if (fd2 < 0)
7069 return 4;
7070 cdata2 = "";
7071 if (write (fd2, cdata2, 1) != 1)
7072 return 5;
7073 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7074 if (data2 == MAP_FAILED)
7075 return 6;
7076 for (i = 0; i < pagesize; ++i)
7077 if (*(data2 + i))
7078 return 7;
7079 close (fd2);
7080 if (munmap (data2, pagesize))
7081 return 8;
7083 /* Next, try to mmap the file at a fixed address which already has
7084 something else allocated at it. If we can, also make sure that
7085 we see the same garbage. */
7086 fd = open ("conftest.mmap", O_RDWR);
7087 if (fd < 0)
7088 return 9;
7089 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7090 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7091 return 10;
7092 for (i = 0; i < pagesize; ++i)
7093 if (*(data + i) != *(data2 + i))
7094 return 11;
7096 /* Finally, make sure that changes to the mapped area do not
7097 percolate back to the file as seen by read(). (This is a bug on
7098 some variants of i386 svr4.0.) */
7099 for (i = 0; i < pagesize; ++i)
7100 *(data2 + i) = *(data2 + i) + 1;
7101 data3 = (char *) malloc (pagesize);
7102 if (!data3)
7103 return 12;
7104 if (read (fd, data3, pagesize) != pagesize)
7105 return 13;
7106 for (i = 0; i < pagesize; ++i)
7107 if (*(data + i) != *(data3 + i))
7108 return 14;
7109 close (fd);
7110 return 0;
7112 _ACEOF
7113 if ac_fn_c_try_run "$LINENO"; then :
7114 ac_cv_func_mmap_fixed_mapped=yes
7115 else
7116 ac_cv_func_mmap_fixed_mapped=no
7118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7119 conftest.$ac_objext conftest.beam conftest.$ac_ext
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7124 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7125 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7127 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7130 rm -f conftest.mmap conftest.txt
7135 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7136 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7137 aros_config_ldflags=""
7139 aros_shared_default=yes
7141 aros_shared_cflags="-fPIC"
7142 aros_shared_aflags=""
7143 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7144 aros_kernel_ldflags="-Wl,-rpath,./lib"
7146 aros_kernel_ar_flags="cr"
7147 aros_target_ar_flags="cr"
7148 aros_target_nm_flags="-C -ul"
7149 aros_target_strip_flags="--strip-unneeded -R.comment"
7151 aros_compiler_libs=
7152 aros_arch_libs=
7154 aros_target_genmap="-Wl,-Map -Xlinker"
7156 # Native flavour stuff
7157 aros_serial_debug="0"
7159 # Palm native flavour stuff
7160 aros_palm_debug_hack="0"
7162 # Unix flavour stuff
7163 aros_nesting_supervisor="0"
7165 # Collect-aros stuff: "-ius" to ignore undefined symbols
7166 ignore_undefined_symbols=""
7168 # Check for X11 by default
7169 need_x11="auto"
7171 #-----------------------------------------------------------------------------
7174 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7175 # it switched on by default, and we use the host compiler, so it compiles AROS
7176 # code with this enabled resulting in link failures as we don't have support
7177 # for it.
7179 # We use two methods to disable it. For the host compiler (used to compile
7180 # some hosted modules), we test to see if the compiler supports stack
7181 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7182 # work on all platforms.
7184 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7185 # (this is done unconditionally, as it should have no effect on compilers
7186 # without the stack protection feature). This may be specific to the way that
7187 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7188 # strong enough to disable it in a generic way though, so we'll live with it
7189 # until another vendor ships GCC with it enabled in a different way, and deal
7190 # with it then.
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7194 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7195 save_cflags="$CFLAGS"
7196 CFLAGS="$CFLAGS -fno-stack-protector"
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7201 main ()
7205 return 0;
7207 _ACEOF
7208 if ac_fn_c_try_compile "$LINENO"; then :
7209 use_no_stack_protector="yes"
7210 else
7211 use_no_stack_protector="no"
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7215 $as_echo "$use_no_stack_protector" >&6; }
7216 if test "x-$use_no_stack_protector" = "x-yes" ; then
7217 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7219 CFLAGS="$save_cflags"
7221 #-----------------------------------------------------------------------------
7223 # Disable pointer-signedness warnings if the compiler recognises the option
7224 # (this only works for the host compiler at the moment)
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7227 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7228 save_cflags="$CFLAGS"
7229 CFLAGS="$CFLAGS -Wno-pointer-sign"
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7234 main ()
7238 return 0;
7240 _ACEOF
7241 if ac_fn_c_try_compile "$LINENO"; then :
7242 use_no_sign_warning="yes"
7243 else
7244 use_no_sign_warning="no"
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7248 $as_echo "$use_no_sign_warning" >&6; }
7249 if test "x-$use_no_sign_warning" = "x-yes" ; then
7250 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7252 CFLAGS="$save_cflags"
7254 #-----------------------------------------------------------------------------
7256 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7259 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7260 save_cflags="$CFLAGS"
7261 CFLAGS="$CFLAGS -fgnu89-inline"
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7266 main ()
7270 return 0;
7272 _ACEOF
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274 use_gnu89_inline="yes"
7275 else
7276 use_gnu89_inline="no"
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7280 $as_echo "$use_gnu89_inline" >&6; }
7281 if test "x-$use_gnu89_inline" = "x-yes" ; then
7282 gnu89_inline="-fgnu89-inline"
7284 CFLAGS="$save_cflags"
7286 #-----------------------------------------------------------------------------
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7289 $as_echo_n "checking for type of build... " >&6; }
7290 # Check whether --enable-build_type was given.
7291 if test "${enable_build_type+set}" = set; then :
7292 enableval=$enable_build_type; build_type=$enableval
7293 else
7294 build_type="personal"
7298 if test "$build_type" = "nightly"; then
7299 build_type_string="NIGHTLY"
7300 elif test "$build_type" = "snapshot"; then
7301 build_type_string="SNAPSHOT"
7302 elif test "$build_type" = "milestone"; then
7303 build_type_string="MILESTONE"
7304 elif test "$build_type" = "release"; then
7305 build_type_string="RELEASE"
7306 else
7307 build_type_string="PERSONAL"
7308 build_type="personal"
7311 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7314 $as_echo "$build_type" >&6; }
7316 #-----------------------------------------------------------------------------
7317 all_debug_types="messages stack modules mungwall symbols"
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7320 $as_echo_n "checking which debug types to enable... " >&6; }
7321 # Check whether --enable-debug was given.
7322 if test "${enable_debug+set}" = set; then :
7323 enableval=$enable_debug; debug="$enableval"
7324 else
7325 debug=""
7329 if test "$debug" = "" -o "$debug" = "no"; then
7330 debug="none"
7331 elif test "$debug" = "yes"; then
7332 debug="all"
7335 if test "$debug" = "all" ; then
7336 debug="messages stack modules symbols"
7337 for d in $all_debug_types; do
7338 export aros_${d}_debug="1"
7339 done
7340 else
7341 for d in $all_debug_types; do
7342 export aros_${d}_debug="0"
7343 done
7346 if test "$debug" != "none"; then
7347 debug=`echo $debug | sed s/,/\ /g`
7348 for d in $debug; do
7349 found="0"
7350 for d2 in $all_debug_types; do
7351 if test "$d2" = "$d"; then
7352 found="1"
7353 break
7355 done
7356 if test "$found" = "0"; then
7357 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7359 export aros_${d}_debug="1"
7360 done
7361 aros_debug="yes"
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7364 $as_echo "$debug" >&6; }
7366 if test "$aros_messages_debug" = "1"; then
7367 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7368 else
7369 aros_messages_debug=""
7371 if test "$aros_symbols_debug" = "1"; then
7372 aros_symbols_debug="-g"
7373 else
7374 aros_symbols_debug=""
7377 # These are the flags to pass when compiling debugged programs
7378 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7379 aros_debug_aflags=""
7380 aros_debug_ldflags="$aros_symbols_debug"
7382 #-----------------------------------------------------------------------------
7383 # Checking for distcc and ccache.
7385 # Always apply the transforms in this particular order. Basically you should
7386 # always run 'ccache distcc compiler' in that order for the best performance.
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7389 $as_echo_n "checking whether to enable distcc... " >&6; }
7390 # Check whether --enable-distcc was given.
7391 if test "${enable_distcc+set}" = set; then :
7392 enableval=$enable_distcc; distcc="$enableval"
7393 else
7394 distcc="no"
7397 if test "$distcc" != "" -a "$distcc" != "no"; then
7398 # AC_CHECK_PROG will print out the result in this case
7399 # Extract the first word of "distcc", so it can be a program name with args.
7400 set dummy distcc; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_path_DISTCC+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 case $DISTCC in
7407 [\\/]* | ?:[\\/]*)
7408 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7422 done
7423 done
7424 IFS=$as_save_IFS
7426 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7428 esac
7430 DISTCC=$ac_cv_path_DISTCC
7431 if test -n "$DISTCC"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7433 $as_echo "$DISTCC" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7446 $as_echo_n "checking whether to enable ccache... " >&6; }
7447 # Check whether --enable-ccache was given.
7448 if test "${enable_ccache+set}" = set; then :
7449 enableval=$enable_ccache; ccache="$enableval"
7450 else
7451 ccache="no"
7454 if test "$ccache" != "" -a "$ccache" != "no"; then
7455 # AC_CHECK_PROG will print out the result in this case
7456 # Extract the first word of "ccache", so it can be a program name with args.
7457 set dummy ccache; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_CCACHE+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 if test -n "$CCACHE"; then
7464 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_prog_CCACHE="ccache"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7477 done
7478 done
7479 IFS=$as_save_IFS
7483 CCACHE=$ac_cv_prog_CCACHE
7484 if test -n "$CCACHE"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7486 $as_echo "$CCACHE" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7498 #-----------------------------------------------------------------------------
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7500 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7502 # Check whether --with-kernel-gcc-version was given.
7503 if test "${with_kernel_gcc_version+set}" = set; then :
7504 withval=$with_kernel_gcc_version; kernel_tool_version="-$withval"
7505 else
7506 kernel_tool_version="default"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7510 $as_echo "$kernel_tool_version" >&6; }
7512 #-----------------------------------------------------------------------------
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7514 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7516 # Check whether --with-gcc-version was given.
7517 if test "${with_gcc_version+set}" = set; then :
7518 withval=$with_gcc_version; target_tool_version="$withval"
7519 else
7520 target_tool_version="default"
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7524 $as_echo "$target_tool_version" >&6; }
7526 #-----------------------------------------------------------------------------
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7528 $as_echo_n "checking what optimization flags to use... " >&6; }
7530 # Check whether --with-optimization was given.
7531 if test "${with_optimization+set}" = set; then :
7532 withval=$with_optimization; optimization="$withval"
7533 else
7534 optimization="unknown"
7537 if test "$optimization" = "unknown"; then
7538 if test "$debug" != "none"; then
7539 optimization="-O0"
7540 else
7541 optimization="-O2"
7544 aros_config_cflags="$aros_config_cflags $optimization"
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7546 $as_echo "$optimization" >&6; }
7548 #-----------------------------------------------------------------------------
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7550 $as_echo_n "checking what paranoia flags to use... " >&6; }
7552 # Check whether --with-paranoia was given.
7553 if test "${with_paranoia+set}" = set; then :
7554 withval=$with_paranoia; paranoia_flags="$withval"
7555 else
7556 paranoia_flags="default"
7559 if test "$paranoia_flags" = "default"; then
7560 paranoia_flags=""
7561 else if test "$paranoia_flags" = "yes"; then
7562 paranoia_flags="-Wall -Werror"
7563 fi fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7565 $as_echo "$paranoia_flags" >&6; }
7566 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7568 #-----------------------------------------------------------------------------
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7570 $as_echo_n "checking what target variant to enable... " >&6; }
7571 # Check whether --enable-target_variant was given.
7572 if test "${enable_target_variant+set}" = set; then :
7573 enableval=$enable_target_variant; target_variant=$enableval
7574 else
7575 target_variant=""
7578 if test "$target_variant" = ""; then
7579 aros_target_variant=""
7580 aros_target_suffix=""
7581 enableval="none"
7582 else
7583 aros_target_variant="$target_variant"
7584 aros_target_suffix="-$target_variant"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7587 $as_echo "$enableval" >&6; }
7589 #-----------------------------------------------------------------------------
7590 # Target-specific defaults. You can override then on a per-target basis.
7592 # Bootloader name. Currently used by PC target.
7593 target_bootloader="none"
7595 #-----------------------------------------------------------------------------
7596 # Additional options for some specific targets
7598 case "$aros_target_variant" in
7599 ios)
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7601 $as_echo_n "checking XCode path... " >&6; }
7603 # Check whether --with-xcode was given.
7604 if test "${with_xcode+set}" = set; then :
7605 withval=$with_xcode; aros_xcode_path="$withval"
7606 else
7607 aros_xcode_path="/Developer"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7611 $as_echo "$aros_xcode_path" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7614 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7616 # Check whether --with-sdk-version was given.
7617 if test "${with_sdk_version+set}" = set; then :
7618 withval=$with_sdk_version; aros_sdk_version="$withval"
7619 else
7620 aros_sdk_version="4.1"
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7624 $as_echo "$aros_sdk_version" >&6; }
7628 "android")
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7630 $as_echo_n "checking Android SDK path... " >&6; }
7632 # Check whether --with-sdk was given.
7633 if test "${with_sdk+set}" = set; then :
7634 withval=$with_sdk; aros_android_sdk="$withval"
7635 else
7636 aros_android_sdk=$default_android_sdk
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7640 $as_echo "$aros_android_sdk" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7643 $as_echo_n "checking Android NDK path... " >&6; }
7645 # Check whether --with-ndk was given.
7646 if test "${with_ndk+set}" = set; then :
7647 withval=$with_ndk; aros_android_ndk="$withval"
7648 else
7649 aros_android_ndk="none"
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7653 $as_echo "$aros_android_ndk" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7656 $as_echo_n "checking what Android SDK version to use... " >&6; }
7658 # Check whether --with-sdk-version was given.
7659 if test "${with_sdk_version+set}" = set; then :
7660 withval=$with_sdk_version; aros_sdk_version="$withval"
7661 else
7662 aros_sdk_version="12"
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7666 $as_echo "$aros_sdk_version" >&6; }
7668 if test "$aros_android_ndk" != "none"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7670 $as_echo_n "checking what Android NDK version to use... " >&6; }
7672 # Check whether --with-ndk-version was given.
7673 if test "${with_ndk_version+set}" = set; then :
7674 withval=$with_ndk_version; aros_ndk_version="$withval"
7675 else
7676 aros_ndk_version="9"
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7680 $as_echo "$aros_ndk_version" >&6; }
7683 export PATH="$aros_android_sdk/tools:$PATH"
7684 # Extract the first word of "$android_tool", so it can be a program name with args.
7685 set dummy $android_tool; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_path_android_tool+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 case $android_tool in
7692 [\\/]* | ?:[\\/]*)
7693 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7707 done
7708 done
7709 IFS=$as_save_IFS
7712 esac
7714 android_tool=$ac_cv_path_android_tool
7715 if test -n "$android_tool"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7717 $as_echo "$android_tool" >&6; }
7718 else
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7724 if test "$android_tool" = ""; then
7725 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7728 aros_android_level=android-$aros_sdk_version
7729 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7730 echo "Platform $aros_android_level is not installed in your SDK"
7731 echo "Use --with-sdk-version=<API level number> to select another platform version"
7732 echo "You can check what plaform versions are installed in your SDK"
7733 echo "by examining contents of $aros_android_sdk/platforms directory"
7734 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7737 # Extract the first word of "ant", so it can be a program name with args.
7738 set dummy ant; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_path_ant+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 case $ant in
7745 [\\/]* | ?:[\\/]*)
7746 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7756 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 break 2
7760 done
7761 done
7762 IFS=$as_save_IFS
7765 esac
7767 ant=$ac_cv_path_ant
7768 if test -n "$ant"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7770 $as_echo "$ant" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7777 if test "$ant" = ""; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7779 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7782 if test "$host_os" = "mingw32"; then
7783 android_tool="cmd //c $android_tool"
7787 esac
7789 #-----------------------------------------------------------------------------
7790 # External toolchains
7791 kernel_tool_prefix="none"
7792 aros_tool_prefix="none"
7793 elf_tool_prefix="${target_cpu}-elf-"
7795 # This is the target configuration switch.
7796 case "$target_os" in
7797 linux*)
7798 aros_target_arch="linux"
7799 aros_target_family="unix"
7800 case "$target_cpu" in
7801 *m68k*)
7802 aros_target_cpu="m68k"
7803 aros_object_format="m68kelf"
7804 aros_flavour="emulcompat"
7805 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7806 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7807 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7808 gcc_target_cpu="mc68000"
7810 *i?86*)
7811 aros_target_cpu="i386"
7812 aros_object_format="elf_i386"
7813 aros_flavour="emulation"
7814 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7815 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7816 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7817 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7818 aros_config_ldflags="-m32 -march=i486"
7819 aros_kernel_ldflags="-melf_i386"
7820 aros_default_wbdepth=8
7821 gcc_target_cpu="i386"
7822 pci_hidd_target="hidd-pci-linux"
7823 android_tool_dir_prefix="x86"
7824 android_tool_prefix="i686-android-linux"
7825 android_ndk_arch="x86"
7827 *x86_64*)
7828 aros_target_cpu="x86_64"
7829 aros_object_format="elf_x86_64"
7830 aros_flavour="emulation"
7831 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7832 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7833 aros_default_wbdepth=8
7834 pci_hidd_target="hidd-pci-linux"
7836 *powerpc*)
7837 aros_target_cpu="ppc"
7838 aros_object_format="elf32ppc"
7839 aros_flavour="emulation"
7840 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7841 aros_default_wbdepth=8
7842 gcc_target_cpu="ppc"
7844 # TODO
7845 # Same as powerpc, but I need this for the nightly build to work again.
7846 # Actually, the nightly should be made working with powerpc target.
7847 # That just was too much work for the moment, another week or two.
7848 *ppc*)
7849 aros_target_cpu="ppc"
7850 aros_object_format="elf32ppc"
7851 aros_flavour="emulation"
7852 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7853 aros_default_wbdepth=8
7854 gcc_target_cpu="ppc"
7856 *armhf*)
7857 aros_target_cpu="arm"
7858 target_cpu="arm"
7859 aros_object_format="armelf_linux_eabi"
7860 aros_flavour="emulation"
7861 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7862 gcc_target_cpu="arm"
7863 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7864 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7865 aros_arch_libs="-laeabi"
7866 gcc_default_fpu="vfpv3-d16"
7867 gcc_default_float_abi="hard"
7868 android_tool_dir_prefix="arm-linux-androideabi"
7869 android_tool_prefix="arm-linux-androideabi"
7870 android_ndk_arch="arm"
7871 kernel_tool_prefix="arm-linux-gnueabihf-"
7873 *arm*)
7874 aros_target_cpu="arm"
7875 aros_object_format="armelf_linux_eabi"
7876 aros_flavour="emulation"
7877 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7878 gcc_target_cpu="arm"
7879 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7880 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7881 aros_arch_libs="-laeabi"
7882 android_tool_dir_prefix="arm-linux-androideabi"
7883 android_tool_prefix="arm-linux-androideabi"
7884 android_ndk_arch="arm"
7885 kernel_tool_prefix="arm-linux-gnueabi-"
7888 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7890 esac
7891 case "$aros_target_variant" in
7892 android)
7894 if test "$android_ndk_arch" = ""; then
7895 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7898 aros_default_wbwidth=320
7899 aros_default_wbheight=480
7900 if test "$aros_android_ndk" = "none"; then
7901 aros_kernel_cflags="-mandroid"
7902 aros_kernel_ldflags="-mandroid"
7903 CFLAGS="-mandroid"
7904 else
7905 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7906 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7907 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7908 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7909 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7910 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7912 need_x11=no
7913 x11_hidd_target=kernel-hidd-androidgfx-kobj
7914 # Disable implicit PIC mode
7915 aros_target_cflags="$aros_target_cflags -fno-pic"
7916 kernel_tool_prefix="$android_tool_prefix-"
7918 esac
7922 aros_target_arch="pc"
7923 aros_shared_default="no"
7924 target_bootloader="grub2"
7925 case "$target_cpu" in
7926 *i?86*)
7927 aros_target_cpu="i386"
7930 if test "$aros_object_format" = "" ; then
7931 aros_object_format="elf_i386"
7933 aros_flavour="standalone"
7934 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7935 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7936 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7937 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7938 aros_config_ldflags="-m32 -march=i486"
7939 aros_kernel_ldflags="-melf_i386"
7940 aros_default_wbwidth=640
7941 aros_default_wbheight=480
7942 gcc_target_cpu="i386"
7944 *x86_64*)
7945 aros_target_cpu="x86_64"
7946 aros_serial_debug=1
7947 if test "$aros_object_format" = "" ; then
7948 aros_object_format="elf_x86_64"
7950 aros_flavour="standalone"
7951 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7952 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7953 aros_kernel_ldflags=""
7954 aros_default_wbwidth=640
7955 aros_default_wbheight=480
7958 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7960 esac
7963 prep)
7964 aros_target_arch="prep"
7965 aros_shared_default="no"
7966 aros_target_cpu="ppc"
7967 aros_object_format="elf32ppc"
7968 aros_flavour="ppcnative"
7969 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7970 aros_kernel_ldflags=""
7971 aros_default_wbwidth=640
7972 aros_default_wbheight=480
7973 gcc_target_cpu="ppc"
7976 freebsd*)
7977 aros_target_arch="freebsd"
7978 aros_target_family="unix"
7979 aros_target_cpu="i386"
7980 aros_flavour="emulation"
7981 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7982 gcc_target_cpu="i386"
7984 aros_target_strip_flags="-x"
7987 darwin*)
7988 aros_target_arch="darwin"
7989 aros_target_family="unix"
7990 aros_flavour="emulation"
7991 case "$target_cpu" in
7992 *i?86*)
7993 aros_ios_platform="iPhoneSimulator"
7994 aros_target_cpu="i386"
7995 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7996 aros_kernel_ldflags=""
7997 aros_macosx_version="10.4"
7998 aros_default_wbdepth=8
7999 gcc_target_cpu="i386"
8000 aros_object_format="elf_i386"
8001 aros_kernel_ar_flags="-cr"
8002 aros_target_strip_flags="-x"
8003 kernel_tool_flags="-m32"
8005 *x86_64*)
8006 aros_target_cpu="x86_64"
8007 aros_object_format="elf_x86_64"
8008 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8009 aros_macosx_version="10.6"
8010 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8011 aros_kernel_cflags="-m64"
8012 aros_kernel_ldflags="-m64"
8013 aros_target_cflags="-mcmodel=large"
8014 aros_default_wbdepth=8
8015 aros_kernel_ar="ar"
8016 aros_kernel_ar_flags="-cr"
8017 aros_kernel_ld="ld"
8018 aros_kernel_ranlib="ranlib"
8020 *ppc*)
8021 aros_target_cpu="ppc"
8022 aros_object_format="elf32ppc"
8023 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8024 aros_kernel_ldflags=""
8025 aros_macosx_version="10.0"
8026 aros_default_wbdepth=8
8027 gcc_target_cpu="ppc"
8028 aros_kernel_ar="ar"
8029 aros_kernel_ar_flags="-cr"
8030 aros_kernel_ld="ld -arch ppc"
8031 aros_kernel_as="as -arch ppc"
8032 aros_kernel_ranlib="ranlib -arch ppc"
8033 aros_kernel_nm="nm -arch ppc"
8034 aros_kernel_strip="strip -arch ppc"
8035 kernel_tool_prefix="powerpc-apple-darwin10-"
8037 *arm*)
8038 aros_ios_platform="iPhoneOS"
8039 aros_target_cpu="arm"
8040 aros_object_format="armelf_linux_eabi"
8041 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8042 aros_arch_libs="-laeabi"
8043 aros_default_wbdepth=8
8044 gcc_target_cpu="arm"
8045 aros_kernel_ar="ar"
8046 aros_kernel_ar_flags="-cr"
8047 aros_kernel_ld="ld -arch arm"
8048 aros_kernel_ranlib="ranlib -arch arm"
8049 kernel_tool_prefix="arm-apple-darwin10-"
8050 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8053 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8055 esac
8056 case "$aros_target_variant" in
8057 ios)
8058 aros_ios_version="3.0"
8059 aros_default_wbwidth=320
8060 aros_default_wbheight=480
8061 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8062 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8063 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8064 need_x11=no
8065 # This is here because it may depend on iOS or SDK version
8066 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8067 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8068 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8071 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8072 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8074 esac
8077 dragonfly*)
8078 aros_target_arch="dragonfly"
8079 aros_target_family="unix"
8080 aros_flavour="emulation"
8081 case "$target_cpu" in
8082 *i?86*)
8083 aros_target_cpu="i386"
8084 aros_object_format="elf_i386"
8085 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8087 *x86_64*)
8088 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8089 aros_target_cpu="x86_64"
8090 aros_object_format="elf_x86_64"
8091 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8094 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8096 esac
8099 netbsd*)
8100 aros_target_arch="netbsd"
8101 aros_target_family="unix"
8102 case "$target_cpu" in
8103 *m68k*)
8104 aros_target_cpu="m68k"
8105 aros_object_format="m68kelf"
8106 aros_flavour="emulcompat"
8107 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8108 gcc_target_cpu="mc68000"
8110 *i?86*)
8111 aros_target_cpu="i386"
8112 aros_object_format="elf_i386"
8113 aros_flavour="emulation"
8114 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8115 aros_default_wbdepth=8
8116 gcc_target_cpu="i386"
8119 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8121 esac
8122 aros_target_genmap="-Wl,-M -Xlinker >"
8123 aros_flavour="emulation"
8124 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8127 openbsd*)
8128 aros_target_arch="openbsd"
8129 aros_target_family="unix"
8130 case "$target_cpu" in
8131 *i?86*)
8132 aros_target_cpu="i386"
8133 aros_object_format="elf_i386"
8134 aros_flavour="emulation"
8135 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8136 gcc_target_cpu="i386"
8139 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8141 esac
8142 aros_target_genmap="-Wl,-M -Xlinker >"
8143 aros_target_nm_flags="-u"
8144 aros_flavour="emulation"
8147 solaris*)
8148 aros_target_arch="solaris"
8149 aros_target_family="unix"
8150 case "$target_cpu" in
8151 *i?86*)
8152 aros_target_cpu="i386"
8153 aros_object_format="elf_i386"
8154 aros_flavour="emulation"
8155 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8156 aros_default_wbdepth=8
8157 gcc_target_cpu="i386"
8159 *sparc*)
8160 aros_target_cpu="sparc"
8161 aros_object_format="elf_sparc"
8162 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8163 gcc_target_cpu="sparc"
8166 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8168 esac
8169 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8170 aros_flavour="emulation"
8173 morphos*)
8174 aros_target_arch="morphos"
8175 aros_shared_default="no"
8176 aros_target_cpu="ppc"
8177 aros_object_format="elf_ppc"
8178 aros_flavour="nativecompat"
8179 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8180 gcc_target_cpu="ppc"
8183 sam440)
8184 aros_target_arch="sam440"
8185 aros_shared_default="no"
8186 aros_target_cpu="ppc"
8187 aros_object_format="elf32ppc"
8188 aros_flavour="ppcnative"
8189 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8190 aros_kernel_ldflags=""
8191 aros_default_wbwidth=1024
8192 aros_default_wbheight=768
8193 aros_default_wbdepth=24
8194 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8195 gcc_target_cpu="powerpc"
8198 efika)
8199 aros_target_arch="efika"
8200 aros_shared_default="no"
8201 aros_target_cpu="arm"
8202 aros_object_format="armelf_linux_eabi"
8203 aros_flavour="standalone"
8204 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8205 aros_kernel_ldflags=""
8206 aros_default_wbwidth=1024
8207 aros_default_wbheight=600
8208 aros_arch_libs="-laeabi"
8209 gcc_default_cpu="armv7-a"
8210 gcc_default_fpu="vfpv3"
8211 gcc_default_float_abi="softfp"
8212 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8213 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8216 chrp)
8217 aros_target_arch="chrp"
8218 aros_shared_default="no"
8219 aros_target_cpu="ppc"
8220 aros_object_format="elf32ppc"
8221 aros_flavour="ppcnative"
8222 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8223 aros_kernel_ldflags=""
8224 aros_default_wbwidth=640
8225 aros_default_wbheight=480
8226 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8227 gcc_target_cpu="powerpc"
8228 case "$aros_target_variant" in
8229 efika)
8230 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8232 esac
8235 amiga*)
8236 aros_target_arch="amiga"
8237 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8238 aros_shared_default="no"
8240 case "$target_cpu" in
8241 *m68k*)
8242 # Check whether --enable-amigaos_compliance was given.
8243 if test "${enable_amigaos_compliance+set}" = set; then :
8244 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8247 aros_enable_mmu=no
8248 aros_target_cpu="m68k"
8249 aros_object_format="m68kelf"
8250 aros_flavour="standcompat"
8251 gcc_target_cpu="m68000"
8252 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8253 aros_config_aflags="$aros_config_aflags"
8254 aros_target_strip_flags="-R.comment --strip-debug"
8255 aros_default_wbwidth=640
8256 aros_default_wbheight=256
8257 aros_default_wbdepth=2
8259 *ppc*)
8260 aros_cpu="ppc"
8261 aros_flavour="native"
8262 gcc_target_cpu="ppc"
8265 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8267 esac
8270 mingw*)
8271 aros_target_arch="mingw32"
8272 aros_shared_default="no"
8273 aros_flavour="emulation"
8274 aros_shared_cflags=""
8275 need_crosstools="yes"
8276 need_dlopen="no"
8277 rescomp="windres"
8278 case "$target_cpu" in
8279 *i?86*)
8280 aros_target_cpu="i386"
8281 aros_object_format="elf_i386"
8282 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8283 aros_default_wbdepth=8
8284 gcc_target_cpu="i386"
8286 kernel_tool_prefix="i386-mingw32-"
8288 *x86_64*)
8289 aros_target_cpu="x86_64"
8290 aros_object_format="elf_x86_64"
8291 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8292 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8293 aros_default_wbdepth=8
8294 kernel_tool_prefix="x86_64-w64-mingw32-"
8296 *arm*)
8297 aros_target_cpu="arm"
8298 aros_object_format="armelf_linux_eabi"
8299 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8300 aros_arch_libs="-laeabi"
8301 aros_default_wbdepth=8
8302 gcc_target_cpu="arm"
8303 gcc_default_float_abi="soft"
8304 kernel_tool_prefix="arm-mingw32ce-"
8305 aros_default_wbwidth=160
8306 aros_default_wbheight=160
8309 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8311 esac
8312 if test $host_os = "cygwin"; then
8313 aros_kernel_cflags="-mno-cygwin"
8316 pp*)
8317 aros_target_arch="pp"
8318 aros_shared_default="no"
8319 case "$target_cpu" in
8320 *m68k*)
8321 aros_target_cpu="m68k"
8322 aros_object_format="m68kelf"
8323 aros_flavour="palmnative"
8324 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8325 aros_default_wbwidth=160
8326 aros_default_wbheight=160
8327 aros_default_wbdepth=1
8328 aros_target_ar_flags="cru"
8329 aros_compiler_libs="-lgcc1"
8330 aros_shared_default=no
8331 aros_shared_cflags="-fpic"
8332 aros_shared_aflags=""
8333 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8334 aros_kernel_ldflags="-Wl,-rpath,./lib"
8335 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8336 aros_debug_aflags=""
8337 aros_debug_ldflags="$aros_symbols_debug"
8338 aros_mungwall_debug="0"
8339 aros_modules_debug="0"
8340 gcc_target_cpu="mc68000"
8341 ignore_undefined_symbols="-ius"
8344 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8346 esac
8349 mac*)
8350 aros_target_arch="mac"
8351 aros_shared_default="no"
8352 case "$target_cpu" in
8353 *m68k*)
8354 aros_target_cpu="m68k"
8355 aros_object_format="m68kelf"
8356 aros_flavour="mac68knative"
8357 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8358 aros_default_wbwidth=512
8359 aros_default_wbheight=384
8360 aros_default_wbdepth=8
8361 aros_target_ar_flags="cru"
8362 aros_compiler_libs="-lgcc1"
8363 aros_shared_default=no
8364 aros_shared_cflags="-fpic"
8365 aros_shared_aflags=""
8366 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8367 aros_kernel_ldflags="-Wl,-rpath,./lib"
8368 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8369 aros_debug_aflags=""
8370 aros_debug_ldflags="$aros_symbols_debug"
8371 aros_mungwall_debug="0"
8372 aros_modules_debug="0"
8373 gcc_target_cpu="mc68000"
8374 ignore_undefined_symbols="-ius"
8377 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8379 esac
8383 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8385 esac
8387 #-----------------------------------------------------------------------------
8388 crosstools_guess=yes
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8391 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8393 # Check whether --with-kernel-toolchain-prefix was given.
8394 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8395 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8399 $as_echo "$kernel_tool_prefix" >&6; }
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8402 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8404 # Check whether --with-elf-toolchain-prefix was given.
8405 if test "${with_elf_toolchain_prefix+set}" = set; then :
8406 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8407 crosstools_guess=no
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8411 $as_echo "$elf_tool_prefix" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8414 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8416 # Check whether --with-aros-toolchain was given.
8417 if test "${with_aros_toolchain+set}" = set; then :
8418 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8419 crosstools_guess=no
8422 if test "$aros_tool_prefix" = "yes" ; then
8423 aros_tool_prefix=$aros_target_cpu-aros-
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8426 $as_echo "$aros_tool_prefix" >&6; }
8428 #-----------------------------------------------------------------------------
8429 # Checking if we should build crosstools..
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8431 $as_echo_n "checking whether to build crosstools... " >&6; }
8432 # Check whether --enable-crosstools was given.
8433 if test "${enable_crosstools+set}" = set; then :
8434 enableval=$enable_crosstools; crosstools="$enableval"
8435 else
8436 crosstools="$crosstools_guess"
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8440 $as_echo "$crosstools" >&6; }
8442 if test "${crosstools}" = "yes"; then
8443 if test "${crosstools_guess}" = "no"; then
8444 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8449 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8451 # Check whether --with-aros-toolchain-install was given.
8452 if test "${with_aros_toolchain_install+set}" = set; then :
8453 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8456 if test "x$aros_toolchain_install" = "x"; then
8457 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8458 else
8459 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8460 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8463 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8466 # Now process extra architecture-specific options.
8467 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8468 # as well as floating-point ABI.
8469 case "$aros_target_cpu" in
8470 arm)
8471 if test "$gcc_default_cpu" = ""; then
8472 gcc_default_cpu="armv6"
8474 if test "$gcc_default_fpu" = ""; then
8475 gcc_default_fpu="vfp"
8477 if test "$gcc_default_float_abi" = ""; then
8478 gcc_default_float_abi="softfp"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8482 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8484 # Check whether --with-cpu was given.
8485 if test "${with_cpu+set}" = set; then :
8486 withval=$with_cpu; aros_gcc_cpu="$withval"
8487 else
8488 aros_gcc_cpu=$gcc_default_cpu
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8492 $as_echo "$aros_gcc_cpu" >&6; }
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8495 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8497 # Check whether --with-fpu was given.
8498 if test "${with_fpu+set}" = set; then :
8499 withval=$with_fpu; aros_gcc_fpu="$withval"
8500 else
8501 aros_gcc_fpu=$gcc_default_fpu
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8505 $as_echo "$aros_gcc_fpu" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8508 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8510 # Check whether --with-float was given.
8511 if test "${with_float+set}" = set; then :
8512 withval=$with_float; aros_gcc_float_abi="$withval"
8513 else
8514 aros_gcc_float_abi=$gcc_default_float_abi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8518 $as_echo "$aros_gcc_float_abi" >&6; }
8520 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"
8521 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"
8523 esac
8525 # Some formats need custom ELF specs.
8526 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8527 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8528 elf_specs_in=config/${aros_object_format}-specs.in
8529 else
8530 elf_specs_in=config/elf-specs.in
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8534 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8536 # Check whether --with-aros-gcc was given.
8537 if test "${with_aros_gcc+set}" = set; then :
8538 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8539 else
8540 aros_gcc_version=""
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8544 $as_echo "$aros_gcc_version" >&6; }
8546 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8547 # Since we override specs, we may need to put these defines there
8548 if test "$gcc_target_cpu" != ""; then
8549 gcc_target_cpu="-D__${gcc_target_cpu}__"
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8553 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8555 # Check whether --with-portssources was given.
8556 if test "${with_portssources+set}" = set; then :
8557 withval=$with_portssources; with_portssrcdir=$withval
8558 else
8559 with_portssrcdir="default"
8562 if test "$with_portssrcdir" = "default"; then
8563 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8564 else
8565 AROS_PORTSSRCDIR="$with_portssrcdir"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8568 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8571 $as_echo_n "checking which bootloader to use... " >&6; }
8573 # Check whether --with-bootloader was given.
8574 if test "${with_bootloader+set}" = set; then :
8575 withval=$with_bootloader; target_bootloader=$withval
8576 else
8577 target_bootloader=$target_bootloader
8580 if test "$target_bootloader" = "none"; then
8581 aros_target_bootloader=""
8582 else
8583 aros_target_bootloader="$target_bootloader"
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8586 $as_echo "$target_bootloader" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8589 $as_echo_n "checking which icon-set to use... " >&6; }
8591 # Check whether --with-iconset was given.
8592 if test "${with_iconset+set}" = set; then :
8593 withval=$with_iconset; target_iconset=$withval
8594 else
8595 target_iconset="default"
8598 if test "$target_iconset" = "default"; then
8599 aros_target_iconset="Gorilla"
8600 target_iconset="default (Gorilla)"
8601 else
8602 aros_target_iconset="$target_iconset"
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8605 $as_echo "$target_iconset" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8608 $as_echo_n "checking which GUI Theme to use... " >&6; }
8610 # Check whether --with-theme was given.
8611 if test "${with_theme+set}" = set; then :
8612 withval=$with_theme; target_guitheme=$withval
8613 else
8614 target_guitheme="default"
8617 if test "$target_guitheme" = "default"; then
8618 aros_target_guitheme="Ice"
8619 else
8620 aros_target_guitheme="$target_guitheme"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8623 $as_echo "$aros_target_guitheme" >&6; }
8625 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8626 # for target code)
8627 cross_compiling=no
8629 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8630 cross_compiling=yes
8633 if test "$aros_host_cpu" == "x86_64" ; then
8634 if test "$aros_target_cpu" == "i386" ; then
8635 cross_compiling=no
8639 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8640 if test "$aros_host_arch" != "$aros_target_arch" ; then
8641 cross_compiling=yes
8643 else
8644 if test "$host_cc_elf" = "no" ; then
8645 cross_compiling=yes
8649 if test "$cross_compiling" = "no" ; then
8650 kernel_tool_prefix=""
8651 if test "$host_cc_elf" = "yes" ; then
8652 elf_tool_prefix=""
8656 #######################################################################
8657 ## Compute what toolchains to use, and their paths ##
8658 #######################################################################
8660 # This takes, as input:
8661 # crosstools {yes,no}
8662 # aros_gcc_version {default,[version]}
8663 # kernel_tool_prefix {none,[some-arch-os-]}
8664 # aros_tool_prefix ${target_cpu}-aros-
8666 # The output is
8667 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8668 # Where the 'kernel' binaries are located
8669 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8670 # Where the 'target' binaries are located
8671 # (not the symlink farm - that is aros_target_*!)
8673 # The rules are:
8674 # if crosstools then
8675 # if kernel_tools_prefix = "no-kernel-prefix-"
8676 # aros_kernel_* = crosstools cc paths
8677 # aros_kernel_cc = elf cc wrapper around crosstools cc
8678 # else
8679 # VALIDATE(${kernel_tools_prefix}*)
8680 # aros_kernel_* = ${kernel_tools_prefix}*
8681 # if ${kernel_tools_prefix}cc is an AROS gcc
8682 # aros_kernel_cc = ${kernel_tools_prefix}cc
8683 # else
8684 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8685 # fi
8686 # fi
8688 # orig_target_* = aros built crosstools
8689 # orig_target_cc = elf cc wrapper around crosstools cc
8690 # else
8691 # VALIDATE(${kernel_tools_prefix}*)
8693 # orig_target_* = aros_kernel_*
8694 # if aros_kernel_cc is an AROS gcc
8695 # orig_target_cc = aros_kernel_cc
8696 # else
8697 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8698 # fi
8699 # fi
8701 target_tool_prefix="${target_cpu}-aros-"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8704 $as_echo_n "checking which kernel tools... " >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8706 $as_echo "$kernel_tool_prefix" >&6; };
8708 if test "$kernel_tool_prefix" = "none" ; then
8709 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8710 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8712 else
8713 # Kernel tools required - find them
8714 # Note that 'normally', aros_kernel_* overrides will
8715 # empty, unless specified in the per-arch sections above.
8716 if test "x$aros_kernel_cpp" = "x"; then
8717 aros_kernel_cpp=${kernel_tool_prefix}cpp
8720 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8721 if test "$cross_compiling" = "yes" ; then
8722 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8723 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 case $aros_kernel_cpp in
8730 [\\/]* | ?:[\\/]*)
8731 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8741 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 break 2
8745 done
8746 done
8747 IFS=$as_save_IFS
8750 esac
8752 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8753 if test -n "$aros_kernel_cpp"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8755 $as_echo "$aros_kernel_cpp" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8762 else
8763 if test "$GCC" = "yes"; then
8764 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8765 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8766 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 case $aros_kernel_cpp in
8773 [\\/]* | ?:[\\/]*)
8774 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 for as_dir in `dirname $aros_gcc_cpp`
8780 IFS=$as_save_IFS
8781 test -z "$as_dir" && as_dir=.
8782 for ac_exec_ext in '' $ac_executable_extensions; do
8783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8784 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 break 2
8788 done
8789 done
8790 IFS=$as_save_IFS
8793 esac
8795 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8796 if test -n "$aros_kernel_cpp"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8798 $as_echo "$aros_kernel_cpp" >&6; }
8799 else
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8806 if test "$aros_kernel_cpp" = ""; then
8807 # Extract the first word of "cpp", so it can be a program name with args.
8808 set dummy cpp; ac_word=$2
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 $as_echo_n "checking for $ac_word... " >&6; }
8811 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 case $aros_kernel_cpp in
8815 [\\/]* | ?:[\\/]*)
8816 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 for as_dir in $PATH
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8826 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8830 done
8831 done
8832 IFS=$as_save_IFS
8835 esac
8837 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8838 if test -n "$aros_kernel_cpp"; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8840 $as_echo "$aros_kernel_cpp" >&6; }
8841 else
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 $as_echo "no" >&6; }
8849 else
8850 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8851 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 $as_echo_n "checking for $ac_word... " >&6; }
8854 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 case $aros_kernel_cpp in
8858 [\\/]* | ?:[\\/]*)
8859 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863 for as_dir in $PATH
8865 IFS=$as_save_IFS
8866 test -z "$as_dir" && as_dir=.
8867 for ac_exec_ext in '' $ac_executable_extensions; do
8868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8869 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8871 break 2
8873 done
8874 done
8875 IFS=$as_save_IFS
8878 esac
8880 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8881 if test -n "$aros_kernel_cpp"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8883 $as_echo "$aros_kernel_cpp" >&6; }
8884 else
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8892 if test "$aros_kernel_cpp" = ""; then
8893 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8895 if test "x$aros_kernel_cc" = "x"; then
8896 aros_kernel_cc=${kernel_tool_prefix}gcc
8899 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8900 if test "$cross_compiling" = "yes" ; then
8901 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8902 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904 $as_echo_n "checking for $ac_word... " >&6; }
8905 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 case $aros_kernel_cc in
8909 [\\/]* | ?:[\\/]*)
8910 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914 for as_dir in $PATH
8916 IFS=$as_save_IFS
8917 test -z "$as_dir" && as_dir=.
8918 for ac_exec_ext in '' $ac_executable_extensions; do
8919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8920 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 break 2
8924 done
8925 done
8926 IFS=$as_save_IFS
8929 esac
8931 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8932 if test -n "$aros_kernel_cc"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8934 $as_echo "$aros_kernel_cc" >&6; }
8935 else
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8941 else
8942 if test "$GCC" = "yes"; then
8943 aros_gcc_cc=`$CC -print-prog-name=cc`
8944 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8945 set dummy `basename $aros_gcc_cc`; ac_word=$2
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 $as_echo_n "checking for $ac_word... " >&6; }
8948 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 case $aros_kernel_cc in
8952 [\\/]* | ?:[\\/]*)
8953 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in `dirname $aros_gcc_cc`
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 break 2
8967 done
8968 done
8969 IFS=$as_save_IFS
8972 esac
8974 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8975 if test -n "$aros_kernel_cc"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8977 $as_echo "$aros_kernel_cc" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8985 if test "$aros_kernel_cc" = ""; then
8986 # Extract the first word of "cc", so it can be a program name with args.
8987 set dummy cc; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 case $aros_kernel_cc in
8994 [\\/]* | ?:[\\/]*)
8995 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9005 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007 break 2
9009 done
9010 done
9011 IFS=$as_save_IFS
9014 esac
9016 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9017 if test -n "$aros_kernel_cc"; then
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9019 $as_echo "$aros_kernel_cc" >&6; }
9020 else
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9028 else
9029 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9030 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 case $aros_kernel_cc in
9037 [\\/]* | ?:[\\/]*)
9038 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $PATH
9044 IFS=$as_save_IFS
9045 test -z "$as_dir" && as_dir=.
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9048 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050 break 2
9052 done
9053 done
9054 IFS=$as_save_IFS
9057 esac
9059 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9060 if test -n "$aros_kernel_cc"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9062 $as_echo "$aros_kernel_cc" >&6; }
9063 else
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9071 if test "$aros_kernel_cc" = ""; then
9072 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9074 if test "x$aros_kernel_cxx" = "x"; then
9075 aros_kernel_cxx=${kernel_tool_prefix}g++
9078 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9079 if test "$cross_compiling" = "yes" ; then
9080 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9081 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 case $aros_kernel_cxx in
9088 [\\/]* | ?:[\\/]*)
9089 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9103 done
9104 done
9105 IFS=$as_save_IFS
9108 esac
9110 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9111 if test -n "$aros_kernel_cxx"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9113 $as_echo "$aros_kernel_cxx" >&6; }
9114 else
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 $as_echo "no" >&6; }
9120 else
9121 if test "$GCC" = "yes"; then
9122 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9123 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9124 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; }
9127 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 case $aros_kernel_cxx in
9131 [\\/]* | ?:[\\/]*)
9132 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 for as_dir in `dirname $aros_gcc_cxx`
9138 IFS=$as_save_IFS
9139 test -z "$as_dir" && as_dir=.
9140 for ac_exec_ext in '' $ac_executable_extensions; do
9141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9142 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 break 2
9146 done
9147 done
9148 IFS=$as_save_IFS
9151 esac
9153 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9154 if test -n "$aros_kernel_cxx"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9156 $as_echo "$aros_kernel_cxx" >&6; }
9157 else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9164 if test "$aros_kernel_cxx" = ""; then
9165 # Extract the first word of "cxx", so it can be a program name with args.
9166 set dummy cxx; ac_word=$2
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 $as_echo_n "checking for $ac_word... " >&6; }
9169 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 case $aros_kernel_cxx in
9173 [\\/]* | ?:[\\/]*)
9174 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9188 done
9189 done
9190 IFS=$as_save_IFS
9193 esac
9195 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9196 if test -n "$aros_kernel_cxx"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9198 $as_echo "$aros_kernel_cxx" >&6; }
9199 else
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9207 else
9208 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9209 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211 $as_echo_n "checking for $ac_word... " >&6; }
9212 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 case $aros_kernel_cxx in
9216 [\\/]* | ?:[\\/]*)
9217 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9227 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9231 done
9232 done
9233 IFS=$as_save_IFS
9236 esac
9238 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9239 if test -n "$aros_kernel_cxx"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9241 $as_echo "$aros_kernel_cxx" >&6; }
9242 else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9250 # If it's set, make sure it's really there
9251 if test "x$aros_kernel_cxx" != "x" ; then
9252 if test "$aros_kernel_cxx" = ""; then
9253 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9257 if test "$aros_kernel_ld" = ""; then
9258 if test "$cross_compiling" = "yes" ; then
9259 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9260 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262 $as_echo_n "checking for $ac_word... " >&6; }
9263 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 case $aros_kernel_ld in
9267 [\\/]* | ?:[\\/]*)
9268 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in $PATH
9274 IFS=$as_save_IFS
9275 test -z "$as_dir" && as_dir=.
9276 for ac_exec_ext in '' $ac_executable_extensions; do
9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9278 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 break 2
9282 done
9283 done
9284 IFS=$as_save_IFS
9287 esac
9289 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9290 if test -n "$aros_kernel_ld"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9292 $as_echo "$aros_kernel_ld" >&6; }
9293 else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9299 else
9300 if test "$GCC" = "yes"; then
9301 aros_gcc_ld=`$CC -print-prog-name=ld`
9302 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9303 set dummy `basename $aros_gcc_ld`; ac_word=$2
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305 $as_echo_n "checking for $ac_word... " >&6; }
9306 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 case $aros_kernel_ld in
9310 [\\/]* | ?:[\\/]*)
9311 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 for as_dir in `dirname $aros_gcc_ld`
9317 IFS=$as_save_IFS
9318 test -z "$as_dir" && as_dir=.
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9321 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9323 break 2
9325 done
9326 done
9327 IFS=$as_save_IFS
9330 esac
9332 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9333 if test -n "$aros_kernel_ld"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9335 $as_echo "$aros_kernel_ld" >&6; }
9336 else
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9343 if test "$aros_kernel_ld" = ""; then
9344 # Extract the first word of "ld", so it can be a program name with args.
9345 set dummy ld; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 case $aros_kernel_ld in
9352 [\\/]* | ?:[\\/]*)
9353 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 for as_dir in $PATH
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9363 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9365 break 2
9367 done
9368 done
9369 IFS=$as_save_IFS
9372 esac
9374 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9375 if test -n "$aros_kernel_ld"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9377 $as_echo "$aros_kernel_ld" >&6; }
9378 else
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9386 else
9387 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9388 set dummy $aros_kernel_ld; ac_word=$2
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 $as_echo_n "checking for $ac_word... " >&6; }
9391 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 case $aros_kernel_ld in
9395 [\\/]* | ?:[\\/]*)
9396 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9410 done
9411 done
9412 IFS=$as_save_IFS
9415 esac
9417 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9418 if test -n "$aros_kernel_ld"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9420 $as_echo "$aros_kernel_ld" >&6; }
9421 else
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9429 if test "$aros_kernel_ld" = ""; then
9430 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9433 if test "$aros_kernel_as" = ""; then
9434 if test "$cross_compiling" = "yes" ; then
9435 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9436 set dummy ${kernel_tool_prefix}as; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if ${ac_cv_path_aros_kernel_as+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 case $aros_kernel_as in
9443 [\\/]* | ?:[\\/]*)
9444 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448 for as_dir in $PATH
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9454 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9456 break 2
9458 done
9459 done
9460 IFS=$as_save_IFS
9463 esac
9465 aros_kernel_as=$ac_cv_path_aros_kernel_as
9466 if test -n "$aros_kernel_as"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9468 $as_echo "$aros_kernel_as" >&6; }
9469 else
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9475 else
9476 if test "$GCC" = "yes"; then
9477 aros_gcc_as=`$CC -print-prog-name=as`
9478 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9479 set dummy `basename $aros_gcc_as`; ac_word=$2
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481 $as_echo_n "checking for $ac_word... " >&6; }
9482 if ${ac_cv_path_aros_kernel_as+:} false; then :
9483 $as_echo_n "(cached) " >&6
9484 else
9485 case $aros_kernel_as in
9486 [\\/]* | ?:[\\/]*)
9487 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in `dirname $aros_gcc_as`
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9501 done
9502 done
9503 IFS=$as_save_IFS
9506 esac
9508 aros_kernel_as=$ac_cv_path_aros_kernel_as
9509 if test -n "$aros_kernel_as"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9511 $as_echo "$aros_kernel_as" >&6; }
9512 else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9519 if test "$aros_kernel_as" = ""; then
9520 # Extract the first word of "as", so it can be a program name with args.
9521 set dummy as; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if ${ac_cv_path_aros_kernel_as+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 case $aros_kernel_as in
9528 [\\/]* | ?:[\\/]*)
9529 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 for as_dir in $PATH
9535 IFS=$as_save_IFS
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 break 2
9543 done
9544 done
9545 IFS=$as_save_IFS
9548 esac
9550 aros_kernel_as=$ac_cv_path_aros_kernel_as
9551 if test -n "$aros_kernel_as"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9553 $as_echo "$aros_kernel_as" >&6; }
9554 else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9562 else
9563 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9564 set dummy $aros_kernel_as; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_path_aros_kernel_as+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 case $aros_kernel_as in
9571 [\\/]* | ?:[\\/]*)
9572 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576 for as_dir in $PATH
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9582 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9586 done
9587 done
9588 IFS=$as_save_IFS
9591 esac
9593 aros_kernel_as=$ac_cv_path_aros_kernel_as
9594 if test -n "$aros_kernel_as"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9596 $as_echo "$aros_kernel_as" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9605 if test "$aros_kernel_as" = ""; then
9606 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9609 if test "$aros_kernel_ar" = ""; then
9610 if test "$cross_compiling" = "yes" ; then
9611 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9612 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614 $as_echo_n "checking for $ac_word... " >&6; }
9615 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 case $aros_kernel_ar in
9619 [\\/]* | ?:[\\/]*)
9620 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624 for as_dir in $PATH
9626 IFS=$as_save_IFS
9627 test -z "$as_dir" && as_dir=.
9628 for ac_exec_ext in '' $ac_executable_extensions; do
9629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9630 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9632 break 2
9634 done
9635 done
9636 IFS=$as_save_IFS
9639 esac
9641 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9642 if test -n "$aros_kernel_ar"; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9644 $as_echo "$aros_kernel_ar" >&6; }
9645 else
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647 $as_echo "no" >&6; }
9651 else
9652 if test "$GCC" = "yes"; then
9653 aros_gcc_ar=`$CC -print-prog-name=ar`
9654 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9655 set dummy `basename $aros_gcc_ar`; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 case $aros_kernel_ar in
9662 [\\/]* | ?:[\\/]*)
9663 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in `dirname $aros_gcc_ar`
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675 break 2
9677 done
9678 done
9679 IFS=$as_save_IFS
9682 esac
9684 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9685 if test -n "$aros_kernel_ar"; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9687 $as_echo "$aros_kernel_ar" >&6; }
9688 else
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9695 if test "$aros_kernel_ar" = ""; then
9696 # Extract the first word of "ar", so it can be a program name with args.
9697 set dummy ar; ac_word=$2
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 case $aros_kernel_ar in
9704 [\\/]* | ?:[\\/]*)
9705 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 for as_dir in $PATH
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9715 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9719 done
9720 done
9721 IFS=$as_save_IFS
9724 esac
9726 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9727 if test -n "$aros_kernel_ar"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9729 $as_echo "$aros_kernel_ar" >&6; }
9730 else
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9738 else
9739 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9740 set dummy $aros_kernel_ar; ac_word=$2
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 case $aros_kernel_ar in
9747 [\\/]* | ?:[\\/]*)
9748 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9762 done
9763 done
9764 IFS=$as_save_IFS
9767 esac
9769 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9770 if test -n "$aros_kernel_ar"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9772 $as_echo "$aros_kernel_ar" >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9781 if test "$aros_kernel_ar" = ""; then
9782 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9785 if test "$aros_kernel_ranlib" = ""; then
9786 if test "$cross_compiling" = "yes" ; then
9787 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9788 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790 $as_echo_n "checking for $ac_word... " >&6; }
9791 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 case $aros_kernel_ranlib in
9795 [\\/]* | ?:[\\/]*)
9796 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9800 for as_dir in $PATH
9802 IFS=$as_save_IFS
9803 test -z "$as_dir" && as_dir=.
9804 for ac_exec_ext in '' $ac_executable_extensions; do
9805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9806 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9808 break 2
9810 done
9811 done
9812 IFS=$as_save_IFS
9815 esac
9817 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9818 if test -n "$aros_kernel_ranlib"; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9820 $as_echo "$aros_kernel_ranlib" >&6; }
9821 else
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9823 $as_echo "no" >&6; }
9827 else
9828 if test "$GCC" = "yes"; then
9829 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9830 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9831 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833 $as_echo_n "checking for $ac_word... " >&6; }
9834 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 case $aros_kernel_ranlib in
9838 [\\/]* | ?:[\\/]*)
9839 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843 for as_dir in `dirname $aros_gcc_ranlib`
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
9847 for ac_exec_ext in '' $ac_executable_extensions; do
9848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9849 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 break 2
9853 done
9854 done
9855 IFS=$as_save_IFS
9858 esac
9860 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9861 if test -n "$aros_kernel_ranlib"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9863 $as_echo "$aros_kernel_ranlib" >&6; }
9864 else
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9871 if test "$aros_kernel_ranlib" = ""; then
9872 # Extract the first word of "ranlib", so it can be a program name with args.
9873 set dummy ranlib; ac_word=$2
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875 $as_echo_n "checking for $ac_word... " >&6; }
9876 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 case $aros_kernel_ranlib in
9880 [\\/]* | ?:[\\/]*)
9881 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885 for as_dir in $PATH
9887 IFS=$as_save_IFS
9888 test -z "$as_dir" && as_dir=.
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9891 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9893 break 2
9895 done
9896 done
9897 IFS=$as_save_IFS
9900 esac
9902 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9903 if test -n "$aros_kernel_ranlib"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9905 $as_echo "$aros_kernel_ranlib" >&6; }
9906 else
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9914 else
9915 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9916 set dummy $aros_kernel_ranlib; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 case $aros_kernel_ranlib in
9923 [\\/]* | ?:[\\/]*)
9924 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $PATH
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936 break 2
9938 done
9939 done
9940 IFS=$as_save_IFS
9943 esac
9945 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9946 if test -n "$aros_kernel_ranlib"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9948 $as_echo "$aros_kernel_ranlib" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9957 if test "$aros_kernel_ranlib" = ""; then
9958 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9961 if test "$aros_kernel_nm" = ""; then
9962 if test "$cross_compiling" = "yes" ; then
9963 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9964 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 case $aros_kernel_nm in
9971 [\\/]* | ?:[\\/]*)
9972 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 for as_dir in $PATH
9978 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9982 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984 break 2
9986 done
9987 done
9988 IFS=$as_save_IFS
9991 esac
9993 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9994 if test -n "$aros_kernel_nm"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9996 $as_echo "$aros_kernel_nm" >&6; }
9997 else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10003 else
10004 if test "$GCC" = "yes"; then
10005 aros_gcc_nm=`$CC -print-prog-name=nm`
10006 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10007 set dummy `basename $aros_gcc_nm`; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 case $aros_kernel_nm in
10014 [\\/]* | ?:[\\/]*)
10015 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in `dirname $aros_gcc_nm`
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10029 done
10030 done
10031 IFS=$as_save_IFS
10034 esac
10036 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10037 if test -n "$aros_kernel_nm"; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10039 $as_echo "$aros_kernel_nm" >&6; }
10040 else
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10047 if test "$aros_kernel_nm" = ""; then
10048 # Extract the first word of "nm", so it can be a program name with args.
10049 set dummy nm; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 case $aros_kernel_nm in
10056 [\\/]* | ?:[\\/]*)
10057 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10067 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10071 done
10072 done
10073 IFS=$as_save_IFS
10076 esac
10078 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10079 if test -n "$aros_kernel_nm"; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10081 $as_echo "$aros_kernel_nm" >&6; }
10082 else
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 $as_echo "no" >&6; }
10090 else
10091 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10092 set dummy $aros_kernel_nm; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 case $aros_kernel_nm in
10099 [\\/]* | ?:[\\/]*)
10100 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10110 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10114 done
10115 done
10116 IFS=$as_save_IFS
10119 esac
10121 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10122 if test -n "$aros_kernel_nm"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10124 $as_echo "$aros_kernel_nm" >&6; }
10125 else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10133 if test "$aros_kernel_nm" = ""; then
10134 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10137 if test "$aros_kernel_strip" = ""; then
10138 if test "$cross_compiling" = "yes" ; then
10139 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10140 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 case $aros_kernel_strip in
10147 [\\/]* | ?:[\\/]*)
10148 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10162 done
10163 done
10164 IFS=$as_save_IFS
10167 esac
10169 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10170 if test -n "$aros_kernel_strip"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10172 $as_echo "$aros_kernel_strip" >&6; }
10173 else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10179 else
10180 if test "$GCC" = "yes"; then
10181 aros_gcc_strip=`$CC -print-prog-name=strip`
10182 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10183 set dummy `basename $aros_gcc_strip`; ac_word=$2
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 $as_echo_n "checking for $ac_word... " >&6; }
10186 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 case $aros_kernel_strip in
10190 [\\/]* | ?:[\\/]*)
10191 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in `dirname $aros_gcc_strip`
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10205 done
10206 done
10207 IFS=$as_save_IFS
10210 esac
10212 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10213 if test -n "$aros_kernel_strip"; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10215 $as_echo "$aros_kernel_strip" >&6; }
10216 else
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218 $as_echo "no" >&6; }
10223 if test "$aros_kernel_strip" = ""; then
10224 # Extract the first word of "strip", so it can be a program name with args.
10225 set dummy strip; ac_word=$2
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10227 $as_echo_n "checking for $ac_word... " >&6; }
10228 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 case $aros_kernel_strip in
10232 [\\/]* | ?:[\\/]*)
10233 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10243 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10245 break 2
10247 done
10248 done
10249 IFS=$as_save_IFS
10252 esac
10254 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10255 if test -n "$aros_kernel_strip"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10257 $as_echo "$aros_kernel_strip" >&6; }
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10266 else
10267 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10268 set dummy $aros_kernel_strip; ac_word=$2
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270 $as_echo_n "checking for $ac_word... " >&6; }
10271 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 case $aros_kernel_strip in
10275 [\\/]* | ?:[\\/]*)
10276 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10286 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10290 done
10291 done
10292 IFS=$as_save_IFS
10295 esac
10297 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10298 if test -n "$aros_kernel_strip"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10300 $as_echo "$aros_kernel_strip" >&6; }
10301 else
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303 $as_echo "no" >&6; }
10309 if test "$aros_kernel_strip" = ""; then
10310 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10313 # Objcopy and objdump are not required for the kernel
10314 # toolchain on many architectures.
10315 # So we'll look for them, but not make them strictly required.
10317 if test "$aros_kernel_objcopy" = ""; then
10318 if test "$cross_compiling" = "yes" ; then
10319 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10320 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 case $aros_kernel_objcopy in
10327 [\\/]* | ?:[\\/]*)
10328 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10332 for as_dir in $PATH
10334 IFS=$as_save_IFS
10335 test -z "$as_dir" && as_dir=.
10336 for ac_exec_ext in '' $ac_executable_extensions; do
10337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10338 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 break 2
10342 done
10343 done
10344 IFS=$as_save_IFS
10347 esac
10349 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10350 if test -n "$aros_kernel_objcopy"; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10352 $as_echo "$aros_kernel_objcopy" >&6; }
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 $as_echo "no" >&6; }
10359 else
10360 if test "$GCC" = "yes"; then
10361 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10362 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10363 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365 $as_echo_n "checking for $ac_word... " >&6; }
10366 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 case $aros_kernel_objcopy in
10370 [\\/]* | ?:[\\/]*)
10371 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in `dirname $aros_gcc_objcopy`
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10381 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10385 done
10386 done
10387 IFS=$as_save_IFS
10390 esac
10392 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10393 if test -n "$aros_kernel_objcopy"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10395 $as_echo "$aros_kernel_objcopy" >&6; }
10396 else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398 $as_echo "no" >&6; }
10403 if test "$aros_kernel_objcopy" = ""; then
10404 # Extract the first word of "objcopy", so it can be a program name with args.
10405 set dummy objcopy; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 case $aros_kernel_objcopy in
10412 [\\/]* | ?:[\\/]*)
10413 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417 for as_dir in $PATH
10419 IFS=$as_save_IFS
10420 test -z "$as_dir" && as_dir=.
10421 for ac_exec_ext in '' $ac_executable_extensions; do
10422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10423 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425 break 2
10427 done
10428 done
10429 IFS=$as_save_IFS
10432 esac
10434 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10435 if test -n "$aros_kernel_objcopy"; then
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10437 $as_echo "$aros_kernel_objcopy" >&6; }
10438 else
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440 $as_echo "no" >&6; }
10446 else
10447 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10448 set dummy $aros_kernel_objcopy; ac_word=$2
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450 $as_echo_n "checking for $ac_word... " >&6; }
10451 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 case $aros_kernel_objcopy in
10455 [\\/]* | ?:[\\/]*)
10456 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10466 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468 break 2
10470 done
10471 done
10472 IFS=$as_save_IFS
10475 esac
10477 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10478 if test -n "$aros_kernel_objcopy"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10480 $as_echo "$aros_kernel_objcopy" >&6; }
10481 else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 $as_echo "no" >&6; }
10490 if test "$aros_kernel_objdump" = ""; then
10491 if test "$cross_compiling" = "yes" ; then
10492 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10493 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 case $aros_kernel_objdump in
10500 [\\/]* | ?:[\\/]*)
10501 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10511 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10515 done
10516 done
10517 IFS=$as_save_IFS
10520 esac
10522 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10523 if test -n "$aros_kernel_objdump"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10525 $as_echo "$aros_kernel_objdump" >&6; }
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10532 else
10533 if test "$GCC" = "yes"; then
10534 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10535 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10536 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538 $as_echo_n "checking for $ac_word... " >&6; }
10539 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 case $aros_kernel_objdump in
10543 [\\/]* | ?:[\\/]*)
10544 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in `dirname $aros_gcc_objdump`
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10554 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10558 done
10559 done
10560 IFS=$as_save_IFS
10563 esac
10565 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10566 if test -n "$aros_kernel_objdump"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10568 $as_echo "$aros_kernel_objdump" >&6; }
10569 else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10576 if test "$aros_kernel_objdump" = ""; then
10577 # Extract the first word of "objdump", so it can be a program name with args.
10578 set dummy objdump; ac_word=$2
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580 $as_echo_n "checking for $ac_word... " >&6; }
10581 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 case $aros_kernel_objdump in
10585 [\\/]* | ?:[\\/]*)
10586 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590 for as_dir in $PATH
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10596 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10598 break 2
10600 done
10601 done
10602 IFS=$as_save_IFS
10605 esac
10607 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10608 if test -n "$aros_kernel_objdump"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10610 $as_echo "$aros_kernel_objdump" >&6; }
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10619 else
10620 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10621 set dummy $aros_kernel_objdump; ac_word=$2
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623 $as_echo_n "checking for $ac_word... " >&6; }
10624 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 case $aros_kernel_objdump in
10628 [\\/]* | ?:[\\/]*)
10629 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10639 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 break 2
10643 done
10644 done
10645 IFS=$as_save_IFS
10648 esac
10650 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10651 if test -n "$aros_kernel_objdump"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10653 $as_echo "$aros_kernel_objdump" >&6; }
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10662 if test "x${crosstools}" != "xyes" ; then
10663 if test "$aros_kernel_objcopy" = ""; then
10664 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10666 if test "$aros_kernel_objdump" = ""; then
10667 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10673 $as_echo_n "checking which target tools to use... " >&6; }
10674 if test "$crosstools" = "yes"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10676 $as_echo "$target_tool_prefix" >&6; }
10677 # We are are building AROS crosstools
10678 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10679 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10680 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10681 orig_target_cpp="${tmp_tool_prefix}cpp"
10682 orig_target_ld="${tmp_tool_prefix}ld"
10683 orig_target_as="${tmp_tool_prefix}as"
10684 orig_target_ar="${tmp_tool_prefix}ar"
10685 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10686 orig_target_nm="${tmp_tool_prefix}nm"
10687 orig_target_strip="${tmp_tool_prefix}strip"
10688 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10689 orig_target_objdump="${tmp_tool_prefix}objdump"
10690 else
10691 # Determine whether AROS or ELF tools should be used
10692 if test "$aros_tool_prefix" = "none"; then
10693 aros_tool_prefix="${elf_tool_prefix}"
10694 crosstools_cxx_target=tools-crosstools
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10698 $as_echo "$aros_tool_prefix" >&6; }
10699 # We are *not* building AROS crosstools - use the AROS or ELF tools
10701 if test "${aros_tool_prefix}cpp" = ""; then
10702 if test "$cross_compiling" = "yes" ; then
10703 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10704 set dummy ${target_tool_prefix}cpp; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if ${ac_cv_path_orig_target_cpp+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 case $orig_target_cpp in
10711 [\\/]* | ?:[\\/]*)
10712 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in $PATH
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10722 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 break 2
10726 done
10727 done
10728 IFS=$as_save_IFS
10731 esac
10733 orig_target_cpp=$ac_cv_path_orig_target_cpp
10734 if test -n "$orig_target_cpp"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10736 $as_echo "$orig_target_cpp" >&6; }
10737 else
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10743 else
10744 if test "$GCC" = "yes"; then
10745 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10746 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10747 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_path_orig_target_cpp+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 case $orig_target_cpp in
10754 [\\/]* | ?:[\\/]*)
10755 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in `dirname $aros_gcc_cpp`
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10765 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10769 done
10770 done
10771 IFS=$as_save_IFS
10774 esac
10776 orig_target_cpp=$ac_cv_path_orig_target_cpp
10777 if test -n "$orig_target_cpp"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10779 $as_echo "$orig_target_cpp" >&6; }
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10787 if test "$orig_target_cpp" = ""; then
10788 # Extract the first word of "cpp", so it can be a program name with args.
10789 set dummy cpp; ac_word=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if ${ac_cv_path_orig_target_cpp+:} false; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 case $orig_target_cpp in
10796 [\\/]* | ?:[\\/]*)
10797 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10811 done
10812 done
10813 IFS=$as_save_IFS
10816 esac
10818 orig_target_cpp=$ac_cv_path_orig_target_cpp
10819 if test -n "$orig_target_cpp"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10821 $as_echo "$orig_target_cpp" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10830 else
10831 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10832 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if ${ac_cv_path_orig_target_cpp+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 case $orig_target_cpp in
10839 [\\/]* | ?:[\\/]*)
10840 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10850 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10854 done
10855 done
10856 IFS=$as_save_IFS
10859 esac
10861 orig_target_cpp=$ac_cv_path_orig_target_cpp
10862 if test -n "$orig_target_cpp"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10864 $as_echo "$orig_target_cpp" >&6; }
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10873 if test "$orig_target_cpp" = ""; then
10874 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10877 if test "${aros_tool_prefix}gcc" = ""; then
10878 if test "$cross_compiling" = "yes" ; then
10879 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10880 set dummy ${target_tool_prefix}gcc; ac_word=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if ${ac_cv_path_orig_target_cc+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 case $orig_target_cc in
10887 [\\/]* | ?:[\\/]*)
10888 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10898 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10902 done
10903 done
10904 IFS=$as_save_IFS
10907 esac
10909 orig_target_cc=$ac_cv_path_orig_target_cc
10910 if test -n "$orig_target_cc"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10912 $as_echo "$orig_target_cc" >&6; }
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10919 else
10920 if test "$GCC" = "yes"; then
10921 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10922 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10923 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_path_orig_target_cc+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 case $orig_target_cc in
10930 [\\/]* | ?:[\\/]*)
10931 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in `dirname $aros_gcc_gcc`
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10941 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10945 done
10946 done
10947 IFS=$as_save_IFS
10950 esac
10952 orig_target_cc=$ac_cv_path_orig_target_cc
10953 if test -n "$orig_target_cc"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10955 $as_echo "$orig_target_cc" >&6; }
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10963 if test "$orig_target_cc" = ""; then
10964 # Extract the first word of "gcc", so it can be a program name with args.
10965 set dummy gcc; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if ${ac_cv_path_orig_target_cc+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 case $orig_target_cc in
10972 [\\/]* | ?:[\\/]*)
10973 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10987 done
10988 done
10989 IFS=$as_save_IFS
10992 esac
10994 orig_target_cc=$ac_cv_path_orig_target_cc
10995 if test -n "$orig_target_cc"; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10997 $as_echo "$orig_target_cc" >&6; }
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 $as_echo "no" >&6; }
11006 else
11007 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
11008 set dummy ${aros_tool_prefix}gcc; ac_word=$2
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010 $as_echo_n "checking for $ac_word... " >&6; }
11011 if ${ac_cv_path_orig_target_cc+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 case $orig_target_cc in
11015 [\\/]* | ?:[\\/]*)
11016 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $PATH
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11026 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11030 done
11031 done
11032 IFS=$as_save_IFS
11035 esac
11037 orig_target_cc=$ac_cv_path_orig_target_cc
11038 if test -n "$orig_target_cc"; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11040 $as_echo "$orig_target_cc" >&6; }
11041 else
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11049 if test "$orig_target_cc" = ""; then
11050 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11052 if test "x${crosstools_cxx_target}" = "x" ; then
11054 if test "${aros_tool_prefix}g++" = ""; then
11055 if test "$cross_compiling" = "yes" ; then
11056 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11057 set dummy ${target_tool_prefix}g++; ac_word=$2
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059 $as_echo_n "checking for $ac_word... " >&6; }
11060 if ${ac_cv_path_orig_target_cxx+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 case $orig_target_cxx in
11064 [\\/]* | ?:[\\/]*)
11065 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069 for as_dir in $PATH
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
11074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11075 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 break 2
11079 done
11080 done
11081 IFS=$as_save_IFS
11084 esac
11086 orig_target_cxx=$ac_cv_path_orig_target_cxx
11087 if test -n "$orig_target_cxx"; then
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11089 $as_echo "$orig_target_cxx" >&6; }
11090 else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11096 else
11097 if test "$GCC" = "yes"; then
11098 aros_gcc_g++=`$CC -print-prog-name=g++`
11099 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11100 set dummy `basename $aros_gcc_g++`; ac_word=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102 $as_echo_n "checking for $ac_word... " >&6; }
11103 if ${ac_cv_path_orig_target_cxx+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 case $orig_target_cxx in
11107 [\\/]* | ?:[\\/]*)
11108 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in `dirname $aros_gcc_g++`
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11118 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 break 2
11122 done
11123 done
11124 IFS=$as_save_IFS
11127 esac
11129 orig_target_cxx=$ac_cv_path_orig_target_cxx
11130 if test -n "$orig_target_cxx"; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11132 $as_echo "$orig_target_cxx" >&6; }
11133 else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11140 if test "$orig_target_cxx" = ""; then
11141 # Extract the first word of "g++", so it can be a program name with args.
11142 set dummy g++; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if ${ac_cv_path_orig_target_cxx+:} false; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 case $orig_target_cxx in
11149 [\\/]* | ?:[\\/]*)
11150 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $PATH
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11160 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 break 2
11164 done
11165 done
11166 IFS=$as_save_IFS
11169 esac
11171 orig_target_cxx=$ac_cv_path_orig_target_cxx
11172 if test -n "$orig_target_cxx"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11174 $as_echo "$orig_target_cxx" >&6; }
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11183 else
11184 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11185 set dummy ${aros_tool_prefix}g++; ac_word=$2
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187 $as_echo_n "checking for $ac_word... " >&6; }
11188 if ${ac_cv_path_orig_target_cxx+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 case $orig_target_cxx in
11192 [\\/]* | ?:[\\/]*)
11193 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11207 done
11208 done
11209 IFS=$as_save_IFS
11212 esac
11214 orig_target_cxx=$ac_cv_path_orig_target_cxx
11215 if test -n "$orig_target_cxx"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11217 $as_echo "$orig_target_cxx" >&6; }
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11226 if test "$orig_target_cxx" = ""; then
11227 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11231 if test "${aros_tool_prefix}ld" = ""; then
11232 if test "$cross_compiling" = "yes" ; then
11233 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11234 set dummy ${target_tool_prefix}gcc; ac_word=$2
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236 $as_echo_n "checking for $ac_word... " >&6; }
11237 if ${ac_cv_path_orig_target_ld+:} false; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 case $orig_target_ld in
11241 [\\/]* | ?:[\\/]*)
11242 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11248 IFS=$as_save_IFS
11249 test -z "$as_dir" && as_dir=.
11250 for ac_exec_ext in '' $ac_executable_extensions; do
11251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11252 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 break 2
11256 done
11257 done
11258 IFS=$as_save_IFS
11261 esac
11263 orig_target_ld=$ac_cv_path_orig_target_ld
11264 if test -n "$orig_target_ld"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11266 $as_echo "$orig_target_ld" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11273 else
11274 if test "$GCC" = "yes"; then
11275 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11276 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11277 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279 $as_echo_n "checking for $ac_word... " >&6; }
11280 if ${ac_cv_path_orig_target_ld+:} false; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 case $orig_target_ld in
11284 [\\/]* | ?:[\\/]*)
11285 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in `dirname $aros_gcc_gcc`
11291 IFS=$as_save_IFS
11292 test -z "$as_dir" && as_dir=.
11293 for ac_exec_ext in '' $ac_executable_extensions; do
11294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 break 2
11299 done
11300 done
11301 IFS=$as_save_IFS
11304 esac
11306 orig_target_ld=$ac_cv_path_orig_target_ld
11307 if test -n "$orig_target_ld"; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11309 $as_echo "$orig_target_ld" >&6; }
11310 else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11317 if test "$orig_target_ld" = ""; then
11318 # Extract the first word of "gcc", so it can be a program name with args.
11319 set dummy gcc; ac_word=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 $as_echo_n "checking for $ac_word... " >&6; }
11322 if ${ac_cv_path_orig_target_ld+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 case $orig_target_ld in
11326 [\\/]* | ?:[\\/]*)
11327 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11341 done
11342 done
11343 IFS=$as_save_IFS
11346 esac
11348 orig_target_ld=$ac_cv_path_orig_target_ld
11349 if test -n "$orig_target_ld"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11351 $as_echo "$orig_target_ld" >&6; }
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11360 else
11361 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11362 set dummy ${aros_tool_prefix}ld; ac_word=$2
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11364 $as_echo_n "checking for $ac_word... " >&6; }
11365 if ${ac_cv_path_orig_target_ld+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 case $orig_target_ld in
11369 [\\/]* | ?:[\\/]*)
11370 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11380 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11384 done
11385 done
11386 IFS=$as_save_IFS
11389 esac
11391 orig_target_ld=$ac_cv_path_orig_target_ld
11392 if test -n "$orig_target_ld"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11394 $as_echo "$orig_target_ld" >&6; }
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11403 if test "$orig_target_ld" = ""; then
11404 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11407 if test "${aros_tool_prefix}as" = ""; then
11408 if test "$cross_compiling" = "yes" ; then
11409 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11410 set dummy ${target_tool_prefix}as; ac_word=$2
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412 $as_echo_n "checking for $ac_word... " >&6; }
11413 if ${ac_cv_path_orig_target_as+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 case $orig_target_as in
11417 [\\/]* | ?:[\\/]*)
11418 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11422 for as_dir in $PATH
11424 IFS=$as_save_IFS
11425 test -z "$as_dir" && as_dir=.
11426 for ac_exec_ext in '' $ac_executable_extensions; do
11427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11428 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11430 break 2
11432 done
11433 done
11434 IFS=$as_save_IFS
11437 esac
11439 orig_target_as=$ac_cv_path_orig_target_as
11440 if test -n "$orig_target_as"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11442 $as_echo "$orig_target_as" >&6; }
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11449 else
11450 if test "$GCC" = "yes"; then
11451 aros_gcc_as=`$CC -print-prog-name=as`
11452 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11453 set dummy `basename $aros_gcc_as`; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if ${ac_cv_path_orig_target_as+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 case $orig_target_as in
11460 [\\/]* | ?:[\\/]*)
11461 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in `dirname $aros_gcc_as`
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11475 done
11476 done
11477 IFS=$as_save_IFS
11480 esac
11482 orig_target_as=$ac_cv_path_orig_target_as
11483 if test -n "$orig_target_as"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11485 $as_echo "$orig_target_as" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11493 if test "$orig_target_as" = ""; then
11494 # Extract the first word of "as", so it can be a program name with args.
11495 set dummy as; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497 $as_echo_n "checking for $ac_word... " >&6; }
11498 if ${ac_cv_path_orig_target_as+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 case $orig_target_as in
11502 [\\/]* | ?:[\\/]*)
11503 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11517 done
11518 done
11519 IFS=$as_save_IFS
11522 esac
11524 orig_target_as=$ac_cv_path_orig_target_as
11525 if test -n "$orig_target_as"; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11527 $as_echo "$orig_target_as" >&6; }
11528 else
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11536 else
11537 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11538 set dummy ${aros_tool_prefix}as; ac_word=$2
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11540 $as_echo_n "checking for $ac_word... " >&6; }
11541 if ${ac_cv_path_orig_target_as+:} false; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 case $orig_target_as in
11545 [\\/]* | ?:[\\/]*)
11546 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11556 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 break 2
11560 done
11561 done
11562 IFS=$as_save_IFS
11565 esac
11567 orig_target_as=$ac_cv_path_orig_target_as
11568 if test -n "$orig_target_as"; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11570 $as_echo "$orig_target_as" >&6; }
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11579 if test "$orig_target_as" = ""; then
11580 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11583 if test "${aros_tool_prefix}ar" = ""; then
11584 if test "$cross_compiling" = "yes" ; then
11585 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11586 set dummy ${target_tool_prefix}ar; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_path_orig_target_ar+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 case $orig_target_ar in
11593 [\\/]* | ?:[\\/]*)
11594 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11604 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11608 done
11609 done
11610 IFS=$as_save_IFS
11613 esac
11615 orig_target_ar=$ac_cv_path_orig_target_ar
11616 if test -n "$orig_target_ar"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11618 $as_echo "$orig_target_ar" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11625 else
11626 if test "$GCC" = "yes"; then
11627 aros_gcc_ar=`$CC -print-prog-name=ar`
11628 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11629 set dummy `basename $aros_gcc_ar`; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if ${ac_cv_path_orig_target_ar+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 case $orig_target_ar in
11636 [\\/]* | ?:[\\/]*)
11637 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in `dirname $aros_gcc_ar`
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11647 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11651 done
11652 done
11653 IFS=$as_save_IFS
11656 esac
11658 orig_target_ar=$ac_cv_path_orig_target_ar
11659 if test -n "$orig_target_ar"; then
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11661 $as_echo "$orig_target_ar" >&6; }
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11669 if test "$orig_target_ar" = ""; then
11670 # Extract the first word of "ar", so it can be a program name with args.
11671 set dummy ar; ac_word=$2
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 $as_echo_n "checking for $ac_word... " >&6; }
11674 if ${ac_cv_path_orig_target_ar+:} false; then :
11675 $as_echo_n "(cached) " >&6
11676 else
11677 case $orig_target_ar in
11678 [\\/]* | ?:[\\/]*)
11679 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $PATH
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11689 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 break 2
11693 done
11694 done
11695 IFS=$as_save_IFS
11698 esac
11700 orig_target_ar=$ac_cv_path_orig_target_ar
11701 if test -n "$orig_target_ar"; then
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11703 $as_echo "$orig_target_ar" >&6; }
11704 else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11712 else
11713 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11714 set dummy ${aros_tool_prefix}ar; ac_word=$2
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716 $as_echo_n "checking for $ac_word... " >&6; }
11717 if ${ac_cv_path_orig_target_ar+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 case $orig_target_ar in
11721 [\\/]* | ?:[\\/]*)
11722 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11736 done
11737 done
11738 IFS=$as_save_IFS
11741 esac
11743 orig_target_ar=$ac_cv_path_orig_target_ar
11744 if test -n "$orig_target_ar"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11746 $as_echo "$orig_target_ar" >&6; }
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11755 if test "$orig_target_ar" = ""; then
11756 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11759 if test "${aros_tool_prefix}ranlib" = ""; then
11760 if test "$cross_compiling" = "yes" ; then
11761 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11762 set dummy ${target_tool_prefix}ar; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 case $orig_target_ranlib in
11769 [\\/]* | ?:[\\/]*)
11770 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11780 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11784 done
11785 done
11786 IFS=$as_save_IFS
11789 esac
11791 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11792 if test -n "$orig_target_ranlib"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11794 $as_echo "$orig_target_ranlib" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11801 else
11802 if test "$GCC" = "yes"; then
11803 aros_gcc_ar=`$CC -print-prog-name=ar`
11804 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11805 set dummy `basename $aros_gcc_ar`; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807 $as_echo_n "checking for $ac_word... " >&6; }
11808 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 case $orig_target_ranlib in
11812 [\\/]* | ?:[\\/]*)
11813 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in `dirname $aros_gcc_ar`
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11823 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11827 done
11828 done
11829 IFS=$as_save_IFS
11832 esac
11834 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11835 if test -n "$orig_target_ranlib"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11837 $as_echo "$orig_target_ranlib" >&6; }
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11845 if test "$orig_target_ranlib" = ""; then
11846 # Extract the first word of "ar", so it can be a program name with args.
11847 set dummy ar; ac_word=$2
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849 $as_echo_n "checking for $ac_word... " >&6; }
11850 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853 case $orig_target_ranlib in
11854 [\\/]* | ?:[\\/]*)
11855 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11869 done
11870 done
11871 IFS=$as_save_IFS
11874 esac
11876 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11877 if test -n "$orig_target_ranlib"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11879 $as_echo "$orig_target_ranlib" >&6; }
11880 else
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11888 else
11889 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11890 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 case $orig_target_ranlib in
11897 [\\/]* | ?:[\\/]*)
11898 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11908 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910 break 2
11912 done
11913 done
11914 IFS=$as_save_IFS
11917 esac
11919 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11920 if test -n "$orig_target_ranlib"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11922 $as_echo "$orig_target_ranlib" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11931 if test "$orig_target_ranlib" = ""; then
11932 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11935 if test "${aros_tool_prefix}nm" = ""; then
11936 if test "$cross_compiling" = "yes" ; then
11937 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11938 set dummy ${target_tool_prefix}nm; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_path_orig_target_nm+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 case $orig_target_nm in
11945 [\\/]* | ?:[\\/]*)
11946 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11960 done
11961 done
11962 IFS=$as_save_IFS
11965 esac
11967 orig_target_nm=$ac_cv_path_orig_target_nm
11968 if test -n "$orig_target_nm"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11970 $as_echo "$orig_target_nm" >&6; }
11971 else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11977 else
11978 if test "$GCC" = "yes"; then
11979 aros_gcc_nm=`$CC -print-prog-name=nm`
11980 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11981 set dummy `basename $aros_gcc_nm`; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if ${ac_cv_path_orig_target_nm+:} false; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 case $orig_target_nm in
11988 [\\/]* | ?:[\\/]*)
11989 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in `dirname $aros_gcc_nm`
11995 IFS=$as_save_IFS
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11999 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 break 2
12003 done
12004 done
12005 IFS=$as_save_IFS
12008 esac
12010 orig_target_nm=$ac_cv_path_orig_target_nm
12011 if test -n "$orig_target_nm"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12013 $as_echo "$orig_target_nm" >&6; }
12014 else
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12021 if test "$orig_target_nm" = ""; then
12022 # Extract the first word of "nm", so it can be a program name with args.
12023 set dummy nm; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if ${ac_cv_path_orig_target_nm+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 case $orig_target_nm in
12030 [\\/]* | ?:[\\/]*)
12031 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12041 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12045 done
12046 done
12047 IFS=$as_save_IFS
12050 esac
12052 orig_target_nm=$ac_cv_path_orig_target_nm
12053 if test -n "$orig_target_nm"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12055 $as_echo "$orig_target_nm" >&6; }
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12064 else
12065 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12066 set dummy ${aros_tool_prefix}nm; ac_word=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if ${ac_cv_path_orig_target_nm+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 case $orig_target_nm in
12073 [\\/]* | ?:[\\/]*)
12074 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in $PATH
12080 IFS=$as_save_IFS
12081 test -z "$as_dir" && as_dir=.
12082 for ac_exec_ext in '' $ac_executable_extensions; do
12083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12084 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 break 2
12088 done
12089 done
12090 IFS=$as_save_IFS
12093 esac
12095 orig_target_nm=$ac_cv_path_orig_target_nm
12096 if test -n "$orig_target_nm"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12098 $as_echo "$orig_target_nm" >&6; }
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12107 if test "$orig_target_nm" = ""; then
12108 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12111 if test "${aros_tool_prefix}strip" = ""; then
12112 if test "$cross_compiling" = "yes" ; then
12113 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12114 set dummy ${target_tool_prefix}strip; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if ${ac_cv_path_orig_target_strip+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 case $orig_target_strip in
12121 [\\/]* | ?:[\\/]*)
12122 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12128 IFS=$as_save_IFS
12129 test -z "$as_dir" && as_dir=.
12130 for ac_exec_ext in '' $ac_executable_extensions; do
12131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12132 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12134 break 2
12136 done
12137 done
12138 IFS=$as_save_IFS
12141 esac
12143 orig_target_strip=$ac_cv_path_orig_target_strip
12144 if test -n "$orig_target_strip"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12146 $as_echo "$orig_target_strip" >&6; }
12147 else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12153 else
12154 if test "$GCC" = "yes"; then
12155 aros_gcc_strip=`$CC -print-prog-name=strip`
12156 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12157 set dummy `basename $aros_gcc_strip`; ac_word=$2
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159 $as_echo_n "checking for $ac_word... " >&6; }
12160 if ${ac_cv_path_orig_target_strip+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 case $orig_target_strip in
12164 [\\/]* | ?:[\\/]*)
12165 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in `dirname $aros_gcc_strip`
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12175 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177 break 2
12179 done
12180 done
12181 IFS=$as_save_IFS
12184 esac
12186 orig_target_strip=$ac_cv_path_orig_target_strip
12187 if test -n "$orig_target_strip"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12189 $as_echo "$orig_target_strip" >&6; }
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12197 if test "$orig_target_strip" = ""; then
12198 # Extract the first word of "strip", so it can be a program name with args.
12199 set dummy strip; ac_word=$2
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201 $as_echo_n "checking for $ac_word... " >&6; }
12202 if ${ac_cv_path_orig_target_strip+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 case $orig_target_strip in
12206 [\\/]* | ?:[\\/]*)
12207 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12213 IFS=$as_save_IFS
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12217 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219 break 2
12221 done
12222 done
12223 IFS=$as_save_IFS
12226 esac
12228 orig_target_strip=$ac_cv_path_orig_target_strip
12229 if test -n "$orig_target_strip"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12231 $as_echo "$orig_target_strip" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12240 else
12241 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12242 set dummy ${aros_tool_prefix}strip; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_path_orig_target_strip+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 case $orig_target_strip in
12249 [\\/]* | ?:[\\/]*)
12250 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12256 IFS=$as_save_IFS
12257 test -z "$as_dir" && as_dir=.
12258 for ac_exec_ext in '' $ac_executable_extensions; do
12259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 break 2
12264 done
12265 done
12266 IFS=$as_save_IFS
12269 esac
12271 orig_target_strip=$ac_cv_path_orig_target_strip
12272 if test -n "$orig_target_strip"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12274 $as_echo "$orig_target_strip" >&6; }
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12283 if test "$orig_target_strip" = ""; then
12284 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12287 if test "${aros_tool_prefix}objcopy" = ""; then
12288 if test "$cross_compiling" = "yes" ; then
12289 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12290 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 case $orig_target_objcopy in
12297 [\\/]* | ?:[\\/]*)
12298 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12308 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 break 2
12312 done
12313 done
12314 IFS=$as_save_IFS
12317 esac
12319 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12320 if test -n "$orig_target_objcopy"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12322 $as_echo "$orig_target_objcopy" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12329 else
12330 if test "$GCC" = "yes"; then
12331 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12332 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12333 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 case $orig_target_objcopy in
12340 [\\/]* | ?:[\\/]*)
12341 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in `dirname $aros_gcc_objcopy`
12347 IFS=$as_save_IFS
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12351 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 break 2
12355 done
12356 done
12357 IFS=$as_save_IFS
12360 esac
12362 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12363 if test -n "$orig_target_objcopy"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12365 $as_echo "$orig_target_objcopy" >&6; }
12366 else
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12373 if test "$orig_target_objcopy" = ""; then
12374 # Extract the first word of "objcopy", so it can be a program name with args.
12375 set dummy objcopy; ac_word=$2
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377 $as_echo_n "checking for $ac_word... " >&6; }
12378 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 case $orig_target_objcopy in
12382 [\\/]* | ?:[\\/]*)
12383 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12389 IFS=$as_save_IFS
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12393 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395 break 2
12397 done
12398 done
12399 IFS=$as_save_IFS
12402 esac
12404 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12405 if test -n "$orig_target_objcopy"; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12407 $as_echo "$orig_target_objcopy" >&6; }
12408 else
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 $as_echo "no" >&6; }
12416 else
12417 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12418 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420 $as_echo_n "checking for $ac_word... " >&6; }
12421 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 case $orig_target_objcopy in
12425 [\\/]* | ?:[\\/]*)
12426 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12432 IFS=$as_save_IFS
12433 test -z "$as_dir" && as_dir=.
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12436 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 break 2
12440 done
12441 done
12442 IFS=$as_save_IFS
12445 esac
12447 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12448 if test -n "$orig_target_objcopy"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12450 $as_echo "$orig_target_objcopy" >&6; }
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12459 if test "$orig_target_objcopy" = ""; then
12460 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12463 if test "${aros_tool_prefix}objdump" = ""; then
12464 if test "$cross_compiling" = "yes" ; then
12465 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12466 set dummy ${target_tool_prefix}objdump; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if ${ac_cv_path_orig_target_objdump+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 case $orig_target_objdump in
12473 [\\/]* | ?:[\\/]*)
12474 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12480 IFS=$as_save_IFS
12481 test -z "$as_dir" && as_dir=.
12482 for ac_exec_ext in '' $ac_executable_extensions; do
12483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12484 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 break 2
12488 done
12489 done
12490 IFS=$as_save_IFS
12493 esac
12495 orig_target_objdump=$ac_cv_path_orig_target_objdump
12496 if test -n "$orig_target_objdump"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12498 $as_echo "$orig_target_objdump" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12505 else
12506 if test "$GCC" = "yes"; then
12507 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12508 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12509 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if ${ac_cv_path_orig_target_objdump+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 case $orig_target_objdump in
12516 [\\/]* | ?:[\\/]*)
12517 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in `dirname $aros_gcc_objdump`
12523 IFS=$as_save_IFS
12524 test -z "$as_dir" && as_dir=.
12525 for ac_exec_ext in '' $ac_executable_extensions; do
12526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12527 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12529 break 2
12531 done
12532 done
12533 IFS=$as_save_IFS
12536 esac
12538 orig_target_objdump=$ac_cv_path_orig_target_objdump
12539 if test -n "$orig_target_objdump"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12541 $as_echo "$orig_target_objdump" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12549 if test "$orig_target_objdump" = ""; then
12550 # Extract the first word of "objdump", so it can be a program name with args.
12551 set dummy objdump; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if ${ac_cv_path_orig_target_objdump+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 case $orig_target_objdump in
12558 [\\/]* | ?:[\\/]*)
12559 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12573 done
12574 done
12575 IFS=$as_save_IFS
12578 esac
12580 orig_target_objdump=$ac_cv_path_orig_target_objdump
12581 if test -n "$orig_target_objdump"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12583 $as_echo "$orig_target_objdump" >&6; }
12584 else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12592 else
12593 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12594 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596 $as_echo_n "checking for $ac_word... " >&6; }
12597 if ${ac_cv_path_orig_target_objdump+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 case $orig_target_objdump in
12601 [\\/]* | ?:[\\/]*)
12602 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $PATH
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12612 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 break 2
12616 done
12617 done
12618 IFS=$as_save_IFS
12621 esac
12623 orig_target_objdump=$ac_cv_path_orig_target_objdump
12624 if test -n "$orig_target_objdump"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12626 $as_echo "$orig_target_objdump" >&6; }
12627 else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12635 if test "$orig_target_objdump" = ""; then
12636 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12640 if test "$kernel_tool_prefix" = "none" ; then
12641 # No kernel tools specified
12642 # Assume target tools == kernel tools with ELF wrapper
12643 aros_kernel_cc=$orig_target_cc
12644 aros_kernel_cxx=$orig_target_cxx
12645 aros_kernel_cpp=$orig_target_cpp
12646 aros_kernel_ld=$orig_target_ld
12647 aros_kernel_as=$orig_target_as
12648 aros_kernel_ar=$orig_target_ar
12649 aros_kernel_ranlib=$orig_target_ranlib
12650 aros_kernel_nm=$orig_target_nm
12651 aros_kernel_strip=$orig_target_strip
12652 aros_kernel_objcopy=$orig_target_objcopy
12653 aros_kernel_objdump=$orig_target_objdump
12654 use_kernel_cc_wrapper=yes
12657 # At this point, all aros_kernel_* and aros_target_*
12658 # tools should be set up correctly
12660 CC="$aros_kernel_cc $kernel_tool_flags"
12661 CPP="$aros_kernel_cpp"
12663 #-----------------------------------------------------------------------------
12665 # Disable pointer-signedness warnings if the compiler recognises the option
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12668 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12669 save_cflags="$CFLAGS"
12670 if test "$crosstools" != "yes" ; then
12671 CFLAGS="$CFLAGS -Wno-pointer-sign"
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12676 main ()
12680 return 0;
12682 _ACEOF
12683 if ac_fn_c_try_compile "$LINENO"; then :
12684 use_no_sign_warning="yes"
12685 else
12686 use_no_sign_warning="no"
12688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12689 else
12690 # we do know it is supported for the smallest version of gcc we are going to build
12691 # we assume it's also supported by later versions
12692 use_no_sign_warning=yes
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12695 $as_echo "$use_no_sign_warning" >&6; }
12696 if test "x-$use_no_sign_warning" = "x-yes" ; then
12697 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12699 CFLAGS="$save_cflags"
12701 #-----------------------------------------------------------------------------
12703 # Find all the tools we need to compile. This could be cross-compiling
12704 # though! If that is the case we use the GNU form of the target and
12705 # simply add this to the front of the binary name. This is rather simple,
12706 # but it should work under most circumstances.
12708 # The default tools are to use the same as the host, but only if the
12709 # host and target CPU are the same. With GCC this is normally enough.
12712 aros_cc_pre=""
12713 aros_shared_ld="$aros_host_ld"
12715 aros_target_mkdep="$aros_host_mkdep"
12717 # The default tools executables to be linked to.
12718 if test "$rescomp" != ""; then
12719 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12720 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722 $as_echo_n "checking for $ac_word... " >&6; }
12723 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 case $aros_kernel_rescomp in
12727 [\\/]* | ?:[\\/]*)
12728 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732 for as_dir in $PATH
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
12737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12738 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 break 2
12742 done
12743 done
12744 IFS=$as_save_IFS
12747 esac
12749 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12750 if test -n "$aros_kernel_rescomp"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12752 $as_echo "$aros_kernel_rescomp" >&6; }
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12759 if test "$aros_kernel_rescomp" = ""; then
12760 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12764 # Set up the sources for the symlink farm
12765 if test "$crosstools" = "yes"; then
12766 crosstools_target=tools-crosstools
12769 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12770 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12773 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12774 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12775 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12776 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12777 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12778 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12779 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12781 # aros_cc_pre is a variable that is added to the front of the compiler name
12782 # in the generated aros-gcc shell script. We need this to enable the cache
12783 # to work across cleaned builds. Also, support DISTCC using the correct
12784 # environment variable.
12787 if test "x${DISTCC}" != "x" ; then
12788 if test "x${CCACHE}" != "x" ; then
12789 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12790 else
12791 aros_cc_pre="${DISTCC} "
12793 else
12794 if test "x${CCACHE}" != "x" ; then
12795 aros_cc_pre="${CCACHE} "
12799 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12801 aros_target_nostdinc_cflags=-nostdinc
12803 aros_target_nostartup_ldflags=-nostartfiles
12805 aros_target_nix_ldflags=-nix
12807 aros_target_detach_ldflags=-detach
12809 aros_target_nostdlib_ldflags=-nostdlib
12812 # Target tools
12813 if test "$crosstools" != "yes"; then
12814 if test "$GCC" = "yes"; then
12815 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12817 else
12818 # We do not know which gcc version we are going to build and what we need to know
12819 # here is different for different versions so this will be set later during the
12820 # build of crosstools.
12821 aros_target_cc_path=@aros_target_cc_path@
12823 aros_target_cpp="${prefix}cpp"
12824 aros_target_cc="${prefix}gcc"
12825 aros_target_cxx="${prefix}g++"
12826 aros_target_as="${prefix}as"
12827 aros_target_ld="${prefix}ld"
12828 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12829 aros_target_objcopy="${prefix}objcopy"
12830 aros_target_objdump="${prefix}objdump"
12831 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12832 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12833 aros_target_strip="${prefix}strip"
12834 aros_plain_nm="${prefix}nm"
12835 aros_plain_ar="${prefix}ar"
12837 # Check whether --enable-includes was given.
12838 if test "${enable_includes+set}" = set; then :
12839 enableval=$enable_includes; aros_target_incl=$enable_includes
12840 else
12841 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12845 if test "$aros_kernel_includes" = ""; then
12846 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12847 aros_kernel_includes="-isystem $aros_target_incl"
12851 if test "$aros_kernel_includes" != "" ; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12853 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12854 if test "$aros_kernel_cc_includes" = "" ; then
12855 # Try to guess where the directory is.
12856 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12857 if test -d $aros_kernel_cc_includes; then
12858 # Check if there is also an include-fixed directory and add it
12859 # to kernel compiler's include path as it may contain some of
12860 # the headers we need.
12861 if test -d "$aros_kernel_cc_includes"-fixed; then
12862 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12864 # Check for specific includes directory. Neede for Ubuntu 11.10
12865 if test -d "/usr/include/i386-linux-gnu"; then
12866 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12868 else
12869 # The directory doesn't exist, we need to do some more work.
12870 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12872 # These are the headers we're looking for.
12873 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12874 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12875 zutil.h stdint.h"
12877 dirs=
12878 for h in $headers; do
12879 # Which other headers are needed by each of the above?
12880 deps=$(echo "#include <$h>" | \
12881 $aros_kernel_cc -E -M - 2>/dev/null | \
12882 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12884 # Copy all the needed headers to a directory beneath gendir.
12885 for d in $deps; do
12886 h=$(basename $d)
12887 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12888 sed -n "s,^.*/include\(/.*\),\1,p")
12889 ! test -d $dir && mkdir -p $dir
12890 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12891 done
12892 done
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12896 $as_echo "$aros_kernel_cc_includes" >&6; }
12897 # Adding -nostdinc to kernel includes as they are always used together.
12898 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12901 if test "$crosstools" != "yes"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12903 $as_echo_n "checking for the target compiler's include path... " >&6; }
12904 if test "$aros_target_cc_includes" = "" ; then
12905 #try to guess where the directory is
12906 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12907 if ! test -d $aros_target_cc_includes; then
12908 #the directory doesn't exist, we need to do some more work
12909 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12911 #these are the headers we're looking for
12912 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12913 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12914 zutil.h"
12916 dirs=
12917 for h in $headers; do
12918 #which other headers each of the above headers needs?
12919 deps=$(echo "#include <$h>" | \
12920 $orig_target_cc -E -M - 2>/dev/null | \
12921 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12923 #copy all the needed headers to a directory beneath gendir
12924 for d in $deps; do
12925 h=$(basename $d)
12926 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12927 sed -n "s,^.*/include\(/.*\),\1,p")
12928 ! test -d $dir && mkdir -p $dir
12929 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12930 done
12931 done
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12935 $as_echo "$aros_target_cc_includes" >&6; }
12936 else
12937 # We do not know which gcc version we are going to build and what we need to know
12938 # here is different for different versions so this will be set later during the
12939 # build of crosstools.
12940 aros_target_cc_includes=@aros_target_cc_includes@
12944 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12945 # On GCC >= 4.0 -iquote should be used
12948 save_cc="$CC"
12949 save_cflags="$CFLAGS"
12950 CFLAGS="-iquote."
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12952 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12953 if test "x-$crosstools" != "x-yes"; then
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12958 main ()
12962 return 0;
12964 _ACEOF
12965 if ac_fn_c_try_compile "$LINENO"; then :
12966 has_iquote="yes"
12967 else
12968 has_iquote="no"
12970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12971 else
12972 # we do know it is supported for the smallest version of gcc we are going to build
12973 # we assume it's also supported by later versions
12974 has_iquote=yes
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12977 $as_echo "$has_iquote" >&6; }
12978 if test "x-$has_iquote" = "x-yes" ; then
12979 host_cflags_iquote=-iquote
12980 host_cflags_iquote_end=
12981 else
12982 host_cflags_iquote=-I
12983 host_cflags_iquote_end=-I-
12985 kernel_cflags_iquote=$host_cflags_iquote
12986 kernel_cflags_iquote_end=$host_cflags_iquote_end
12987 if test "x-$cross_compiling" = "x-yes"; then
12988 CC="$aros_kernel_cc"
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12990 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12991 if test "x-$crosstools" != "x-yes"; then
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12996 main ()
13000 return 0;
13002 _ACEOF
13003 if ac_fn_c_try_compile "$LINENO"; then :
13004 use_no_stack_protector="yes"
13005 else
13006 use_no_stack_protector="no"
13008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13009 else
13010 # we do know it is supported for the smallest version of gcc we are going to build
13011 # we assume it's also supported by later versions
13012 use_no_stack_protector=yes
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13015 $as_echo "$use_no_stack_protector" >&6; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13017 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13018 if test "x-$crosstools" != "x-yes"; then
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13023 main ()
13027 return 0;
13029 _ACEOF
13030 if ac_fn_c_try_compile "$LINENO"; then :
13031 has_iquote="yes"
13032 else
13033 has_iquote="no"
13035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036 else
13037 # we do know it is supported for the smallest version of gcc we are going to build
13038 # we assume it's also supported by later versions
13039 has_iquote=yes
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13042 $as_echo "$has_iquote" >&6; }
13043 if test "x-$has_iquote" = "x-yes" ; then
13044 kernel_cflags_iquote=-iquote
13045 kernel_cflags_iquote_end=
13046 else
13047 kernel_cflags_iquote=-I
13048 kernel_cflags_iquote_end=-I-
13051 aros_cflags_iquote=$kernel_cflags_iquote
13052 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13053 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13054 CC="$orig_target_cc"
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13056 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13057 if test "x-$crosstools" != "x-yes"; then
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13062 main ()
13066 return 0;
13068 _ACEOF
13069 if ac_fn_c_try_compile "$LINENO"; then :
13070 has_iquote="yes"
13071 else
13072 has_iquote="no"
13074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 else
13076 # we do know it is supported for the smallest version of gcc we are going to build
13077 # we assume it's also supported by later versions
13078 has_iquote=yes
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13081 $as_echo "$has_iquote" >&6; }
13082 if test "x-$has_iquote" = "x-yes" ; then
13083 aros_cflags_iquote=-iquote
13084 aros_cflags_iquote_end=
13085 else
13086 aros_cflags_iquote=-I
13087 aros_cflags_iquote_end=-I-
13090 if test "x-$use_no_stack_protector" = "x-yes" ; then
13091 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13095 #-----------------------------------------------------------------------------
13097 # Check if the target compiler supports some options used for delinting:
13098 # -Wunused-but-set-variable
13099 # -Warray-bounds
13100 # -Wenum-compare
13101 # -Wstrict-overflow
13102 # -Wformat-security
13104 if test "x-$crosstools" != "x-yes"; then
13105 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13106 CC="$orig_target_cc"
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13109 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13110 CFLAGS=-Wunused-but-set-variable
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13115 main ()
13119 return 0;
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 aros_unused_but_set_variable="yes"
13124 else
13125 aros_unused_but_set_variable="no"
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13129 $as_echo "$aros_unused_but_set_variable" >&6; }
13130 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13131 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13135 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13136 CFLAGS=-Warray-bounds
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13141 main ()
13145 return 0;
13147 _ACEOF
13148 if ac_fn_c_try_compile "$LINENO"; then :
13149 aros_array_bounds="yes"
13150 else
13151 aros_array_bounds="no"
13153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13155 $as_echo "$aros_array_bounds" >&6; }
13156 if test "x-$aros_array_bounds" = "x-yes" ; then
13157 aros_cflags_array_bounds=-Wno-array-bounds
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13161 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13162 CFLAGS=-Wenum-compare
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13167 main ()
13171 return 0;
13173 _ACEOF
13174 if ac_fn_c_try_compile "$LINENO"; then :
13175 aros_enum_compare="yes"
13176 else
13177 aros_enum_compare="no"
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13181 $as_echo "$aros_enum_compare" >&6; }
13182 if test "x-$aros_enum_compare" = "x-yes" ; then
13183 aros_cflags_enum_compare=-Wno-enum-compare
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13187 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13188 CFLAGS=-Wstrict-overflow
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13193 main ()
13197 return 0;
13199 _ACEOF
13200 if ac_fn_c_try_compile "$LINENO"; then :
13201 aros_strict_overflow="yes"
13202 else
13203 aros_strict_overflow="no"
13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13207 $as_echo "$aros_strict_overflow" >&6; }
13208 if test "x-$aros_strict_overflow" = "x-yes" ; then
13209 aros_cflags_strict_overflow=-Wno-strict-overflow
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13213 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13214 CFLAGS=-Wformat-security
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13219 main ()
13223 return 0;
13225 _ACEOF
13226 if ac_fn_c_try_compile "$LINENO"; then :
13227 aros_format_security="yes"
13228 else
13229 aros_format_security="no"
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13233 $as_echo "$aros_format_security" >&6; }
13234 if test "x-$aros_format_security" = "x-yes" ; then
13235 aros_cflags_format_security=-Wno-format-security
13237 else
13238 # We do not know which gcc version we are going to build and what we need to know
13239 # here is different for different versions so this will be set later during the
13240 # build of crosstools.
13241 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13242 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13243 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13244 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13245 aros_cflags_format_security=@aros_cflags_format_security@
13248 #-----------------------------------------------------------------------------
13250 # Check if we can explicitly choose older version of symbol hashing
13252 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13253 CC="$aros_kernel_cc"
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13255 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13260 main ()
13264 return 0;
13266 _ACEOF
13267 if ac_fn_c_try_link "$LINENO"; then :
13268 use_hash_style="yes"
13269 else
13270 use_hash_style="no"
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13275 $as_echo "$use_hash_style" >&6; }
13276 if test "x-$use_hash_style" = "x-yes" ; then
13277 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13279 CC="$save_cc"
13280 CFLAGS="$save_cflags"
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13291 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13293 # Check whether --with-resolution was given.
13294 if test "${with_resolution+set}" = set; then :
13295 withval=$with_resolution; resolution=$withval
13296 else
13297 resolution=none
13300 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13301 if test "$resolution" = "yes" ; then
13302 resolution="none"
13304 if test "$resolution" = "no" ; then
13305 resolution="none"
13307 if test "$resolution" != "none" ; then
13308 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13309 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13310 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13313 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13314 aros_cv_default_wbwidth=$aros_default_wbwidth
13315 aros_cv_default_wbheight=$aros_default_wbheight
13316 aros_cv_default_wbdepth=$aros_default_wbdepth
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13319 $as_echo_n "checking if serial debug is enabled... " >&6; }
13321 # Check whether --with-serial-debug was given.
13322 if test "${with_serial_debug+set}" = set; then :
13323 withval=$with_serial_debug; serial_debug=$withval
13324 else
13325 serial_debug=none
13328 if test "$aros_serial_debug" = 0 ; then
13329 serial_debug_forced=""
13330 if test "$serial_debug" = "yes" ; then
13331 serial_debug="1"
13333 if test "$serial_debug" = "no" ; then
13334 serial_debug="none"
13336 else
13337 serial_debug_forced="(forced)"
13338 serial_debug=$aros_serial_debug
13340 if test "$serial_debug" != "none" ; then
13341 aros_serial_debug=$serial_debug
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13343 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13350 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13351 # Check whether --enable-palm_debug_hack was given.
13352 if test "${enable_palm_debug_hack+set}" = set; then :
13353 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13354 else
13355 palm_debug_hack="no"
13358 if test "$palm_debug_hack" = "yes" ; then
13359 aros_palm_debug_hack="1"
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13362 $as_echo "$palm_debug_hack" >&6; }
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13365 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13366 # Check whether --enable-nesting_supervisor was given.
13367 if test "${enable_nesting_supervisor+set}" = set; then :
13368 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13369 else
13370 nesting_supervisor="no"
13373 if test "$nesting_supervisor" = "yes" ; then
13374 aros_nesting_supervisor="1"
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13377 $as_echo "$nesting_supervisor" >&6; }
13379 if test "$aros_enable_mmu" = "" ; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13381 $as_echo_n "checking if MMU support is enabled... " >&6; }
13382 # Check whether --enable-mmu was given.
13383 if test "${enable_mmu+set}" = set; then :
13384 enableval=$enable_mmu; aros_enable_mmu=$enableval
13385 else
13386 aros_enable_mmu="yes"
13389 if test "$aros_enable_mmu" = "" ; then
13390 aros_enable_mmu="yes"
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13393 $as_echo "$aros_enable_mmu" >&6; }
13395 if test "$aros_enable_mmu" = "no" ; then
13396 aros_enable_mmu="0"
13397 else
13398 aros_enable_mmu="1"
13402 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13404 if test "x-$need_dlopen" != "x-no" ; then
13405 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13406 if test "x$ac_cv_func_dlopen" = xyes; then :
13407 have_dl="yes"
13408 else
13409 have_dl="no"
13412 if test "x-$have_dl" = "x-no" ; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13414 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13415 if ${ac_cv_lib_dl_dlopen+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 ac_check_lib_save_LIBS=$LIBS
13419 LIBS="-ldl $LIBS"
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13423 /* Override any GCC internal prototype to avoid an error.
13424 Use char because int might match the return type of a GCC
13425 builtin and then its argument prototype would still apply. */
13426 #ifdef __cplusplus
13427 extern "C"
13428 #endif
13429 char dlopen ();
13431 main ()
13433 return dlopen ();
13435 return 0;
13437 _ACEOF
13438 if ac_fn_c_try_link "$LINENO"; then :
13439 ac_cv_lib_dl_dlopen=yes
13440 else
13441 ac_cv_lib_dl_dlopen=no
13443 rm -f core conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 LIBS=$ac_check_lib_save_LIBS
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13448 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13449 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13450 have_dl="yes"
13451 aros_host_ldflags="$aros_host_ldflags -ldl"
13452 else
13453 have_dl="no"
13457 if test "x-$have_dl" = "x-no" ; then
13458 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13463 # Check whether --enable-x11_hidd was given.
13464 if test "${enable_x11_hidd+set}" = set; then :
13465 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13466 else
13467 x11_hidd="$need_x11"
13470 case "x-$x11_hidd" in
13471 x-yes|x-no|x-auto) ;;
13472 *) x11_hidd="$need_x11" ;;
13473 esac
13475 ENABLE_X11=0
13477 if test "x-$x11_hidd" != "x-no" ; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13480 $as_echo_n "checking for X... " >&6; }
13483 # Check whether --with-x was given.
13484 if test "${with_x+set}" = set; then :
13485 withval=$with_x;
13488 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13489 if test "x$with_x" = xno; then
13490 # The user explicitly disabled X.
13491 have_x=disabled
13492 else
13493 case $x_includes,$x_libraries in #(
13494 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13495 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 # One or both of the vars are not set, and there is no cached value.
13499 ac_x_includes=no ac_x_libraries=no
13500 rm -f -r conftest.dir
13501 if mkdir conftest.dir; then
13502 cd conftest.dir
13503 cat >Imakefile <<'_ACEOF'
13504 incroot:
13505 @echo incroot='${INCROOT}'
13506 usrlibdir:
13507 @echo usrlibdir='${USRLIBDIR}'
13508 libdir:
13509 @echo libdir='${LIBDIR}'
13510 _ACEOF
13511 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13512 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13513 for ac_var in incroot usrlibdir libdir; do
13514 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13515 done
13516 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13517 for ac_extension in a so sl dylib la dll; do
13518 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13519 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13520 ac_im_usrlibdir=$ac_im_libdir; break
13522 done
13523 # Screen out bogus values from the imake configuration. They are
13524 # bogus both because they are the default anyway, and because
13525 # using them would break gcc on systems where it needs fixed includes.
13526 case $ac_im_incroot in
13527 /usr/include) ac_x_includes= ;;
13528 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13529 esac
13530 case $ac_im_usrlibdir in
13531 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13532 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13533 esac
13535 cd ..
13536 rm -f -r conftest.dir
13539 # Standard set of common directories for X headers.
13540 # Check X11 before X11Rn because it is often a symlink to the current release.
13541 ac_x_header_dirs='
13542 /usr/X11/include
13543 /usr/X11R7/include
13544 /usr/X11R6/include
13545 /usr/X11R5/include
13546 /usr/X11R4/include
13548 /usr/include/X11
13549 /usr/include/X11R7
13550 /usr/include/X11R6
13551 /usr/include/X11R5
13552 /usr/include/X11R4
13554 /usr/local/X11/include
13555 /usr/local/X11R7/include
13556 /usr/local/X11R6/include
13557 /usr/local/X11R5/include
13558 /usr/local/X11R4/include
13560 /usr/local/include/X11
13561 /usr/local/include/X11R7
13562 /usr/local/include/X11R6
13563 /usr/local/include/X11R5
13564 /usr/local/include/X11R4
13566 /usr/X386/include
13567 /usr/x386/include
13568 /usr/XFree86/include/X11
13570 /usr/include
13571 /usr/local/include
13572 /usr/unsupported/include
13573 /usr/athena/include
13574 /usr/local/x11r5/include
13575 /usr/lpp/Xamples/include
13577 /usr/openwin/include
13578 /usr/openwin/share/include'
13580 if test "$ac_x_includes" = no; then
13581 # Guess where to find include files, by looking for Xlib.h.
13582 # First, try using that file with no special directory specified.
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 #include <X11/Xlib.h>
13586 _ACEOF
13587 if ac_fn_c_try_cpp "$LINENO"; then :
13588 # We can compile using X headers with no special include directory.
13589 ac_x_includes=
13590 else
13591 for ac_dir in $ac_x_header_dirs; do
13592 if test -r "$ac_dir/X11/Xlib.h"; then
13593 ac_x_includes=$ac_dir
13594 break
13596 done
13598 rm -f conftest.err conftest.i conftest.$ac_ext
13599 fi # $ac_x_includes = no
13601 if test "$ac_x_libraries" = no; then
13602 # Check for the libraries.
13603 # See if we find them without any special options.
13604 # Don't add to $LIBS permanently.
13605 ac_save_LIBS=$LIBS
13606 LIBS="-lX11 $LIBS"
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 #include <X11/Xlib.h>
13611 main ()
13613 XrmInitialize ()
13615 return 0;
13617 _ACEOF
13618 if ac_fn_c_try_link "$LINENO"; then :
13619 LIBS=$ac_save_LIBS
13620 # We can link X programs with no special library path.
13621 ac_x_libraries=
13622 else
13623 LIBS=$ac_save_LIBS
13624 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13626 # Don't even attempt the hair of trying to link an X program!
13627 for ac_extension in a so sl dylib la dll; do
13628 if test -r "$ac_dir/libX11.$ac_extension"; then
13629 ac_x_libraries=$ac_dir
13630 break 2
13632 done
13633 done
13635 rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13637 fi # $ac_x_libraries = no
13639 case $ac_x_includes,$ac_x_libraries in #(
13640 no,* | *,no | *\'*)
13641 # Didn't find X, or a directory has "'" in its name.
13642 ac_cv_have_x="have_x=no";; #(
13644 # Record where we found X for the cache.
13645 ac_cv_have_x="have_x=yes\
13646 ac_x_includes='$ac_x_includes'\
13647 ac_x_libraries='$ac_x_libraries'"
13648 esac
13650 ;; #(
13651 *) have_x=yes;;
13652 esac
13653 eval "$ac_cv_have_x"
13654 fi # $with_x != no
13656 if test "$have_x" != yes; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13658 $as_echo "$have_x" >&6; }
13659 no_x=yes
13660 else
13661 # If each of the values was on the command line, it overrides each guess.
13662 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13663 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13664 # Update the cache value to reflect the command line values.
13665 ac_cv_have_x="have_x=yes\
13666 ac_x_includes='$x_includes'\
13667 ac_x_libraries='$x_libraries'"
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13669 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13673 x_cflags=
13674 for path in $x_libraries
13676 x_cflags="$x_cflags -L$path"
13677 done
13679 for path in $x_includes
13681 x_cflags="$x_cflags -I$path"
13682 done
13684 if test "x-$no_x" = "x-yes" ; then
13686 if test "x-$x11_hidd" != "x-auto" ; then
13687 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13690 else
13691 x11_hidd_target=kernel-x11gfx-kobj
13692 ENABLE_X11=1
13694 # Check whether --enable-x11_shm was given.
13695 if test "${enable_x11_shm+set}" = set; then :
13696 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13697 else
13698 x11_hidd_shm="auto"
13701 case "x-$x11_hidd_shm" in
13702 x-yes|x-no|x-auto) ;;
13703 *) x11_hidd_shm="auto" ;;
13704 esac
13706 have_xshm=no
13708 if test "x-$x11_hidd_shm" != "x-no" ; then
13710 for ac_header in sys/ipc.h
13711 do :
13712 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13713 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13714 cat >>confdefs.h <<_ACEOF
13715 #define HAVE_SYS_IPC_H 1
13716 _ACEOF
13720 done
13722 for ac_header in sys/shm.h
13723 do :
13724 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13725 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13726 cat >>confdefs.h <<_ACEOF
13727 #define HAVE_SYS_SHM_H 1
13728 _ACEOF
13732 done
13735 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13737 save_cflags="$CFLAGS"
13738 CFLAGS="$CFLAGS $x_cflags"
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13740 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13741 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 ac_check_lib_save_LIBS=$LIBS
13745 LIBS="-lXext $LIBS"
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13749 /* Override any GCC internal prototype to avoid an error.
13750 Use char because int might match the return type of a GCC
13751 builtin and then its argument prototype would still apply. */
13752 #ifdef __cplusplus
13753 extern "C"
13754 #endif
13755 char XShmQueryExtension ();
13757 main ()
13759 return XShmQueryExtension ();
13761 return 0;
13763 _ACEOF
13764 if ac_fn_c_try_link "$LINENO"; then :
13765 ac_cv_lib_Xext_XShmQueryExtension=yes
13766 else
13767 ac_cv_lib_Xext_XShmQueryExtension=no
13769 rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_check_lib_save_LIBS
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13774 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13775 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13776 have_xshm=yes
13779 CFLAGS="$save_cflags"
13783 if test "x-$have_xshm" = "x-yes" ; then
13784 DO_XSHM_SUPPORT="1"
13785 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13786 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13787 else
13788 DO_XSHM_SUPPORT="0"
13792 # Check whether --enable-x11_vidmode was given.
13793 if test "${enable_x11_vidmode+set}" = set; then :
13794 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13795 else
13796 x11_hidd_vidmode="auto"
13799 case "x-$x11_hidd_vidmode" in
13800 x-yes|x-no|x-auto) ;;
13801 *) x11_hidd_vidmode="auto" ;;
13802 esac
13804 have_vidmode=no
13806 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13808 save_cflags="$CFLAGS"
13809 CFLAGS="$CFLAGS $x_cflags"
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13811 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13812 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 ac_check_lib_save_LIBS=$LIBS
13816 LIBS="-lXxf86vm $LIBS"
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13820 /* Override any GCC internal prototype to avoid an error.
13821 Use char because int might match the return type of a GCC
13822 builtin and then its argument prototype would still apply. */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 char XF86VidModeQueryExtension ();
13828 main ()
13830 return XF86VidModeQueryExtension ();
13832 return 0;
13834 _ACEOF
13835 if ac_fn_c_try_link "$LINENO"; then :
13836 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13837 else
13838 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13840 rm -f core conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
13842 LIBS=$ac_check_lib_save_LIBS
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13845 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13846 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13847 have_vidmode=yes
13850 CFLAGS="$save_cflags"
13853 if test "x-$have_vidmode" = "x-yes" ; then
13854 DO_VIDMODE_SUPPORT="1"
13855 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13856 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13857 else
13858 DO_VIDMODE_SUPPORT="0"
13862 aros_host_x11_includes=$x_includes
13863 aros_host_x11_libdirs=$x_libraries
13867 # Check whether --enable-sdl_hidd was given.
13868 if test "${enable_sdl_hidd+set}" = set; then :
13869 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13870 else
13871 sdl_hidd="auto"
13874 case "x-$sdl_hidd" in
13875 x-yes|x-no|x-auto) ;;
13876 *) sdl_hidd="auto" ;;
13877 esac
13879 if test "x-$sdl_hidd" != "x-no" ; then
13882 # Check whether --with-sdl-prefix was given.
13883 if test "${with_sdl_prefix+set}" = set; then :
13884 withval=$with_sdl_prefix; sdl_prefix="$withval"
13885 else
13886 sdl_prefix=""
13890 # Check whether --with-sdl-exec-prefix was given.
13891 if test "${with_sdl_exec_prefix+set}" = set; then :
13892 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13893 else
13894 sdl_exec_prefix=""
13897 # Check whether --enable-sdltest was given.
13898 if test "${enable_sdltest+set}" = set; then :
13899 enableval=$enable_sdltest;
13900 else
13901 enable_sdltest=yes
13905 if test x$sdl_exec_prefix != x ; then
13906 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13907 if test x${SDL_CONFIG+set} != xset ; then
13908 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13911 if test x$sdl_prefix != x ; then
13912 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13913 if test x${SDL_CONFIG+set} != xset ; then
13914 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13918 as_save_PATH="$PATH"
13919 if test "x$prefix" != xNONE; then
13920 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13922 # Extract the first word of "sdl-config", so it can be a program name with args.
13923 set dummy sdl-config; ac_word=$2
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925 $as_echo_n "checking for $ac_word... " >&6; }
13926 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 case $SDL_CONFIG in
13930 [\\/]* | ?:[\\/]*)
13931 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13937 IFS=$as_save_IFS
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
13940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13941 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943 break 2
13945 done
13946 done
13947 IFS=$as_save_IFS
13949 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13951 esac
13953 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13954 if test -n "$SDL_CONFIG"; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13956 $as_echo "$SDL_CONFIG" >&6; }
13957 else
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13963 PATH="$as_save_PATH"
13964 min_sdl_version=1.2.10
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13966 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13967 no_sdl=""
13968 if test "$SDL_CONFIG" = "no" ; then
13969 no_sdl=yes
13970 else
13971 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13972 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13974 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13975 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13976 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13977 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13978 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13980 if test "x$enable_sdltest" = "xyes" ; then
13981 ac_save_CFLAGS="$CFLAGS"
13982 ac_save_CXXFLAGS="$CXXFLAGS"
13983 ac_save_LIBS="$LIBS"
13984 CFLAGS="$CFLAGS $SDL_CFLAGS"
13985 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13986 LIBS="$LIBS $SDL_LIBS"
13987 rm -f conf.sdltest
13988 if test "$cross_compiling" = yes; then :
13989 echo $ac_n "cross compiling; assumed OK... $ac_c"
13990 else
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13994 #include <stdio.h>
13995 #include <stdlib.h>
13996 #include <string.h>
13997 #include "SDL.h"
13999 char*
14000 my_strdup (char *str)
14002 char *new_str;
14004 if (str)
14006 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14007 strcpy (new_str, str);
14009 else
14010 new_str = NULL;
14012 return new_str;
14015 int main (int argc, char *argv[])
14017 int major, minor, micro;
14018 char *tmp_version;
14020 /* This hangs on some systems (?)
14021 system ("touch conf.sdltest");
14023 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14025 /* HP/UX 9 (%@#!) writes to sscanf strings */
14026 tmp_version = my_strdup("$min_sdl_version");
14027 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14028 printf("%s, bad version string\n", "$min_sdl_version");
14029 exit(1);
14032 if (($sdl_major_version > major) ||
14033 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14034 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14036 return 0;
14038 else
14040 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14041 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14042 printf("*** best to upgrade to the required version.\n");
14043 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14044 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14045 printf("*** config.cache before re-running configure\n");
14046 return 1;
14051 _ACEOF
14052 if ac_fn_c_try_run "$LINENO"; then :
14054 else
14055 no_sdl=yes
14057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14058 conftest.$ac_objext conftest.beam conftest.$ac_ext
14061 CFLAGS="$ac_save_CFLAGS"
14062 CXXFLAGS="$ac_save_CXXFLAGS"
14063 LIBS="$ac_save_LIBS"
14066 if test "x$no_sdl" = x ; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14068 $as_echo "yes" >&6; }
14069 have_sdl="yes"
14070 else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14073 if test "$SDL_CONFIG" = "no" ; then
14074 echo "*** The sdl-config script installed by SDL could not be found"
14075 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14076 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14077 echo "*** full path to sdl-config."
14078 else
14079 if test -f conf.sdltest ; then
14081 else
14082 echo "*** Could not run SDL test program, checking why..."
14083 CFLAGS="$CFLAGS $SDL_CFLAGS"
14084 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14085 LIBS="$LIBS $SDL_LIBS"
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14089 #include <stdio.h>
14090 #include "SDL.h"
14092 int main(int argc, char *argv[])
14093 { return 0; }
14094 #undef main
14095 #define main K_and_R_C_main
14098 main ()
14100 return 0;
14102 return 0;
14104 _ACEOF
14105 if ac_fn_c_try_link "$LINENO"; then :
14106 echo "*** The test program compiled, but did not run. This usually means"
14107 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14108 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14109 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14110 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14111 echo "*** is required on your system"
14112 echo "***"
14113 echo "*** If you have an old version installed, it is best to remove it, although"
14114 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14115 else
14116 echo "*** The test program failed to compile or link. See the file config.log for the"
14117 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14118 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14119 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14121 rm -f core conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14123 CFLAGS="$ac_save_CFLAGS"
14124 CXXFLAGS="$ac_save_CXXFLAGS"
14125 LIBS="$ac_save_LIBS"
14128 SDL_CFLAGS=""
14129 SDL_LIBS=""
14130 have_sdl="no"
14134 rm -f conf.sdltest
14137 if test "x-$have_sdl" != "x-yes" ; then
14139 if test "x-$sdl_hidd" != "x-auto" ; then
14140 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14143 else
14144 sdl_hidd_target=kernel-hidd-sdl
14145 aros_host_sdl_cflags=SDL_CFLAGS
14146 aros_host_sdl_libs=SDL_LIBS
14150 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14151 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14156 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14157 oss_library_target=workbench-libs-oss-unix
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14163 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14164 # Check whether --enable-dbus was given.
14165 if test "${enable_dbus+set}" = set; then :
14166 enableval=$enable_dbus; dbus="yes"
14167 else
14168 dbus="no"
14171 if test "$dbus" = "yes" ; then
14172 ENABLE_DBUS=1
14173 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14174 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14175 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14176 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14177 else
14178 ENABLE_DBUS=0
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14181 $as_echo "$dbus" >&6; }
14183 if test "$use_kernel_cc_wrapper" = "yes" ; then
14184 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14187 if test "${crosstools}" != "yes" ; then
14188 aros_target_toolchain=no
14189 else
14190 aros_target_toolchain=yes
14194 # Generic
14206 # Compatability with other Amiga-like operation systems
14209 # Host related
14237 # Target Related
14301 # Delinting target compiler flags
14308 # Graphics Related
14325 # Native version related
14328 # Palm native version related
14331 # Unix/Hosted version related
14334 # MMU related
14337 # Apple iOS related
14342 # ARM default GCC target related
14347 # Android related
14351 # DBUS related
14358 #X11 related
14361 # Debug related
14367 # Collect-aros stuff: "-ius" to ignore undefined symbols
14370 # C compiler related
14373 case "$aros_flavour" in
14374 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14375 aros_flavour="emulation" ;;
14376 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14377 aros_flavour="emulation" ;;
14378 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14379 aros_flavour="standalone";;
14380 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14381 aros_flavour="standalone";;
14382 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14383 aros_flavour="native" ;;
14384 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14385 aros_flavour="native" ;;
14386 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14387 aros_flavour="linklib" ;;
14388 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14389 aros_flavour="palmnative" ;;
14390 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14391 aros_flavour="mac68knative" ;;
14392 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14393 aros_flavour="ppcnative" ;;
14394 esac
14396 if test ! -d ${aros_inc_dir} ; then
14397 ${MKDIR} ${aros_inc_dir}
14399 if test ! -d ${aros_geninc_dir} ; then
14400 ${MKDIR} ${aros_geninc_dir}
14402 if test ! -d ${aros_hostcfg_dir} ; then
14403 ${MKDIR} ${aros_hostcfg_dir}
14405 if test ! -d ${aros_targetcfg_dir} ; then
14406 ${MKDIR} ${aros_targetcfg_dir}
14408 if test ! -d ${aros_tools_dir} ; then
14409 ${MKDIR} ${aros_tools_dir}
14411 if test ! -d ${aros_scripts_dir} ; then
14412 ${MKDIR} ${aros_scripts_dir}
14415 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14418 ac_config_commands="$ac_config_commands compiler_executable"
14420 ac_config_commands="$ac_config_commands genmf_executable"
14423 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"
14426 cat >confcache <<\_ACEOF
14427 # This file is a shell script that caches the results of configure
14428 # tests run on this system so they can be shared between configure
14429 # scripts and configure runs, see configure's option --config-cache.
14430 # It is not useful on other systems. If it contains results you don't
14431 # want to keep, you may remove or edit it.
14433 # config.status only pays attention to the cache file if you give it
14434 # the --recheck option to rerun configure.
14436 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14438 # following values.
14440 _ACEOF
14442 # The following way of writing the cache mishandles newlines in values,
14443 # but we know of no workaround that is simple, portable, and efficient.
14444 # So, we kill variables containing newlines.
14445 # Ultrix sh set writes to stderr and can't be redirected directly,
14446 # and sets the high bit in the cache file unless we assign to the vars.
14448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14449 eval ac_val=\$$ac_var
14450 case $ac_val in #(
14451 *${as_nl}*)
14452 case $ac_var in #(
14453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14455 esac
14456 case $ac_var in #(
14457 _ | IFS | as_nl) ;; #(
14458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14459 *) { eval $ac_var=; unset $ac_var;} ;;
14460 esac ;;
14461 esac
14462 done
14464 (set) 2>&1 |
14465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14466 *${as_nl}ac_space=\ *)
14467 # `set' does not quote correctly, so add quotes: double-quote
14468 # substitution turns \\\\ into \\, and sed turns \\ into \.
14469 sed -n \
14470 "s/'/'\\\\''/g;
14471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14472 ;; #(
14474 # `set' quotes correctly as required by POSIX, so do not add quotes.
14475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14477 esac |
14478 sort
14480 sed '
14481 /^ac_cv_env_/b end
14482 t clear
14483 :clear
14484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14485 t end
14486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14487 :end' >>confcache
14488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14489 if test -w "$cache_file"; then
14490 if test "x$cache_file" != "x/dev/null"; then
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14492 $as_echo "$as_me: updating cache $cache_file" >&6;}
14493 if test ! -f "$cache_file" || test -h "$cache_file"; then
14494 cat confcache >"$cache_file"
14495 else
14496 case $cache_file in #(
14497 */* | ?:*)
14498 mv -f confcache "$cache_file"$$ &&
14499 mv -f "$cache_file"$$ "$cache_file" ;; #(
14501 mv -f confcache "$cache_file" ;;
14502 esac
14505 else
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14507 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14510 rm -f confcache
14512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14513 # Let make expand exec_prefix.
14514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14516 DEFS=-DHAVE_CONFIG_H
14518 ac_libobjs=
14519 ac_ltlibobjs=
14521 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14522 # 1. Remove the extension, and $U if already installed.
14523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14524 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14526 # will be set to the directory where LIBOBJS objects are built.
14527 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14528 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14529 done
14530 LIBOBJS=$ac_libobjs
14532 LTLIBOBJS=$ac_ltlibobjs
14536 : "${CONFIG_STATUS=./config.status}"
14537 ac_write_fail=0
14538 ac_clean_files_save=$ac_clean_files
14539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14541 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14542 as_write_fail=0
14543 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14544 #! $SHELL
14545 # Generated by $as_me.
14546 # Run this file to recreate the current configuration.
14547 # Compiler output produced by configure, useful for debugging
14548 # configure, is in config.log if it exists.
14550 debug=false
14551 ac_cs_recheck=false
14552 ac_cs_silent=false
14554 SHELL=\${CONFIG_SHELL-$SHELL}
14555 export SHELL
14556 _ASEOF
14557 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14558 ## -------------------- ##
14559 ## M4sh Initialization. ##
14560 ## -------------------- ##
14562 # Be more Bourne compatible
14563 DUALCASE=1; export DUALCASE # for MKS sh
14564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14565 emulate sh
14566 NULLCMD=:
14567 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14568 # is contrary to our usage. Disable this feature.
14569 alias -g '${1+"$@"}'='"$@"'
14570 setopt NO_GLOB_SUBST
14571 else
14572 case `(set -o) 2>/dev/null` in #(
14573 *posix*) :
14574 set -o posix ;; #(
14575 *) :
14577 esac
14581 as_nl='
14583 export as_nl
14584 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14585 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14586 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14587 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14588 # Prefer a ksh shell builtin over an external printf program on Solaris,
14589 # but without wasting forks for bash or zsh.
14590 if test -z "$BASH_VERSION$ZSH_VERSION" \
14591 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14592 as_echo='print -r --'
14593 as_echo_n='print -rn --'
14594 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14595 as_echo='printf %s\n'
14596 as_echo_n='printf %s'
14597 else
14598 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14599 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14600 as_echo_n='/usr/ucb/echo -n'
14601 else
14602 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14603 as_echo_n_body='eval
14604 arg=$1;
14605 case $arg in #(
14606 *"$as_nl"*)
14607 expr "X$arg" : "X\\(.*\\)$as_nl";
14608 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14609 esac;
14610 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14612 export as_echo_n_body
14613 as_echo_n='sh -c $as_echo_n_body as_echo'
14615 export as_echo_body
14616 as_echo='sh -c $as_echo_body as_echo'
14619 # The user is always right.
14620 if test "${PATH_SEPARATOR+set}" != set; then
14621 PATH_SEPARATOR=:
14622 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14623 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14624 PATH_SEPARATOR=';'
14629 # IFS
14630 # We need space, tab and new line, in precisely that order. Quoting is
14631 # there to prevent editors from complaining about space-tab.
14632 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14633 # splitting by setting IFS to empty value.)
14634 IFS=" "" $as_nl"
14636 # Find who we are. Look in the path if we contain no directory separator.
14637 as_myself=
14638 case $0 in #((
14639 *[\\/]* ) as_myself=$0 ;;
14640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14643 IFS=$as_save_IFS
14644 test -z "$as_dir" && as_dir=.
14645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14646 done
14647 IFS=$as_save_IFS
14650 esac
14651 # We did not find ourselves, most probably we were run as `sh COMMAND'
14652 # in which case we are not to be found in the path.
14653 if test "x$as_myself" = x; then
14654 as_myself=$0
14656 if test ! -f "$as_myself"; then
14657 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14658 exit 1
14661 # Unset variables that we do not need and which cause bugs (e.g. in
14662 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14663 # suppresses any "Segmentation fault" message there. '((' could
14664 # trigger a bug in pdksh 5.2.14.
14665 for as_var in BASH_ENV ENV MAIL MAILPATH
14666 do eval test x\${$as_var+set} = xset \
14667 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14668 done
14669 PS1='$ '
14670 PS2='> '
14671 PS4='+ '
14673 # NLS nuisances.
14674 LC_ALL=C
14675 export LC_ALL
14676 LANGUAGE=C
14677 export LANGUAGE
14679 # CDPATH.
14680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14683 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14684 # ----------------------------------------
14685 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14686 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14687 # script with STATUS, using 1 if that was 0.
14688 as_fn_error ()
14690 as_status=$1; test $as_status -eq 0 && as_status=1
14691 if test "$4"; then
14692 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14693 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14695 $as_echo "$as_me: error: $2" >&2
14696 as_fn_exit $as_status
14697 } # as_fn_error
14700 # as_fn_set_status STATUS
14701 # -----------------------
14702 # Set $? to STATUS, without forking.
14703 as_fn_set_status ()
14705 return $1
14706 } # as_fn_set_status
14708 # as_fn_exit STATUS
14709 # -----------------
14710 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14711 as_fn_exit ()
14713 set +e
14714 as_fn_set_status $1
14715 exit $1
14716 } # as_fn_exit
14718 # as_fn_unset VAR
14719 # ---------------
14720 # Portably unset VAR.
14721 as_fn_unset ()
14723 { eval $1=; unset $1;}
14725 as_unset=as_fn_unset
14726 # as_fn_append VAR VALUE
14727 # ----------------------
14728 # Append the text in VALUE to the end of the definition contained in VAR. Take
14729 # advantage of any shell optimizations that allow amortized linear growth over
14730 # repeated appends, instead of the typical quadratic growth present in naive
14731 # implementations.
14732 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14733 eval 'as_fn_append ()
14735 eval $1+=\$2
14737 else
14738 as_fn_append ()
14740 eval $1=\$$1\$2
14742 fi # as_fn_append
14744 # as_fn_arith ARG...
14745 # ------------------
14746 # Perform arithmetic evaluation on the ARGs, and store the result in the
14747 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14748 # must be portable across $(()) and expr.
14749 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14750 eval 'as_fn_arith ()
14752 as_val=$(( $* ))
14754 else
14755 as_fn_arith ()
14757 as_val=`expr "$@" || test $? -eq 1`
14759 fi # as_fn_arith
14762 if expr a : '\(a\)' >/dev/null 2>&1 &&
14763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14764 as_expr=expr
14765 else
14766 as_expr=false
14769 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14770 as_basename=basename
14771 else
14772 as_basename=false
14775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14776 as_dirname=dirname
14777 else
14778 as_dirname=false
14781 as_me=`$as_basename -- "$0" ||
14782 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14783 X"$0" : 'X\(//\)$' \| \
14784 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14785 $as_echo X/"$0" |
14786 sed '/^.*\/\([^/][^/]*\)\/*$/{
14787 s//\1/
14790 /^X\/\(\/\/\)$/{
14791 s//\1/
14794 /^X\/\(\/\).*/{
14795 s//\1/
14798 s/.*/./; q'`
14800 # Avoid depending upon Character Ranges.
14801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14804 as_cr_digits='0123456789'
14805 as_cr_alnum=$as_cr_Letters$as_cr_digits
14807 ECHO_C= ECHO_N= ECHO_T=
14808 case `echo -n x` in #(((((
14809 -n*)
14810 case `echo 'xy\c'` in
14811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14812 xy) ECHO_C='\c';;
14813 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14814 ECHO_T=' ';;
14815 esac;;
14817 ECHO_N='-n';;
14818 esac
14820 rm -f conf$$ conf$$.exe conf$$.file
14821 if test -d conf$$.dir; then
14822 rm -f conf$$.dir/conf$$.file
14823 else
14824 rm -f conf$$.dir
14825 mkdir conf$$.dir 2>/dev/null
14827 if (echo >conf$$.file) 2>/dev/null; then
14828 if ln -s conf$$.file conf$$ 2>/dev/null; then
14829 as_ln_s='ln -s'
14830 # ... but there are two gotchas:
14831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14833 # In both cases, we have to default to `cp -p'.
14834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14835 as_ln_s='cp -p'
14836 elif ln conf$$.file conf$$ 2>/dev/null; then
14837 as_ln_s=ln
14838 else
14839 as_ln_s='cp -p'
14841 else
14842 as_ln_s='cp -p'
14844 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14845 rmdir conf$$.dir 2>/dev/null
14848 # as_fn_mkdir_p
14849 # -------------
14850 # Create "$as_dir" as a directory, including parents if necessary.
14851 as_fn_mkdir_p ()
14854 case $as_dir in #(
14855 -*) as_dir=./$as_dir;;
14856 esac
14857 test -d "$as_dir" || eval $as_mkdir_p || {
14858 as_dirs=
14859 while :; do
14860 case $as_dir in #(
14861 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14862 *) as_qdir=$as_dir;;
14863 esac
14864 as_dirs="'$as_qdir' $as_dirs"
14865 as_dir=`$as_dirname -- "$as_dir" ||
14866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14867 X"$as_dir" : 'X\(//\)[^/]' \| \
14868 X"$as_dir" : 'X\(//\)$' \| \
14869 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14870 $as_echo X"$as_dir" |
14871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14872 s//\1/
14875 /^X\(\/\/\)[^/].*/{
14876 s//\1/
14879 /^X\(\/\/\)$/{
14880 s//\1/
14883 /^X\(\/\).*/{
14884 s//\1/
14887 s/.*/./; q'`
14888 test -d "$as_dir" && break
14889 done
14890 test -z "$as_dirs" || eval "mkdir $as_dirs"
14891 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14894 } # as_fn_mkdir_p
14895 if mkdir -p . 2>/dev/null; then
14896 as_mkdir_p='mkdir -p "$as_dir"'
14897 else
14898 test -d ./-p && rmdir ./-p
14899 as_mkdir_p=false
14902 if test -x / >/dev/null 2>&1; then
14903 as_test_x='test -x'
14904 else
14905 if ls -dL / >/dev/null 2>&1; then
14906 as_ls_L_option=L
14907 else
14908 as_ls_L_option=
14910 as_test_x='
14911 eval sh -c '\''
14912 if test -d "$1"; then
14913 test -d "$1/.";
14914 else
14915 case $1 in #(
14916 -*)set "./$1";;
14917 esac;
14918 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14919 ???[sx]*):;;*)false;;esac;fi
14920 '\'' sh
14923 as_executable_p=$as_test_x
14925 # Sed expression to map a string onto a valid CPP name.
14926 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14928 # Sed expression to map a string onto a valid variable name.
14929 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14932 exec 6>&1
14933 ## ----------------------------------- ##
14934 ## Main body of $CONFIG_STATUS script. ##
14935 ## ----------------------------------- ##
14936 _ASEOF
14937 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14940 # Save the log message, to keep $0 and so on meaningful, and to
14941 # report actual input values of CONFIG_FILES etc. instead of their
14942 # values after options handling.
14943 ac_log="
14944 This file was extended by $as_me, which was
14945 generated by GNU Autoconf 2.68. Invocation command line was
14947 CONFIG_FILES = $CONFIG_FILES
14948 CONFIG_HEADERS = $CONFIG_HEADERS
14949 CONFIG_LINKS = $CONFIG_LINKS
14950 CONFIG_COMMANDS = $CONFIG_COMMANDS
14951 $ $0 $@
14953 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14956 _ACEOF
14958 case $ac_config_files in *"
14959 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14960 esac
14962 case $ac_config_headers in *"
14963 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14964 esac
14967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14968 # Files that config.status was made for.
14969 config_files="$ac_config_files"
14970 config_headers="$ac_config_headers"
14971 config_commands="$ac_config_commands"
14973 _ACEOF
14975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14976 ac_cs_usage="\
14977 \`$as_me' instantiates files and other configuration actions
14978 from templates according to the current configuration. Unless the files
14979 and actions are specified as TAGs, all are instantiated by default.
14981 Usage: $0 [OPTION]... [TAG]...
14983 -h, --help print this help, then exit
14984 -V, --version print version number and configuration settings, then exit
14985 --config print configuration, then exit
14986 -q, --quiet, --silent
14987 do not print progress messages
14988 -d, --debug don't remove temporary files
14989 --recheck update $as_me by reconfiguring in the same conditions
14990 --file=FILE[:TEMPLATE]
14991 instantiate the configuration file FILE
14992 --header=FILE[:TEMPLATE]
14993 instantiate the configuration header FILE
14995 Configuration files:
14996 $config_files
14998 Configuration headers:
14999 $config_headers
15001 Configuration commands:
15002 $config_commands
15004 Report bugs to the package provider."
15006 _ACEOF
15007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15009 ac_cs_version="\\
15010 config.status
15011 configured by $0, generated by GNU Autoconf 2.68,
15012 with options \\"\$ac_cs_config\\"
15014 Copyright (C) 2010 Free Software Foundation, Inc.
15015 This config.status script is free software; the Free Software Foundation
15016 gives unlimited permission to copy, distribute and modify it."
15018 ac_pwd='$ac_pwd'
15019 srcdir='$srcdir'
15020 test -n "\$AWK" || AWK=awk
15021 _ACEOF
15023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15024 # The default lists apply if the user does not specify any file.
15025 ac_need_defaults=:
15026 while test $# != 0
15028 case $1 in
15029 --*=?*)
15030 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15031 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15032 ac_shift=:
15034 --*=)
15035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15036 ac_optarg=
15037 ac_shift=:
15040 ac_option=$1
15041 ac_optarg=$2
15042 ac_shift=shift
15044 esac
15046 case $ac_option in
15047 # Handling of the options.
15048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15049 ac_cs_recheck=: ;;
15050 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15051 $as_echo "$ac_cs_version"; exit ;;
15052 --config | --confi | --conf | --con | --co | --c )
15053 $as_echo "$ac_cs_config"; exit ;;
15054 --debug | --debu | --deb | --de | --d | -d )
15055 debug=: ;;
15056 --file | --fil | --fi | --f )
15057 $ac_shift
15058 case $ac_optarg in
15059 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15060 '') as_fn_error $? "missing file argument" ;;
15061 esac
15062 as_fn_append CONFIG_FILES " '$ac_optarg'"
15063 ac_need_defaults=false;;
15064 --header | --heade | --head | --hea )
15065 $ac_shift
15066 case $ac_optarg in
15067 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15068 esac
15069 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15070 ac_need_defaults=false;;
15071 --he | --h)
15072 # Conflict between --help and --header
15073 as_fn_error $? "ambiguous option: \`$1'
15074 Try \`$0 --help' for more information.";;
15075 --help | --hel | -h )
15076 $as_echo "$ac_cs_usage"; exit ;;
15077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15078 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15079 ac_cs_silent=: ;;
15081 # This is an error.
15082 -*) as_fn_error $? "unrecognized option: \`$1'
15083 Try \`$0 --help' for more information." ;;
15085 *) as_fn_append ac_config_targets " $1"
15086 ac_need_defaults=false ;;
15088 esac
15089 shift
15090 done
15092 ac_configure_extra_args=
15094 if $ac_cs_silent; then
15095 exec 6>/dev/null
15096 ac_configure_extra_args="$ac_configure_extra_args --silent"
15099 _ACEOF
15100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15101 if \$ac_cs_recheck; then
15102 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15103 shift
15104 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15105 CONFIG_SHELL='$SHELL'
15106 export CONFIG_SHELL
15107 exec "\$@"
15110 _ACEOF
15111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112 exec 5>>config.log
15114 echo
15115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15116 ## Running $as_me. ##
15117 _ASBOX
15118 $as_echo "$ac_log"
15119 } >&5
15121 _ACEOF
15122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124 # INIT-COMMANDS
15127 aros_host_exe_suffix=${aros_host_exe_suffix}
15128 aros_tools_dir=${aros_tools_dir}
15129 aros_target_cpu=${aros_target_cpu}
15130 aros_target_arch=${aros_target_arch}
15131 aros_target_suffix=${aros_target_suffix}
15132 orig_target_nm=${orig_target_nm}
15133 orig_target_as=${orig_target_as}
15134 orig_target_ar=${orig_target_ar}
15135 orig_target_ranlib=${orig_target_ranlib}
15136 orig_target_objdump=${orig_target_objdump}
15137 orig_target_objcopy=${orig_target_objcopy}
15138 orig_target_strip=${orig_target_strip}
15139 aros_kernel_ld=${aros_kernel_ld}
15142 aros_tools_dir=${aros_tools_dir}
15145 _ACEOF
15147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15149 # Handling of arguments.
15150 for ac_config_target in $ac_config_targets
15152 case $ac_config_target in
15153 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15154 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15155 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15156 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15157 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15158 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15159 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15160 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15161 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15162 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15163 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15164 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15165 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15166 "${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" ;;
15167 "${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" ;;
15168 "${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" ;;
15169 "${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" ;;
15170 "${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" ;;
15171 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15172 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15173 "${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" ;;
15175 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15176 esac
15177 done
15180 # If the user did not use the arguments to specify the items to instantiate,
15181 # then the envvar interface is used. Set only those that are not.
15182 # We use the long form for the default assignment because of an extremely
15183 # bizarre bug on SunOS 4.1.3.
15184 if $ac_need_defaults; then
15185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15190 # Have a temporary directory for convenience. Make it in the build tree
15191 # simply because there is no reason against having it here, and in addition,
15192 # creating and moving files from /tmp can sometimes cause problems.
15193 # Hook for its removal unless debugging.
15194 # Note that there is a small window in which the directory will not be cleaned:
15195 # after its creation but before its name has been assigned to `$tmp'.
15196 $debug ||
15198 tmp= ac_tmp=
15199 trap 'exit_status=$?
15200 : "${ac_tmp:=$tmp}"
15201 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15203 trap 'as_fn_exit 1' 1 2 13 15
15205 # Create a (secure) tmp directory for tmp files.
15208 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15209 test -d "$tmp"
15210 } ||
15212 tmp=./conf$$-$RANDOM
15213 (umask 077 && mkdir "$tmp")
15214 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15215 ac_tmp=$tmp
15217 # Set up the scripts for CONFIG_FILES section.
15218 # No need to generate them if there are no CONFIG_FILES.
15219 # This happens for instance with `./config.status config.h'.
15220 if test -n "$CONFIG_FILES"; then
15223 ac_cr=`echo X | tr X '\015'`
15224 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15225 # But we know of no other shell where ac_cr would be empty at this
15226 # point, so we can use a bashism as a fallback.
15227 if test "x$ac_cr" = x; then
15228 eval ac_cr=\$\'\\r\'
15230 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15231 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15232 ac_cs_awk_cr='\\r'
15233 else
15234 ac_cs_awk_cr=$ac_cr
15237 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15238 _ACEOF
15242 echo "cat >conf$$subs.awk <<_ACEOF" &&
15243 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15244 echo "_ACEOF"
15245 } >conf$$subs.sh ||
15246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15247 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15248 ac_delim='%!_!# '
15249 for ac_last_try in false false false false false :; do
15250 . ./conf$$subs.sh ||
15251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15253 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15254 if test $ac_delim_n = $ac_delim_num; then
15255 break
15256 elif $ac_last_try; then
15257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15258 else
15259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15261 done
15262 rm -f conf$$subs.sh
15264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15265 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15266 _ACEOF
15267 sed -n '
15269 s/^/S["/; s/!.*/"]=/
15272 s/^[^!]*!//
15273 :repl
15274 t repl
15275 s/'"$ac_delim"'$//
15276 t delim
15279 s/\(.\{148\}\)..*/\1/
15280 t more1
15281 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15284 b repl
15285 :more1
15286 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15289 s/.\{148\}//
15290 t nl
15291 :delim
15293 s/\(.\{148\}\)..*/\1/
15294 t more2
15295 s/["\\]/\\&/g; s/^/"/; s/$/"/
15298 :more2
15299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15302 s/.\{148\}//
15303 t delim
15304 ' <conf$$subs.awk | sed '
15305 /^[^""]/{
15307 s/\n//
15309 ' >>$CONFIG_STATUS || ac_write_fail=1
15310 rm -f conf$$subs.awk
15311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15312 _ACAWK
15313 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15314 for (key in S) S_is_set[key] = 1
15315 FS = "\a"
15319 line = $ 0
15320 nfields = split(line, field, "@")
15321 substed = 0
15322 len = length(field[1])
15323 for (i = 2; i < nfields; i++) {
15324 key = field[i]
15325 keylen = length(key)
15326 if (S_is_set[key]) {
15327 value = S[key]
15328 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15329 len += length(value) + length(field[++i])
15330 substed = 1
15331 } else
15332 len += 1 + keylen
15335 print line
15338 _ACAWK
15339 _ACEOF
15340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15341 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15342 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15343 else
15345 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15346 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15347 _ACEOF
15349 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15350 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15351 # trailing colons and then remove the whole line if VPATH becomes empty
15352 # (actually we leave an empty line to preserve line numbers).
15353 if test "x$srcdir" = x.; then
15354 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15356 s///
15357 s/^/:/
15358 s/[ ]*$/:/
15359 s/:\$(srcdir):/:/g
15360 s/:\${srcdir}:/:/g
15361 s/:@srcdir@:/:/g
15362 s/^:*//
15363 s/:*$//
15365 s/\(=[ ]*\).*/\1/
15367 s/\n//
15368 s/^[^=]*=[ ]*$//
15372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15373 fi # test -n "$CONFIG_FILES"
15375 # Set up the scripts for CONFIG_HEADERS section.
15376 # No need to generate them if there are no CONFIG_HEADERS.
15377 # This happens for instance with `./config.status Makefile'.
15378 if test -n "$CONFIG_HEADERS"; then
15379 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15380 BEGIN {
15381 _ACEOF
15383 # Transform confdefs.h into an awk script `defines.awk', embedded as
15384 # here-document in config.status, that substitutes the proper values into
15385 # config.h.in to produce config.h.
15387 # Create a delimiter string that does not exist in confdefs.h, to ease
15388 # handling of long lines.
15389 ac_delim='%!_!# '
15390 for ac_last_try in false false :; do
15391 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15392 if test -z "$ac_tt"; then
15393 break
15394 elif $ac_last_try; then
15395 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15396 else
15397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15399 done
15401 # For the awk script, D is an array of macro values keyed by name,
15402 # likewise P contains macro parameters if any. Preserve backslash
15403 # newline sequences.
15405 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15406 sed -n '
15407 s/.\{148\}/&'"$ac_delim"'/g
15408 t rset
15409 :rset
15410 s/^[ ]*#[ ]*define[ ][ ]*/ /
15411 t def
15413 :def
15414 s/\\$//
15415 t bsnl
15416 s/["\\]/\\&/g
15417 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15418 D["\1"]=" \3"/p
15419 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15421 :bsnl
15422 s/["\\]/\\&/g
15423 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15424 D["\1"]=" \3\\\\\\n"\\/p
15425 t cont
15426 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15427 t cont
15429 :cont
15431 s/.\{148\}/&'"$ac_delim"'/g
15432 t clear
15433 :clear
15434 s/\\$//
15435 t bsnlc
15436 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15438 :bsnlc
15439 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15440 b cont
15441 ' <confdefs.h | sed '
15442 s/'"$ac_delim"'/"\\\
15443 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15446 for (key in D) D_is_set[key] = 1
15447 FS = "\a"
15449 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15450 line = \$ 0
15451 split(line, arg, " ")
15452 if (arg[1] == "#") {
15453 defundef = arg[2]
15454 mac1 = arg[3]
15455 } else {
15456 defundef = substr(arg[1], 2)
15457 mac1 = arg[2]
15459 split(mac1, mac2, "(") #)
15460 macro = mac2[1]
15461 prefix = substr(line, 1, index(line, defundef) - 1)
15462 if (D_is_set[macro]) {
15463 # Preserve the white space surrounding the "#".
15464 print prefix "define", macro P[macro] D[macro]
15465 next
15466 } else {
15467 # Replace #undef with comments. This is necessary, for example,
15468 # in the case of _POSIX_SOURCE, which is predefined and required
15469 # on some systems where configure will not decide to define it.
15470 if (defundef == "undef") {
15471 print "/*", prefix defundef, macro, "*/"
15472 next
15476 { print }
15477 _ACAWK
15478 _ACEOF
15479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15480 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15481 fi # test -n "$CONFIG_HEADERS"
15484 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15485 shift
15486 for ac_tag
15488 case $ac_tag in
15489 :[FHLC]) ac_mode=$ac_tag; continue;;
15490 esac
15491 case $ac_mode$ac_tag in
15492 :[FHL]*:*);;
15493 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15494 :[FH]-) ac_tag=-:-;;
15495 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15496 esac
15497 ac_save_IFS=$IFS
15498 IFS=:
15499 set x $ac_tag
15500 IFS=$ac_save_IFS
15501 shift
15502 ac_file=$1
15503 shift
15505 case $ac_mode in
15506 :L) ac_source=$1;;
15507 :[FH])
15508 ac_file_inputs=
15509 for ac_f
15511 case $ac_f in
15512 -) ac_f="$ac_tmp/stdin";;
15513 *) # Look for the file first in the build tree, then in the source tree
15514 # (if the path is not absolute). The absolute path cannot be DOS-style,
15515 # because $ac_f cannot contain `:'.
15516 test -f "$ac_f" ||
15517 case $ac_f in
15518 [\\/$]*) false;;
15519 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15520 esac ||
15521 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15522 esac
15523 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15524 as_fn_append ac_file_inputs " '$ac_f'"
15525 done
15527 # Let's still pretend it is `configure' which instantiates (i.e., don't
15528 # use $as_me), people would be surprised to read:
15529 # /* config.h. Generated by config.status. */
15530 configure_input='Generated from '`
15531 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15532 `' by configure.'
15533 if test x"$ac_file" != x-; then
15534 configure_input="$ac_file. $configure_input"
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15536 $as_echo "$as_me: creating $ac_file" >&6;}
15538 # Neutralize special characters interpreted by sed in replacement strings.
15539 case $configure_input in #(
15540 *\&* | *\|* | *\\* )
15541 ac_sed_conf_input=`$as_echo "$configure_input" |
15542 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15543 *) ac_sed_conf_input=$configure_input;;
15544 esac
15546 case $ac_tag in
15547 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15549 esac
15551 esac
15553 ac_dir=`$as_dirname -- "$ac_file" ||
15554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15555 X"$ac_file" : 'X\(//\)[^/]' \| \
15556 X"$ac_file" : 'X\(//\)$' \| \
15557 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15558 $as_echo X"$ac_file" |
15559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15560 s//\1/
15563 /^X\(\/\/\)[^/].*/{
15564 s//\1/
15567 /^X\(\/\/\)$/{
15568 s//\1/
15571 /^X\(\/\).*/{
15572 s//\1/
15575 s/.*/./; q'`
15576 as_dir="$ac_dir"; as_fn_mkdir_p
15577 ac_builddir=.
15579 case "$ac_dir" in
15580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15583 # A ".." for each directory in $ac_dir_suffix.
15584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15585 case $ac_top_builddir_sub in
15586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15588 esac ;;
15589 esac
15590 ac_abs_top_builddir=$ac_pwd
15591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15592 # for backward compatibility:
15593 ac_top_builddir=$ac_top_build_prefix
15595 case $srcdir in
15596 .) # We are building in place.
15597 ac_srcdir=.
15598 ac_top_srcdir=$ac_top_builddir_sub
15599 ac_abs_top_srcdir=$ac_pwd ;;
15600 [\\/]* | ?:[\\/]* ) # Absolute name.
15601 ac_srcdir=$srcdir$ac_dir_suffix;
15602 ac_top_srcdir=$srcdir
15603 ac_abs_top_srcdir=$srcdir ;;
15604 *) # Relative name.
15605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15606 ac_top_srcdir=$ac_top_build_prefix$srcdir
15607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15608 esac
15609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15612 case $ac_mode in
15615 # CONFIG_FILE
15618 _ACEOF
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 # If the template does not know about datarootdir, expand it.
15622 # FIXME: This hack should be removed a few years after 2.60.
15623 ac_datarootdir_hack=; ac_datarootdir_seen=
15624 ac_sed_dataroot='
15625 /datarootdir/ {
15629 /@datadir@/p
15630 /@docdir@/p
15631 /@infodir@/p
15632 /@localedir@/p
15633 /@mandir@/p'
15634 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15635 *datarootdir*) ac_datarootdir_seen=yes;;
15636 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15638 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15639 _ACEOF
15640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15641 ac_datarootdir_hack='
15642 s&@datadir@&$datadir&g
15643 s&@docdir@&$docdir&g
15644 s&@infodir@&$infodir&g
15645 s&@localedir@&$localedir&g
15646 s&@mandir@&$mandir&g
15647 s&\\\${datarootdir}&$datarootdir&g' ;;
15648 esac
15649 _ACEOF
15651 # Neutralize VPATH when `$srcdir' = `.'.
15652 # Shell code in configure.ac might set extrasub.
15653 # FIXME: do we really want to maintain this feature?
15654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15655 ac_sed_extra="$ac_vpsub
15656 $extrasub
15657 _ACEOF
15658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15661 s|@configure_input@|$ac_sed_conf_input|;t t
15662 s&@top_builddir@&$ac_top_builddir_sub&;t t
15663 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15664 s&@srcdir@&$ac_srcdir&;t t
15665 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15666 s&@top_srcdir@&$ac_top_srcdir&;t t
15667 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15668 s&@builddir@&$ac_builddir&;t t
15669 s&@abs_builddir@&$ac_abs_builddir&;t t
15670 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15671 $ac_datarootdir_hack
15673 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15674 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15676 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15677 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15678 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15679 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15681 which seems to be undefined. Please make sure it is defined" >&5
15682 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15683 which seems to be undefined. Please make sure it is defined" >&2;}
15685 rm -f "$ac_tmp/stdin"
15686 case $ac_file in
15687 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15688 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15689 esac \
15690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15694 # CONFIG_HEADER
15696 if test x"$ac_file" != x-; then
15698 $as_echo "/* $configure_input */" \
15699 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15700 } >"$ac_tmp/config.h" \
15701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15702 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15704 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15705 else
15706 rm -f "$ac_file"
15707 mv "$ac_tmp/config.h" "$ac_file" \
15708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15710 else
15711 $as_echo "/* $configure_input */" \
15712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15713 || as_fn_error $? "could not create -" "$LINENO" 5
15717 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15718 $as_echo "$as_me: executing $ac_file commands" >&6;}
15720 esac
15723 case $ac_file$ac_mode in
15724 "compiler_executable":C)
15725 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15726 mkdir -p $prefix
15727 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15728 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15730 echo ${prefix2}
15731 echo ${prefix3}
15732 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15734 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15735 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15736 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15737 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15738 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15739 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15740 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15742 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15744 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15746 esac
15747 done # for ac_tag
15750 as_fn_exit 0
15751 _ACEOF
15752 ac_clean_files=$ac_clean_files_save
15754 test $ac_write_fail = 0 ||
15755 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15758 # configure is writing to config.log, and then calls config.status.
15759 # config.status does its own redirection, appending to config.log.
15760 # Unfortunately, on DOS this fails, as config.log is still kept open
15761 # by configure, so config.status won't be able to write to it; its
15762 # output is simply discarded. So we exec the FD to /dev/null,
15763 # effectively closing config.log, so it can be properly (re)opened and
15764 # appended to by config.status. When coming back to configure, we
15765 # need to make the FD available again.
15766 if test "$no_create" != yes; then
15767 ac_cs_success=:
15768 ac_config_status_args=
15769 test "$silent" = yes &&
15770 ac_config_status_args="$ac_config_status_args --quiet"
15771 exec 5>/dev/null
15772 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15773 exec 5>>config.log
15774 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15775 # would make configure fail if this is the last instruction.
15776 $ac_cs_success || as_fn_exit 1
15778 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15780 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15785 #XXX compatability...
15786 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15788 if test -n "$aros_shared_cflags" ; then
15789 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15790 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg