enable default paranoia flags. update comment to reflect usage.
[AROS.git] / configure
blob2c1f72a7e6b8c72cec5be5b4da271621465178ec
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 aros_serial_debug
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_ldflags
658 aros_host_x11_cflags
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_nominal_depth
662 aros_nominal_height
663 aros_nominal_width
664 pci_hidd_target
665 host_android_gfx
666 host_sdl_gfx
667 host_x_gfx
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_optimization_cflags
672 aros_target_strip_flags
673 aros_target_genmap
674 aros_debug_ldflags
675 aros_debug_aflags
676 aros_debug_cflags
677 aros_target_cflags
678 aros_kernel_ldflags
679 aros_kernel_objcflags
680 aros_kernel_includes
681 aros_kernel_cflags
682 aros_kernel_sysroot
683 aros_config_ldflags
684 aros_config_aflags
685 aros_config_cflags
686 aros_nowarn_flags
687 aros_config_sysroot
688 aros_shared_ldflags
689 aros_shared_aflags
690 aros_shared_cflags
691 aros_arch_libs
692 aros_compiler_libs
693 spec_obj_format
694 aros_object_format
695 aros_shared_ld
696 aros_shared_default
697 aros_target_nm
698 aros_target_strip
699 aros_target_objcopy
700 aros_target_objdump
701 aros_target_cc_path
702 aros_target_cc_includes
703 aros_target_ld
704 aros_target_as
705 aros_target_cpp
706 aros_target_cxx
707 aros_target_cc
708 aros_plain_ar
709 aros_plain_nm
710 aros_target_ranlib
711 aros_target_ar
712 aros_target_suffix
713 aros_target_variant
714 aros_target_cpu_mode
715 aros_target_cpu
716 aros_target_family
717 aros_target_arch
718 aros_target_bootloader
719 aros_target_iconset
720 aros_target_guitheme
721 aros_tools_dir
722 aros_host_lib_suffix
723 aros_host_exe_suffix
724 aros_host_mkargs
725 aros_host_mkdep
726 aros_host_debug
727 aros_host_ldflags
728 gnu89_inline
729 aros_host_cxxflags
730 aros_host_cflags
731 aros_host_make
732 aros_host_cxx
733 aros_host_cc
734 aros_host_def_cc
735 aros_host_cpp
736 aros_host_cpu
737 aros_host_arch
738 aros_cc_pre
739 aros_amigaos_compliance
740 AROS_PORTSSRCDIR
741 AROS_CROSSTOOLSDIR
742 SRCDIR
743 AROS_BUILDDIR_UNIX
744 AROS_BUILDDIR
745 aros_build_host
746 aros_target_toolchain
747 aros_flavour_uc
748 aros_flavour
749 aros_cpu
750 aros_arch
751 SDL_LIBS
752 SDL_CFLAGS
753 SDL_CONFIG
754 X_EXTRA_LIBS
755 X_LIBS
756 X_PRE_LIBS
757 X_CFLAGS
758 XMKMF
759 kernel_cflags_iquote_end
760 kernel_cflags_iquote
761 host_cflags_iquote_end
762 host_cflags_iquote
763 aros_toolchain
764 aros_target_nostdlib_ldflags
765 aros_target_detach_ldflags
766 aros_target_nix_ldflags
767 aros_target_nostartup_ldflags
768 aros_target_nostdinc_cflags
769 aros_kernel_rescomp
770 orig_target_objdump
771 orig_target_objcopy
772 orig_target_strip
773 orig_target_nm
774 orig_target_ranlib
775 orig_target_ar
776 orig_target_as
777 orig_target_ld
778 orig_target_cxx
779 orig_target_cc
780 orig_target_cpp
781 aros_kernel_objdump
782 aros_kernel_objcopy
783 aros_kernel_strip
784 aros_kernel_nm
785 aros_kernel_ranlib
786 aros_kernel_ar
787 aros_kernel_as
788 aros_kernel_ld
789 aros_kernel_cxx
790 aros_kernel_cc
791 aros_kernel_cpp
792 target_gcc_version
794 android_tool
795 CCACHE
796 DISTCC
797 LIBOBJS
798 EGREP
799 GREP
801 TEST
804 libpng_incdir
805 libpng_libextra
806 libpng
807 arosconfig_use_libpngconfig
808 pkgpyexecdir
809 pyexecdir
810 pkgpythondir
811 pythondir
812 PYTHON_PLATFORM
813 PYTHON_EXEC_PREFIX
814 PYTHON_PREFIX
815 PYTHON_VERSION
816 PYTHON
817 PATCH
818 CHMOD
820 PPMTOILBM
821 PNGTOPNM
822 FLEX
823 BISON
826 UNIQ
827 SORT
828 TOUCH
829 MKDIR
830 ECHO
834 aros_host_strip
835 aros_host_ranlib
836 aros_host_ar
837 aros_host_automake
838 aros_host_autoheader
839 aros_host_autoconf
840 aros_host_aclocal
841 aros_host_ld
842 MMAKE
845 ac_ct_CC
846 CFLAGS
848 OBJEXT
849 EXEEXT
850 ac_ct_CXX
851 CPPFLAGS
852 LDFLAGS
853 CXXFLAGS
855 host_os
856 host_vendor
857 host_cpu
858 host
859 build_os
860 build_vendor
861 build_cpu
862 build
863 target_alias
864 host_alias
865 build_alias
866 LIBS
867 ECHO_T
868 ECHO_N
869 ECHO_C
870 DEFS
871 mandir
872 localedir
873 libdir
874 psdir
875 pdfdir
876 dvidir
877 htmldir
878 infodir
879 docdir
880 oldincludedir
881 includedir
882 localstatedir
883 sharedstatedir
884 sysconfdir
885 datadir
886 datarootdir
887 libexecdir
888 sbindir
889 bindir
890 program_transform_name
891 prefix
892 exec_prefix
893 PACKAGE_URL
894 PACKAGE_BUGREPORT
895 PACKAGE_STRING
896 PACKAGE_VERSION
897 PACKAGE_TARNAME
898 PACKAGE_NAME
899 PATH_SEPARATOR
900 SHELL'
901 ac_subst_files=''
902 ac_user_opts='
903 enable_option_checking
904 with_c_compiler
905 with_cxx_compiler
906 enable_libpng_config
907 with_toolchain
908 enable_build_type
909 enable_debug
910 enable_distcc
911 enable_ccache
912 with_kernel_gcc_version
913 with_optimization
914 with_paranoia
915 enable_target_variant
916 with_xcode
917 with_sdk_version
918 with_sdk
919 with_ndk
920 with_ndk_version
921 with_apk_version
922 enable_amigaos_compliance
923 with_kernel_toolchain_prefix
924 with_elf_toolchain_prefix
925 with_aros_toolchain
926 enable_crosstools
927 with_aros_toolchain_install
928 with_binutils_version
929 with_gcc_version
930 enable_objc
931 enable_java
932 with_cpu
933 with_fpu
934 with_float
935 with_portssources
936 with_bootloader
937 with_iconset
938 with_theme
939 enable_includes
940 with_resolution
941 with_serial_debug
942 enable_palm_debug_hack
943 enable_usb30_code
944 enable_nesting_supervisor
945 enable_mmu
946 enable_x11_hidd
947 with_x
948 enable_x11_shm
949 enable_x11_vidmode
950 enable_sdl_hidd
951 with_sdl_prefix
952 with_sdl_exec_prefix
953 enable_sdltest
954 enable_dbus
956 ac_precious_vars='build_alias
957 host_alias
958 target_alias
960 CXXFLAGS
961 LDFLAGS
962 LIBS
963 CPPFLAGS
966 CFLAGS
968 PYTHON
969 XMKMF'
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 ac_unrecognized_opts=
976 ac_unrecognized_sep=
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
979 cache_file=/dev/null
980 exec_prefix=NONE
981 no_create=
982 no_recursion=
983 prefix=NONE
984 program_prefix=NONE
985 program_suffix=NONE
986 program_transform_name=s,x,x,
987 silent=
988 site=
989 srcdir=
990 verbose=
991 x_includes=NONE
992 x_libraries=NONE
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE}'
1011 infodir='${datarootdir}/info'
1012 htmldir='${docdir}'
1013 dvidir='${docdir}'
1014 pdfdir='${docdir}'
1015 psdir='${docdir}'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1020 ac_prev=
1021 ac_dashdash=
1022 for ac_option
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
1026 eval $ac_prev=\$ac_option
1027 ac_prev=
1028 continue
1031 case $ac_option in
1032 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 *=) ac_optarg= ;;
1034 *) ac_optarg=yes ;;
1035 esac
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1041 ac_dashdash=yes ;;
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1075 -disable-* | --disable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=no ;;
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1101 -enable-* | --enable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid feature name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval enable_$ac_useropt=\$ac_optarg ;;
1117 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119 | --exec | --exe | --ex)
1120 ac_prev=exec_prefix ;;
1121 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123 | --exec=* | --exe=* | --ex=*)
1124 exec_prefix=$ac_optarg ;;
1126 -gas | --gas | --ga | --g)
1127 # Obsolete; use --with-gas.
1128 with_gas=yes ;;
1130 -help | --help | --hel | --he | -h)
1131 ac_init_help=long ;;
1132 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133 ac_init_help=recursive ;;
1134 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135 ac_init_help=short ;;
1137 -host | --host | --hos | --ho)
1138 ac_prev=host_alias ;;
1139 -host=* | --host=* | --hos=* | --ho=*)
1140 host_alias=$ac_optarg ;;
1142 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143 ac_prev=htmldir ;;
1144 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145 | --ht=*)
1146 htmldir=$ac_optarg ;;
1148 -includedir | --includedir | --includedi | --included | --include \
1149 | --includ | --inclu | --incl | --inc)
1150 ac_prev=includedir ;;
1151 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152 | --includ=* | --inclu=* | --incl=* | --inc=*)
1153 includedir=$ac_optarg ;;
1155 -infodir | --infodir | --infodi | --infod | --info | --inf)
1156 ac_prev=infodir ;;
1157 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158 infodir=$ac_optarg ;;
1160 -libdir | --libdir | --libdi | --libd)
1161 ac_prev=libdir ;;
1162 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163 libdir=$ac_optarg ;;
1165 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166 | --libexe | --libex | --libe)
1167 ac_prev=libexecdir ;;
1168 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169 | --libexe=* | --libex=* | --libe=*)
1170 libexecdir=$ac_optarg ;;
1172 -localedir | --localedir | --localedi | --localed | --locale)
1173 ac_prev=localedir ;;
1174 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175 localedir=$ac_optarg ;;
1177 -localstatedir | --localstatedir | --localstatedi | --localstated \
1178 | --localstate | --localstat | --localsta | --localst | --locals)
1179 ac_prev=localstatedir ;;
1180 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182 localstatedir=$ac_optarg ;;
1184 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185 ac_prev=mandir ;;
1186 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187 mandir=$ac_optarg ;;
1189 -nfp | --nfp | --nf)
1190 # Obsolete; use --without-fp.
1191 with_fp=no ;;
1193 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194 | --no-cr | --no-c | -n)
1195 no_create=yes ;;
1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199 no_recursion=yes ;;
1201 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203 | --oldin | --oldi | --old | --ol | --o)
1204 ac_prev=oldincludedir ;;
1205 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208 oldincludedir=$ac_optarg ;;
1210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211 ac_prev=prefix ;;
1212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213 prefix=$ac_optarg ;;
1215 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216 | --program-pre | --program-pr | --program-p)
1217 ac_prev=program_prefix ;;
1218 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220 program_prefix=$ac_optarg ;;
1222 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223 | --program-suf | --program-su | --program-s)
1224 ac_prev=program_suffix ;;
1225 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227 program_suffix=$ac_optarg ;;
1229 -program-transform-name | --program-transform-name \
1230 | --program-transform-nam | --program-transform-na \
1231 | --program-transform-n | --program-transform- \
1232 | --program-transform | --program-transfor \
1233 | --program-transfo | --program-transf \
1234 | --program-trans | --program-tran \
1235 | --progr-tra | --program-tr | --program-t)
1236 ac_prev=program_transform_name ;;
1237 -program-transform-name=* | --program-transform-name=* \
1238 | --program-transform-nam=* | --program-transform-na=* \
1239 | --program-transform-n=* | --program-transform-=* \
1240 | --program-transform=* | --program-transfor=* \
1241 | --program-transfo=* | --program-transf=* \
1242 | --program-trans=* | --program-tran=* \
1243 | --progr-tra=* | --program-tr=* | --program-t=*)
1244 program_transform_name=$ac_optarg ;;
1246 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247 ac_prev=pdfdir ;;
1248 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249 pdfdir=$ac_optarg ;;
1251 -psdir | --psdir | --psdi | --psd | --ps)
1252 ac_prev=psdir ;;
1253 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254 psdir=$ac_optarg ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 silent=yes ;;
1260 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261 ac_prev=sbindir ;;
1262 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263 | --sbi=* | --sb=*)
1264 sbindir=$ac_optarg ;;
1266 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268 | --sharedst | --shareds | --shared | --share | --shar \
1269 | --sha | --sh)
1270 ac_prev=sharedstatedir ;;
1271 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274 | --sha=* | --sh=*)
1275 sharedstatedir=$ac_optarg ;;
1277 -site | --site | --sit)
1278 ac_prev=site ;;
1279 -site=* | --site=* | --sit=*)
1280 site=$ac_optarg ;;
1282 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283 ac_prev=srcdir ;;
1284 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285 srcdir=$ac_optarg ;;
1287 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288 | --syscon | --sysco | --sysc | --sys | --sy)
1289 ac_prev=sysconfdir ;;
1290 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292 sysconfdir=$ac_optarg ;;
1294 -target | --target | --targe | --targ | --tar | --ta | --t)
1295 ac_prev=target_alias ;;
1296 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297 target_alias=$ac_optarg ;;
1299 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 verbose=yes ;;
1302 -version | --version | --versio | --versi | --vers | -V)
1303 ac_init_version=: ;;
1305 -with-* | --with-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 as_fn_error $? "invalid package name: $ac_useropt"
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1330 "with_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval with_$ac_useropt=no ;;
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1355 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information"
1359 *=*)
1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' | [0-9]* | *[!_$as_cr_alnum]* )
1364 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1365 esac
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1377 esac
1378 done
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error $? "missing argument to $ac_option"
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1387 no) ;;
1388 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 esac
1393 # Check all directory arguments for consistency.
1394 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1399 eval ac_val=\$$ac_var
1400 # Remove trailing slashes.
1401 case $ac_val in
1402 */ )
1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\$ac_val;;
1405 esac
1406 # Be sure to have absolute directory names.
1407 case $ac_val in
1408 [\\/$]* | ?:[\\/]* ) continue;;
1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410 esac
1411 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423 if test "x$build_alias" = x; then
1424 cross_compiling=maybe
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error $? "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error $? "pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1462 /^X\(\/\/\)$/{
1463 s//\1/
1466 /^X\(\/\).*/{
1467 s//\1/
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1475 else
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking ...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1565 cat <<\_ACEOF
1567 X features:
1568 --x-includes=DIR X include files are in DIR
1569 --x-libraries=DIR X library files are in DIR
1571 System types:
1572 --build=BUILD configure for building on BUILD [guessed]
1573 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1574 _ACEOF
1577 if test -n "$ac_init_help"; then
1579 cat <<\_ACEOF
1581 Optional Features:
1582 --disable-option-checking ignore unrecognized --enable/--with options
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1585 --disable-libpng-config disable libpng-config test and configuration
1586 --enable-build-type=TYPE
1587 Select the build type. Available types are:
1588 personal, nightly, snapshot, milestone, release. Do
1589 NOT use this option unless you know what you are
1590 doing! (default=personal)
1591 --enable-debug=list Enable different types of debug. Commas or
1592 whitespaces can be used to separate the items in the
1593 list. Available types of debug are: all, none,
1594 messages, stack, mungwall, modules, symbols. If no
1595 list is provided then "all" is assumed.
1596 (default=none)
1597 --enable-distcc Use distcc as a front end to the compiler
1598 (default=no).
1599 --enable-ccache Use ccache as a front end to the compiler
1600 (default=no).
1601 --enable-target-variant=NAME
1602 Enable a specific target variant (default=none)
1603 --enable-amigaos-compliance=VERSION
1604 Enforce userspace AmigaOS compliance to a specific
1605 KickStart version (default=none).
1606 --disable-crosstools Do not build cross-compiler toolchain
1607 --enable-objc Enable Objectve-C support (default=no)
1608 --enable-java Enable Java support (default=no)
1609 --enable-includes=dir Alternative system include directory
1610 --enable-palm-debug-hack
1611 Enable palm debug output hack in palm native
1612 (default=no)
1613 --enable-usb30-code Enable usb3.0 code (default=no)
1614 --enable-nesting-supervisor
1615 Enable nesting supervisor support in unix
1616 (default=no)
1617 --disable-mmu Disable MMU support (default=enabled)
1618 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1619 --enable-x11-shm use X11 shared memory (default=auto)
1620 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1621 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1622 --disable-sdltest Do not try to compile and run a test SDL program
1623 --enable-dbus Enable DBUS support via dbus.library (default=no)
1625 Optional Packages:
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628 --with-c-compiler=VERSION
1629 Use specified c compiler for building AROS
1630 --with-cxx-compiler=VERSION
1631 Use specified c++ compiler building AROS
1632 --with-toolchain=family Which toolchain family to crosscompile with
1633 (defaults to gnu)
1634 --with-kernel-gcc-version=VERSION
1635 Use gcc-VERSION for building bootstrap
1636 --with-optimization=FLAGS
1637 Use optimization flags FLAGS (default=-O2).
1638 --with-paranoia=(yes|no|FLAGS)
1639 Specific compiler warning FLAGS to enable for
1640 paranoia builds (default=-Wall -Werror)
1641 --with-xcode=PATH Specify XCode path for iOS targets
1642 (default=/Developer).
1643 --with-sdk-version=VERSION
1644 Use iOS SDK version VERSION (default=4.1).
1645 --with-sdk=PATH Specify Android SDK path
1646 (default=$default_android_sdk).
1647 --with-ndk=PATH Specify Android NDK path (default=none).
1648 --with-sdk-version=LEVEL
1649 Use Android SDK for API LEVEL (default=12).
1650 --with-ndk-version=LEVEL
1651 Use Android NDK for API LEVEL (default=9).
1652 --with-apk-version=(release|debug)
1653 Which version of AROSBootstrap.apk to compile.
1654 Release version needs key for signing, debug version
1655 will only run in emulator. (default=release)
1656 --with-kernel-toolchain-prefix=...
1657 Specify crosscompile toolchain prefix for kernel
1658 objects
1659 --with-elf-toolchain-prefix=...
1660 Specify crosscompile toolchain prefix to wrap for
1661 AROS objects
1662 --with-aros-toolchain=PREFIX
1663 Specify prebuilt AROS toolchain. Use yes for default
1664 name
1665 --with-aros-toolchain-install=DIR
1666 Where to install or search for cross tools binaries
1667 --with-binutils-version=VERSION
1668 Use binutils-VERSION for building AROS
1669 --with-gcc-version=VERSION
1670 Compile gcc-VERSION for AROS
1671 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1672 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1673 --with-float=<spec> Specify floating point ABI
1674 (default=$gcc_default_float_abi).
1675 --with-portssources=DIR Where to download sourcecode for external ports
1676 --with-bootloader=NAME Use a specific bootloader
1677 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1678 --with-theme=NAME Use a specific GUI Theme
1679 --with-resolution=XRESxYRESxDEPTH
1680 Default resolution of the initial WorkbenchScreen
1681 --with-serial-debug Enable serial debug output in native (default=no)
1682 --with-x use the X Window System
1683 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1684 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1686 Some influential environment variables:
1687 CXX C++ compiler command
1688 CXXFLAGS C++ compiler flags
1689 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1690 nonstandard directory <lib dir>
1691 LIBS libraries to pass to the linker, e.g. -l<library>
1692 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1693 you have headers in a nonstandard directory <include dir>
1694 CC C compiler command
1695 CFLAGS C compiler flags
1696 CPP C preprocessor
1697 PYTHON the Python interpreter
1698 XMKMF Path to xmkmf, Makefile generator for X Window System
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1703 Report bugs to the package provider.
1704 _ACEOF
1705 ac_status=$?
1708 if test "$ac_init_help" = "recursive"; then
1709 # If there are subdirs, report their specific --help.
1710 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711 test -d "$ac_dir" ||
1712 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1713 continue
1714 ac_builddir=.
1716 case "$ac_dir" in
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720 # A ".." for each directory in $ac_dir_suffix.
1721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722 case $ac_top_builddir_sub in
1723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725 esac ;;
1726 esac
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1732 case $srcdir in
1733 .) # We are building in place.
1734 ac_srcdir=.
1735 ac_top_srcdir=$ac_top_builddir_sub
1736 ac_abs_top_srcdir=$ac_pwd ;;
1737 [\\/]* | ?:[\\/]* ) # Absolute name.
1738 ac_srcdir=$srcdir$ac_dir_suffix;
1739 ac_top_srcdir=$srcdir
1740 ac_abs_top_srcdir=$srcdir ;;
1741 *) # Relative name.
1742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743 ac_top_srcdir=$ac_top_build_prefix$srcdir
1744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745 esac
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1748 cd "$ac_dir" || { ac_status=$?; continue; }
1749 # Check for guested configure.
1750 if test -f "$ac_srcdir/configure.gnu"; then
1751 echo &&
1752 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753 elif test -f "$ac_srcdir/configure"; then
1754 echo &&
1755 $SHELL "$ac_srcdir/configure" --help=recursive
1756 else
1757 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758 fi || ac_status=$?
1759 cd "$ac_pwd" || { ac_status=$?; break; }
1760 done
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1765 cat <<\_ACEOF
1766 configure
1767 generated by GNU Autoconf 2.69
1769 Copyright (C) 2012 Free Software Foundation, Inc.
1770 This configure script is free software; the Free Software Foundation
1771 gives unlimited permission to copy, distribute and modify it.
1772 _ACEOF
1773 exit
1776 ## ------------------------ ##
1777 ## Autoconf initialization. ##
1778 ## ------------------------ ##
1780 # ac_fn_cxx_try_compile LINENO
1781 # ----------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_cxx_try_compile ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext
1787 if { { ac_try="$ac_compile"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_compile") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_cxx_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest.$ac_objext; then :
1806 ac_retval=0
1807 else
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1811 ac_retval=1
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1816 } # ac_fn_cxx_try_compile
1818 # ac_fn_c_try_compile LINENO
1819 # --------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_compile ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext
1825 if { { ac_try="$ac_compile"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1849 ac_retval=1
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_c_try_compile
1856 # ac_fn_c_try_cpp LINENO
1857 # ----------------------
1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_c_try_cpp ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_cpp conftest.$ac_ext"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } > conftest.i && {
1878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 }; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=1
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_cpp
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_link ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=1
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1937 } # ac_fn_c_try_link
1939 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942 # the include files in INCLUDES and setting the cache variable VAR
1943 # accordingly.
1944 ac_fn_c_check_header_mongrel ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if eval \${$3+:} false; then :
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 else
1957 # Is the header compilable?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959 $as_echo_n "checking $2 usability... " >&6; }
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1963 #include <$2>
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 ac_header_compiler=yes
1967 else
1968 ac_header_compiler=no
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972 $as_echo "$ac_header_compiler" >&6; }
1974 # Is the header present?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976 $as_echo_n "checking $2 presence... " >&6; }
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_cpp "$LINENO"; then :
1982 ac_header_preproc=yes
1983 else
1984 ac_header_preproc=no
1986 rm -f conftest.err conftest.i conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988 $as_echo "$ac_header_preproc" >&6; }
1990 # So? What about this header?
1991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1992 yes:no: )
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 no:yes:* )
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2002 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2006 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 esac
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 eval "$3=\$ac_header_compiler"
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 } # ac_fn_c_check_header_mongrel
2026 # ac_fn_c_try_run LINENO
2027 # ----------------------
2028 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2029 # that executables *can* be run.
2030 ac_fn_c_try_run ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 if { { ac_try="$ac_link"
2034 case "(($ac_try" in
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_link") 2>&5
2041 ac_status=$?
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2044 { { case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_try") 2>&5
2051 ac_status=$?
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; }; }; then :
2054 ac_retval=0
2055 else
2056 $as_echo "$as_me: program exited with status $ac_status" >&5
2057 $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2060 ac_retval=$ac_status
2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 as_fn_set_status $ac_retval
2066 } # ac_fn_c_try_run
2068 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2069 # -------------------------------------------------------
2070 # Tests whether HEADER exists and can be compiled using the include files in
2071 # INCLUDES, setting the cache variable VAR accordingly.
2072 ac_fn_c_check_header_compile ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076 $as_echo_n "checking for $2... " >&6; }
2077 if eval \${$3+:} false; then :
2078 $as_echo_n "(cached) " >&6
2079 else
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2083 #include <$2>
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 eval "$3=yes"
2087 else
2088 eval "$3=no"
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 } # ac_fn_c_check_header_compile
2099 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2100 # ----------------------------------------------------
2101 # Tries to find if the field MEMBER exists in type AGGR, after including
2102 # INCLUDES, setting cache variable VAR accordingly.
2103 ac_fn_c_check_member ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2107 $as_echo_n "checking for $2.$3... " >&6; }
2108 if eval \${$4+:} false; then :
2109 $as_echo_n "(cached) " >&6
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2115 main ()
2117 static $2 ac_aggr;
2118 if (ac_aggr.$3)
2119 return 0;
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 eval "$4=yes"
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 static $2 ac_aggr;
2134 if (sizeof ac_aggr.$3)
2135 return 0;
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 eval "$4=yes"
2142 else
2143 eval "$4=no"
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 eval ac_res=\$$4
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154 } # ac_fn_c_check_member
2156 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2157 # ---------------------------------------------
2158 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2159 # accordingly.
2160 ac_fn_c_check_decl ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 as_decl_name=`echo $2|sed 's/ *(.*//'`
2164 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2166 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2167 if eval \${$3+:} false; then :
2168 $as_echo_n "(cached) " >&6
2169 else
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2174 main ()
2176 #ifndef $as_decl_name
2177 #ifdef __cplusplus
2178 (void) $as_decl_use;
2179 #else
2180 (void) $as_decl_name;
2181 #endif
2182 #endif
2185 return 0;
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189 eval "$3=yes"
2190 else
2191 eval "$3=no"
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 eval ac_res=\$$3
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200 } # ac_fn_c_check_decl
2202 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2203 # -------------------------------------------
2204 # Tests whether TYPE exists after having included INCLUDES, setting cache
2205 # variable VAR accordingly.
2206 ac_fn_c_check_type ()
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210 $as_echo_n "checking for $2... " >&6; }
2211 if eval \${$3+:} false; then :
2212 $as_echo_n "(cached) " >&6
2213 else
2214 eval "$3=no"
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2219 main ()
2221 if (sizeof ($2))
2222 return 0;
2224 return 0;
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2232 main ()
2234 if (sizeof (($2)))
2235 return 0;
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2242 else
2243 eval "$3=yes"
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 } # ac_fn_c_check_type
2256 # ac_fn_c_check_func LINENO FUNC VAR
2257 # ----------------------------------
2258 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2259 ac_fn_c_check_func ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263 $as_echo_n "checking for $2... " >&6; }
2264 if eval \${$3+:} false; then :
2265 $as_echo_n "(cached) " >&6
2266 else
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2269 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2271 #define $2 innocuous_$2
2273 /* System header to define __stub macros and hopefully few prototypes,
2274 which can conflict with char $2 (); below.
2275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2276 <limits.h> exists even on freestanding compilers. */
2278 #ifdef __STDC__
2279 # include <limits.h>
2280 #else
2281 # include <assert.h>
2282 #endif
2284 #undef $2
2286 /* Override any GCC internal prototype to avoid an error.
2287 Use char because int might match the return type of a GCC
2288 builtin and then its argument prototype would still apply. */
2289 #ifdef __cplusplus
2290 extern "C"
2291 #endif
2292 char $2 ();
2293 /* The GNU C library defines this for functions which it implements
2294 to always fail with ENOSYS. Some functions are actually named
2295 something starting with __ and the normal name is an alias. */
2296 #if defined __stub_$2 || defined __stub___$2
2297 choke me
2298 #endif
2301 main ()
2303 return $2 ();
2305 return 0;
2307 _ACEOF
2308 if ac_fn_c_try_link "$LINENO"; then :
2309 eval "$3=yes"
2310 else
2311 eval "$3=no"
2313 rm -f core conftest.err conftest.$ac_objext \
2314 conftest$ac_exeext conftest.$ac_ext
2316 eval ac_res=\$$3
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2321 } # ac_fn_c_check_func
2322 cat >config.log <<_ACEOF
2323 This file contains any messages produced by compilers while
2324 running configure, to aid debugging if configure makes a mistake.
2326 It was created by $as_me, which was
2327 generated by GNU Autoconf 2.69. Invocation command line was
2329 $ $0 $@
2331 _ACEOF
2332 exec 5>>config.log
2334 cat <<_ASUNAME
2335 ## --------- ##
2336 ## Platform. ##
2337 ## --------- ##
2339 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2340 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2341 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2342 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2343 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2345 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2346 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2348 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2349 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2350 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2351 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2352 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2353 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2354 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2356 _ASUNAME
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 $as_echo "PATH: $as_dir"
2364 done
2365 IFS=$as_save_IFS
2367 } >&5
2369 cat >&5 <<_ACEOF
2372 ## ----------- ##
2373 ## Core tests. ##
2374 ## ----------- ##
2376 _ACEOF
2379 # Keep a trace of the command line.
2380 # Strip out --no-create and --no-recursion so they do not pile up.
2381 # Strip out --silent because we don't want to record it for future runs.
2382 # Also quote any args containing shell meta-characters.
2383 # Make two passes to allow for proper duplicate-argument suppression.
2384 ac_configure_args=
2385 ac_configure_args0=
2386 ac_configure_args1=
2387 ac_must_keep_next=false
2388 for ac_pass in 1 2
2390 for ac_arg
2392 case $ac_arg in
2393 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2395 | -silent | --silent | --silen | --sile | --sil)
2396 continue ;;
2397 *\'*)
2398 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 esac
2400 case $ac_pass in
2401 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2403 as_fn_append ac_configure_args1 " '$ac_arg'"
2404 if test $ac_must_keep_next = true; then
2405 ac_must_keep_next=false # Got value, back to normal.
2406 else
2407 case $ac_arg in
2408 *=* | --config-cache | -C | -disable-* | --disable-* \
2409 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2410 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2411 | -with-* | --with-* | -without-* | --without-* | --x)
2412 case "$ac_configure_args0 " in
2413 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2414 esac
2416 -* ) ac_must_keep_next=true ;;
2417 esac
2419 as_fn_append ac_configure_args " '$ac_arg'"
2421 esac
2422 done
2423 done
2424 { ac_configure_args0=; unset ac_configure_args0;}
2425 { ac_configure_args1=; unset ac_configure_args1;}
2427 # When interrupted or exit'd, cleanup temporary files, and complete
2428 # config.log. We remove comments because anyway the quotes in there
2429 # would cause problems or look ugly.
2430 # WARNING: Use '\'' to represent an apostrophe within the trap.
2431 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2432 trap 'exit_status=$?
2433 # Save into config.log some information that might help in debugging.
2435 echo
2437 $as_echo "## ---------------- ##
2438 ## Cache variables. ##
2439 ## ---------------- ##"
2440 echo
2441 # The following way of writing the cache mishandles newlines in values,
2443 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2444 eval ac_val=\$$ac_var
2445 case $ac_val in #(
2446 *${as_nl}*)
2447 case $ac_var in #(
2448 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2449 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2450 esac
2451 case $ac_var in #(
2452 _ | IFS | as_nl) ;; #(
2453 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2454 *) { eval $ac_var=; unset $ac_var;} ;;
2455 esac ;;
2456 esac
2457 done
2458 (set) 2>&1 |
2459 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2460 *${as_nl}ac_space=\ *)
2461 sed -n \
2462 "s/'\''/'\''\\\\'\'''\''/g;
2463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2464 ;; #(
2466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2468 esac |
2469 sort
2471 echo
2473 $as_echo "## ----------------- ##
2474 ## Output variables. ##
2475 ## ----------------- ##"
2476 echo
2477 for ac_var in $ac_subst_vars
2479 eval ac_val=\$$ac_var
2480 case $ac_val in
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482 esac
2483 $as_echo "$ac_var='\''$ac_val'\''"
2484 done | sort
2485 echo
2487 if test -n "$ac_subst_files"; then
2488 $as_echo "## ------------------- ##
2489 ## File substitutions. ##
2490 ## ------------------- ##"
2491 echo
2492 for ac_var in $ac_subst_files
2494 eval ac_val=\$$ac_var
2495 case $ac_val in
2496 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2497 esac
2498 $as_echo "$ac_var='\''$ac_val'\''"
2499 done | sort
2500 echo
2503 if test -s confdefs.h; then
2504 $as_echo "## ----------- ##
2505 ## confdefs.h. ##
2506 ## ----------- ##"
2507 echo
2508 cat confdefs.h
2509 echo
2511 test "$ac_signal" != 0 &&
2512 $as_echo "$as_me: caught signal $ac_signal"
2513 $as_echo "$as_me: exit $exit_status"
2514 } >&5
2515 rm -f core *.core core.conftest.* &&
2516 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2517 exit $exit_status
2519 for ac_signal in 1 2 13 15; do
2520 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2521 done
2522 ac_signal=0
2524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2525 rm -f -r conftest* confdefs.h
2527 $as_echo "/* confdefs.h */" > confdefs.h
2529 # Predefined preprocessor variables.
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_NAME "$PACKAGE_NAME"
2533 _ACEOF
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2537 _ACEOF
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2541 _ACEOF
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_STRING "$PACKAGE_STRING"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2549 _ACEOF
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_URL "$PACKAGE_URL"
2553 _ACEOF
2556 # Let the site file select an alternate cache file if it wants to.
2557 # Prefer an explicitly selected file to automatically selected ones.
2558 ac_site_file1=NONE
2559 ac_site_file2=NONE
2560 if test -n "$CONFIG_SITE"; then
2561 # We do not want a PATH search for config.site.
2562 case $CONFIG_SITE in #((
2563 -*) ac_site_file1=./$CONFIG_SITE;;
2564 */*) ac_site_file1=$CONFIG_SITE;;
2565 *) ac_site_file1=./$CONFIG_SITE;;
2566 esac
2567 elif test "x$prefix" != xNONE; then
2568 ac_site_file1=$prefix/share/config.site
2569 ac_site_file2=$prefix/etc/config.site
2570 else
2571 ac_site_file1=$ac_default_prefix/share/config.site
2572 ac_site_file2=$ac_default_prefix/etc/config.site
2574 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2576 test "x$ac_site_file" = xNONE && continue
2577 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2579 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2580 sed 's/^/| /' "$ac_site_file" >&5
2581 . "$ac_site_file" \
2582 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 as_fn_error $? "failed to load site script $ac_site_file
2585 See \`config.log' for more details" "$LINENO" 5; }
2587 done
2589 if test -r "$cache_file"; then
2590 # Some versions of bash will fail to source /dev/null (special files
2591 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2592 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2594 $as_echo "$as_me: loading cache $cache_file" >&6;}
2595 case $cache_file in
2596 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2597 *) . "./$cache_file";;
2598 esac
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2602 $as_echo "$as_me: creating cache $cache_file" >&6;}
2603 >$cache_file
2606 as_fn_append ac_header_list " stdlib.h"
2607 as_fn_append ac_header_list " unistd.h"
2608 as_fn_append ac_header_list " sys/param.h"
2609 # Check that the precious variables saved in the cache have kept the same
2610 # value.
2611 ac_cache_corrupted=false
2612 for ac_var in $ac_precious_vars; do
2613 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2614 eval ac_new_set=\$ac_env_${ac_var}_set
2615 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2616 eval ac_new_val=\$ac_env_${ac_var}_value
2617 case $ac_old_set,$ac_new_set in
2618 set,)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2620 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2621 ac_cache_corrupted=: ;;
2622 ,set)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2624 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2626 ,);;
2628 if test "x$ac_old_val" != "x$ac_new_val"; then
2629 # differences in whitespace do not lead to failure.
2630 ac_old_val_w=`echo x $ac_old_val`
2631 ac_new_val_w=`echo x $ac_new_val`
2632 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2634 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2635 ac_cache_corrupted=:
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2638 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2639 eval $ac_var=\$ac_old_val
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2642 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2644 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 fi;;
2646 esac
2647 # Pass precious variables to config.status.
2648 if test "$ac_new_set" = set; then
2649 case $ac_new_val in
2650 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2651 *) ac_arg=$ac_var=$ac_new_val ;;
2652 esac
2653 case " $ac_configure_args " in
2654 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2655 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2656 esac
2658 done
2659 if $ac_cache_corrupted; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2663 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2664 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2666 ## -------------------- ##
2667 ## Main body of script. ##
2668 ## -------------------- ##
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678 ac_aux_dir=
2679 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2680 if test -f "$ac_dir/install-sh"; then
2681 ac_aux_dir=$ac_dir
2682 ac_install_sh="$ac_aux_dir/install-sh -c"
2683 break
2684 elif test -f "$ac_dir/install.sh"; then
2685 ac_aux_dir=$ac_dir
2686 ac_install_sh="$ac_aux_dir/install.sh -c"
2687 break
2688 elif test -f "$ac_dir/shtool"; then
2689 ac_aux_dir=$ac_dir
2690 ac_install_sh="$ac_aux_dir/shtool install -c"
2691 break
2693 done
2694 if test -z "$ac_aux_dir"; then
2695 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2698 # These three variables are undocumented and unsupported,
2699 # and are intended to be withdrawn in a future Autoconf release.
2700 # They can cause serious problems if a builder's source tree is in a directory
2701 # whose full name contains unusual characters.
2702 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2703 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2704 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2708 # Check what host we are running on.
2709 # If a target is not suggested, we use this one.
2710 # Note that what we call a target, Autoconf calls a host.
2711 # Make sure we can run config.sub.
2712 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2713 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2716 $as_echo_n "checking build system type... " >&6; }
2717 if ${ac_cv_build+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 ac_build_alias=$build_alias
2721 test "x$ac_build_alias" = x &&
2722 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2723 test "x$ac_build_alias" = x &&
2724 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2725 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2726 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2730 $as_echo "$ac_cv_build" >&6; }
2731 case $ac_cv_build in
2732 *-*-*) ;;
2733 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2734 esac
2735 build=$ac_cv_build
2736 ac_save_IFS=$IFS; IFS='-'
2737 set x $ac_cv_build
2738 shift
2739 build_cpu=$1
2740 build_vendor=$2
2741 shift; shift
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2744 build_os=$*
2745 IFS=$ac_save_IFS
2746 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2750 $as_echo_n "checking host system type... " >&6; }
2751 if ${ac_cv_host+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test "x$host_alias" = x; then
2755 ac_cv_host=$ac_cv_build
2756 else
2757 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2758 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2763 $as_echo "$ac_cv_host" >&6; }
2764 case $ac_cv_host in
2765 *-*-*) ;;
2766 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2767 esac
2768 host=$ac_cv_host
2769 ac_save_IFS=$IFS; IFS='-'
2770 set x $ac_cv_host
2771 shift
2772 host_cpu=$1
2773 host_vendor=$2
2774 shift; shift
2775 # Remember, the first character of IFS is used to create $*,
2776 # except with old shells:
2777 host_os=$*
2778 IFS=$ac_save_IFS
2779 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2783 # Default versions for the gnu tools we build
2784 default_gcc_version="4.6.4"
2785 default_binutils_version="2.23.2"
2787 # The AROS target is slightly different to the normal GNU style
2788 # format. We don't have the middle part, and we reverse the order
2789 # of the $(CPU) and $(OS) bits.
2791 # Don't strip the version of the target yet, it might be
2792 # useful on some systems.
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2795 $as_echo_n "checking for AROS style target... " >&6; }
2797 if test "$target" = "NONE" ; then
2798 target=$host_os-$host_cpu
2799 else
2800 if test "$target" = "" ; then
2801 target=$host_os-$host_cpu
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2805 $as_echo "$target" >&6; }
2807 if test "$host_os" = "mingw32" ; then
2808 PWDCMD="pwd -W"
2811 # Don't know where else to put this...
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2813 $as_echo_n "checking building AROS in... " >&6; }
2814 AROS_BUILDDIR=`${PWDCMD-pwd}`
2815 AROS_BUILDDIR_UNIX=${PWD}
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2817 $as_echo "$AROS_BUILDDIR" >&6; }
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2820 $as_echo_n "checking AROS source in... " >&6; }
2821 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2822 SRCDIR=${srcpwd}
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2824 $as_echo "$SRCDIR" >&6; }
2826 # Parse the target field into something useful.
2828 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2829 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2832 # Some debug output, to be removed again.
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2834 $as_echo_n "checking for target system (debug output)... " >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2836 $as_echo "$target_os" >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2838 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2840 $as_echo "$target_cpu" >&6; }
2842 aros_nominal_width=800
2843 aros_nominal_height=600
2844 aros_nominal_depth=4
2847 default_c_compilers="gcc clang cc"
2849 # Check whether --with-c-compiler was given.
2850 if test "${with_c_compiler+set}" = set; then :
2851 withval=$with_c_compiler; use_c_compiler="$withval"
2852 else
2853 use_c_compiler=""
2856 if test "$use_c_compiler" = ""; then
2857 host_c_compilers="$default_c_compilers"
2858 else
2859 host_c_compilers="$use_c_compiler"
2862 default_cxx_compilers="g++ clang++ c++"
2864 # Check whether --with-cxx-compiler was given.
2865 if test "${with_cxx_compiler+set}" = set; then :
2866 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2867 else
2868 use_cxx_compiler=""
2871 if test "$use_cxx_compiler" = ""; then
2872 host_cxx_compilers="$default_cxx_compilers"
2873 else
2874 host_cxx_compilers="$use_cxx_compiler"
2878 # The first step is to find the host binaries.
2879 # Check for a compiler.
2880 # Due to a bug in autoconf check for c++ compiler first.
2881 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2882 ac_ext=cpp
2883 ac_cpp='$CXXCPP $CPPFLAGS'
2884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2887 if test -z "$CXX"; then
2888 if test -n "$CCC"; then
2889 CXX=$CCC
2890 else
2891 if test -n "$ac_tool_prefix"; then
2892 for ac_prog in ${host_cxx_compilers}
2894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_CXX+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CXX"; then
2902 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2915 done
2916 done
2917 IFS=$as_save_IFS
2921 CXX=$ac_cv_prog_CXX
2922 if test -n "$CXX"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2924 $as_echo "$CXX" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2931 test -n "$CXX" && break
2932 done
2934 if test -z "$CXX"; then
2935 ac_ct_CXX=$CXX
2936 for ac_prog in ${host_cxx_compilers}
2938 # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 set dummy $ac_prog; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$ac_ct_CXX"; then
2946 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_CXX="$ac_prog"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2959 done
2960 done
2961 IFS=$as_save_IFS
2965 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2966 if test -n "$ac_ct_CXX"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2968 $as_echo "$ac_ct_CXX" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2975 test -n "$ac_ct_CXX" && break
2976 done
2978 if test "x$ac_ct_CXX" = x; then
2979 CXX="g++"
2980 else
2981 case $cross_compiling:$ac_tool_warned in
2982 yes:)
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2985 ac_tool_warned=yes ;;
2986 esac
2987 CXX=$ac_ct_CXX
2993 # Provide some information about the compiler.
2994 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2995 set X $ac_compile
2996 ac_compiler=$2
2997 for ac_option in --version -v -V -qversion; do
2998 { { ac_try="$ac_compiler $ac_option >&5"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3006 ac_status=$?
3007 if test -s conftest.err; then
3008 sed '10a\
3009 ... rest of stderr output deleted ...
3010 10q' conftest.err >conftest.er1
3011 cat conftest.er1 >&5
3013 rm -f conftest.er1 conftest.err
3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015 test $ac_status = 0; }
3016 done
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h. */
3022 main ()
3026 return 0;
3028 _ACEOF
3029 ac_clean_files_save=$ac_clean_files
3030 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3031 # Try to create an executable without -o first, disregard a.out.
3032 # It will help us diagnose broken compilers, and finding out an intuition
3033 # of exeext.
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3035 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3036 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3038 # The possible output files:
3039 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3041 ac_rmfiles=
3042 for ac_file in $ac_files
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3046 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3047 esac
3048 done
3049 rm -f $ac_rmfiles
3051 if { { ac_try="$ac_link_default"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_link_default") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }; then :
3062 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3063 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3064 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3065 # so that the user can short-circuit this test for compilers unknown to
3066 # Autoconf.
3067 for ac_file in $ac_files ''
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3073 [ab].out )
3074 # We found the default executable, but exeext='' is most
3075 # certainly right.
3076 break;;
3077 *.* )
3078 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3079 then :; else
3080 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 # We set ac_cv_exeext here because the later test for it is not
3083 # safe: cross compilers may not add the suffix if given an `-o'
3084 # argument, so we may need to know it at that point already.
3085 # Even if this section looks crufty: it has the advantage of
3086 # actually working.
3087 break;;
3089 break;;
3090 esac
3091 done
3092 test "$ac_cv_exeext" = no && ac_cv_exeext=
3094 else
3095 ac_file=''
3097 if test -z "$ac_file"; then :
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 as_fn_error 77 "C++ compiler cannot create executables
3106 See \`config.log' for more details" "$LINENO" 5; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3109 $as_echo "yes" >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3112 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3114 $as_echo "$ac_file" >&6; }
3115 ac_exeext=$ac_cv_exeext
3117 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3118 ac_clean_files=$ac_clean_files_save
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3120 $as_echo_n "checking for suffix of executables... " >&6; }
3121 if { { ac_try="$ac_link"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_link") 2>&5
3129 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3133 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3134 # work properly (i.e., refer to `conftest.exe'), while it won't with
3135 # `rm'.
3136 for ac_file in conftest.exe conftest conftest.*; do
3137 test -f "$ac_file" || continue
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141 break;;
3142 * ) break;;
3143 esac
3144 done
3145 else
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3149 See \`config.log' for more details" "$LINENO" 5; }
3151 rm -f conftest conftest$ac_cv_exeext
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3153 $as_echo "$ac_cv_exeext" >&6; }
3155 rm -f conftest.$ac_ext
3156 EXEEXT=$ac_cv_exeext
3157 ac_exeext=$EXEEXT
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160 #include <stdio.h>
3162 main ()
3164 FILE *f = fopen ("conftest.out", "w");
3165 return ferror (f) || fclose (f) != 0;
3168 return 0;
3170 _ACEOF
3171 ac_clean_files="$ac_clean_files conftest.out"
3172 # Check that the compiler produces executables we can run. If not, either
3173 # the compiler is broken, or we cross compile.
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3175 $as_echo_n "checking whether we are cross compiling... " >&6; }
3176 if test "$cross_compiling" != yes; then
3177 { { ac_try="$ac_link"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_link") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3188 if { ac_try='./conftest$ac_cv_exeext'
3189 { { case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_try") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; }; then
3199 cross_compiling=no
3200 else
3201 if test "$cross_compiling" = maybe; then
3202 cross_compiling=yes
3203 else
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot run C++ compiled programs.
3207 If you meant to cross compile, use \`--host'.
3208 See \`config.log' for more details" "$LINENO" 5; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3213 $as_echo "$cross_compiling" >&6; }
3215 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3216 ac_clean_files=$ac_clean_files_save
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3218 $as_echo_n "checking for suffix of object files... " >&6; }
3219 if ${ac_cv_objext+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3226 main ()
3230 return 0;
3232 _ACEOF
3233 rm -f conftest.o conftest.obj
3234 if { { ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compile") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 for ac_file in conftest.o conftest.obj conftest.*; do
3246 test -f "$ac_file" || continue;
3247 case $ac_file in
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3250 break;;
3251 esac
3252 done
3253 else
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error $? "cannot compute suffix of object files: cannot compile
3260 See \`config.log' for more details" "$LINENO" 5; }
3262 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3265 $as_echo "$ac_cv_objext" >&6; }
3266 OBJEXT=$ac_cv_objext
3267 ac_objext=$OBJEXT
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3269 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3270 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3277 main ()
3279 #ifndef __GNUC__
3280 choke me
3281 #endif
3284 return 0;
3286 _ACEOF
3287 if ac_fn_cxx_try_compile "$LINENO"; then :
3288 ac_compiler_gnu=yes
3289 else
3290 ac_compiler_gnu=no
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3297 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3298 if test $ac_compiler_gnu = yes; then
3299 GXX=yes
3300 else
3301 GXX=
3303 ac_test_CXXFLAGS=${CXXFLAGS+set}
3304 ac_save_CXXFLAGS=$CXXFLAGS
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3306 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3307 if ${ac_cv_prog_cxx_g+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3311 ac_cxx_werror_flag=yes
3312 ac_cv_prog_cxx_g=no
3313 CXXFLAGS="-g"
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 if ac_fn_cxx_try_compile "$LINENO"; then :
3326 ac_cv_prog_cxx_g=yes
3327 else
3328 CXXFLAGS=""
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3333 main ()
3337 return 0;
3339 _ACEOF
3340 if ac_fn_cxx_try_compile "$LINENO"; then :
3342 else
3343 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3344 CXXFLAGS="-g"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3349 main ()
3353 return 0;
3355 _ACEOF
3356 if ac_fn_cxx_try_compile "$LINENO"; then :
3357 ac_cv_prog_cxx_g=yes
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3367 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3368 if test "$ac_test_CXXFLAGS" = set; then
3369 CXXFLAGS=$ac_save_CXXFLAGS
3370 elif test $ac_cv_prog_cxx_g = yes; then
3371 if test "$GXX" = yes; then
3372 CXXFLAGS="-g -O2"
3373 else
3374 CXXFLAGS="-g"
3376 else
3377 if test "$GXX" = yes; then
3378 CXXFLAGS="-O2"
3379 else
3380 CXXFLAGS=
3383 ac_ext=c
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 if test -n "$ac_tool_prefix"; then
3395 for ac_prog in ${host_c_compilers}
3397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3418 done
3419 done
3420 IFS=$as_save_IFS
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3434 test -n "$CC" && break
3435 done
3437 if test -z "$CC"; then
3438 ac_ct_CC=$CC
3439 for ac_prog in ${host_c_compilers}
3441 # Extract the first word of "$ac_prog", so it can be a program name with args.
3442 set dummy $ac_prog; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -n "$ac_ct_CC"; then
3449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_ac_ct_CC="$ac_prog"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3462 done
3463 done
3464 IFS=$as_save_IFS
3468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469 if test -n "$ac_ct_CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3471 $as_echo "$ac_ct_CC" >&6; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3478 test -n "$ac_ct_CC" && break
3479 done
3481 if test "x$ac_ct_CC" = x; then
3482 CC=""
3483 else
3484 case $cross_compiling:$ac_tool_warned in
3485 yes:)
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3488 ac_tool_warned=yes ;;
3489 esac
3490 CC=$ac_ct_CC
3495 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error $? "no acceptable C compiler found in \$PATH
3498 See \`config.log' for more details" "$LINENO" 5; }
3500 # Provide some information about the compiler.
3501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3502 set X $ac_compile
3503 ac_compiler=$2
3504 for ac_option in --version -v -V -qversion; do
3505 { { ac_try="$ac_compiler $ac_option >&5"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3513 ac_status=$?
3514 if test -s conftest.err; then
3515 sed '10a\
3516 ... rest of stderr output deleted ...
3517 10q' conftest.err >conftest.er1
3518 cat conftest.er1 >&5
3520 rm -f conftest.er1 conftest.err
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }
3523 done
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3526 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3527 if ${ac_cv_c_compiler_gnu+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3534 main ()
3536 #ifndef __GNUC__
3537 choke me
3538 #endif
3541 return 0;
3543 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_compiler_gnu=yes
3546 else
3547 ac_compiler_gnu=no
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3554 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3555 if test $ac_compiler_gnu = yes; then
3556 GCC=yes
3557 else
3558 GCC=
3560 ac_test_CFLAGS=${CFLAGS+set}
3561 ac_save_CFLAGS=$CFLAGS
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3563 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3564 if ${ac_cv_prog_cc_g+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 ac_save_c_werror_flag=$ac_c_werror_flag
3568 ac_c_werror_flag=yes
3569 ac_cv_prog_cc_g=no
3570 CFLAGS="-g"
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3575 main ()
3579 return 0;
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_cv_prog_cc_g=yes
3584 else
3585 CFLAGS=""
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3590 main ()
3594 return 0;
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3599 else
3600 ac_c_werror_flag=$ac_save_c_werror_flag
3601 CFLAGS="-g"
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3606 main ()
3610 return 0;
3612 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614 ac_cv_prog_cc_g=yes
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 ac_c_werror_flag=$ac_save_c_werror_flag
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3624 $as_echo "$ac_cv_prog_cc_g" >&6; }
3625 if test "$ac_test_CFLAGS" = set; then
3626 CFLAGS=$ac_save_CFLAGS
3627 elif test $ac_cv_prog_cc_g = yes; then
3628 if test "$GCC" = yes; then
3629 CFLAGS="-g -O2"
3630 else
3631 CFLAGS="-g"
3633 else
3634 if test "$GCC" = yes; then
3635 CFLAGS="-O2"
3636 else
3637 CFLAGS=
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3641 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3642 if ${ac_cv_prog_cc_c89+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 ac_cv_prog_cc_c89=no
3646 ac_save_CC=$CC
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649 #include <stdarg.h>
3650 #include <stdio.h>
3651 struct stat;
3652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3653 struct buf { int x; };
3654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3655 static char *e (p, i)
3656 char **p;
3657 int i;
3659 return p[i];
3661 static char *f (char * (*g) (char **, int), char **p, ...)
3663 char *s;
3664 va_list v;
3665 va_start (v,p);
3666 s = g (p, va_arg (v,int));
3667 va_end (v);
3668 return s;
3671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3672 function prototypes and stuff, but not '\xHH' hex character constants.
3673 These don't provoke an error unfortunately, instead are silently treated
3674 as 'x'. The following induces an error, until -std is added to get
3675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3676 array size at least. It's necessary to write '\x00'==0 to get something
3677 that's true only with -std. */
3678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3681 inside strings and character constants. */
3682 #define FOO(x) 'x'
3683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3685 int test (int i, double x);
3686 struct s1 {int (*f) (int a);};
3687 struct s2 {int (*f) (double a);};
3688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3689 int argc;
3690 char **argv;
3692 main ()
3694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3696 return 0;
3698 _ACEOF
3699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3702 CC="$ac_save_CC $ac_arg"
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_cv_prog_cc_c89=$ac_arg
3706 rm -f core conftest.err conftest.$ac_objext
3707 test "x$ac_cv_prog_cc_c89" != "xno" && break
3708 done
3709 rm -f conftest.$ac_ext
3710 CC=$ac_save_CC
3713 # AC_CACHE_VAL
3714 case "x$ac_cv_prog_cc_c89" in
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3717 $as_echo "none needed" >&6; } ;;
3718 xno)
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3720 $as_echo "unsupported" >&6; } ;;
3722 CC="$CC $ac_cv_prog_cc_c89"
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3724 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3725 esac
3726 if test "x$ac_cv_prog_cc_c89" != xno; then :
3730 ac_ext=c
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736 aros_host_def_cc="$CC"
3737 case $ac_cv_prog_cc_stdc in #(
3738 no) :
3739 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3740 *) :
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3742 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3743 if ${ac_cv_prog_cc_c99+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 ac_cv_prog_cc_c99=no
3747 ac_save_CC=$CC
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750 #include <stdarg.h>
3751 #include <stdbool.h>
3752 #include <stdlib.h>
3753 #include <wchar.h>
3754 #include <stdio.h>
3756 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3757 #define debug(...) fprintf (stderr, __VA_ARGS__)
3758 #define showlist(...) puts (#__VA_ARGS__)
3759 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3760 static void
3761 test_varargs_macros (void)
3763 int x = 1234;
3764 int y = 5678;
3765 debug ("Flag");
3766 debug ("X = %d\n", x);
3767 showlist (The first, second, and third items.);
3768 report (x>y, "x is %d but y is %d", x, y);
3771 // Check long long types.
3772 #define BIG64 18446744073709551615ull
3773 #define BIG32 4294967295ul
3774 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3775 #if !BIG_OK
3776 your preprocessor is broken;
3777 #endif
3778 #if BIG_OK
3779 #else
3780 your preprocessor is broken;
3781 #endif
3782 static long long int bignum = -9223372036854775807LL;
3783 static unsigned long long int ubignum = BIG64;
3785 struct incomplete_array
3787 int datasize;
3788 double data[];
3791 struct named_init {
3792 int number;
3793 const wchar_t *name;
3794 double average;
3797 typedef const char *ccp;
3799 static inline int
3800 test_restrict (ccp restrict text)
3802 // See if C++-style comments work.
3803 // Iterate through items via the restricted pointer.
3804 // Also check for declarations in for loops.
3805 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3806 continue;
3807 return 0;
3810 // Check varargs and va_copy.
3811 static void
3812 test_varargs (const char *format, ...)
3814 va_list args;
3815 va_start (args, format);
3816 va_list args_copy;
3817 va_copy (args_copy, args);
3819 const char *str;
3820 int number;
3821 float fnumber;
3823 while (*format)
3825 switch (*format++)
3827 case 's': // string
3828 str = va_arg (args_copy, const char *);
3829 break;
3830 case 'd': // int
3831 number = va_arg (args_copy, int);
3832 break;
3833 case 'f': // float
3834 fnumber = va_arg (args_copy, double);
3835 break;
3836 default:
3837 break;
3840 va_end (args_copy);
3841 va_end (args);
3845 main ()
3848 // Check bool.
3849 _Bool success = false;
3851 // Check restrict.
3852 if (test_restrict ("String literal") == 0)
3853 success = true;
3854 char *restrict newvar = "Another string";
3856 // Check varargs.
3857 test_varargs ("s, d' f .", "string", 65, 34.234);
3858 test_varargs_macros ();
3860 // Check flexible array members.
3861 struct incomplete_array *ia =
3862 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3863 ia->datasize = 10;
3864 for (int i = 0; i < ia->datasize; ++i)
3865 ia->data[i] = i * 1.234;
3867 // Check named initializers.
3868 struct named_init ni = {
3869 .number = 34,
3870 .name = L"Test wide string",
3871 .average = 543.34343,
3874 ni.number = 58;
3876 int dynamic_array[ni.number];
3877 dynamic_array[ni.number - 1] = 543;
3879 // work around unused variable warnings
3880 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3881 || dynamic_array[ni.number - 1] != 543);
3884 return 0;
3886 _ACEOF
3887 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3889 CC="$ac_save_CC $ac_arg"
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_prog_cc_c99=$ac_arg
3893 rm -f core conftest.err conftest.$ac_objext
3894 test "x$ac_cv_prog_cc_c99" != "xno" && break
3895 done
3896 rm -f conftest.$ac_ext
3897 CC=$ac_save_CC
3900 # AC_CACHE_VAL
3901 case "x$ac_cv_prog_cc_c99" in
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3904 $as_echo "none needed" >&6; } ;;
3905 xno)
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3907 $as_echo "unsupported" >&6; } ;;
3909 CC="$CC $ac_cv_prog_cc_c99"
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3911 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3912 esac
3913 if test "x$ac_cv_prog_cc_c99" != xno; then :
3914 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3915 else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3917 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3918 if ${ac_cv_prog_cc_c89+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 ac_cv_prog_cc_c89=no
3922 ac_save_CC=$CC
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925 #include <stdarg.h>
3926 #include <stdio.h>
3927 struct stat;
3928 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3929 struct buf { int x; };
3930 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3931 static char *e (p, i)
3932 char **p;
3933 int i;
3935 return p[i];
3937 static char *f (char * (*g) (char **, int), char **p, ...)
3939 char *s;
3940 va_list v;
3941 va_start (v,p);
3942 s = g (p, va_arg (v,int));
3943 va_end (v);
3944 return s;
3947 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3948 function prototypes and stuff, but not '\xHH' hex character constants.
3949 These don't provoke an error unfortunately, instead are silently treated
3950 as 'x'. The following induces an error, until -std is added to get
3951 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3952 array size at least. It's necessary to write '\x00'==0 to get something
3953 that's true only with -std. */
3954 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3956 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3957 inside strings and character constants. */
3958 #define FOO(x) 'x'
3959 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3961 int test (int i, double x);
3962 struct s1 {int (*f) (int a);};
3963 struct s2 {int (*f) (double a);};
3964 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3965 int argc;
3966 char **argv;
3968 main ()
3970 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3972 return 0;
3974 _ACEOF
3975 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3976 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3978 CC="$ac_save_CC $ac_arg"
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_cv_prog_cc_c89=$ac_arg
3982 rm -f core conftest.err conftest.$ac_objext
3983 test "x$ac_cv_prog_cc_c89" != "xno" && break
3984 done
3985 rm -f conftest.$ac_ext
3986 CC=$ac_save_CC
3989 # AC_CACHE_VAL
3990 case "x$ac_cv_prog_cc_c89" in
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3993 $as_echo "none needed" >&6; } ;;
3994 xno)
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996 $as_echo "unsupported" >&6; } ;;
3998 CC="$CC $ac_cv_prog_cc_c89"
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4000 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4001 esac
4002 if test "x$ac_cv_prog_cc_c89" != xno; then :
4003 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4004 else
4005 ac_cv_prog_cc_stdc=no
4010 esac
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4012 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4013 if ${ac_cv_prog_cc_stdc+:} false; then :
4014 $as_echo_n "(cached) " >&6
4017 case $ac_cv_prog_cc_stdc in #(
4018 no) :
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4020 $as_echo "unsupported" >&6; } ;; #(
4021 '') :
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4023 $as_echo "none needed" >&6; } ;; #(
4024 *) :
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4026 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4027 esac
4029 ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4035 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4036 # On Suns, sometimes $CPP names a directory.
4037 if test -n "$CPP" && test -d "$CPP"; then
4038 CPP=
4040 if test -z "$CPP"; then
4041 if ${ac_cv_prog_CPP+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 # Double quotes because CPP needs to be expanded
4045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4047 ac_preproc_ok=false
4048 for ac_c_preproc_warn_flag in '' yes
4050 # Use a header file that comes with gcc, so configuring glibc
4051 # with a fresh cross-compiler works.
4052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053 # <limits.h> exists even on freestanding compilers.
4054 # On the NeXT, cc -E runs the code through the compiler's parser,
4055 # not just through cpp. "Syntax error" is here to catch this case.
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #ifdef __STDC__
4059 # include <limits.h>
4060 #else
4061 # include <assert.h>
4062 #endif
4063 Syntax error
4064 _ACEOF
4065 if ac_fn_c_try_cpp "$LINENO"; then :
4067 else
4068 # Broken: fails on valid input.
4069 continue
4071 rm -f conftest.err conftest.i conftest.$ac_ext
4073 # OK, works on sane cases. Now check whether nonexistent headers
4074 # can be detected and how.
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077 #include <ac_nonexistent.h>
4078 _ACEOF
4079 if ac_fn_c_try_cpp "$LINENO"; then :
4080 # Broken: success on invalid input.
4081 continue
4082 else
4083 # Passes both tests.
4084 ac_preproc_ok=:
4085 break
4087 rm -f conftest.err conftest.i conftest.$ac_ext
4089 done
4090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091 rm -f conftest.i conftest.err conftest.$ac_ext
4092 if $ac_preproc_ok; then :
4093 break
4096 done
4097 ac_cv_prog_CPP=$CPP
4100 CPP=$ac_cv_prog_CPP
4101 else
4102 ac_cv_prog_CPP=$CPP
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4105 $as_echo "$CPP" >&6; }
4106 ac_preproc_ok=false
4107 for ac_c_preproc_warn_flag in '' yes
4109 # Use a header file that comes with gcc, so configuring glibc
4110 # with a fresh cross-compiler works.
4111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112 # <limits.h> exists even on freestanding compilers.
4113 # On the NeXT, cc -E runs the code through the compiler's parser,
4114 # not just through cpp. "Syntax error" is here to catch this case.
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #ifdef __STDC__
4118 # include <limits.h>
4119 #else
4120 # include <assert.h>
4121 #endif
4122 Syntax error
4123 _ACEOF
4124 if ac_fn_c_try_cpp "$LINENO"; then :
4126 else
4127 # Broken: fails on valid input.
4128 continue
4130 rm -f conftest.err conftest.i conftest.$ac_ext
4132 # OK, works on sane cases. Now check whether nonexistent headers
4133 # can be detected and how.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4136 #include <ac_nonexistent.h>
4137 _ACEOF
4138 if ac_fn_c_try_cpp "$LINENO"; then :
4139 # Broken: success on invalid input.
4140 continue
4141 else
4142 # Passes both tests.
4143 ac_preproc_ok=:
4144 break
4146 rm -f conftest.err conftest.i conftest.$ac_ext
4148 done
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.i conftest.err conftest.$ac_ext
4151 if $ac_preproc_ok; then :
4153 else
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4157 See \`config.log' for more details" "$LINENO" 5; }
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 # Check for a compatible awk
4168 for ac_prog in gawk nawk
4170 # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_AWK+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -n "$AWK"; then
4178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_AWK="$ac_prog"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4197 AWK=$ac_cv_prog_AWK
4198 if test -n "$AWK"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4200 $as_echo "$AWK" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4207 test -n "$AWK" && break
4208 done
4210 req_avail=yes
4211 if test "$AWK" = ""; then
4212 req_avail=no
4214 if test "$AWK" = "no"; then
4215 req_avail=no
4217 if test "$req_avail" = "no"; then
4218 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4220 # Extract the first word of "mmake", so it can be a program name with args.
4221 set dummy mmake; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_MMAKE+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$MMAKE"; then
4228 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_MMAKE="mmake "
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4241 done
4242 done
4243 IFS=$as_save_IFS
4247 MMAKE=$ac_cv_prog_MMAKE
4248 if test -n "$MMAKE"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4250 $as_echo "$MMAKE" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4258 # Perform some default variable assignments. Note all of these will be
4259 # Regenerated from the script, so there is no need to cache them.
4261 aros_build_host=$host
4262 aros_host_cpp="$CPP"
4263 aros_host_cc="$CC"
4264 aros_host_cxx="$CXX"
4265 if test "$GCC" = "yes"; then
4266 aros_gcc_ld=`$CC -print-prog-name=ld`
4267 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4268 set dummy `basename $aros_gcc_ld`; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if ${ac_cv_path_aros_host_ld+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 case $aros_host_ld in
4275 [\\/]* | ?:[\\/]*)
4276 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in `dirname $aros_gcc_ld`
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4290 done
4291 done
4292 IFS=$as_save_IFS
4295 esac
4297 aros_host_ld=$ac_cv_path_aros_host_ld
4298 if test -n "$aros_host_ld"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4300 $as_echo "$aros_host_ld" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4308 if test "$aros_host_ld" = ""; then
4309 # Extract the first word of "ld", so it can be a program name with args.
4310 set dummy ld; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_path_aros_host_ld+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 case $aros_host_ld in
4317 [\\/]* | ?:[\\/]*)
4318 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4337 esac
4339 aros_host_ld=$ac_cv_path_aros_host_ld
4340 if test -n "$aros_host_ld"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4342 $as_echo "$aros_host_ld" >&6; }
4343 else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4350 req_avail=yes
4351 if test "$aros_host_ld" = ""; then
4352 req_avail=no
4354 if test "$aros_host_ld" = "no"; then
4355 req_avail=no
4357 if test "$req_avail" = "no"; then
4358 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4360 aros_host_make="make"
4361 aros_host_cflags="$CFLAGS"
4362 aros_host_cxxflags="$CXXFLAGS"
4363 aros_host_ldflags="$LDFLAGS"
4364 aros_host_debug="-g -O0"
4365 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4366 aros_host_mkargs="--no-print-directory"
4367 aros_host_exe_suffix="$EXEEXT"
4368 aros_host_lib_suffix=""
4370 # Ignore all compliance, AROS ROMs = 0
4371 # KickStart v1.0 = 30
4372 # KickStart v1.3 = 34
4373 # KickStart v2.0 = 37
4374 # KickStart v3.0 = 39
4375 # KickStart v3.1 = 40
4376 # AmigaOS v3.5 = 44
4377 aros_amigaos_compliance=0
4379 for ac_prog in aclocal aclocal19 aclocal-1.9
4381 # Extract the first word of "$ac_prog", so it can be a program name with args.
4382 set dummy $ac_prog; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -n "$aros_host_aclocal"; then
4389 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_prog_aros_host_aclocal="$ac_prog"
4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4402 done
4403 done
4404 IFS=$as_save_IFS
4408 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4409 if test -n "$aros_host_aclocal"; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4411 $as_echo "$aros_host_aclocal" >&6; }
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4418 test -n "$aros_host_aclocal" && break
4419 done
4421 for ac_prog in autoconf autoconf259 autoconf253
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424 set dummy $ac_prog; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 if test -n "$aros_host_autoconf"; then
4431 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_aros_host_autoconf="$ac_prog"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4446 IFS=$as_save_IFS
4450 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4451 if test -n "$aros_host_autoconf"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4453 $as_echo "$aros_host_autoconf" >&6; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4460 test -n "$aros_host_autoconf" && break
4461 done
4463 for ac_prog in autoheader autoheader259 autoheader253
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test -n "$aros_host_autoheader"; then
4473 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_aros_host_autoheader="$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4492 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4493 if test -n "$aros_host_autoheader"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4495 $as_echo "$aros_host_autoheader" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4502 test -n "$aros_host_autoheader" && break
4503 done
4505 for ac_prog in automake automake19 automake-1.9
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_aros_host_automake+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$aros_host_automake"; then
4515 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_aros_host_automake="$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4530 IFS=$as_save_IFS
4534 aros_host_automake=$ac_cv_prog_aros_host_automake
4535 if test -n "$aros_host_automake"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4537 $as_echo "$aros_host_automake" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4544 test -n "$aros_host_automake" && break
4545 done
4548 req_avail=yes
4549 if test "$aros_host_aclocal" = ""; then
4550 req_avail=no
4552 if test "$aros_host_aclocal" = "no"; then
4553 req_avail=no
4555 if test "$req_avail" = "no"; then
4556 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4558 req_avail=yes
4559 if test "$aros_host_automake" = ""; then
4560 req_avail=no
4562 if test "$aros_host_automake" = "no"; then
4563 req_avail=no
4565 if test "$req_avail" = "no"; then
4566 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4569 case "$aros_host_cc" in
4570 *clang*)
4571 aros_host_cc_pipe=""
4573 *gcc*)
4574 aros_host_cc_pipe="-pipe"
4576 icc)
4577 aros_host_cc_pipe=""
4580 aros_host_cc_pipe=""
4582 esac
4584 aros_kernel_cc_includes=""
4585 aros_target_cc_includes=""
4586 host_cc_elf=yes
4588 # ----------------------------------------------------------------------------------------
4589 # Host-specific defaults
4591 # This is the main host configuration section. It is where the host
4592 # can change the values of any variables it needs to change. We do
4593 # not look at anything that compiles to the target yet, we'll get
4594 # to that later.
4596 case "$host_os" in
4597 aros*)
4598 aros_host_arch="aros"
4599 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4600 case "$host_cpu" in
4601 *i?86*)
4602 aros_host_cpu="i386"
4604 *x86_64*)
4605 aros_host_cpu="x86_64"
4607 *powerpc*)
4608 aros_host_cpu="ppc"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4612 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4613 aros_host_cpu="$host_cpu"
4615 esac
4618 linux*)
4619 aros_host_arch="linux"
4620 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4621 android_build_os="linux-x86"
4622 android_tool="android"
4623 default_android_sdk="/opt/android-sdk-linux_x86"
4624 case "$host_cpu" in
4625 *i?86*)
4626 aros_host_cpu="i386"
4628 *x86_64*)
4629 aros_host_cpu="x86_64"
4631 *m68k*)
4632 aros_host_cpu="m68k"
4634 *powerpc*)
4635 aros_host_cpu="ppc"
4637 *arm*)
4638 aros_host_cpu="arm"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4642 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4643 aros_host_cpu="$host_cpu"
4645 esac
4648 freebsd*)
4649 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4650 aros_host_make="gmake"
4651 aros_host_arch="freebsd"
4652 aros_host_cpu="i386"
4654 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4656 case $host_os in
4657 freebsd[234]*)
4658 aros_object_format="elf_i386"
4662 aros_object_format="elf_i386_fbsd"
4664 esac
4668 darwin*)
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4670 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4671 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 test "$cross_compiling" = yes &&
4675 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4676 if test -r "/usr/include/stddef.h"; then
4677 ac_cv_file__usr_include_stddef_h=yes
4678 else
4679 ac_cv_file__usr_include_stddef_h=no
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4683 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4684 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4686 else
4687 as_fn_error $? "XCode incorrectly configured!
4688 please run 'xcode-select --install' before
4689 re-running configure" "$LINENO" 5
4693 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4694 aros_host_arch="darwin"
4695 host_cc_elf=no
4696 if [ -z ${SED+x} ]; then SED="gsed"; fi
4697 android_build_os="darwin-x86"
4698 android_tool="android"
4699 default_android_sdk="/android-sdk-mac_x86"
4700 case "$host_cpu" in
4701 *i?86*)
4702 aros_host_cpu="i386"
4704 *x86_64*)
4705 aros_host_cpu="x86_64"
4707 *powerpc*)
4708 aros_host_cpu="ppc"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4712 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4713 aros_host_cpu="$host_cpu"
4715 esac
4717 aros_host_ldflags="$aros_host_ldflags -liconv"
4721 dragonfly*)
4722 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4723 aros_host_make="gmake"
4724 aros_host_arch="dragonfly"
4725 case $host_cpu in
4726 *i?86*)
4727 aros_host_cpu="i386"
4729 *amd64*)
4730 aros_host_cpu="x86_64"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4734 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4735 aros_host_cpu="$host_cpu"
4737 esac
4740 netbsd*)
4741 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4742 aros_host_make="gmake"
4743 aros_host_arch="netbsd"
4744 case "$host_cpu" in
4745 *i?86*)
4746 aros_host_cpu="i386"
4748 *m68k*)
4749 aros_host_cpu="m68k"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4753 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4754 aros_host_cpu="$host_cpu"
4756 esac
4757 aros_host_lib_suffix=".0.0"
4760 openbsd*)
4761 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4762 aros_host_make="gmake"
4763 aros_host_arch="openbsd"
4764 case "$host_cpu" in
4765 *i?86*)
4766 aros_host_cpu="i386"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4770 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4771 aros_host_cpu="$host_cpu"
4773 esac
4776 solaris*)
4777 aros_host_arch="solaris"
4778 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4779 case "$host_cpu" in
4780 *i?86*)
4781 aros_host_cpu="i386"
4783 *sparc*)
4784 aros_host_cpu="sparc"
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
4794 morphos*)
4795 aros_host_arch="morphos"
4796 aros_host_cpu="ppc"
4797 host_cc_elf=no
4800 amiga*)
4801 aros_host_arch="amiga"
4802 host_cc_elf=no
4803 SORT="/gg/bin/sort"
4804 TEST="/gg/bin/test"
4805 UNIQ="/gg/bin/uniq"
4806 FOR="for"
4807 TOUCH="/gg/bin/touch"
4808 case "$host_cpu" in
4809 *m68k*)
4810 aros_host_cpu="m68k"
4812 *powerpc*)
4813 aros_host_cpu="ppc"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4817 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4818 aros_host_cpu="$host_cpu"
4820 esac
4823 cygwin*)
4824 aros_host_arch="cygwin"
4825 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4826 host_cc_elf=no
4827 android_build_os="windows"
4828 android_tool="android.bat"
4829 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4831 case "$host_cpu" in
4832 *i?86*)
4833 aros_host_cpu="i386"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4837 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4838 aros_host_cpu="$host_cpu"
4840 esac
4843 mingw32*)
4844 aros_host_arch="mingw32"
4845 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4846 host_cc_elf=no
4847 android_build_os="windows"
4848 android_tool="android.bat"
4849 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4851 libpng_libextra="-lws2_32"
4853 case "$host_cpu" in
4854 *i?86*)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4857 $as_echo_n "checking for Windows native gcc target... " >&6; }
4858 host_cpu=`gcc -dumpmachine`
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4860 $as_echo "$host_cpu" >&6; }
4863 esac
4865 case "$host_cpu" in
4866 *i?86*)
4867 aros_host_cpu="i386"
4870 mingw32*)
4871 aros_host_cpu="i386"
4874 *x86_64*)
4875 aros_host_cpu="x86_64"
4876 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4881 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4882 aros_host_cpu="$host_cpu"
4884 esac
4887 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4889 esac
4891 # Extract the first word of "ar", so it can be a program name with args.
4892 set dummy ar; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_aros_host_ar+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -n "$aros_host_ar"; then
4899 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_prog_aros_host_ar="ar cr"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4912 done
4913 done
4914 IFS=$as_save_IFS
4918 aros_host_ar=$ac_cv_prog_aros_host_ar
4919 if test -n "$aros_host_ar"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4921 $as_echo "$aros_host_ar" >&6; }
4922 else
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4928 req_avail=yes
4929 if test "$aros_host_ar" = ""; then
4930 req_avail=no
4932 if test "$aros_host_ar" = "no"; then
4933 req_avail=no
4935 if test "$req_avail" = "no"; then
4936 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4938 # Extract the first word of "ranlib", so it can be a program name with args.
4939 set dummy ranlib; ac_word=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 if test -n "$aros_host_ranlib"; then
4946 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_prog_aros_host_ranlib="ranlib "
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4959 done
4960 done
4961 IFS=$as_save_IFS
4965 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4966 if test -n "$aros_host_ranlib"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4968 $as_echo "$aros_host_ranlib" >&6; }
4969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4975 req_avail=yes
4976 if test "$aros_host_ranlib" = ""; then
4977 req_avail=no
4979 if test "$aros_host_ranlib" = "no"; then
4980 req_avail=no
4982 if test "$req_avail" = "no"; then
4983 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4985 # Extract the first word of "strip", so it can be a program name with args.
4986 set dummy strip; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if ${ac_cv_prog_aros_host_strip+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$aros_host_strip"; then
4993 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_aros_host_strip="strip "
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5008 IFS=$as_save_IFS
5012 aros_host_strip=$ac_cv_prog_aros_host_strip
5013 if test -n "$aros_host_strip"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5015 $as_echo "$aros_host_strip" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5022 req_avail=yes
5023 if test "$aros_host_strip" = ""; then
5024 req_avail=no
5026 if test "$aros_host_strip" = "no"; then
5027 req_avail=no
5029 if test "$req_avail" = "no"; then
5030 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5033 # Extract the first word of "rm", so it can be a program name with args.
5034 set dummy rm; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_prog_RM+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$RM"; then
5041 ac_cv_prog_RM="$RM" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_RM="rm -rf"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5054 done
5055 done
5056 IFS=$as_save_IFS
5060 RM=$ac_cv_prog_RM
5061 if test -n "$RM"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5063 $as_echo "$RM" >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 req_avail=yes
5071 if test "$RM" = ""; then
5072 req_avail=no
5074 if test "$RM" = "no"; then
5075 req_avail=no
5077 if test "$req_avail" = "no"; then
5078 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5080 # Extract the first word of "cp", so it can be a program name with args.
5081 set dummy cp; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_CP+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$CP"; then
5088 ac_cv_prog_CP="$CP" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_CP="cp "
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5103 IFS=$as_save_IFS
5107 CP=$ac_cv_prog_CP
5108 if test -n "$CP"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5110 $as_echo "$CP" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5117 req_avail=yes
5118 if test "$CP" = ""; then
5119 req_avail=no
5121 if test "$CP" = "no"; then
5122 req_avail=no
5124 if test "$req_avail" = "no"; then
5125 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5127 # Extract the first word of "mv", so it can be a program name with args.
5128 set dummy mv; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_MV+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$MV"; then
5135 ac_cv_prog_MV="$MV" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_MV="mv "
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5150 IFS=$as_save_IFS
5154 MV=$ac_cv_prog_MV
5155 if test -n "$MV"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5157 $as_echo "$MV" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5164 req_avail=yes
5165 if test "$MV" = ""; then
5166 req_avail=no
5168 if test "$MV" = "no"; then
5169 req_avail=no
5171 if test "$req_avail" = "no"; then
5172 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5174 # Extract the first word of "echo", so it can be a program name with args.
5175 set dummy echo; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_ECHO+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$ECHO"; then
5182 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_ECHO="echo "
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5197 IFS=$as_save_IFS
5201 ECHO=$ac_cv_prog_ECHO
5202 if test -n "$ECHO"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5204 $as_echo "$ECHO" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5211 req_avail=yes
5212 if test "$ECHO" = ""; then
5213 req_avail=no
5215 if test "$ECHO" = "no"; then
5216 req_avail=no
5218 if test "$req_avail" = "no"; then
5219 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5221 # Extract the first word of "mkdir", so it can be a program name with args.
5222 set dummy mkdir; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_MKDIR+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$MKDIR"; then
5229 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_MKDIR="mkdir -p"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5242 done
5243 done
5244 IFS=$as_save_IFS
5248 MKDIR=$ac_cv_prog_MKDIR
5249 if test -n "$MKDIR"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5251 $as_echo "$MKDIR" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5258 req_avail=yes
5259 if test "$MKDIR" = ""; then
5260 req_avail=no
5262 if test "$MKDIR" = "no"; then
5263 req_avail=no
5265 if test "$req_avail" = "no"; then
5266 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5268 # Extract the first word of "touch", so it can be a program name with args.
5269 set dummy touch; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_TOUCH+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$TOUCH"; then
5276 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_TOUCH="touch "
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5289 done
5290 done
5291 IFS=$as_save_IFS
5295 TOUCH=$ac_cv_prog_TOUCH
5296 if test -n "$TOUCH"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5298 $as_echo "$TOUCH" >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5305 req_avail=yes
5306 if test "$TOUCH" = ""; then
5307 req_avail=no
5309 if test "$TOUCH" = "no"; then
5310 req_avail=no
5312 if test "$req_avail" = "no"; then
5313 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5315 # Extract the first word of "sort", so it can be a program name with args.
5316 set dummy sort; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_SORT+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$SORT"; then
5323 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_SORT="sort "
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5336 done
5337 done
5338 IFS=$as_save_IFS
5342 SORT=$ac_cv_prog_SORT
5343 if test -n "$SORT"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5345 $as_echo "$SORT" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5352 req_avail=yes
5353 if test "$SORT" = ""; then
5354 req_avail=no
5356 if test "$SORT" = "no"; then
5357 req_avail=no
5359 if test "$req_avail" = "no"; then
5360 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5362 # Extract the first word of "uniq", so it can be a program name with args.
5363 set dummy uniq; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_prog_UNIQ+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$UNIQ"; then
5370 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_UNIQ="uniq "
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5383 done
5384 done
5385 IFS=$as_save_IFS
5389 UNIQ=$ac_cv_prog_UNIQ
5390 if test -n "$UNIQ"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5392 $as_echo "$UNIQ" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5399 req_avail=yes
5400 if test "$UNIQ" = ""; then
5401 req_avail=no
5403 if test "$UNIQ" = "no"; then
5404 req_avail=no
5406 if test "$req_avail" = "no"; then
5407 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5409 # Extract the first word of "true", so it can be a program name with args.
5410 set dummy true; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_NOP+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$NOP"; then
5417 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_NOP="true "
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5436 NOP=$ac_cv_prog_NOP
5437 if test -n "$NOP"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5439 $as_echo "$NOP" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5446 req_avail=yes
5447 if test "$NOP" = ""; then
5448 req_avail=no
5450 if test "$NOP" = "no"; then
5451 req_avail=no
5453 if test "$req_avail" = "no"; then
5454 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5456 # Extract the first word of "cat", so it can be a program name with args.
5457 set dummy cat; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_CAT+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$CAT"; then
5464 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_CAT="cat "
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5477 done
5478 done
5479 IFS=$as_save_IFS
5483 CAT=$ac_cv_prog_CAT
5484 if test -n "$CAT"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5486 $as_echo "$CAT" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5493 req_avail=yes
5494 if test "$CAT" = ""; then
5495 req_avail=no
5497 if test "$CAT" = "no"; then
5498 req_avail=no
5500 if test "$req_avail" = "no"; then
5501 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5503 # Extract the first word of "bison", so it can be a program name with args.
5504 set dummy bison; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_BISON+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -n "$BISON"; then
5511 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_BISON="bison "
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5524 done
5525 done
5526 IFS=$as_save_IFS
5530 BISON=$ac_cv_prog_BISON
5531 if test -n "$BISON"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5533 $as_echo "$BISON" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5540 req_avail=yes
5541 if test "$BISON" = ""; then
5542 req_avail=no
5544 if test "$BISON" = "no"; then
5545 req_avail=no
5547 if test "$req_avail" = "no"; then
5548 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5550 # Extract the first word of "flex", so it can be a program name with args.
5551 set dummy flex; ac_word=$2
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if ${ac_cv_prog_FLEX+:} false; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 if test -n "$FLEX"; then
5558 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5559 else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567 ac_cv_prog_FLEX="flex "
5568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5571 done
5572 done
5573 IFS=$as_save_IFS
5577 FLEX=$ac_cv_prog_FLEX
5578 if test -n "$FLEX"; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5580 $as_echo "$FLEX" >&6; }
5581 else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5587 req_avail=yes
5588 if test "$FLEX" = ""; then
5589 req_avail=no
5591 if test "$FLEX" = "no"; then
5592 req_avail=no
5594 if test "$req_avail" = "no"; then
5595 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5597 # Extract the first word of "pngtopnm", so it can be a program name with args.
5598 set dummy pngtopnm; ac_word=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 if test -n "$PNGTOPNM"; then
5605 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5606 else
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614 ac_cv_prog_PNGTOPNM="pngtopnm "
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5618 done
5619 done
5620 IFS=$as_save_IFS
5624 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5625 if test -n "$PNGTOPNM"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5627 $as_echo "$PNGTOPNM" >&6; }
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5634 req_avail=yes
5635 if test "$PNGTOPNM" = ""; then
5636 req_avail=no
5638 if test "$PNGTOPNM" = "no"; then
5639 req_avail=no
5641 if test "$req_avail" = "no"; then
5642 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5644 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5645 set dummy ppmtoilbm; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if test -n "$PPMTOILBM"; then
5652 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5665 done
5666 done
5667 IFS=$as_save_IFS
5671 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5672 if test -n "$PPMTOILBM"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5674 $as_echo "$PPMTOILBM" >&6; }
5675 else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5681 req_avail=yes
5682 if test "$PPMTOILBM" = ""; then
5683 req_avail=no
5685 if test "$PPMTOILBM" = "no"; then
5686 req_avail=no
5688 if test "$req_avail" = "no"; then
5689 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5691 # Extract the first word of "sed", so it can be a program name with args.
5692 set dummy sed; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_SED+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$SED"; then
5699 ac_cv_prog_SED="$SED" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_SED="sed "
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5712 done
5713 done
5714 IFS=$as_save_IFS
5718 SED=$ac_cv_prog_SED
5719 if test -n "$SED"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5721 $as_echo "$SED" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5728 req_avail=yes
5729 if test "$SED" = ""; then
5730 req_avail=no
5732 if test "$SED" = "no"; then
5733 req_avail=no
5735 if test "$req_avail" = "no"; then
5736 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5738 # Extract the first word of "chmod", so it can be a program name with args.
5739 set dummy chmod; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_CHMOD+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 if test -n "$CHMOD"; then
5746 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_CHMOD="chmod "
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5759 done
5760 done
5761 IFS=$as_save_IFS
5765 CHMOD=$ac_cv_prog_CHMOD
5766 if test -n "$CHMOD"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5768 $as_echo "$CHMOD" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5775 req_avail=yes
5776 if test "$CHMOD" = ""; then
5777 req_avail=no
5779 if test "$CHMOD" = "no"; then
5780 req_avail=no
5782 if test "$req_avail" = "no"; then
5783 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5785 # Extract the first word of "patch", so it can be a program name with args.
5786 set dummy patch; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_PATCH+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 if test -n "$PATCH"; then
5793 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802 ac_cv_prog_PATCH="patch "
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5806 done
5807 done
5808 IFS=$as_save_IFS
5812 PATCH=$ac_cv_prog_PATCH
5813 if test -n "$PATCH"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5815 $as_echo "$PATCH" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5822 req_avail=yes
5823 if test "$PATCH" = ""; then
5824 req_avail=no
5826 if test "$PATCH" = "no"; then
5827 req_avail=no
5829 if test "$req_avail" = "no"; then
5830 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5839 if test -n "$PYTHON"; then
5840 # If the user set $PYTHON, use it and don't search something else.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5842 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5843 prog="import sys
5844 # split strings by '.' and convert to numeric. Append some zeros
5845 # because we need at least 4 digits for the hex conversion.
5846 # map returns an iterator in Python 3.0 and a list in 2.x
5847 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5848 minverhex = 0
5849 # xrange is not present in Python 3.0 and range returns an iterator
5850 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5851 sys.exit(sys.hexversion < minverhex)"
5852 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5853 ($PYTHON -c "$prog") >&5 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; then :
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5858 $as_echo "yes" >&6; }
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5862 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5864 am_display_PYTHON=$PYTHON
5865 else
5866 # Otherwise, try each interpreter until we find one that satisfies
5867 # VERSION.
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5869 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5870 if ${am_cv_pathless_PYTHON+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5874 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5875 test "$am_cv_pathless_PYTHON" = none && break
5876 prog="import sys
5877 # split strings by '.' and convert to numeric. Append some zeros
5878 # because we need at least 4 digits for the hex conversion.
5879 # map returns an iterator in Python 3.0 and a list in 2.x
5880 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5881 minverhex = 0
5882 # xrange is not present in Python 3.0 and range returns an iterator
5883 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5884 sys.exit(sys.hexversion < minverhex)"
5885 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5886 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; then :
5890 break
5892 done
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5895 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5896 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5897 if test "$am_cv_pathless_PYTHON" = none; then
5898 PYTHON=:
5899 else
5900 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5901 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_path_PYTHON+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 case $PYTHON in
5908 [\\/]* | ?:[\\/]*)
5909 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5923 done
5924 done
5925 IFS=$as_save_IFS
5928 esac
5930 PYTHON=$ac_cv_path_PYTHON
5931 if test -n "$PYTHON"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5933 $as_echo "$PYTHON" >&6; }
5934 else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5941 am_display_PYTHON=$am_cv_pathless_PYTHON
5945 if test "$PYTHON" = :; then
5946 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5947 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5951 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5952 if ${am_cv_python_version+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5958 $as_echo "$am_cv_python_version" >&6; }
5959 PYTHON_VERSION=$am_cv_python_version
5963 PYTHON_PREFIX='${prefix}'
5965 PYTHON_EXEC_PREFIX='${exec_prefix}'
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5970 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5971 if ${am_cv_python_platform+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5977 $as_echo "$am_cv_python_platform" >&6; }
5978 PYTHON_PLATFORM=$am_cv_python_platform
5981 # Just factor out some code duplication.
5982 am_python_setup_sysconfig="\
5983 import sys
5984 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5985 # with python 3.x. See automake bug#10227.
5986 try:
5987 import sysconfig
5988 except ImportError:
5989 can_use_sysconfig = 0
5990 else:
5991 can_use_sysconfig = 1
5992 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5993 # <https://github.com/pypa/virtualenv/issues/118>
5994 try:
5995 from platform import python_implementation
5996 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5997 can_use_sysconfig = 0
5998 except ImportError:
5999 pass"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6003 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6004 if ${am_cv_python_pythondir+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test "x$prefix" = xNONE
6008 then
6009 am_py_prefix=$ac_default_prefix
6010 else
6011 am_py_prefix=$prefix
6013 am_cv_python_pythondir=`$PYTHON -c "
6014 $am_python_setup_sysconfig
6015 if can_use_sysconfig:
6016 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6017 else:
6018 from distutils import sysconfig
6019 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6020 sys.stdout.write(sitedir)"`
6021 case $am_cv_python_pythondir in
6022 $am_py_prefix*)
6023 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6024 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6027 case $am_py_prefix in
6028 /usr|/System*) ;;
6030 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6032 esac
6034 esac
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6038 $as_echo "$am_cv_python_pythondir" >&6; }
6039 pythondir=$am_cv_python_pythondir
6043 pkgpythondir=\${pythondir}/$PACKAGE
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6047 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6048 if ${am_cv_python_pyexecdir+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test "x$exec_prefix" = xNONE
6052 then
6053 am_py_exec_prefix=$am_py_prefix
6054 else
6055 am_py_exec_prefix=$exec_prefix
6057 am_cv_python_pyexecdir=`$PYTHON -c "
6058 $am_python_setup_sysconfig
6059 if can_use_sysconfig:
6060 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6061 else:
6062 from distutils import sysconfig
6063 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6064 sys.stdout.write(sitedir)"`
6065 case $am_cv_python_pyexecdir in
6066 $am_py_exec_prefix*)
6067 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6068 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6071 case $am_py_exec_prefix in
6072 /usr|/System*) ;;
6074 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6076 esac
6078 esac
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6082 $as_echo "$am_cv_python_pyexecdir" >&6; }
6083 pyexecdir=$am_cv_python_pyexecdir
6087 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6095 # Check whether --enable-libpng-config was given.
6096 if test "${enable_libpng_config+set}" = set; then :
6097 enableval=$enable_libpng_config;
6100 if test "$enable_libpng_config" != "no"; then
6101 # Extract the first word of "libpng-config", so it can be a program name with args.
6102 set dummy libpng-config; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if test -n "$arosconfig_use_libpngconfig"; then
6109 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6122 done
6123 done
6124 IFS=$as_save_IFS
6126 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6129 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6130 if test -n "$arosconfig_use_libpngconfig"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6132 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6140 if test "$arosconfig_use_libpngconfig" = "yes"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6142 $as_echo_n "checking libpng-config library... " >&6; }
6143 libpng_incdir="`libpng-config --cflags`"
6144 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6145 libpng="`libpng-config --libs`"
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6147 $as_echo "$libpng" >&6; }
6148 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6151 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6152 if ${ac_cv_lib_png_png_read_png+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 ac_check_lib_save_LIBS=$LIBS
6156 LIBS="-lpng $LIBS"
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 /* Override any GCC internal prototype to avoid an error.
6161 Use char because int might match the return type of a GCC
6162 builtin and then its argument prototype would still apply. */
6163 #ifdef __cplusplus
6164 extern "C"
6165 #endif
6166 char png_read_png ();
6168 main ()
6170 return png_read_png ();
6172 return 0;
6174 _ACEOF
6175 if ac_fn_c_try_link "$LINENO"; then :
6176 ac_cv_lib_png_png_read_png=yes
6177 else
6178 ac_cv_lib_png_png_read_png=no
6180 rm -f core conftest.err conftest.$ac_objext \
6181 conftest$ac_exeext conftest.$ac_ext
6182 LIBS=$ac_check_lib_save_LIBS
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6185 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6186 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6187 libpng="-lpng"
6188 else
6189 libpng="no"
6192 if test "$libpng_libextra" != ""; then
6193 if test "$libpng" != "no"; then
6194 libpng_libextra="$libpng_libextra $libpng"
6198 req_avail=yes
6199 if test "$libpng" = ""; then
6200 req_avail=no
6202 if test "$libpng" = "no"; then
6203 req_avail=no
6205 if test "$req_avail" = "no"; then
6206 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6212 FOR=for
6214 IF=if
6216 TEST=test
6218 CMP=cmp
6222 # Check for some includes for the X11 HIDD and the kernel
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6226 if ${ac_cv_path_GREP+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -z "$GREP"; then
6230 ac_path_GREP_found=false
6231 # Loop through the user's path and test for each of PROGNAME-LIST
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_prog in grep ggrep; do
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6240 as_fn_executable_p "$ac_path_GREP" || continue
6241 # Check for GNU ac_path_GREP and select it if it is found.
6242 # Check for GNU $ac_path_GREP
6243 case `"$ac_path_GREP" --version 2>&1` in
6244 *GNU*)
6245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6247 ac_count=0
6248 $as_echo_n 0123456789 >"conftest.in"
6249 while :
6251 cat "conftest.in" "conftest.in" >"conftest.tmp"
6252 mv "conftest.tmp" "conftest.in"
6253 cp "conftest.in" "conftest.nl"
6254 $as_echo 'GREP' >> "conftest.nl"
6255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6257 as_fn_arith $ac_count + 1 && ac_count=$as_val
6258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6259 # Best one so far, save it but keep looking for a better one
6260 ac_cv_path_GREP="$ac_path_GREP"
6261 ac_path_GREP_max=$ac_count
6263 # 10*(2^10) chars as input seems more than enough
6264 test $ac_count -gt 10 && break
6265 done
6266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6267 esac
6269 $ac_path_GREP_found && break 3
6270 done
6271 done
6272 done
6273 IFS=$as_save_IFS
6274 if test -z "$ac_cv_path_GREP"; then
6275 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6277 else
6278 ac_cv_path_GREP=$GREP
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6283 $as_echo "$ac_cv_path_GREP" >&6; }
6284 GREP="$ac_cv_path_GREP"
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6288 $as_echo_n "checking for egrep... " >&6; }
6289 if ${ac_cv_path_EGREP+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6293 then ac_cv_path_EGREP="$GREP -E"
6294 else
6295 if test -z "$EGREP"; then
6296 ac_path_EGREP_found=false
6297 # Loop through the user's path and test for each of PROGNAME-LIST
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_prog in egrep; do
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6306 as_fn_executable_p "$ac_path_EGREP" || continue
6307 # Check for GNU ac_path_EGREP and select it if it is found.
6308 # Check for GNU $ac_path_EGREP
6309 case `"$ac_path_EGREP" --version 2>&1` in
6310 *GNU*)
6311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6313 ac_count=0
6314 $as_echo_n 0123456789 >"conftest.in"
6315 while :
6317 cat "conftest.in" "conftest.in" >"conftest.tmp"
6318 mv "conftest.tmp" "conftest.in"
6319 cp "conftest.in" "conftest.nl"
6320 $as_echo 'EGREP' >> "conftest.nl"
6321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6323 as_fn_arith $ac_count + 1 && ac_count=$as_val
6324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6325 # Best one so far, save it but keep looking for a better one
6326 ac_cv_path_EGREP="$ac_path_EGREP"
6327 ac_path_EGREP_max=$ac_count
6329 # 10*(2^10) chars as input seems more than enough
6330 test $ac_count -gt 10 && break
6331 done
6332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6333 esac
6335 $ac_path_EGREP_found && break 3
6336 done
6337 done
6338 done
6339 IFS=$as_save_IFS
6340 if test -z "$ac_cv_path_EGREP"; then
6341 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6343 else
6344 ac_cv_path_EGREP=$EGREP
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6350 $as_echo "$ac_cv_path_EGREP" >&6; }
6351 EGREP="$ac_cv_path_EGREP"
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6355 $as_echo_n "checking for ANSI C header files... " >&6; }
6356 if ${ac_cv_header_stdc+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 #include <stdlib.h>
6362 #include <stdarg.h>
6363 #include <string.h>
6364 #include <float.h>
6367 main ()
6371 return 0;
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 ac_cv_header_stdc=yes
6376 else
6377 ac_cv_header_stdc=no
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 if test $ac_cv_header_stdc = yes; then
6382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 #include <string.h>
6387 _ACEOF
6388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6389 $EGREP "memchr" >/dev/null 2>&1; then :
6391 else
6392 ac_cv_header_stdc=no
6394 rm -f conftest*
6398 if test $ac_cv_header_stdc = yes; then
6399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 #include <stdlib.h>
6404 _ACEOF
6405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406 $EGREP "free" >/dev/null 2>&1; then :
6408 else
6409 ac_cv_header_stdc=no
6411 rm -f conftest*
6415 if test $ac_cv_header_stdc = yes; then
6416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6417 if test "$cross_compiling" = yes; then :
6419 else
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 #include <ctype.h>
6423 #include <stdlib.h>
6424 #if ((' ' & 0x0FF) == 0x020)
6425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6427 #else
6428 # define ISLOWER(c) \
6429 (('a' <= (c) && (c) <= 'i') \
6430 || ('j' <= (c) && (c) <= 'r') \
6431 || ('s' <= (c) && (c) <= 'z'))
6432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6433 #endif
6435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6437 main ()
6439 int i;
6440 for (i = 0; i < 256; i++)
6441 if (XOR (islower (i), ISLOWER (i))
6442 || toupper (i) != TOUPPER (i))
6443 return 2;
6444 return 0;
6446 _ACEOF
6447 if ac_fn_c_try_run "$LINENO"; then :
6449 else
6450 ac_cv_header_stdc=no
6452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6453 conftest.$ac_objext conftest.beam conftest.$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6459 $as_echo "$ac_cv_header_stdc" >&6; }
6460 if test $ac_cv_header_stdc = yes; then
6462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6468 inttypes.h stdint.h unistd.h
6469 do :
6470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6471 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6474 cat >>confdefs.h <<_ACEOF
6475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6476 _ACEOF
6480 done
6483 for ac_header in sys/ipc.h sys/shm.h \
6484 sys/mmap.h sys/mman.h sysexits.h \
6485 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6487 do :
6488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6489 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6491 cat >>confdefs.h <<_ACEOF
6492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6493 _ACEOF
6497 done
6500 for ac_header in sys/mount.h
6501 do :
6502 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6504 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6505 cat >>confdefs.h <<_ACEOF
6506 #define HAVE_SYS_MOUNT_H 1
6507 _ACEOF
6511 done
6514 ac_header_dirent=no
6515 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6516 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6518 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6519 if eval \${$as_ac_Header+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 #include <sys/types.h>
6525 #include <$ac_hdr>
6528 main ()
6530 if ((DIR *) 0)
6531 return 0;
6533 return 0;
6535 _ACEOF
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537 eval "$as_ac_Header=yes"
6538 else
6539 eval "$as_ac_Header=no"
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 eval ac_res=\$$as_ac_Header
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6545 $as_echo "$ac_res" >&6; }
6546 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6547 cat >>confdefs.h <<_ACEOF
6548 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6549 _ACEOF
6551 ac_header_dirent=$ac_hdr; break
6554 done
6555 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6556 if test $ac_header_dirent = dirent.h; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6558 $as_echo_n "checking for library containing opendir... " >&6; }
6559 if ${ac_cv_search_opendir+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 ac_func_search_save_LIBS=$LIBS
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6566 /* Override any GCC internal prototype to avoid an error.
6567 Use char because int might match the return type of a GCC
6568 builtin and then its argument prototype would still apply. */
6569 #ifdef __cplusplus
6570 extern "C"
6571 #endif
6572 char opendir ();
6574 main ()
6576 return opendir ();
6578 return 0;
6580 _ACEOF
6581 for ac_lib in '' dir; do
6582 if test -z "$ac_lib"; then
6583 ac_res="none required"
6584 else
6585 ac_res=-l$ac_lib
6586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6588 if ac_fn_c_try_link "$LINENO"; then :
6589 ac_cv_search_opendir=$ac_res
6591 rm -f core conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext
6593 if ${ac_cv_search_opendir+:} false; then :
6594 break
6596 done
6597 if ${ac_cv_search_opendir+:} false; then :
6599 else
6600 ac_cv_search_opendir=no
6602 rm conftest.$ac_ext
6603 LIBS=$ac_func_search_save_LIBS
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6606 $as_echo "$ac_cv_search_opendir" >&6; }
6607 ac_res=$ac_cv_search_opendir
6608 if test "$ac_res" != no; then :
6609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6613 else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6615 $as_echo_n "checking for library containing opendir... " >&6; }
6616 if ${ac_cv_search_opendir+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 ac_func_search_save_LIBS=$LIBS
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6623 /* Override any GCC internal prototype to avoid an error.
6624 Use char because int might match the return type of a GCC
6625 builtin and then its argument prototype would still apply. */
6626 #ifdef __cplusplus
6627 extern "C"
6628 #endif
6629 char opendir ();
6631 main ()
6633 return opendir ();
6635 return 0;
6637 _ACEOF
6638 for ac_lib in '' x; do
6639 if test -z "$ac_lib"; then
6640 ac_res="none required"
6641 else
6642 ac_res=-l$ac_lib
6643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6645 if ac_fn_c_try_link "$LINENO"; then :
6646 ac_cv_search_opendir=$ac_res
6648 rm -f core conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext
6650 if ${ac_cv_search_opendir+:} false; then :
6651 break
6653 done
6654 if ${ac_cv_search_opendir+:} false; then :
6656 else
6657 ac_cv_search_opendir=no
6659 rm conftest.$ac_ext
6660 LIBS=$ac_func_search_save_LIBS
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6663 $as_echo "$ac_cv_search_opendir" >&6; }
6664 ac_res=$ac_cv_search_opendir
6665 if test "$ac_res" != no; then :
6666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6673 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6674 if ${ac_cv_header_stat_broken+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 #include <sys/types.h>
6680 #include <sys/stat.h>
6682 #if defined S_ISBLK && defined S_IFDIR
6683 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6684 #endif
6686 #if defined S_ISBLK && defined S_IFCHR
6687 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6688 #endif
6690 #if defined S_ISLNK && defined S_IFREG
6691 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6692 #endif
6694 #if defined S_ISSOCK && defined S_IFREG
6695 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6696 #endif
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 ac_cv_header_stat_broken=no
6701 else
6702 ac_cv_header_stat_broken=yes
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6707 $as_echo "$ac_cv_header_stat_broken" >&6; }
6708 if test $ac_cv_header_stat_broken = yes; then
6710 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6715 $as_echo_n "checking for ANSI C header files... " >&6; }
6716 if ${ac_cv_header_stdc+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <stdlib.h>
6722 #include <stdarg.h>
6723 #include <string.h>
6724 #include <float.h>
6727 main ()
6731 return 0;
6733 _ACEOF
6734 if ac_fn_c_try_compile "$LINENO"; then :
6735 ac_cv_header_stdc=yes
6736 else
6737 ac_cv_header_stdc=no
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 if test $ac_cv_header_stdc = yes; then
6742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 #include <string.h>
6747 _ACEOF
6748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749 $EGREP "memchr" >/dev/null 2>&1; then :
6751 else
6752 ac_cv_header_stdc=no
6754 rm -f conftest*
6758 if test $ac_cv_header_stdc = yes; then
6759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 #include <stdlib.h>
6764 _ACEOF
6765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766 $EGREP "free" >/dev/null 2>&1; then :
6768 else
6769 ac_cv_header_stdc=no
6771 rm -f conftest*
6775 if test $ac_cv_header_stdc = yes; then
6776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6777 if test "$cross_compiling" = yes; then :
6779 else
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <ctype.h>
6783 #include <stdlib.h>
6784 #if ((' ' & 0x0FF) == 0x020)
6785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6787 #else
6788 # define ISLOWER(c) \
6789 (('a' <= (c) && (c) <= 'i') \
6790 || ('j' <= (c) && (c) <= 'r') \
6791 || ('s' <= (c) && (c) <= 'z'))
6792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6793 #endif
6795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6797 main ()
6799 int i;
6800 for (i = 0; i < 256; i++)
6801 if (XOR (islower (i), ISLOWER (i))
6802 || toupper (i) != TOUPPER (i))
6803 return 2;
6804 return 0;
6806 _ACEOF
6807 if ac_fn_c_try_run "$LINENO"; then :
6809 else
6810 ac_cv_header_stdc=no
6812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6813 conftest.$ac_objext conftest.beam conftest.$ac_ext
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6819 $as_echo "$ac_cv_header_stdc" >&6; }
6820 if test $ac_cv_header_stdc = yes; then
6822 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6827 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6828 if ${ac_cv_header_sys_wait_h+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 #include <sys/types.h>
6834 #include <sys/wait.h>
6835 #ifndef WEXITSTATUS
6836 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6837 #endif
6838 #ifndef WIFEXITED
6839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6840 #endif
6843 main ()
6845 int s;
6846 wait (&s);
6847 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6849 return 0;
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853 ac_cv_header_sys_wait_h=yes
6854 else
6855 ac_cv_header_sys_wait_h=no
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6860 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6861 if test $ac_cv_header_sys_wait_h = yes; then
6863 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6868 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6869 if ${ac_cv_header_time+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 #include <sys/types.h>
6875 #include <sys/time.h>
6876 #include <time.h>
6879 main ()
6881 if ((struct tm *) 0)
6882 return 0;
6884 return 0;
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 ac_cv_header_time=yes
6889 else
6890 ac_cv_header_time=no
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6895 $as_echo "$ac_cv_header_time" >&6; }
6896 if test $ac_cv_header_time = yes; then
6898 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6902 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6903 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6905 cat >>confdefs.h <<_ACEOF
6906 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6907 _ACEOF
6910 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6915 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6916 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6920 _ACEOF
6923 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6925 else
6926 case " $LIBOBJS " in
6927 *" fileblocks.$ac_objext "* ) ;;
6928 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6930 esac
6935 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6936 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6938 cat >>confdefs.h <<_ACEOF
6939 #define HAVE_STRUCT_STAT_ST_RDEV 1
6940 _ACEOF
6943 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6949 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6950 if ${ac_cv_struct_tm+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 #include <sys/types.h>
6956 #include <time.h>
6959 main ()
6961 struct tm tm;
6962 int *p = &tm.tm_sec;
6963 return !p;
6965 return 0;
6967 _ACEOF
6968 if ac_fn_c_try_compile "$LINENO"; then :
6969 ac_cv_struct_tm=time.h
6970 else
6971 ac_cv_struct_tm=sys/time.h
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6976 $as_echo "$ac_cv_struct_tm" >&6; }
6977 if test $ac_cv_struct_tm = sys/time.h; then
6979 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6983 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6984 #include <$ac_cv_struct_tm>
6987 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6989 cat >>confdefs.h <<_ACEOF
6990 #define HAVE_STRUCT_TM_TM_ZONE 1
6991 _ACEOF
6996 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6998 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7000 else
7001 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7003 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7004 ac_have_decl=1
7005 else
7006 ac_have_decl=0
7009 cat >>confdefs.h <<_ACEOF
7010 #define HAVE_DECL_TZNAME $ac_have_decl
7011 _ACEOF
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7014 $as_echo_n "checking for tzname... " >&6; }
7015 if ${ac_cv_var_tzname+:} false; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 #include <time.h>
7021 #if !HAVE_DECL_TZNAME
7022 extern char *tzname[];
7023 #endif
7026 main ()
7028 return tzname[0][0];
7030 return 0;
7032 _ACEOF
7033 if ac_fn_c_try_link "$LINENO"; then :
7034 ac_cv_var_tzname=yes
7035 else
7036 ac_cv_var_tzname=no
7038 rm -f core conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7042 $as_echo "$ac_cv_var_tzname" >&6; }
7043 if test $ac_cv_var_tzname = yes; then
7045 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7050 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7051 if test "x$ac_cv_type_off_t" = xyes; then :
7053 else
7055 cat >>confdefs.h <<_ACEOF
7056 #define off_t long int
7057 _ACEOF
7061 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7062 if test "x$ac_cv_type_pid_t" = xyes; then :
7064 else
7066 cat >>confdefs.h <<_ACEOF
7067 #define pid_t int
7068 _ACEOF
7072 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7073 if test "x$ac_cv_type_size_t" = xyes; then :
7075 else
7077 cat >>confdefs.h <<_ACEOF
7078 #define size_t unsigned int
7079 _ACEOF
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7084 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7085 if ${ac_cv_type_uid_t+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7090 #include <sys/types.h>
7092 _ACEOF
7093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7094 $EGREP "uid_t" >/dev/null 2>&1; then :
7095 ac_cv_type_uid_t=yes
7096 else
7097 ac_cv_type_uid_t=no
7099 rm -f conftest*
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7103 $as_echo "$ac_cv_type_uid_t" >&6; }
7104 if test $ac_cv_type_uid_t = no; then
7106 $as_echo "#define uid_t int" >>confdefs.h
7109 $as_echo "#define gid_t int" >>confdefs.h
7114 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7115 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7117 cat >>confdefs.h <<_ACEOF
7118 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7119 _ACEOF
7125 # Look for some functions
7126 for ac_func in getpagesize kqueue statfs statvfs \
7127 clone kse_create rfork_thread thr_create sa_register \
7128 getcontext makecontext setcontext sigaltstack swapcontext
7129 do :
7130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7133 cat >>confdefs.h <<_ACEOF
7134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7135 _ACEOF
7138 done
7144 for ac_header in $ac_header_list
7145 do :
7146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7147 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7149 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7150 cat >>confdefs.h <<_ACEOF
7151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7152 _ACEOF
7156 done
7165 for ac_func in getpagesize
7166 do :
7167 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7168 if test "x$ac_cv_func_getpagesize" = xyes; then :
7169 cat >>confdefs.h <<_ACEOF
7170 #define HAVE_GETPAGESIZE 1
7171 _ACEOF
7174 done
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7177 $as_echo_n "checking for working mmap... " >&6; }
7178 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 if test "$cross_compiling" = yes; then :
7182 ac_cv_func_mmap_fixed_mapped=no
7183 else
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186 $ac_includes_default
7187 /* malloc might have been renamed as rpl_malloc. */
7188 #undef malloc
7190 /* Thanks to Mike Haertel and Jim Avera for this test.
7191 Here is a matrix of mmap possibilities:
7192 mmap private not fixed
7193 mmap private fixed at somewhere currently unmapped
7194 mmap private fixed at somewhere already mapped
7195 mmap shared not fixed
7196 mmap shared fixed at somewhere currently unmapped
7197 mmap shared fixed at somewhere already mapped
7198 For private mappings, we should verify that changes cannot be read()
7199 back from the file, nor mmap's back from the file at a different
7200 address. (There have been systems where private was not correctly
7201 implemented like the infamous i386 svr4.0, and systems where the
7202 VM page cache was not coherent with the file system buffer cache
7203 like early versions of FreeBSD and possibly contemporary NetBSD.)
7204 For shared mappings, we should conversely verify that changes get
7205 propagated back to all the places they're supposed to be.
7207 Grep wants private fixed already mapped.
7208 The main things grep needs to know about mmap are:
7209 * does it exist and is it safe to write into the mmap'd area
7210 * how to use it (BSD variants) */
7212 #include <fcntl.h>
7213 #include <sys/mman.h>
7215 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7216 char *malloc ();
7217 #endif
7219 /* This mess was copied from the GNU getpagesize.h. */
7220 #ifndef HAVE_GETPAGESIZE
7221 # ifdef _SC_PAGESIZE
7222 # define getpagesize() sysconf(_SC_PAGESIZE)
7223 # else /* no _SC_PAGESIZE */
7224 # ifdef HAVE_SYS_PARAM_H
7225 # include <sys/param.h>
7226 # ifdef EXEC_PAGESIZE
7227 # define getpagesize() EXEC_PAGESIZE
7228 # else /* no EXEC_PAGESIZE */
7229 # ifdef NBPG
7230 # define getpagesize() NBPG * CLSIZE
7231 # ifndef CLSIZE
7232 # define CLSIZE 1
7233 # endif /* no CLSIZE */
7234 # else /* no NBPG */
7235 # ifdef NBPC
7236 # define getpagesize() NBPC
7237 # else /* no NBPC */
7238 # ifdef PAGESIZE
7239 # define getpagesize() PAGESIZE
7240 # endif /* PAGESIZE */
7241 # endif /* no NBPC */
7242 # endif /* no NBPG */
7243 # endif /* no EXEC_PAGESIZE */
7244 # else /* no HAVE_SYS_PARAM_H */
7245 # define getpagesize() 8192 /* punt totally */
7246 # endif /* no HAVE_SYS_PARAM_H */
7247 # endif /* no _SC_PAGESIZE */
7249 #endif /* no HAVE_GETPAGESIZE */
7252 main ()
7254 char *data, *data2, *data3;
7255 const char *cdata2;
7256 int i, pagesize;
7257 int fd, fd2;
7259 pagesize = getpagesize ();
7261 /* First, make a file with some known garbage in it. */
7262 data = (char *) malloc (pagesize);
7263 if (!data)
7264 return 1;
7265 for (i = 0; i < pagesize; ++i)
7266 *(data + i) = rand ();
7267 umask (0);
7268 fd = creat ("conftest.mmap", 0600);
7269 if (fd < 0)
7270 return 2;
7271 if (write (fd, data, pagesize) != pagesize)
7272 return 3;
7273 close (fd);
7275 /* Next, check that the tail of a page is zero-filled. File must have
7276 non-zero length, otherwise we risk SIGBUS for entire page. */
7277 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7278 if (fd2 < 0)
7279 return 4;
7280 cdata2 = "";
7281 if (write (fd2, cdata2, 1) != 1)
7282 return 5;
7283 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7284 if (data2 == MAP_FAILED)
7285 return 6;
7286 for (i = 0; i < pagesize; ++i)
7287 if (*(data2 + i))
7288 return 7;
7289 close (fd2);
7290 if (munmap (data2, pagesize))
7291 return 8;
7293 /* Next, try to mmap the file at a fixed address which already has
7294 something else allocated at it. If we can, also make sure that
7295 we see the same garbage. */
7296 fd = open ("conftest.mmap", O_RDWR);
7297 if (fd < 0)
7298 return 9;
7299 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7300 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7301 return 10;
7302 for (i = 0; i < pagesize; ++i)
7303 if (*(data + i) != *(data2 + i))
7304 return 11;
7306 /* Finally, make sure that changes to the mapped area do not
7307 percolate back to the file as seen by read(). (This is a bug on
7308 some variants of i386 svr4.0.) */
7309 for (i = 0; i < pagesize; ++i)
7310 *(data2 + i) = *(data2 + i) + 1;
7311 data3 = (char *) malloc (pagesize);
7312 if (!data3)
7313 return 12;
7314 if (read (fd, data3, pagesize) != pagesize)
7315 return 13;
7316 for (i = 0; i < pagesize; ++i)
7317 if (*(data + i) != *(data3 + i))
7318 return 14;
7319 close (fd);
7320 return 0;
7322 _ACEOF
7323 if ac_fn_c_try_run "$LINENO"; then :
7324 ac_cv_func_mmap_fixed_mapped=yes
7325 else
7326 ac_cv_func_mmap_fixed_mapped=no
7328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7329 conftest.$ac_objext conftest.beam conftest.$ac_ext
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7334 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7335 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7337 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7340 rm -f conftest.mmap conftest.txt
7343 #-----------------------------------------------------------------------------
7346 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7347 # it switched on by default, and we use the host compiler, so it compiles AROS
7348 # code with this enabled resulting in link failures as we don't have support
7349 # for it.
7351 # We use two methods to disable it. For the host compiler (used to compile
7352 # some hosted modules), we test to see if the compiler supports stack
7353 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7354 # work on all platforms.
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7358 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7359 save_cflags="$CFLAGS"
7360 CFLAGS="$CFLAGS -fno-stack-protector"
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7365 main ()
7369 return 0;
7371 _ACEOF
7372 if ac_fn_c_try_compile "$LINENO"; then :
7373 use_no_stack_protector="yes"
7374 else
7375 use_no_stack_protector="no"
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7379 $as_echo "$use_no_stack_protector" >&6; }
7380 if test "x-$use_no_stack_protector" = "x-yes" ; then
7381 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7383 CFLAGS="$save_cflags"
7385 #-----------------------------------------------------------------------------
7387 # Disable pointer-signedness warnings if the compiler recognises the option
7388 # (this only works for the host compiler at the moment)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7391 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7392 save_cflags="$CFLAGS"
7393 CFLAGS="$CFLAGS -Wno-pointer-sign"
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7398 main ()
7402 return 0;
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406 use_no_sign_warning="yes"
7407 else
7408 use_no_sign_warning="no"
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7412 $as_echo "$use_no_sign_warning" >&6; }
7413 if test "x-$use_no_sign_warning" = "x-yes" ; then
7414 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7416 CFLAGS="$save_cflags"
7418 #-----------------------------------------------------------------------------
7420 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7423 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7424 save_cflags="$CFLAGS"
7425 CFLAGS="$CFLAGS -fgnu89-inline"
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7430 main ()
7434 return 0;
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"; then :
7438 use_gnu89_inline="yes"
7439 else
7440 use_gnu89_inline="no"
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7444 $as_echo "$use_gnu89_inline" >&6; }
7445 if test "x-$use_gnu89_inline" = "x-yes" ; then
7446 gnu89_inline="-fgnu89-inline"
7448 CFLAGS="$save_cflags"
7451 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7452 # On GCC >= 4.0 -iquote should be used
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7455 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7456 CFLAGS="$CFLAGS -iquote."
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7461 main ()
7465 return 0;
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"; then :
7469 has_iquote="yes"
7470 else
7471 has_iquote="no"
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7475 $as_echo "$has_iquote" >&6; }
7476 if test "x-$has_iquote" = "x-yes" ; then
7477 host_cflags_iquote=-iquote
7478 host_cflags_iquote_end=
7479 else
7480 host_cflags_iquote=-I
7481 host_cflags_iquote_end=-I-
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7485 $as_echo "$as_me: Performing target configuration..." >&6;}
7488 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7490 toolchain_needs_sysroot=no
7492 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7493 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7494 aros_config_ldflags=""
7496 aros_shared_default=yes
7498 aros_shared_cflags="-fPIC"
7499 aros_shared_aflags=""
7500 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7501 aros_kernel_ldflags="-Wl,-rpath,./lib"
7503 aros_kernel_ar_flags="cr"
7504 aros_target_ar_flags="cr"
7505 aros_target_nm_flags="-C -ul"
7506 aros_target_strip_flags="--strip-unneeded -R.comment"
7508 aros_compiler_libs=
7509 aros_arch_libs=
7511 aros_target_genmap="-Wl,-Map -Xlinker"
7513 # Native flavour stuff
7514 aros_serial_debug="0"
7516 # Palm native flavour stuff
7517 aros_palm_debug_hack="0"
7519 # Unix flavour stuff
7520 aros_nesting_supervisor="0"
7522 # Collect-aros stuff: "-ius" to ignore undefined symbols
7523 ignore_undefined_symbols=""
7525 # Check for X11 by default
7526 need_x11="auto"
7528 host_x_gfx=no
7529 host_sdl_gfx=no
7530 host_android_gfx=no
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7534 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7536 # Check whether --with-toolchain was given.
7537 if test "${with_toolchain+set}" = set; then :
7538 withval=$with_toolchain; aros_toolchain="$withval"
7539 else
7540 aros_toolchain="gnu"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7544 $as_echo "$aros_toolchain" >&6; }
7546 case "$aros_toolchain" in
7547 *llvm*)
7548 # toolchain_needs_sysroot=yes
7549 toolchain_c_compiler="clang"
7550 toolchain_cxx_compiler="clang++"
7551 toolchain_cpp_preprocessor="clang -E"
7552 toolchain_ld="lld"
7553 toolchain_as="llvm-as"
7554 toolchain_ar="llvm-ar"
7555 toolchain_ranlib="llvm-ranlib"
7556 toolchain_nm="llvm-nm"
7557 toolchain_strip="true"
7558 toolchain_objcopy="llvm-objcopy"
7559 toolchain_objdump="llvm-objdump"
7561 *gnu*)
7562 toolchain_c_compiler="gcc"
7563 toolchain_cxx_compiler="g++"
7564 toolchain_cpp_preprocessor="cpp"
7565 toolchain_ld="ld"
7566 toolchain_as="as"
7567 toolchain_ar="ar"
7568 toolchain_ranlib="ranlib"
7569 toolchain_nm="nm"
7570 toolchain_strip="strip"
7571 toolchain_objcopy="objcopy"
7572 toolchain_objdump="objdump"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7576 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7577 toolchain_c_compiler="cc"
7578 toolchain_cxx_compiler="c++"
7579 toolchain_cpp_preprocessor="cpp"
7580 toolchain_ld="ld"
7581 toolchain_as="as"
7582 toolchain_ar="ar"
7583 toolchain_ranlib="ranlib"
7584 toolchain_nm="nm"
7585 toolchain_strip="strip"
7586 toolchain_objcopy="objcopy"
7587 toolchain_objdump="objdump"
7589 esac
7591 #-----------------------------------------------------------------------------
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7594 $as_echo_n "checking which type of build to do... " >&6; }
7595 # Check whether --enable-build_type was given.
7596 if test "${enable_build_type+set}" = set; then :
7597 enableval=$enable_build_type; build_type=$enableval
7598 else
7599 build_type="personal"
7603 if test "$build_type" = "nightly"; then
7604 build_type_string="NIGHTLY"
7605 elif test "$build_type" = "snapshot"; then
7606 build_type_string="SNAPSHOT"
7607 elif test "$build_type" = "milestone"; then
7608 build_type_string="MILESTONE"
7609 elif test "$build_type" = "release"; then
7610 build_type_string="RELEASE"
7611 else
7612 build_type_string="PERSONAL"
7613 build_type="personal"
7616 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7619 $as_echo "$build_type" >&6; }
7621 #-----------------------------------------------------------------------------
7622 all_debug_types="messages stack modules mungwall symbols"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7625 $as_echo_n "checking which debug types to enable... " >&6; }
7626 # Check whether --enable-debug was given.
7627 if test "${enable_debug+set}" = set; then :
7628 enableval=$enable_debug; debug="$enableval"
7629 else
7630 debug=""
7634 if test "$debug" = "" -o "$debug" = "no"; then
7635 debug="none"
7636 elif test "$debug" = "yes"; then
7637 debug="all"
7640 if test "$debug" = "all" ; then
7641 debug="messages stack modules symbols"
7642 for d in $all_debug_types; do
7643 export aros_${d}_debug="1"
7644 done
7645 else
7646 for d in $all_debug_types; do
7647 export aros_${d}_debug="0"
7648 done
7651 if test "$debug" != "none"; then
7652 debug=`echo $debug | sed s/,/\ /g`
7653 for d in $debug; do
7654 found="0"
7655 for d2 in $all_debug_types; do
7656 if test "$d2" = "$d"; then
7657 found="1"
7658 break
7660 done
7661 if test "$found" = "0"; then
7662 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7664 export aros_${d}_debug="1"
7665 done
7666 aros_debug="yes"
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7669 $as_echo "$debug" >&6; }
7671 if test "$aros_messages_debug" = "1"; then
7672 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7673 else
7674 aros_messages_debug=""
7676 if test "$aros_symbols_debug" = "1"; then
7677 aros_symbols_debug="-g"
7678 else
7679 aros_symbols_debug=""
7682 # These are the flags to pass when compiling debugged programs
7683 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7684 aros_debug_aflags=""
7685 aros_debug_ldflags="$aros_symbols_debug"
7687 #-----------------------------------------------------------------------------
7688 # Checking for distcc and ccache.
7690 # Always apply the transforms in this particular order. Basically you should
7691 # always run 'ccache distcc compiler' in that order for the best performance.
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7694 $as_echo_n "checking whether to enable distcc... " >&6; }
7695 # Check whether --enable-distcc was given.
7696 if test "${enable_distcc+set}" = set; then :
7697 enableval=$enable_distcc; distcc="$enableval"
7698 else
7699 distcc="no"
7702 if test "$distcc" != "" -a "$distcc" != "no"; then
7703 # AC_CHECK_PROG will print out the result in this case
7704 # Extract the first word of "distcc", so it can be a program name with args.
7705 set dummy distcc; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_DISTCC+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 case $DISTCC in
7712 [\\/]* | ?:[\\/]*)
7713 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7727 done
7728 done
7729 IFS=$as_save_IFS
7731 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7733 esac
7735 DISTCC=$ac_cv_path_DISTCC
7736 if test -n "$DISTCC"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7738 $as_echo "$DISTCC" >&6; }
7739 else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7751 $as_echo_n "checking whether to enable ccache... " >&6; }
7752 # Check whether --enable-ccache was given.
7753 if test "${enable_ccache+set}" = set; then :
7754 enableval=$enable_ccache; ccache="$enableval"
7755 else
7756 ccache="no"
7759 if test "$ccache" != "" -a "$ccache" != "no"; then
7760 # AC_CHECK_PROG will print out the result in this case
7761 # Extract the first word of "ccache", so it can be a program name with args.
7762 set dummy ccache; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_CCACHE+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$CCACHE"; then
7769 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_CCACHE="ccache"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7784 IFS=$as_save_IFS
7788 CCACHE=$ac_cv_prog_CCACHE
7789 if test -n "$CCACHE"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7791 $as_echo "$CCACHE" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7803 #-----------------------------------------------------------------------------
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7805 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7807 # Check whether --with-kernel-gcc-version was given.
7808 if test "${with_kernel_gcc_version+set}" = set; then :
7809 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7810 else
7811 kernel_tool_version=""
7814 if test "$kernel_tool_version" != "" ; then
7815 msg_result=$kernel_tool_version
7816 else
7817 msg_result="default"
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7820 $as_echo "$msg_result" >&6; }
7822 #-----------------------------------------------------------------------------
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7824 $as_echo_n "checking what optimization flags to use... " >&6; }
7826 # Check whether --with-optimization was given.
7827 if test "${with_optimization+set}" = set; then :
7828 withval=$with_optimization; optimization="$withval"
7829 else
7830 optimization="unknown"
7833 if test "$optimization" = "unknown"; then
7834 if test "$debug" != "none"; then
7835 optimization="-O0"
7836 else
7837 optimization="-O2"
7840 aros_optimization_cflags="$optimization"
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7842 $as_echo "$optimization" >&6; }
7844 paranoia_default=yes
7845 #-----------------------------------------------------------------------------
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7847 $as_echo_n "checking which paranoia flags to use... " >&6; }
7849 # Check whether --with-paranoia was given.
7850 if test "${with_paranoia+set}" = set; then :
7851 withval=$with_paranoia; paranoia_flags="$withval"
7852 else
7853 paranoia_flags="$paranoia_default"
7856 if test "$paranoia_flags" = "no"; then
7857 paranoia_flags=""
7858 msg_result="none"
7859 else
7860 if test "$paranoia_flags" = "yes"; then
7861 paranoia_flags="-Wall -Werror"
7863 msg_result="$paranoia_flags"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7866 $as_echo "$msg_result" >&6; }
7867 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7869 #-----------------------------------------------------------------------------
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7871 $as_echo_n "checking what target variant to enable... " >&6; }
7872 # Check whether --enable-target_variant was given.
7873 if test "${enable_target_variant+set}" = set; then :
7874 enableval=$enable_target_variant; target_variant=$enableval
7875 else
7876 target_variant=""
7879 if test "$target_variant" = ""; then
7880 aros_target_variant=""
7881 aros_target_suffix=""
7882 enableval="none"
7883 else
7884 aros_target_variant="$target_variant"
7885 aros_target_suffix="-$target_variant"
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7888 $as_echo "$enableval" >&6; }
7890 #-----------------------------------------------------------------------------
7891 # Target-specific defaults. You can override then on a per-target basis.
7893 # Bootloader name. Currently used by PC target.
7894 target_bootloader="none"
7895 ENABLE_EXECSMP=
7897 #-----------------------------------------------------------------------------
7898 # Additional options for some specific targets
7900 case "$aros_target_variant" in
7901 ios)
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7903 $as_echo_n "checking XCode path... " >&6; }
7905 # Check whether --with-xcode was given.
7906 if test "${with_xcode+set}" = set; then :
7907 withval=$with_xcode; aros_xcode_path="$withval"
7908 else
7909 aros_xcode_path="/Developer"
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7913 $as_echo "$aros_xcode_path" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7916 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7918 # Check whether --with-sdk-version was given.
7919 if test "${with_sdk_version+set}" = set; then :
7920 withval=$with_sdk_version; aros_sdk_version="$withval"
7921 else
7922 aros_sdk_version="4.1"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7926 $as_echo "$aros_sdk_version" >&6; }
7930 "android")
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7932 $as_echo_n "checking Android SDK path... " >&6; }
7934 # Check whether --with-sdk was given.
7935 if test "${with_sdk+set}" = set; then :
7936 withval=$with_sdk; aros_android_sdk="$withval"
7937 else
7938 aros_android_sdk=$default_android_sdk
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7942 $as_echo "$aros_android_sdk" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7945 $as_echo_n "checking Android NDK path... " >&6; }
7947 # Check whether --with-ndk was given.
7948 if test "${with_ndk+set}" = set; then :
7949 withval=$with_ndk; aros_android_ndk="$withval"
7950 else
7951 aros_android_ndk="none"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7955 $as_echo "$aros_android_ndk" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7958 $as_echo_n "checking what Android SDK version to use... " >&6; }
7960 # Check whether --with-sdk-version was given.
7961 if test "${with_sdk_version+set}" = set; then :
7962 withval=$with_sdk_version; aros_sdk_version="$withval"
7963 else
7964 aros_sdk_version="12"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7968 $as_echo "$aros_sdk_version" >&6; }
7970 aros_android_level=android-$aros_sdk_version
7971 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7972 echo "Platform $aros_android_level is not installed in your SDK"
7973 echo "Use --with-sdk-version=<API level number> to select another platform version"
7974 echo "You can check what plaform versions are installed in your SDK"
7975 echo "by examining contents of $aros_android_sdk/platforms directory"
7976 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7979 export PATH="$aros_android_sdk/tools:$PATH"
7980 # Extract the first word of "$android_tool", so it can be a program name with args.
7981 set dummy $android_tool; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if ${ac_cv_path_android_tool+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 case $android_tool in
7988 [\\/]* | ?:[\\/]*)
7989 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8003 done
8004 done
8005 IFS=$as_save_IFS
8008 esac
8010 android_tool=$ac_cv_path_android_tool
8011 if test -n "$android_tool"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8013 $as_echo "$android_tool" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8020 req_avail=yes
8021 if test "$android_tool" = ""; then
8022 req_avail=no
8024 if test "$android_tool" = "no"; then
8025 req_avail=no
8027 if test "$req_avail" = "no"; then
8028 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8031 if test "$aros_android_ndk" != "none"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8033 $as_echo_n "checking what Android NDK version to use... " >&6; }
8035 # Check whether --with-ndk-version was given.
8036 if test "${with_ndk_version+set}" = set; then :
8037 withval=$with_ndk_version; aros_ndk_version="$withval"
8038 else
8039 aros_ndk_version="9"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8043 $as_echo "$aros_ndk_version" >&6; }
8046 # Extract the first word of "ant", so it can be a program name with args.
8047 set dummy ant; ac_word=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if ${ac_cv_path_ant+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 case $ant in
8054 [\\/]* | ?:[\\/]*)
8055 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8069 done
8070 done
8071 IFS=$as_save_IFS
8074 esac
8076 ant=$ac_cv_path_ant
8077 if test -n "$ant"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8079 $as_echo "$ant" >&6; }
8080 else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8086 if test "$ant" = ""; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8088 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8092 $as_echo_n "checking Build debug or release apk... " >&6; }
8094 # Check whether --with-apk-version was given.
8095 if test "${with_apk_version+set}" = set; then :
8096 withval=$with_apk_version; aros_android_antapk=$withval
8097 else
8098 aros_android_antapk=release
8101 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8102 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8105 $as_echo "$aros_android_antapk" >&6; }
8107 if test "$host_os" = "mingw32"; then
8108 android_tool="cmd //c $android_tool"
8111 need_dlopen="no"
8114 esac
8116 #-----------------------------------------------------------------------------
8117 # External toolchains
8118 kernel_tool_prefix="none"
8119 aros_tool_prefix="none"
8120 elf_tool_prefix="${target_cpu}-elf-"
8122 # This is the target configuration switch.
8123 case "$target_os" in
8124 linux*)
8125 aros_target_arch="linux"
8126 aros_target_family="unix"
8127 case "$target_cpu" in
8128 *m68k*)
8129 aros_target_cpu="m68k"
8130 aros_object_format="m68kelf"
8131 aros_flavour="emulcompat"
8132 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8133 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8134 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8135 gcc_target_cpu="mc68000"
8137 *i?86*)
8138 aros_target_cpu="i386"
8139 aros_object_format="elf_i386"
8140 aros_flavour="emulation"
8141 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8142 aros_kernel_ldflags="-Wl,-melf_i386"
8143 aros_nominal_depth=8
8144 gcc_target_cpu="i386"
8145 pci_hidd_target="hidd-pci-linux"
8146 android_tool_dir_prefix="x86"
8147 android_tool_prefix="i686-android-linux"
8148 android_ndk_arch="x86"
8150 *x86_64*)
8151 aros_target_cpu="x86_64"
8152 aros_object_format="elf_x86_64"
8153 aros_flavour="emulation"
8154 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8155 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8156 aros_nominal_depth=8
8157 pci_hidd_target="hidd-pci-linux"
8159 *powerpc*)
8160 aros_target_cpu="ppc"
8161 aros_object_format="elf32ppc"
8162 aros_flavour="emulation"
8163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8164 aros_nominal_depth=8
8165 gcc_target_cpu="ppc"
8167 # TODO
8168 # Same as powerpc, but I need this for the nightly build to work again.
8169 # Actually, the nightly should be made working with powerpc target.
8170 # That just was too much work for the moment, another week or two.
8171 *ppc*)
8172 aros_target_cpu="ppc"
8173 aros_object_format="elf32ppc"
8174 aros_flavour="emulation"
8175 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8176 aros_nominal_depth=8
8177 gcc_target_cpu="ppc"
8179 *aarch64*)
8180 aros_target_cpu="aarch64"
8181 target_cpu="aarch64"
8182 aros_object_format="aarch64elf_aros"
8183 aros_flavour="emulation"
8184 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8185 gcc_target_cpu="aarch64"
8186 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8187 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8188 aros_arch_libs="-laeabi"
8189 gcc_default_float_abi="hard"
8190 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8192 *armhf*)
8193 aros_target_cpu="arm"
8194 target_cpu="arm"
8195 aros_object_format="armelf_aros"
8196 aros_flavour="emulation"
8197 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8198 gcc_target_cpu="arm"
8199 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8200 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8201 aros_arch_libs="-laeabi"
8202 gcc_default_float_abi="hard"
8203 android_tool_dir_prefix="arm-linux-androideabi"
8204 android_tool_prefix="arm-linux-androideabi"
8205 android_ndk_arch="arm"
8206 kernel_tool_prefix="arm-linux-gnueabihf-"
8208 *arm*)
8209 aros_target_cpu="arm"
8210 aros_object_format="armelf_aros"
8211 aros_flavour="emulation"
8212 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8213 gcc_target_cpu="arm"
8214 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8215 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8216 aros_arch_libs="-laeabi"
8217 android_tool_dir_prefix="arm-linux-androideabi"
8218 android_tool_prefix="arm-linux-androideabi"
8219 android_ndk_arch="arm"
8220 kernel_tool_prefix="arm-linux-gnueabi-"
8223 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8225 esac
8226 case "$aros_target_variant" in
8227 android)
8229 if test "$android_ndk_arch" = ""; then
8230 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8233 aros_nominal_width=320
8234 aros_nominal_height=480
8235 if test "$aros_android_ndk" = "none"; then
8236 aros_kernel_cflags="-mandroid"
8237 aros_kernel_ldflags="-mandroid"
8238 CFLAGS="-mandroid"
8239 else
8240 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8241 kernel_tool_version=""
8242 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8243 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8244 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8245 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8246 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8248 need_x11=no
8249 host_android_gfx=yes
8250 # Disable implicit PIC mode
8251 aros_target_cflags="$aros_target_cflags -fno-pic"
8252 kernel_tool_prefix="$android_tool_prefix-"
8254 esac
8258 aros_target_arch="pc"
8259 aros_shared_default="no"
8260 target_bootloader="grub2"
8261 case "$target_cpu" in
8262 *i?86*)
8263 aros_target_cpu="i386"
8266 if test "$aros_object_format" = "" ; then
8267 aros_object_format="elf_i386"
8269 aros_flavour="standalone"
8270 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8271 aros_kernel_ldflags="-Wl,-melf_i386"
8272 aros_nominal_width=640
8273 aros_nominal_height=480
8274 gcc_target_cpu="i386"
8276 *x86_64*)
8277 aros_target_cpu="x86_64"
8278 aros_serial_debug=1
8279 if test "$aros_object_format" = "" ; then
8280 aros_object_format="elf_x86_64"
8282 aros_flavour="standalone"
8283 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8284 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8285 aros_kernel_ldflags=""
8286 aros_nominal_width=640
8287 aros_nominal_height=480
8288 case "$aros_target_variant" in
8289 smp)
8290 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8292 esac
8295 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8297 esac
8300 prep)
8301 aros_target_arch="prep"
8302 aros_shared_default="no"
8303 aros_target_cpu="ppc"
8304 aros_object_format="elf32ppc"
8305 aros_flavour="ppcnative"
8306 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8307 aros_kernel_ldflags=""
8308 aros_nominal_width=640
8309 aros_nominal_height=480
8310 gcc_target_cpu="ppc"
8313 freebsd*)
8314 aros_target_arch="freebsd"
8315 aros_target_family="unix"
8316 aros_target_cpu="i386"
8317 aros_flavour="emulation"
8318 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8319 gcc_target_cpu="i386"
8321 aros_target_strip_flags="-x"
8324 darwin*)
8325 aros_target_arch="darwin"
8326 aros_target_family="unix"
8327 aros_flavour="emulation"
8328 case "$target_cpu" in
8329 *i?86*)
8330 aros_ios_platform="iPhoneSimulator"
8331 aros_target_cpu="i386"
8332 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8333 aros_kernel_ldflags=""
8334 aros_macosx_version="10.4"
8335 aros_nominal_depth=8
8336 gcc_target_cpu="i386"
8337 aros_object_format="elf_i386"
8338 aros_kernel_ar_flags="-cr"
8339 aros_target_strip_flags="-x"
8340 kernel_tool_flags="-m32"
8342 *x86_64*)
8343 aros_target_cpu="x86_64"
8344 aros_object_format="elf_x86_64"
8345 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8346 aros_macosx_version="10.6"
8347 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8348 aros_kernel_cflags="-m64"
8349 aros_kernel_ldflags="-m64"
8350 aros_target_cflags="-mcmodel=large"
8351 aros_nominal_depth=8
8352 aros_kernel_ar="ar"
8353 aros_kernel_ar_flags="-cr"
8354 aros_kernel_ld="ld"
8355 aros_kernel_as="as"
8356 aros_kernel_ranlib="ranlib"
8357 aros_kernel_nm="nm"
8358 aros_kernel_strip="strip"
8359 kernel_tool_prefix="i686-apple-darwin10-"
8361 *ppc*)
8362 aros_target_cpu="ppc"
8363 aros_object_format="elf32ppc"
8364 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8365 aros_kernel_ldflags=""
8366 aros_macosx_version="10.0"
8367 aros_nominal_depth=8
8368 gcc_target_cpu="ppc"
8369 aros_kernel_ar="ar"
8370 aros_kernel_ar_flags="-cr"
8371 aros_kernel_ld="ld -arch ppc"
8372 aros_kernel_as="as -arch ppc"
8373 aros_kernel_ranlib="ranlib -arch ppc"
8374 aros_kernel_nm="nm -arch ppc"
8375 aros_kernel_strip="strip -arch ppc"
8376 kernel_tool_prefix="powerpc-apple-darwin10-"
8378 *arm*)
8379 aros_ios_platform="iPhoneOS"
8380 aros_target_cpu="arm"
8381 aros_object_format="armelf_aros"
8382 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8383 aros_arch_libs="-laeabi"
8384 aros_nominal_depth=8
8385 gcc_target_cpu="arm"
8386 aros_kernel_ar="ar"
8387 aros_kernel_ar_flags="-cr"
8388 aros_kernel_ld="ld -arch arm"
8389 aros_kernel_ranlib="ranlib -arch arm"
8390 kernel_tool_prefix="arm-apple-darwin10-"
8391 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8394 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8396 esac
8397 case "$aros_target_variant" in
8398 ios)
8399 aros_ios_version="3.0"
8400 aros_nominal_width=320
8401 aros_nominal_height=480
8402 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8403 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8404 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8405 need_x11=no
8406 # This is here because it may depend on iOS or SDK version
8407 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8408 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8409 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8412 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8413 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8415 esac
8418 dragonfly*)
8419 aros_target_arch="dragonfly"
8420 aros_target_family="unix"
8421 aros_flavour="emulation"
8422 case "$target_cpu" in
8423 *i?86*)
8424 aros_target_cpu="i386"
8425 aros_object_format="elf_i386"
8426 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8428 *x86_64*)
8429 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8430 aros_target_cpu="x86_64"
8431 aros_object_format="elf_x86_64"
8432 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8435 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8437 esac
8440 netbsd*)
8441 aros_target_arch="netbsd"
8442 aros_target_family="unix"
8443 case "$target_cpu" in
8444 *m68k*)
8445 aros_target_cpu="m68k"
8446 aros_object_format="m68kelf"
8447 aros_flavour="emulcompat"
8448 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8449 gcc_target_cpu="mc68000"
8451 *i?86*)
8452 aros_target_cpu="i386"
8453 aros_object_format="elf_i386"
8454 aros_flavour="emulation"
8455 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8456 aros_nominal_depth=8
8457 gcc_target_cpu="i386"
8460 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8462 esac
8463 aros_target_genmap="-Wl,-M -Xlinker >"
8464 aros_flavour="emulation"
8465 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8468 openbsd*)
8469 aros_target_arch="openbsd"
8470 aros_target_family="unix"
8471 case "$target_cpu" in
8472 *i?86*)
8473 aros_target_cpu="i386"
8474 aros_object_format="elf_i386"
8475 aros_flavour="emulation"
8476 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8477 gcc_target_cpu="i386"
8480 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8482 esac
8483 aros_target_genmap="-Wl,-M -Xlinker >"
8484 aros_target_nm_flags="-u"
8485 aros_flavour="emulation"
8488 solaris*)
8489 aros_target_arch="solaris"
8490 aros_target_family="unix"
8491 case "$target_cpu" in
8492 *i?86*)
8493 aros_target_cpu="i386"
8494 aros_object_format="elf_i386"
8495 aros_flavour="emulation"
8496 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8497 aros_nominal_depth=8
8498 gcc_target_cpu="i386"
8500 *sparc*)
8501 aros_target_cpu="sparc"
8502 aros_object_format="elf_sparc"
8503 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8504 gcc_target_cpu="sparc"
8507 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8509 esac
8510 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8511 aros_flavour="emulation"
8514 morphos*)
8515 aros_target_arch="morphos"
8516 aros_shared_default="no"
8517 aros_target_cpu="ppc"
8518 aros_object_format="elf_ppc"
8519 aros_flavour="nativecompat"
8520 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8521 gcc_target_cpu="ppc"
8524 sam440)
8525 aros_target_arch="sam440"
8526 aros_shared_default="no"
8527 aros_target_cpu="ppc"
8528 aros_object_format="elf32ppc"
8529 aros_flavour="ppcnative"
8530 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8531 aros_kernel_ldflags=""
8532 aros_nominal_width=1024
8533 aros_nominal_height=768
8534 aros_nominal_depth=24
8535 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8536 gcc_target_cpu="powerpc"
8539 efika)
8540 aros_target_arch="efika"
8541 aros_shared_default="no"
8542 aros_target_cpu="arm"
8543 aros_object_format="armelf_aros"
8544 aros_flavour="standalone"
8545 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8546 aros_kernel_ldflags=""
8547 aros_nominal_width=1024
8548 aros_nominal_height=600
8549 aros_arch_libs="-laeabi"
8550 gcc_default_cpu="armv7-a"
8551 gcc_default_fpu="vfpv3"
8552 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8553 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8554 aros_optimization_cflags="$aros_optimization_cflags -Os"
8555 case "$target_cpu" in
8556 *armhf*)
8557 gcc_default_float_abi="hard"
8558 target_cpu=arm
8559 aros_target_cpu=arm
8561 *arm*)
8562 gcc_default_float_abi="softfp"
8565 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8567 esac
8570 chrp)
8571 aros_target_arch="chrp"
8572 aros_shared_default="no"
8573 aros_target_cpu="ppc"
8574 aros_object_format="elf32ppc"
8575 aros_flavour="ppcnative"
8576 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8577 aros_kernel_ldflags=""
8578 aros_nominal_width=640
8579 aros_nominal_height=480
8580 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8581 gcc_target_cpu="powerpc"
8582 case "$aros_target_variant" in
8583 efika)
8584 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8586 esac
8589 r*pi)
8590 aros_flavour="standalone"
8591 aros_target_arch="raspi"
8593 aros_shared_default="no"
8595 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8597 case "$target_cpu" in
8598 *aarch64*)
8599 aros_target_cpu="aarch64"
8600 gcc_default_cpu="aarch64"
8601 aros_object_format="aarch64elf_aros"
8603 *armhf*)
8604 aros_target_cpu="arm"
8605 gcc_default_cpu="armv6zk"
8606 gcc_default_cpu_tune="arm1176jzf-s"
8607 aros_object_format="armelf_aros"
8608 aros_config_cflags="$aros_config_cflags -marm"
8609 aros_config_aflags="$aros_config_aflags -marm"
8610 aros_kernel_cflags="$aros_kernel_cflags -marm"
8611 aros_target_cflags="$aros_kernel_cflags -marm"
8612 aros_target_mkdep="$aros_target_mkdep -Darm"
8613 aros_arch_libs="-laeabi"
8615 *arm*)
8616 aros_target_cpu="arm"
8617 gcc_default_cpu="armv6zk"
8618 gcc_default_cpu_tune="arm1176jzf-s"
8619 aros_object_format="armelf_aros"
8620 aros_config_cflags="$aros_config_cflags -marm"
8621 aros_config_aflags="$aros_config_aflags -marm"
8622 aros_kernel_cflags="$aros_kernel_cflags -marm"
8623 aros_target_cflags="$aros_kernel_cflags -marm"
8624 aros_target_mkdep="$aros_target_mkdep -Darm"
8625 aros_arch_libs="-laeabi"
8628 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8630 esac
8632 aros_config_cflags="$aros_config_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8633 aros_config_aflags="$aros_config_aflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8634 aros_kernel_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8635 aros_target_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8637 case "$aros_target_variant" in
8638 smp)
8639 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8641 esac
8644 stm32f7_discovery)
8645 aros_flavour="standalone"
8646 aros_target_arch="stm32f7_discovery"
8647 aros_target_cpu="arm"
8648 aros_target_cpu_mode="thumb2"
8649 aros_object_format="armelf_aros"
8650 aros_shared_default="no"
8652 # stm32f7 has DSP opcode support
8653 gcc_default_cpu="armv7e-m"
8654 # gcc_default_cpu="armv7-m"
8655 gcc_default_cpu_tune="cortex-m7"
8656 gcc_default_fpu="fpv4-sp-d16"
8657 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8658 # gcc_default_fpu="fpv5-sp-d16"
8659 gcc_default_float_abi="hard"
8661 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8664 amiga*)
8665 aros_target_arch="amiga"
8666 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8667 aros_shared_default="no"
8669 case "$target_cpu" in
8670 *m68k*)
8671 # Check whether --enable-amigaos_compliance was given.
8672 if test "${enable_amigaos_compliance+set}" = set; then :
8673 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8676 aros_enable_mmu=no
8677 aros_target_cpu="m68k"
8678 aros_object_format="m68kelf"
8679 aros_flavour="standcompat"
8680 gcc_target_cpu="m68000"
8681 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8682 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8683 aros_optimization_cflags="$aros_optimization_cflags -Os"
8684 aros_config_aflags="$aros_config_aflags"
8685 aros_target_strip_flags="-R.comment --strip-debug"
8686 aros_nominal_width=640
8687 aros_nominal_height=256
8688 aros_nominal_depth=2
8690 *ppc*)
8691 aros_cpu="ppc"
8692 aros_flavour="native"
8693 gcc_target_cpu="ppc"
8696 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8698 esac
8701 mingw*)
8702 aros_target_arch="mingw32"
8703 aros_shared_default="no"
8704 aros_flavour="emulation"
8705 aros_shared_cflags=""
8706 need_crosstools="yes"
8707 need_dlopen="no"
8708 rescomp="windres"
8709 case "$target_cpu" in
8710 *i?86*)
8711 aros_target_cpu="i386"
8712 aros_object_format="elf_i386"
8713 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8714 aros_nominal_depth=8
8715 gcc_target_cpu="i386"
8717 kernel_tool_prefix="i386-mingw32-"
8719 *x86_64*)
8720 aros_target_cpu="x86_64"
8721 aros_object_format="elf_x86_64"
8722 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8723 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8724 aros_nominal_depth=8
8725 kernel_tool_prefix="x86_64-w64-mingw32-"
8727 *arm*)
8728 aros_target_cpu="arm"
8729 aros_object_format="armelf_aros"
8730 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8731 aros_arch_libs="-laeabi"
8732 aros_nominal_depth=8
8733 gcc_target_cpu="arm"
8734 gcc_default_float_abi="soft"
8735 kernel_tool_prefix="arm-mingw32ce-"
8736 aros_nominal_width=160
8737 aros_nominal_height=160
8740 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8742 esac
8743 if test $host_os = "cygwin"; then
8744 aros_kernel_cflags="-mno-cygwin"
8747 pp*)
8748 aros_target_arch="pp"
8749 aros_shared_default="no"
8750 case "$target_cpu" in
8751 *m68k*)
8752 aros_target_cpu="m68k"
8753 aros_object_format="m68kelf"
8754 aros_flavour="palmnative"
8755 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8756 aros_nominal_width=160
8757 aros_nominal_height=160
8758 aros_nominal_depth=1
8759 aros_target_ar_flags="cru"
8760 aros_compiler_libs="-lgcc1"
8761 aros_shared_default=no
8762 aros_shared_cflags="-fpic"
8763 aros_shared_aflags=""
8764 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8765 aros_kernel_ldflags="-Wl,-rpath,./lib"
8766 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8767 aros_debug_aflags=""
8768 aros_debug_ldflags="$aros_symbols_debug"
8769 aros_mungwall_debug="0"
8770 aros_modules_debug="0"
8771 gcc_target_cpu="mc68000"
8772 ignore_undefined_symbols="-ius"
8775 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8777 esac
8780 mac*)
8781 aros_target_arch="mac"
8782 aros_shared_default="no"
8783 case "$target_cpu" in
8784 *m68k*)
8785 aros_target_cpu="m68k"
8786 aros_object_format="m68kelf"
8787 aros_flavour="mac68knative"
8788 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8789 aros_nominal_width=512
8790 aros_nominal_height=384
8791 aros_nominal_depth=8
8792 aros_target_ar_flags="cru"
8793 aros_compiler_libs="-lgcc1"
8794 aros_shared_default=no
8795 aros_shared_cflags="-fpic"
8796 aros_shared_aflags=""
8797 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8798 aros_kernel_ldflags="-Wl,-rpath,./lib"
8799 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8800 aros_debug_aflags=""
8801 aros_debug_ldflags="$aros_symbols_debug"
8802 aros_mungwall_debug="0"
8803 aros_modules_debug="0"
8804 gcc_target_cpu="mc68000"
8805 ignore_undefined_symbols="-ius"
8808 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8810 esac
8814 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8816 esac
8818 #-----------------------------------------------------------------------------
8819 crosstools_guess="yes"
8820 aros_target_toolchain="no"
8821 aros_config_sysroot=""
8822 aros_kernel_sysroot=""
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8825 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8827 # Check whether --with-kernel-toolchain-prefix was given.
8828 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8829 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8833 $as_echo "$kernel_tool_prefix" >&6; }
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8836 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8838 # Check whether --with-elf-toolchain-prefix was given.
8839 if test "${with_elf_toolchain_prefix+set}" = set; then :
8840 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8841 crosstools_guess="no"
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8845 $as_echo "$elf_tool_prefix" >&6; }
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8848 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8850 # Check whether --with-aros-toolchain was given.
8851 if test "${with_aros_toolchain+set}" = set; then :
8852 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8853 crosstools_guess="no"
8856 if test "$aros_tool_prefix" = "yes" ; then
8857 aros_tool_prefix=$aros_target_cpu-aros-
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8860 $as_echo "$aros_tool_prefix" >&6; }
8862 #-----------------------------------------------------------------------------
8863 # Checking if we should build crosstools..
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8865 $as_echo_n "checking whether to build crosstools... " >&6; }
8866 # Check whether --enable-crosstools was given.
8867 if test "${enable_crosstools+set}" = set; then :
8868 enableval=$enable_crosstools; crosstools="$enableval"
8869 else
8870 crosstools="$crosstools_guess"
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8874 $as_echo "$crosstools" >&6; }
8876 if test "${crosstools}" = "yes"; then
8877 if test "${crosstools_guess}" = "no"; then
8878 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8882 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8883 aros_target_toolchain="yes"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8887 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8889 # Check whether --with-aros-toolchain-install was given.
8890 if test "${with_aros_toolchain_install+set}" = set; then :
8891 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8894 if test "x$aros_toolchain_install" = "x"; then
8895 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8896 else
8897 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8898 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8899 if test "$crosstools_guess" = "no" ; then
8900 toolchain_needs_sysroot=yes
8902 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8903 aros_kernel_sysroot = $aros_config_sysroot
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8908 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8911 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8912 if test "$toolchain_needs_sysroot" = "yes" ; then
8913 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8916 $as_echo "$toolchain_needs_sysroot" >&6; }
8918 #-----------------------------------------------------------------------------
8919 if test "$aros_toolchain" = "gnu" ; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8921 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8924 # Check whether --with-binutils-version was given.
8925 if test "${with_binutils_version+set}" = set; then :
8926 withval=$with_binutils_version; use_binutils_version="$withval"
8927 else
8928 use_binutils_version=""
8931 if test "$use_binutils_version" = ""; then
8932 target_binutils_version="$default_binutils_version"
8933 else
8934 target_binutils_version="$use_binutils_version"
8936 if test "$aros_toolchain" = "gnu" ; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8938 $as_echo "$target_binutils_version" >&6; }
8942 # Helper to identify gcc version
8945 #-----------------------------------------------------------------------------
8946 if test "$aros_toolchain" = "gnu" ; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8948 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8951 # Check whether --with-gcc-version was given.
8952 if test "${with_gcc_version+set}" = set; then :
8953 withval=$with_gcc_version; use_gcc_version="$withval"
8954 else
8955 use_gcc_version=""
8958 if test "$use_gcc_version" = ""; then
8959 if test "${crosstools}" = "no"; then
8960 if test "x$aros_toolchain_install" != "x"; then
8962 target_gcc_version=""
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8964 $as_echo_n "checking gcc version... " >&6; }
8965 if ${ax_cv_gcc_version+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8969 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8970 if test "x$ax_cv_gcc_version" = "x"; then :
8972 ax_cv_gcc_version=""
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8978 $as_echo "$ax_cv_gcc_version" >&6; }
8979 target_gcc_version=$ax_cv_gcc_version
8984 if test "$use_gcc_version" = ""; then
8985 target_gcc_version="$default_gcc_version"
8987 else
8988 target_gcc_version="$use_gcc_version"
8990 if test "$aros_toolchain" = "gnu" ; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8992 $as_echo "$target_gcc_version" >&6; }
8994 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8995 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8996 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8998 gcc_fix_bitfields="false"
8999 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9000 gcc_fix_bitfields="true"
9001 else
9002 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9003 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9004 gcc_fix_bitfields="true"
9009 if test "$gcc_fix_bitfields" = "true" ; then
9010 case "$aros_target_cpu" in
9011 *x86_64*)
9012 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9013 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9015 i386)
9016 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9017 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9019 esac
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9024 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9025 # Check whether --enable-objc was given.
9026 if test "${enable_objc+set}" = set; then :
9027 enableval=$enable_objc; objc="$enableval"
9028 else
9029 objc="no"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9033 $as_echo "$objc" >&6; }
9034 if test "x$objc" = "xyes"; then
9035 objc_target="$objc"
9036 else
9037 objc_target="no-objc"
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9041 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9042 # Check whether --enable-java was given.
9043 if test "${enable_java+set}" = set; then :
9044 enableval=$enable_java; java="$enableval"
9045 else
9046 java="no"
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9050 $as_echo "$java" >&6; }
9051 if test "x$java" != "xno"; then
9052 java_target="$java"
9053 else
9054 java_target="no-java"
9057 spec_obj_format="-m $aros_object_format"
9058 # Now process extra architecture-specific options.
9059 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9060 # as well as floating-point ABI.
9061 case "$aros_target_cpu" in
9062 *x86_64*)
9063 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9065 arm*)
9066 if test "$gcc_default_cpu" = ""; then
9067 gcc_default_cpu="armv6"
9069 if test "$gcc_default_fpu" = ""; then
9070 gcc_default_fpu="vfp"
9072 if test "$gcc_default_float_abi" = ""; then
9073 if test "$target_cpu" = "armhf"; then
9074 gcc_default_float_abi="hard"
9075 else
9076 gcc_default_float_abi="softfp"
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9081 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9083 # Check whether --with-cpu was given.
9084 if test "${with_cpu+set}" = set; then :
9085 withval=$with_cpu; aros_gcc_cpu="$withval"
9086 else
9087 aros_gcc_cpu=$gcc_default_cpu
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9091 $as_echo "$aros_gcc_cpu" >&6; }
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9094 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9096 # Check whether --with-fpu was given.
9097 if test "${with_fpu+set}" = set; then :
9098 withval=$with_fpu; aros_gcc_fpu="$withval"
9099 else
9100 aros_gcc_fpu=$gcc_default_fpu
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9104 $as_echo "$aros_gcc_fpu" >&6; }
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9107 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9109 # Check whether --with-float was given.
9110 if test "${with_float+set}" = set; then :
9111 withval=$with_float; aros_gcc_float_abi="$withval"
9112 else
9113 aros_gcc_float_abi=$gcc_default_float_abi
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9117 $as_echo "$aros_gcc_float_abi" >&6; }
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9120 $as_echo_n "checking Which ARM mode to use... " >&6; }
9121 if test "$aros_target_cpu_mode" = ""; then
9122 aros_target_cpu_mode="arm32"
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9124 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9125 else
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9127 $as_echo "$aros_target_cpu_mode" >&6; }
9130 case "$aros_target_cpu_mode" in
9131 arm32)
9132 gcc_default_mode="arm"
9133 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9135 arm64)
9136 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9138 thumb)
9139 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9141 thumb1)
9142 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9144 thumb2)
9145 gcc_default_mode="thumb"
9146 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9147 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9150 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9152 esac
9154 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9155 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9157 i386)
9158 aros_isa_flags="-m32 -march=i486"
9159 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9160 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9162 esac
9164 # Some architectures may need custom ELF specs.
9165 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9166 elf_specs_in=config/${aros_object_format}-specs.in
9167 else
9168 elf_specs_in=config/elf-specs.in
9171 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9172 # Since we override specs, we may need to put these defines there
9173 if test "$gcc_target_cpu" != ""; then
9174 gcc_target_cpu="-D__${gcc_target_cpu}__"
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9178 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9180 # Check whether --with-portssources was given.
9181 if test "${with_portssources+set}" = set; then :
9182 withval=$with_portssources; with_portssrcdir=$withval
9183 else
9184 with_portssrcdir="default"
9187 if test "$with_portssrcdir" = "default"; then
9188 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9189 else
9190 AROS_PORTSSRCDIR="$with_portssrcdir"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9193 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9196 $as_echo_n "checking which bootloader to use... " >&6; }
9198 # Check whether --with-bootloader was given.
9199 if test "${with_bootloader+set}" = set; then :
9200 withval=$with_bootloader; target_bootloader=$withval
9201 else
9202 target_bootloader=$target_bootloader
9205 if test "$target_bootloader" = "none"; then
9206 aros_target_bootloader=""
9207 else
9208 aros_target_bootloader="$target_bootloader"
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9211 $as_echo "$target_bootloader" >&6; }
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9214 $as_echo_n "checking which icon-set to use... " >&6; }
9216 # Check whether --with-iconset was given.
9217 if test "${with_iconset+set}" = set; then :
9218 withval=$with_iconset; target_iconset=$withval
9219 else
9220 target_iconset="default"
9223 if test "$target_iconset" = "default"; then
9224 aros_target_iconset="Gorilla"
9225 target_iconset="default (Gorilla)"
9226 else
9227 aros_target_iconset="$target_iconset"
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9230 $as_echo "$target_iconset" >&6; }
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9233 $as_echo_n "checking which GUI Theme to use... " >&6; }
9235 # Check whether --with-theme was given.
9236 if test "${with_theme+set}" = set; then :
9237 withval=$with_theme; target_guitheme=$withval
9238 else
9239 target_guitheme="default"
9242 if test "$target_guitheme" = "default"; then
9243 aros_target_guitheme="Ice"
9244 else
9245 aros_target_guitheme="$target_guitheme"
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9248 $as_echo "$aros_target_guitheme" >&6; }
9250 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9251 # for target code)
9252 cross_compiling=no
9254 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9255 cross_compiling=yes
9258 if test "$aros_host_cpu" == "x86_64" ; then
9259 if test "$aros_target_cpu" == "i386" ; then
9260 cross_compiling=no
9264 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9265 if test "$aros_host_arch" != "$aros_target_arch" ; then
9266 cross_compiling=yes
9268 else
9269 if test "$host_cc_elf" = "no" ; then
9270 cross_compiling=yes
9274 if test "$cross_compiling" = "no" ; then
9275 kernel_tool_prefix=""
9276 if test "$host_cc_elf" = "yes" ; then
9277 elf_tool_prefix=""
9281 if test "$kernel_tool_version" != ""; then
9282 kernel_tool_version="-$kernel_tool_version"
9285 #######################################################################
9286 ## Compute what toolchains to use, and their paths ##
9287 #######################################################################
9289 # This takes, as input:
9290 # crosstools {yes,no}
9291 # kernel_tool_version {"",[version]}
9292 # target_tool_version {"",[version]}
9293 # kernel_tool_prefix {none,[some-arch-os-]}
9294 # gnu-toolchain -:
9295 # target_tool_prefix ${aros_target_cpu}-aros-
9296 # aros_tool_prefix ${aros_target_cpu}-aros-
9298 # The output is
9299 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9300 # Where the 'kernel' binaries are located
9301 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9302 # Where the 'target' binaries are located
9303 # (not the symlink farm - that is aros_target_*!)
9305 # The rules are:
9306 # if crosstools then
9307 # if kernel_tools_prefix = "no-kernel-prefix-"
9308 # aros_kernel_* = crosstools cc paths
9309 # aros_kernel_cc = elf cc wrapper around crosstools cc
9310 # else
9311 # VALIDATE(${kernel_tools_prefix}*)
9312 # aros_kernel_* = ${kernel_tools_prefix}*
9313 # if ${kernel_tools_prefix}cc is an AROS gcc
9314 # aros_kernel_cc = ${kernel_tools_prefix}cc
9315 # else
9316 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9317 # fi
9318 # fi
9320 # orig_target_* = aros built crosstools
9321 # orig_target_cc = elf cc wrapper around crosstools cc
9322 # else
9323 # VALIDATE(${kernel_tools_prefix}*)
9325 # orig_target_* = aros_kernel_*
9326 # if aros_kernel_cc is an AROS gcc
9327 # orig_target_cc = aros_kernel_cc
9328 # else
9329 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9330 # fi
9331 # fi
9333 if test "$aros_toolchain" = "gnu" ; then
9334 target_tool_prefix="${aros_target_cpu}-aros-"
9335 elif test "$aros_toolchain" = "llvm" ; then
9336 target_tool_prefix="bin/"
9339 if test "$kernel_tool_prefix" != "" ; then
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9341 $as_echo_n "checking which kernel tools... " >&6; }
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9343 $as_echo "$kernel_tool_prefix" >&6; };
9346 if test "$kernel_tool_prefix" = "none" ; then
9347 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9348 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9350 else
9351 # Kernel tools required - find them
9352 # Note that 'normally', aros_kernel_* overrides will be
9353 # empty, unless specified in the per-arch sections above.
9354 if test "x$aros_kernel_cpp" = "x"; then
9355 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9358 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9359 if test "$cross_compiling" = "yes" ; then
9360 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9361 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 case $aros_kernel_cpp in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9379 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9383 done
9384 done
9385 IFS=$as_save_IFS
9388 esac
9390 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9391 if test -n "$aros_kernel_cpp"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9393 $as_echo "$aros_kernel_cpp" >&6; }
9394 else
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9400 else
9401 if test "$GCC" = "yes"; then
9402 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9403 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9404 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 case $aros_kernel_cpp in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in `dirname $aros_gcc_cpp`
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9422 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9426 done
9427 done
9428 IFS=$as_save_IFS
9431 esac
9433 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9434 if test -n "$aros_kernel_cpp"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9436 $as_echo "$aros_kernel_cpp" >&6; }
9437 else
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 $as_echo "no" >&6; }
9444 if test "$aros_kernel_cpp" = ""; then
9445 # Extract the first word of "cpp", so it can be a program name with args.
9446 set dummy cpp; ac_word=$2
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 $as_echo_n "checking for $ac_word... " >&6; }
9449 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 case $aros_kernel_cpp in
9453 [\\/]* | ?:[\\/]*)
9454 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9468 done
9469 done
9470 IFS=$as_save_IFS
9473 esac
9475 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9476 if test -n "$aros_kernel_cpp"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9478 $as_echo "$aros_kernel_cpp" >&6; }
9479 else
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9487 else
9488 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9489 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 case $aros_kernel_cpp in
9496 [\\/]* | ?:[\\/]*)
9497 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9507 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2
9511 done
9512 done
9513 IFS=$as_save_IFS
9516 esac
9518 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9519 if test -n "$aros_kernel_cpp"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9521 $as_echo "$aros_kernel_cpp" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9530 req_avail=yes
9531 if test "$aros_kernel_cpp" = ""; then
9532 req_avail=no
9534 if test "$aros_kernel_cpp" = "no"; then
9535 req_avail=no
9537 if test "$req_avail" = "no"; then
9538 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9540 if test "x$aros_kernel_cc" = "x"; then
9541 aros_kernel_cc=${kernel_tool_prefix}${CC}
9544 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9545 if test "$cross_compiling" = "yes" ; then
9546 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9547 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 case $aros_kernel_cc in
9554 [\\/]* | ?:[\\/]*)
9555 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9565 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9567 break 2
9569 done
9570 done
9571 IFS=$as_save_IFS
9574 esac
9576 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9577 if test -n "$aros_kernel_cc"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9579 $as_echo "$aros_kernel_cc" >&6; }
9580 else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9586 else
9587 if test "$GCC" = "yes"; then
9588 aros_gcc_cc=`$CC -print-prog-name=cc`
9589 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9590 set dummy `basename $aros_gcc_cc`; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 case $aros_kernel_cc in
9597 [\\/]* | ?:[\\/]*)
9598 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in `dirname $aros_gcc_cc`
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9608 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 break 2
9612 done
9613 done
9614 IFS=$as_save_IFS
9617 esac
9619 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9620 if test -n "$aros_kernel_cc"; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9622 $as_echo "$aros_kernel_cc" >&6; }
9623 else
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9630 if test "$aros_kernel_cc" = ""; then
9631 # Extract the first word of "cc", so it can be a program name with args.
9632 set dummy cc; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 case $aros_kernel_cc in
9639 [\\/]* | ?:[\\/]*)
9640 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9654 done
9655 done
9656 IFS=$as_save_IFS
9659 esac
9661 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9662 if test -n "$aros_kernel_cc"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9664 $as_echo "$aros_kernel_cc" >&6; }
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9673 else
9674 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9675 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9679 $as_echo_n "(cached) " >&6
9680 else
9681 case $aros_kernel_cc in
9682 [\\/]* | ?:[\\/]*)
9683 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9693 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9697 done
9698 done
9699 IFS=$as_save_IFS
9702 esac
9704 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9705 if test -n "$aros_kernel_cc"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9707 $as_echo "$aros_kernel_cc" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9716 req_avail=yes
9717 if test "$aros_kernel_cc" = ""; then
9718 req_avail=no
9720 if test "$aros_kernel_cc" = "no"; then
9721 req_avail=no
9723 if test "$req_avail" = "no"; then
9724 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9726 if test "x$aros_kernel_cxx" = "x"; then
9727 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9730 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9731 if test "$cross_compiling" = "yes" ; then
9732 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9733 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 case $aros_kernel_cxx in
9740 [\\/]* | ?:[\\/]*)
9741 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9755 done
9756 done
9757 IFS=$as_save_IFS
9760 esac
9762 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9763 if test -n "$aros_kernel_cxx"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9765 $as_echo "$aros_kernel_cxx" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9772 else
9773 if test "$GCC" = "yes"; then
9774 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9775 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9776 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778 $as_echo_n "checking for $ac_word... " >&6; }
9779 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 case $aros_kernel_cxx in
9783 [\\/]* | ?:[\\/]*)
9784 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in `dirname $aros_gcc_cxx`
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9794 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9798 done
9799 done
9800 IFS=$as_save_IFS
9803 esac
9805 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9806 if test -n "$aros_kernel_cxx"; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9808 $as_echo "$aros_kernel_cxx" >&6; }
9809 else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811 $as_echo "no" >&6; }
9816 if test "$aros_kernel_cxx" = ""; then
9817 # Extract the first word of "cxx", so it can be a program name with args.
9818 set dummy cxx; ac_word=$2
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820 $as_echo_n "checking for $ac_word... " >&6; }
9821 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 case $aros_kernel_cxx in
9825 [\\/]* | ?:[\\/]*)
9826 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 for as_dir in $PATH
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
9834 for ac_exec_ext in '' $ac_executable_extensions; do
9835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9836 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 break 2
9840 done
9841 done
9842 IFS=$as_save_IFS
9845 esac
9847 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9848 if test -n "$aros_kernel_cxx"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9850 $as_echo "$aros_kernel_cxx" >&6; }
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9859 else
9860 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9861 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 case $aros_kernel_cxx in
9868 [\\/]* | ?:[\\/]*)
9869 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9883 done
9884 done
9885 IFS=$as_save_IFS
9888 esac
9890 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9891 if test -n "$aros_kernel_cxx"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9893 $as_echo "$aros_kernel_cxx" >&6; }
9894 else
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9902 # If it's set, make sure it's really there
9903 if test "x$aros_kernel_cxx" != "x" ; then
9904 req_avail=yes
9905 if test "$aros_kernel_cxx" = ""; then
9906 req_avail=no
9908 if test "$aros_kernel_cxx" = "no"; then
9909 req_avail=no
9911 if test "$req_avail" = "no"; then
9912 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9916 if test "$aros_kernel_ld" = ""; then
9917 if test "$cross_compiling" = "yes" ; then
9918 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9919 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 case $aros_kernel_ld in
9926 [\\/]* | ?:[\\/]*)
9927 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 for as_dir in $PATH
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9937 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 break 2
9941 done
9942 done
9943 IFS=$as_save_IFS
9946 esac
9948 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9949 if test -n "$aros_kernel_ld"; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9951 $as_echo "$aros_kernel_ld" >&6; }
9952 else
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954 $as_echo "no" >&6; }
9958 else
9959 if test "$GCC" = "yes"; then
9960 aros_gcc_ld=`$CC -print-prog-name=ld`
9961 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9962 set dummy `basename $aros_gcc_ld`; ac_word=$2
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964 $as_echo_n "checking for $ac_word... " >&6; }
9965 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 case $aros_kernel_ld in
9969 [\\/]* | ?:[\\/]*)
9970 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in `dirname $aros_gcc_ld`
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9980 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9984 done
9985 done
9986 IFS=$as_save_IFS
9989 esac
9991 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9992 if test -n "$aros_kernel_ld"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9994 $as_echo "$aros_kernel_ld" >&6; }
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10002 if test "$aros_kernel_ld" = ""; then
10003 # Extract the first word of "ld", so it can be a program name with args.
10004 set dummy ld; ac_word=$2
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006 $as_echo_n "checking for $ac_word... " >&6; }
10007 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 case $aros_kernel_ld in
10011 [\\/]* | ?:[\\/]*)
10012 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10018 IFS=$as_save_IFS
10019 test -z "$as_dir" && as_dir=.
10020 for ac_exec_ext in '' $ac_executable_extensions; do
10021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10022 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10024 break 2
10026 done
10027 done
10028 IFS=$as_save_IFS
10031 esac
10033 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10034 if test -n "$aros_kernel_ld"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10036 $as_echo "$aros_kernel_ld" >&6; }
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10045 else
10046 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10047 set dummy $aros_kernel_ld; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 case $aros_kernel_ld in
10054 [\\/]* | ?:[\\/]*)
10055 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10069 done
10070 done
10071 IFS=$as_save_IFS
10074 esac
10076 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10077 if test -n "$aros_kernel_ld"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10079 $as_echo "$aros_kernel_ld" >&6; }
10080 else
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10088 req_avail=yes
10089 if test "$aros_kernel_ld" = ""; then
10090 req_avail=no
10092 if test "$aros_kernel_ld" = "no"; then
10093 req_avail=no
10095 if test "$req_avail" = "no"; then
10096 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10099 if test "$aros_kernel_as" = ""; then
10100 if test "$cross_compiling" = "yes" ; then
10101 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10102 set dummy ${kernel_tool_prefix}as; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_path_aros_kernel_as+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 case $aros_kernel_as in
10109 [\\/]* | ?:[\\/]*)
10110 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10124 done
10125 done
10126 IFS=$as_save_IFS
10129 esac
10131 aros_kernel_as=$ac_cv_path_aros_kernel_as
10132 if test -n "$aros_kernel_as"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10134 $as_echo "$aros_kernel_as" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10141 else
10142 if test "$GCC" = "yes"; then
10143 aros_gcc_as=`$CC -print-prog-name=as`
10144 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10145 set dummy `basename $aros_gcc_as`; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_path_aros_kernel_as+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 case $aros_kernel_as in
10152 [\\/]* | ?:[\\/]*)
10153 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in `dirname $aros_gcc_as`
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10167 done
10168 done
10169 IFS=$as_save_IFS
10172 esac
10174 aros_kernel_as=$ac_cv_path_aros_kernel_as
10175 if test -n "$aros_kernel_as"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10177 $as_echo "$aros_kernel_as" >&6; }
10178 else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10185 if test "$aros_kernel_as" = ""; then
10186 # Extract the first word of "as", so it can be a program name with args.
10187 set dummy as; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if ${ac_cv_path_aros_kernel_as+:} false; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 case $aros_kernel_as in
10194 [\\/]* | ?:[\\/]*)
10195 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10205 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 break 2
10209 done
10210 done
10211 IFS=$as_save_IFS
10214 esac
10216 aros_kernel_as=$ac_cv_path_aros_kernel_as
10217 if test -n "$aros_kernel_as"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10219 $as_echo "$aros_kernel_as" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10228 else
10229 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10230 set dummy $aros_kernel_as; ac_word=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if ${ac_cv_path_aros_kernel_as+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 case $aros_kernel_as in
10237 [\\/]* | ?:[\\/]*)
10238 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10252 done
10253 done
10254 IFS=$as_save_IFS
10257 esac
10259 aros_kernel_as=$ac_cv_path_aros_kernel_as
10260 if test -n "$aros_kernel_as"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10262 $as_echo "$aros_kernel_as" >&6; }
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10271 req_avail=yes
10272 if test "$aros_kernel_as" = ""; then
10273 req_avail=no
10275 if test "$aros_kernel_as" = "no"; then
10276 req_avail=no
10278 if test "$req_avail" = "no"; then
10279 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10282 if test "$aros_kernel_ar" = ""; then
10283 if test "$cross_compiling" = "yes" ; then
10284 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10285 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10287 $as_echo_n "checking for $ac_word... " >&6; }
10288 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 case $aros_kernel_ar in
10292 [\\/]* | ?:[\\/]*)
10293 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297 for as_dir in $PATH
10299 IFS=$as_save_IFS
10300 test -z "$as_dir" && as_dir=.
10301 for ac_exec_ext in '' $ac_executable_extensions; do
10302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10303 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10305 break 2
10307 done
10308 done
10309 IFS=$as_save_IFS
10312 esac
10314 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10315 if test -n "$aros_kernel_ar"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10317 $as_echo "$aros_kernel_ar" >&6; }
10318 else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10324 else
10325 if test "$GCC" = "yes"; then
10326 aros_gcc_ar=`$CC -print-prog-name=ar`
10327 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10328 set dummy `basename $aros_gcc_ar`; ac_word=$2
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330 $as_echo_n "checking for $ac_word... " >&6; }
10331 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 case $aros_kernel_ar in
10335 [\\/]* | ?:[\\/]*)
10336 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in `dirname $aros_gcc_ar`
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10350 done
10351 done
10352 IFS=$as_save_IFS
10355 esac
10357 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10358 if test -n "$aros_kernel_ar"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10360 $as_echo "$aros_kernel_ar" >&6; }
10361 else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10368 if test "$aros_kernel_ar" = ""; then
10369 # Extract the first word of "ar", so it can be a program name with args.
10370 set dummy ar; ac_word=$2
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10372 $as_echo_n "checking for $ac_word... " >&6; }
10373 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 case $aros_kernel_ar in
10377 [\\/]* | ?:[\\/]*)
10378 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10388 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10392 done
10393 done
10394 IFS=$as_save_IFS
10397 esac
10399 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10400 if test -n "$aros_kernel_ar"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10402 $as_echo "$aros_kernel_ar" >&6; }
10403 else
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10411 else
10412 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10413 set dummy $aros_kernel_ar; ac_word=$2
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 $as_echo_n "checking for $ac_word... " >&6; }
10416 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 case $aros_kernel_ar in
10420 [\\/]* | ?:[\\/]*)
10421 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10431 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 break 2
10435 done
10436 done
10437 IFS=$as_save_IFS
10440 esac
10442 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10443 if test -n "$aros_kernel_ar"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10445 $as_echo "$aros_kernel_ar" >&6; }
10446 else
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10454 req_avail=yes
10455 if test "$aros_kernel_ar" = ""; then
10456 req_avail=no
10458 if test "$aros_kernel_ar" = "no"; then
10459 req_avail=no
10461 if test "$req_avail" = "no"; then
10462 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10465 if test "$aros_kernel_ranlib" = ""; then
10466 if test "$cross_compiling" = "yes" ; then
10467 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10468 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 case $aros_kernel_ranlib in
10475 [\\/]* | ?:[\\/]*)
10476 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10486 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10490 done
10491 done
10492 IFS=$as_save_IFS
10495 esac
10497 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10498 if test -n "$aros_kernel_ranlib"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10500 $as_echo "$aros_kernel_ranlib" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10507 else
10508 if test "$GCC" = "yes"; then
10509 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10510 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10511 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513 $as_echo_n "checking for $ac_word... " >&6; }
10514 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10515 $as_echo_n "(cached) " >&6
10516 else
10517 case $aros_kernel_ranlib in
10518 [\\/]* | ?:[\\/]*)
10519 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in `dirname $aros_gcc_ranlib`
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10529 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10533 done
10534 done
10535 IFS=$as_save_IFS
10538 esac
10540 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10541 if test -n "$aros_kernel_ranlib"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10543 $as_echo "$aros_kernel_ranlib" >&6; }
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10551 if test "$aros_kernel_ranlib" = ""; then
10552 # Extract the first word of "ranlib", so it can be a program name with args.
10553 set dummy ranlib; ac_word=$2
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 $as_echo_n "checking for $ac_word... " >&6; }
10556 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 case $aros_kernel_ranlib in
10560 [\\/]* | ?:[\\/]*)
10561 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565 for as_dir in $PATH
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10571 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 break 2
10575 done
10576 done
10577 IFS=$as_save_IFS
10580 esac
10582 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10583 if test -n "$aros_kernel_ranlib"; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10585 $as_echo "$aros_kernel_ranlib" >&6; }
10586 else
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10594 else
10595 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10596 set dummy $aros_kernel_ranlib; ac_word=$2
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 $as_echo_n "checking for $ac_word... " >&6; }
10599 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 case $aros_kernel_ranlib in
10603 [\\/]* | ?:[\\/]*)
10604 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10610 IFS=$as_save_IFS
10611 test -z "$as_dir" && as_dir=.
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 break 2
10618 done
10619 done
10620 IFS=$as_save_IFS
10623 esac
10625 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10626 if test -n "$aros_kernel_ranlib"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10628 $as_echo "$aros_kernel_ranlib" >&6; }
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10637 req_avail=yes
10638 if test "$aros_kernel_ranlib" = ""; then
10639 req_avail=no
10641 if test "$aros_kernel_ranlib" = "no"; then
10642 req_avail=no
10644 if test "$req_avail" = "no"; then
10645 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10648 if test "$aros_kernel_nm" = ""; then
10649 if test "$cross_compiling" = "yes" ; then
10650 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10651 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653 $as_echo_n "checking for $ac_word... " >&6; }
10654 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 case $aros_kernel_nm in
10658 [\\/]* | ?:[\\/]*)
10659 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10673 done
10674 done
10675 IFS=$as_save_IFS
10678 esac
10680 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10681 if test -n "$aros_kernel_nm"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10683 $as_echo "$aros_kernel_nm" >&6; }
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10690 else
10691 if test "$GCC" = "yes"; then
10692 aros_gcc_nm=`$CC -print-prog-name=nm`
10693 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10694 set dummy `basename $aros_gcc_nm`; ac_word=$2
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696 $as_echo_n "checking for $ac_word... " >&6; }
10697 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 case $aros_kernel_nm in
10701 [\\/]* | ?:[\\/]*)
10702 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706 for as_dir in `dirname $aros_gcc_nm`
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
10710 for ac_exec_ext in '' $ac_executable_extensions; do
10711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10712 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10714 break 2
10716 done
10717 done
10718 IFS=$as_save_IFS
10721 esac
10723 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10724 if test -n "$aros_kernel_nm"; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10726 $as_echo "$aros_kernel_nm" >&6; }
10727 else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10734 if test "$aros_kernel_nm" = ""; then
10735 # Extract the first word of "nm", so it can be a program name with args.
10736 set dummy nm; ac_word=$2
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738 $as_echo_n "checking for $ac_word... " >&6; }
10739 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 case $aros_kernel_nm in
10743 [\\/]* | ?:[\\/]*)
10744 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748 for as_dir in $PATH
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10754 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 break 2
10758 done
10759 done
10760 IFS=$as_save_IFS
10763 esac
10765 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10766 if test -n "$aros_kernel_nm"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10768 $as_echo "$aros_kernel_nm" >&6; }
10769 else
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10777 else
10778 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10779 set dummy $aros_kernel_nm; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 case $aros_kernel_nm in
10786 [\\/]* | ?:[\\/]*)
10787 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799 break 2
10801 done
10802 done
10803 IFS=$as_save_IFS
10806 esac
10808 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10809 if test -n "$aros_kernel_nm"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10811 $as_echo "$aros_kernel_nm" >&6; }
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10820 req_avail=yes
10821 if test "$aros_kernel_nm" = ""; then
10822 req_avail=no
10824 if test "$aros_kernel_nm" = "no"; then
10825 req_avail=no
10827 if test "$req_avail" = "no"; then
10828 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10831 if test "$aros_kernel_strip" = ""; then
10832 if test "$cross_compiling" = "yes" ; then
10833 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10834 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 case $aros_kernel_strip in
10841 [\\/]* | ?:[\\/]*)
10842 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10852 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10856 done
10857 done
10858 IFS=$as_save_IFS
10861 esac
10863 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10864 if test -n "$aros_kernel_strip"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10866 $as_echo "$aros_kernel_strip" >&6; }
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10873 else
10874 if test "$GCC" = "yes"; then
10875 aros_gcc_strip=`$CC -print-prog-name=strip`
10876 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10877 set dummy `basename $aros_gcc_strip`; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 case $aros_kernel_strip in
10884 [\\/]* | ?:[\\/]*)
10885 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in `dirname $aros_gcc_strip`
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10899 done
10900 done
10901 IFS=$as_save_IFS
10904 esac
10906 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10907 if test -n "$aros_kernel_strip"; then
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10909 $as_echo "$aros_kernel_strip" >&6; }
10910 else
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912 $as_echo "no" >&6; }
10917 if test "$aros_kernel_strip" = ""; then
10918 # Extract the first word of "strip", so it can be a program name with args.
10919 set dummy strip; ac_word=$2
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10921 $as_echo_n "checking for $ac_word... " >&6; }
10922 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10923 $as_echo_n "(cached) " >&6
10924 else
10925 case $aros_kernel_strip in
10926 [\\/]* | ?:[\\/]*)
10927 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931 for as_dir in $PATH
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10937 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10941 done
10942 done
10943 IFS=$as_save_IFS
10946 esac
10948 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10949 if test -n "$aros_kernel_strip"; then
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10951 $as_echo "$aros_kernel_strip" >&6; }
10952 else
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10960 else
10961 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10962 set dummy $aros_kernel_strip; ac_word=$2
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964 $as_echo_n "checking for $ac_word... " >&6; }
10965 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 case $aros_kernel_strip in
10969 [\\/]* | ?:[\\/]*)
10970 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10980 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10984 done
10985 done
10986 IFS=$as_save_IFS
10989 esac
10991 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10992 if test -n "$aros_kernel_strip"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10994 $as_echo "$aros_kernel_strip" >&6; }
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
11003 req_avail=yes
11004 if test "$aros_kernel_strip" = ""; then
11005 req_avail=no
11007 if test "$aros_kernel_strip" = "no"; then
11008 req_avail=no
11010 if test "$req_avail" = "no"; then
11011 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11014 # Objcopy and objdump are not required for the kernel
11015 # toolchain on many architectures.
11016 # So we'll look for them, but not make them strictly required.
11018 if test "$aros_kernel_objcopy" = ""; then
11019 if test "$cross_compiling" = "yes" ; then
11020 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11021 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11023 $as_echo_n "checking for $ac_word... " >&6; }
11024 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 case $aros_kernel_objcopy in
11028 [\\/]* | ?:[\\/]*)
11029 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033 for as_dir in $PATH
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11043 done
11044 done
11045 IFS=$as_save_IFS
11048 esac
11050 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11051 if test -n "$aros_kernel_objcopy"; then
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11053 $as_echo "$aros_kernel_objcopy" >&6; }
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056 $as_echo "no" >&6; }
11060 else
11061 if test "$GCC" = "yes"; then
11062 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11063 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11064 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066 $as_echo_n "checking for $ac_word... " >&6; }
11067 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 case $aros_kernel_objcopy in
11071 [\\/]* | ?:[\\/]*)
11072 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in `dirname $aros_gcc_objcopy`
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11086 done
11087 done
11088 IFS=$as_save_IFS
11091 esac
11093 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11094 if test -n "$aros_kernel_objcopy"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11096 $as_echo "$aros_kernel_objcopy" >&6; }
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11104 if test "$aros_kernel_objcopy" = ""; then
11105 # Extract the first word of "objcopy", so it can be a program name with args.
11106 set dummy objcopy; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 case $aros_kernel_objcopy in
11113 [\\/]* | ?:[\\/]*)
11114 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11128 done
11129 done
11130 IFS=$as_save_IFS
11133 esac
11135 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11136 if test -n "$aros_kernel_objcopy"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11138 $as_echo "$aros_kernel_objcopy" >&6; }
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11147 else
11148 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11149 set dummy $aros_kernel_objcopy; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 case $aros_kernel_objcopy in
11156 [\\/]* | ?:[\\/]*)
11157 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161 for as_dir in $PATH
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11171 done
11172 done
11173 IFS=$as_save_IFS
11176 esac
11178 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11179 if test -n "$aros_kernel_objcopy"; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11181 $as_echo "$aros_kernel_objcopy" >&6; }
11182 else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11191 if test "$aros_kernel_objdump" = ""; then
11192 if test "$cross_compiling" = "yes" ; then
11193 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11194 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 case $aros_kernel_objdump in
11201 [\\/]* | ?:[\\/]*)
11202 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in $PATH
11208 IFS=$as_save_IFS
11209 test -z "$as_dir" && as_dir=.
11210 for ac_exec_ext in '' $ac_executable_extensions; do
11211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11212 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11214 break 2
11216 done
11217 done
11218 IFS=$as_save_IFS
11221 esac
11223 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11224 if test -n "$aros_kernel_objdump"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11226 $as_echo "$aros_kernel_objdump" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11233 else
11234 if test "$GCC" = "yes"; then
11235 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11236 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11237 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239 $as_echo_n "checking for $ac_word... " >&6; }
11240 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 case $aros_kernel_objdump in
11244 [\\/]* | ?:[\\/]*)
11245 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249 for as_dir in `dirname $aros_gcc_objdump`
11251 IFS=$as_save_IFS
11252 test -z "$as_dir" && as_dir=.
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11255 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11257 break 2
11259 done
11260 done
11261 IFS=$as_save_IFS
11264 esac
11266 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11267 if test -n "$aros_kernel_objdump"; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11269 $as_echo "$aros_kernel_objdump" >&6; }
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11277 if test "$aros_kernel_objdump" = ""; then
11278 # Extract the first word of "objdump", so it can be a program name with args.
11279 set dummy objdump; ac_word=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 case $aros_kernel_objdump in
11286 [\\/]* | ?:[\\/]*)
11287 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in $PATH
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11297 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11301 done
11302 done
11303 IFS=$as_save_IFS
11306 esac
11308 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11309 if test -n "$aros_kernel_objdump"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11311 $as_echo "$aros_kernel_objdump" >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11320 else
11321 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11322 set dummy $aros_kernel_objdump; ac_word=$2
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324 $as_echo_n "checking for $ac_word... " >&6; }
11325 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 case $aros_kernel_objdump in
11329 [\\/]* | ?:[\\/]*)
11330 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11336 IFS=$as_save_IFS
11337 test -z "$as_dir" && as_dir=.
11338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11340 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11342 break 2
11344 done
11345 done
11346 IFS=$as_save_IFS
11349 esac
11351 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11352 if test -n "$aros_kernel_objdump"; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11354 $as_echo "$aros_kernel_objdump" >&6; }
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11363 if test "x${crosstools}" != "xyes" ; then
11364 req_avail=yes
11365 if test "$aros_kernel_objcopy" = ""; then
11366 req_avail=no
11368 if test "$aros_kernel_objcopy" = "no"; then
11369 req_avail=no
11371 if test "$req_avail" = "no"; then
11372 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11374 req_avail=yes
11375 if test "$aros_kernel_objdump" = ""; then
11376 req_avail=no
11378 if test "$aros_kernel_objdump" = "no"; then
11379 req_avail=no
11381 if test "$req_avail" = "no"; then
11382 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11388 $as_echo_n "checking which target tools to use... " >&6; }
11389 if test "$aros_target_toolchain" = "yes"; then
11390 if test "$aros_toolchain" = "llvm" ; then
11391 msg_result="llvm"
11392 else
11393 msg_result=$target_tool_prefix
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11396 $as_echo "$msg_result" >&6; }
11397 # We are building AROS crosstools
11398 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11399 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11400 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11401 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11402 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11403 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11404 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11405 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11406 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11407 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11408 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11409 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11410 else
11411 # Determine whether AROS or ELF tools should be used
11412 if test "$aros_tool_prefix" = "none"; then
11413 aros_tool_prefix="${elf_tool_prefix}"
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11417 $as_echo "$aros_tool_prefix" >&6; }
11418 # We are *not* building AROS crosstools - use the AROS or ELF tools
11420 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11421 if test "$cross_compiling" = "yes" ; then
11422 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11423 set dummy ${target_tool_prefix}cpp; ac_word=$2
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 $as_echo_n "checking for $ac_word... " >&6; }
11426 if ${ac_cv_path_orig_target_cpp+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 case $orig_target_cpp in
11430 [\\/]* | ?:[\\/]*)
11431 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $PATH
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11441 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 break 2
11445 done
11446 done
11447 IFS=$as_save_IFS
11450 esac
11452 orig_target_cpp=$ac_cv_path_orig_target_cpp
11453 if test -n "$orig_target_cpp"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11455 $as_echo "$orig_target_cpp" >&6; }
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11462 else
11463 if test "$GCC" = "yes"; then
11464 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11465 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11466 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468 $as_echo_n "checking for $ac_word... " >&6; }
11469 if ${ac_cv_path_orig_target_cpp+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 case $orig_target_cpp in
11473 [\\/]* | ?:[\\/]*)
11474 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478 for as_dir in `dirname $aros_gcc_cpp`
11480 IFS=$as_save_IFS
11481 test -z "$as_dir" && as_dir=.
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11484 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 break 2
11488 done
11489 done
11490 IFS=$as_save_IFS
11493 esac
11495 orig_target_cpp=$ac_cv_path_orig_target_cpp
11496 if test -n "$orig_target_cpp"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11498 $as_echo "$orig_target_cpp" >&6; }
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11506 if test "$orig_target_cpp" = ""; then
11507 # Extract the first word of "cpp", so it can be a program name with args.
11508 set dummy cpp; ac_word=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if ${ac_cv_path_orig_target_cpp+:} false; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 case $orig_target_cpp in
11515 [\\/]* | ?:[\\/]*)
11516 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11522 IFS=$as_save_IFS
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11526 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528 break 2
11530 done
11531 done
11532 IFS=$as_save_IFS
11535 esac
11537 orig_target_cpp=$ac_cv_path_orig_target_cpp
11538 if test -n "$orig_target_cpp"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11540 $as_echo "$orig_target_cpp" >&6; }
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11549 else
11550 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11551 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if ${ac_cv_path_orig_target_cpp+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 case $orig_target_cpp in
11558 [\\/]* | ?:[\\/]*)
11559 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11569 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11573 done
11574 done
11575 IFS=$as_save_IFS
11578 esac
11580 orig_target_cpp=$ac_cv_path_orig_target_cpp
11581 if test -n "$orig_target_cpp"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11583 $as_echo "$orig_target_cpp" >&6; }
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11592 req_avail=yes
11593 if test "$orig_target_cpp" = ""; then
11594 req_avail=no
11596 if test "$orig_target_cpp" = "no"; then
11597 req_avail=no
11599 if test "$req_avail" = "no"; then
11600 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11603 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11604 if test "$cross_compiling" = "yes" ; then
11605 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11606 set dummy ${target_tool_prefix}gcc; ac_word=$2
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11608 $as_echo_n "checking for $ac_word... " >&6; }
11609 if ${ac_cv_path_orig_target_cc+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 case $orig_target_cc in
11613 [\\/]* | ?:[\\/]*)
11614 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11628 done
11629 done
11630 IFS=$as_save_IFS
11633 esac
11635 orig_target_cc=$ac_cv_path_orig_target_cc
11636 if test -n "$orig_target_cc"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11638 $as_echo "$orig_target_cc" >&6; }
11639 else
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11645 else
11646 if test "$GCC" = "yes"; then
11647 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11648 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11649 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651 $as_echo_n "checking for $ac_word... " >&6; }
11652 if ${ac_cv_path_orig_target_cc+:} false; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 case $orig_target_cc in
11656 [\\/]* | ?:[\\/]*)
11657 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in `dirname $aros_gcc_gcc`
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11671 done
11672 done
11673 IFS=$as_save_IFS
11676 esac
11678 orig_target_cc=$ac_cv_path_orig_target_cc
11679 if test -n "$orig_target_cc"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11681 $as_echo "$orig_target_cc" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11689 if test "$orig_target_cc" = ""; then
11690 # Extract the first word of "gcc", so it can be a program name with args.
11691 set dummy gcc; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_path_orig_target_cc+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 case $orig_target_cc in
11698 [\\/]* | ?:[\\/]*)
11699 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11709 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11713 done
11714 done
11715 IFS=$as_save_IFS
11718 esac
11720 orig_target_cc=$ac_cv_path_orig_target_cc
11721 if test -n "$orig_target_cc"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11723 $as_echo "$orig_target_cc" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11732 else
11733 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11734 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_path_orig_target_cc+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 case $orig_target_cc in
11741 [\\/]* | ?:[\\/]*)
11742 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 break 2
11756 done
11757 done
11758 IFS=$as_save_IFS
11761 esac
11763 orig_target_cc=$ac_cv_path_orig_target_cc
11764 if test -n "$orig_target_cc"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11766 $as_echo "$orig_target_cc" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11775 req_avail=yes
11776 if test "$orig_target_cc" = ""; then
11777 req_avail=no
11779 if test "$orig_target_cc" = "no"; then
11780 req_avail=no
11782 if test "$req_avail" = "no"; then
11783 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11786 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11787 if test "$cross_compiling" = "yes" ; then
11788 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11789 set dummy ${target_tool_prefix}g++; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791 $as_echo_n "checking for $ac_word... " >&6; }
11792 if ${ac_cv_path_orig_target_cxx+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 case $orig_target_cxx in
11796 [\\/]* | ?:[\\/]*)
11797 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11811 done
11812 done
11813 IFS=$as_save_IFS
11816 esac
11818 orig_target_cxx=$ac_cv_path_orig_target_cxx
11819 if test -n "$orig_target_cxx"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11821 $as_echo "$orig_target_cxx" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11828 else
11829 if test "$GCC" = "yes"; then
11830 aros_gcc_g++=`$CC -print-prog-name=g++`
11831 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11832 set dummy `basename $aros_gcc_g++`; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if ${ac_cv_path_orig_target_cxx+:} false; then :
11836 $as_echo_n "(cached) " >&6
11837 else
11838 case $orig_target_cxx in
11839 [\\/]* | ?:[\\/]*)
11840 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in `dirname $aros_gcc_g++`
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11854 done
11855 done
11856 IFS=$as_save_IFS
11859 esac
11861 orig_target_cxx=$ac_cv_path_orig_target_cxx
11862 if test -n "$orig_target_cxx"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11864 $as_echo "$orig_target_cxx" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11872 if test "$orig_target_cxx" = ""; then
11873 # Extract the first word of "g++", so it can be a program name with args.
11874 set dummy g++; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_path_orig_target_cxx+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 case $orig_target_cxx in
11881 [\\/]* | ?:[\\/]*)
11882 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 break 2
11896 done
11897 done
11898 IFS=$as_save_IFS
11901 esac
11903 orig_target_cxx=$ac_cv_path_orig_target_cxx
11904 if test -n "$orig_target_cxx"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11906 $as_echo "$orig_target_cxx" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11915 else
11916 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11917 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if ${ac_cv_path_orig_target_cxx+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 case $orig_target_cxx in
11924 [\\/]* | ?:[\\/]*)
11925 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in $PATH
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
11933 for ac_exec_ext in '' $ac_executable_extensions; do
11934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11935 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11937 break 2
11939 done
11940 done
11941 IFS=$as_save_IFS
11944 esac
11946 orig_target_cxx=$ac_cv_path_orig_target_cxx
11947 if test -n "$orig_target_cxx"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11949 $as_echo "$orig_target_cxx" >&6; }
11950 else
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11958 req_avail=yes
11959 if test "$orig_target_cxx" = ""; then
11960 req_avail=no
11962 if test "$orig_target_cxx" = "no"; then
11963 req_avail=no
11965 if test "$req_avail" = "no"; then
11966 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11969 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
11970 if test "$cross_compiling" = "yes" ; then
11971 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11972 set dummy ${target_tool_prefix}gcc; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if ${ac_cv_path_orig_target_ld+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 case $orig_target_ld in
11979 [\\/]* | ?:[\\/]*)
11980 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984 for as_dir in $PATH
11986 IFS=$as_save_IFS
11987 test -z "$as_dir" && as_dir=.
11988 for ac_exec_ext in '' $ac_executable_extensions; do
11989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11990 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11992 break 2
11994 done
11995 done
11996 IFS=$as_save_IFS
11999 esac
12001 orig_target_ld=$ac_cv_path_orig_target_ld
12002 if test -n "$orig_target_ld"; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12004 $as_echo "$orig_target_ld" >&6; }
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12011 else
12012 if test "$GCC" = "yes"; then
12013 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12014 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12015 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if ${ac_cv_path_orig_target_ld+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 case $orig_target_ld in
12022 [\\/]* | ?:[\\/]*)
12023 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in `dirname $aros_gcc_gcc`
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12033 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 break 2
12037 done
12038 done
12039 IFS=$as_save_IFS
12042 esac
12044 orig_target_ld=$ac_cv_path_orig_target_ld
12045 if test -n "$orig_target_ld"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12047 $as_echo "$orig_target_ld" >&6; }
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12055 if test "$orig_target_ld" = ""; then
12056 # Extract the first word of "gcc", so it can be a program name with args.
12057 set dummy gcc; ac_word=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059 $as_echo_n "checking for $ac_word... " >&6; }
12060 if ${ac_cv_path_orig_target_ld+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 case $orig_target_ld in
12064 [\\/]* | ?:[\\/]*)
12065 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12079 done
12080 done
12081 IFS=$as_save_IFS
12084 esac
12086 orig_target_ld=$ac_cv_path_orig_target_ld
12087 if test -n "$orig_target_ld"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12089 $as_echo "$orig_target_ld" >&6; }
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12098 else
12099 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12100 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 $as_echo_n "checking for $ac_word... " >&6; }
12103 if ${ac_cv_path_orig_target_ld+:} false; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106 case $orig_target_ld in
12107 [\\/]* | ?:[\\/]*)
12108 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112 for as_dir in $PATH
12114 IFS=$as_save_IFS
12115 test -z "$as_dir" && as_dir=.
12116 for ac_exec_ext in '' $ac_executable_extensions; do
12117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12118 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12120 break 2
12122 done
12123 done
12124 IFS=$as_save_IFS
12127 esac
12129 orig_target_ld=$ac_cv_path_orig_target_ld
12130 if test -n "$orig_target_ld"; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12132 $as_echo "$orig_target_ld" >&6; }
12133 else
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12141 req_avail=yes
12142 if test "$orig_target_ld" = ""; then
12143 req_avail=no
12145 if test "$orig_target_ld" = "no"; then
12146 req_avail=no
12148 if test "$req_avail" = "no"; then
12149 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12152 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12153 if test "$cross_compiling" = "yes" ; then
12154 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12155 set dummy ${target_tool_prefix}as; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if ${ac_cv_path_orig_target_as+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 case $orig_target_as in
12162 [\\/]* | ?:[\\/]*)
12163 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167 for as_dir in $PATH
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12173 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12177 done
12178 done
12179 IFS=$as_save_IFS
12182 esac
12184 orig_target_as=$ac_cv_path_orig_target_as
12185 if test -n "$orig_target_as"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12187 $as_echo "$orig_target_as" >&6; }
12188 else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12194 else
12195 if test "$GCC" = "yes"; then
12196 aros_gcc_as=`$CC -print-prog-name=as`
12197 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12198 set dummy `basename $aros_gcc_as`; ac_word=$2
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200 $as_echo_n "checking for $ac_word... " >&6; }
12201 if ${ac_cv_path_orig_target_as+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 case $orig_target_as in
12205 [\\/]* | ?:[\\/]*)
12206 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in `dirname $aros_gcc_as`
12212 IFS=$as_save_IFS
12213 test -z "$as_dir" && as_dir=.
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 break 2
12220 done
12221 done
12222 IFS=$as_save_IFS
12225 esac
12227 orig_target_as=$ac_cv_path_orig_target_as
12228 if test -n "$orig_target_as"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12230 $as_echo "$orig_target_as" >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12238 if test "$orig_target_as" = ""; then
12239 # Extract the first word of "as", so it can be a program name with args.
12240 set dummy as; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if ${ac_cv_path_orig_target_as+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 case $orig_target_as in
12247 [\\/]* | ?:[\\/]*)
12248 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 break 2
12262 done
12263 done
12264 IFS=$as_save_IFS
12267 esac
12269 orig_target_as=$ac_cv_path_orig_target_as
12270 if test -n "$orig_target_as"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12272 $as_echo "$orig_target_as" >&6; }
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12281 else
12282 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12283 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if ${ac_cv_path_orig_target_as+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 case $orig_target_as in
12290 [\\/]* | ?:[\\/]*)
12291 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303 break 2
12305 done
12306 done
12307 IFS=$as_save_IFS
12310 esac
12312 orig_target_as=$ac_cv_path_orig_target_as
12313 if test -n "$orig_target_as"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12315 $as_echo "$orig_target_as" >&6; }
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12324 req_avail=yes
12325 if test "$orig_target_as" = ""; then
12326 req_avail=no
12328 if test "$orig_target_as" = "no"; then
12329 req_avail=no
12331 if test "$req_avail" = "no"; then
12332 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12335 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12336 if test "$cross_compiling" = "yes" ; then
12337 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12338 set dummy ${target_tool_prefix}ar; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if ${ac_cv_path_orig_target_ar+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 case $orig_target_ar in
12345 [\\/]* | ?:[\\/]*)
12346 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12356 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 break 2
12360 done
12361 done
12362 IFS=$as_save_IFS
12365 esac
12367 orig_target_ar=$ac_cv_path_orig_target_ar
12368 if test -n "$orig_target_ar"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12370 $as_echo "$orig_target_ar" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12377 else
12378 if test "$GCC" = "yes"; then
12379 aros_gcc_ar=`$CC -print-prog-name=ar`
12380 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12381 set dummy `basename $aros_gcc_ar`; ac_word=$2
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if ${ac_cv_path_orig_target_ar+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 case $orig_target_ar in
12388 [\\/]* | ?:[\\/]*)
12389 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in `dirname $aros_gcc_ar`
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401 break 2
12403 done
12404 done
12405 IFS=$as_save_IFS
12408 esac
12410 orig_target_ar=$ac_cv_path_orig_target_ar
12411 if test -n "$orig_target_ar"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12413 $as_echo "$orig_target_ar" >&6; }
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12421 if test "$orig_target_ar" = ""; then
12422 # Extract the first word of "ar", so it can be a program name with args.
12423 set dummy ar; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425 $as_echo_n "checking for $ac_word... " >&6; }
12426 if ${ac_cv_path_orig_target_ar+:} false; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 case $orig_target_ar in
12430 [\\/]* | ?:[\\/]*)
12431 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12445 done
12446 done
12447 IFS=$as_save_IFS
12450 esac
12452 orig_target_ar=$ac_cv_path_orig_target_ar
12453 if test -n "$orig_target_ar"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12455 $as_echo "$orig_target_ar" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12464 else
12465 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12466 set dummy ${aros_tool_prefix}${toolchain_ar}; 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_ar+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 case $orig_target_ar in
12473 [\\/]* | ?:[\\/]*)
12474 ac_cv_path_orig_target_ar="$orig_target_ar" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12484 ac_cv_path_orig_target_ar="$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_ar=$ac_cv_path_orig_target_ar
12496 if test -n "$orig_target_ar"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12498 $as_echo "$orig_target_ar" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12507 req_avail=yes
12508 if test "$orig_target_ar" = ""; then
12509 req_avail=no
12511 if test "$orig_target_ar" = "no"; then
12512 req_avail=no
12514 if test "$req_avail" = "no"; then
12515 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12518 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12519 if test "$cross_compiling" = "yes" ; then
12520 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12521 set dummy ${target_tool_prefix}ar; ac_word=$2
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523 $as_echo_n "checking for $ac_word... " >&6; }
12524 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 case $orig_target_ranlib in
12528 [\\/]* | ?:[\\/]*)
12529 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533 for as_dir in $PATH
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12539 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12541 break 2
12543 done
12544 done
12545 IFS=$as_save_IFS
12548 esac
12550 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12551 if test -n "$orig_target_ranlib"; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12553 $as_echo "$orig_target_ranlib" >&6; }
12554 else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12560 else
12561 if test "$GCC" = "yes"; then
12562 aros_gcc_ar=`$CC -print-prog-name=ar`
12563 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12564 set dummy `basename $aros_gcc_ar`; ac_word=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 case $orig_target_ranlib in
12571 [\\/]* | ?:[\\/]*)
12572 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576 for as_dir in `dirname $aros_gcc_ar`
12578 IFS=$as_save_IFS
12579 test -z "$as_dir" && as_dir=.
12580 for ac_exec_ext in '' $ac_executable_extensions; do
12581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12582 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584 break 2
12586 done
12587 done
12588 IFS=$as_save_IFS
12591 esac
12593 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12594 if test -n "$orig_target_ranlib"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12596 $as_echo "$orig_target_ranlib" >&6; }
12597 else
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599 $as_echo "no" >&6; }
12604 if test "$orig_target_ranlib" = ""; then
12605 # Extract the first word of "ar", so it can be a program name with args.
12606 set dummy ar; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 case $orig_target_ranlib in
12613 [\\/]* | ?:[\\/]*)
12614 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12618 for as_dir in $PATH
12620 IFS=$as_save_IFS
12621 test -z "$as_dir" && as_dir=.
12622 for ac_exec_ext in '' $ac_executable_extensions; do
12623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12624 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12626 break 2
12628 done
12629 done
12630 IFS=$as_save_IFS
12633 esac
12635 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12636 if test -n "$orig_target_ranlib"; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12638 $as_echo "$orig_target_ranlib" >&6; }
12639 else
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641 $as_echo "no" >&6; }
12647 else
12648 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12649 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651 $as_echo_n "checking for $ac_word... " >&6; }
12652 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 case $orig_target_ranlib in
12656 [\\/]* | ?:[\\/]*)
12657 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661 for as_dir in $PATH
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
12666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12667 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669 break 2
12671 done
12672 done
12673 IFS=$as_save_IFS
12676 esac
12678 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12679 if test -n "$orig_target_ranlib"; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12681 $as_echo "$orig_target_ranlib" >&6; }
12682 else
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; }
12690 req_avail=yes
12691 if test "$orig_target_ranlib" = ""; then
12692 req_avail=no
12694 if test "$orig_target_ranlib" = "no"; then
12695 req_avail=no
12697 if test "$req_avail" = "no"; then
12698 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12701 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12702 if test "$cross_compiling" = "yes" ; then
12703 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12704 set dummy ${target_tool_prefix}nm; ac_word=$2
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706 $as_echo_n "checking for $ac_word... " >&6; }
12707 if ${ac_cv_path_orig_target_nm+:} false; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 case $orig_target_nm in
12711 [\\/]* | ?:[\\/]*)
12712 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716 for as_dir in $PATH
12718 IFS=$as_save_IFS
12719 test -z "$as_dir" && as_dir=.
12720 for ac_exec_ext in '' $ac_executable_extensions; do
12721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12722 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12724 break 2
12726 done
12727 done
12728 IFS=$as_save_IFS
12731 esac
12733 orig_target_nm=$ac_cv_path_orig_target_nm
12734 if test -n "$orig_target_nm"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12736 $as_echo "$orig_target_nm" >&6; }
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12743 else
12744 if test "$GCC" = "yes"; then
12745 aros_gcc_nm=`$CC -print-prog-name=nm`
12746 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12747 set dummy `basename $aros_gcc_nm`; ac_word=$2
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12749 $as_echo_n "checking for $ac_word... " >&6; }
12750 if ${ac_cv_path_orig_target_nm+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 case $orig_target_nm in
12754 [\\/]* | ?:[\\/]*)
12755 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in `dirname $aros_gcc_nm`
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767 break 2
12769 done
12770 done
12771 IFS=$as_save_IFS
12774 esac
12776 orig_target_nm=$ac_cv_path_orig_target_nm
12777 if test -n "$orig_target_nm"; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12779 $as_echo "$orig_target_nm" >&6; }
12780 else
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12787 if test "$orig_target_nm" = ""; then
12788 # Extract the first word of "nm", so it can be a program name with args.
12789 set dummy nm; ac_word=$2
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791 $as_echo_n "checking for $ac_word... " >&6; }
12792 if ${ac_cv_path_orig_target_nm+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 case $orig_target_nm in
12796 [\\/]* | ?:[\\/]*)
12797 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 for as_dir in $PATH
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for ac_exec_ext in '' $ac_executable_extensions; do
12806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12807 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 break 2
12811 done
12812 done
12813 IFS=$as_save_IFS
12816 esac
12818 orig_target_nm=$ac_cv_path_orig_target_nm
12819 if test -n "$orig_target_nm"; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12821 $as_echo "$orig_target_nm" >&6; }
12822 else
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12830 else
12831 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12832 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if ${ac_cv_path_orig_target_nm+:} false; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 case $orig_target_nm in
12839 [\\/]* | ?:[\\/]*)
12840 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12846 IFS=$as_save_IFS
12847 test -z "$as_dir" && as_dir=.
12848 for ac_exec_ext in '' $ac_executable_extensions; do
12849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12850 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852 break 2
12854 done
12855 done
12856 IFS=$as_save_IFS
12859 esac
12861 orig_target_nm=$ac_cv_path_orig_target_nm
12862 if test -n "$orig_target_nm"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12864 $as_echo "$orig_target_nm" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12873 req_avail=yes
12874 if test "$orig_target_nm" = ""; then
12875 req_avail=no
12877 if test "$orig_target_nm" = "no"; then
12878 req_avail=no
12880 if test "$req_avail" = "no"; then
12881 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12884 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12885 if test "$cross_compiling" = "yes" ; then
12886 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12887 set dummy ${target_tool_prefix}strip; ac_word=$2
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889 $as_echo_n "checking for $ac_word... " >&6; }
12890 if ${ac_cv_path_orig_target_strip+:} false; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 case $orig_target_strip in
12894 [\\/]* | ?:[\\/]*)
12895 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12905 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12909 done
12910 done
12911 IFS=$as_save_IFS
12914 esac
12916 orig_target_strip=$ac_cv_path_orig_target_strip
12917 if test -n "$orig_target_strip"; then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12919 $as_echo "$orig_target_strip" >&6; }
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12926 else
12927 if test "$GCC" = "yes"; then
12928 aros_gcc_strip=`$CC -print-prog-name=strip`
12929 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12930 set dummy `basename $aros_gcc_strip`; ac_word=$2
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if ${ac_cv_path_orig_target_strip+:} false; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 case $orig_target_strip in
12937 [\\/]* | ?:[\\/]*)
12938 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942 for as_dir in `dirname $aros_gcc_strip`
12944 IFS=$as_save_IFS
12945 test -z "$as_dir" && as_dir=.
12946 for ac_exec_ext in '' $ac_executable_extensions; do
12947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12948 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 break 2
12952 done
12953 done
12954 IFS=$as_save_IFS
12957 esac
12959 orig_target_strip=$ac_cv_path_orig_target_strip
12960 if test -n "$orig_target_strip"; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12962 $as_echo "$orig_target_strip" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12970 if test "$orig_target_strip" = ""; then
12971 # Extract the first word of "strip", so it can be a program name with args.
12972 set dummy strip; ac_word=$2
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12974 $as_echo_n "checking for $ac_word... " >&6; }
12975 if ${ac_cv_path_orig_target_strip+:} false; then :
12976 $as_echo_n "(cached) " >&6
12977 else
12978 case $orig_target_strip in
12979 [\\/]* | ?:[\\/]*)
12980 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12984 for as_dir in $PATH
12986 IFS=$as_save_IFS
12987 test -z "$as_dir" && as_dir=.
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12990 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12992 break 2
12994 done
12995 done
12996 IFS=$as_save_IFS
12999 esac
13001 orig_target_strip=$ac_cv_path_orig_target_strip
13002 if test -n "$orig_target_strip"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13004 $as_echo "$orig_target_strip" >&6; }
13005 else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007 $as_echo "no" >&6; }
13013 else
13014 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13015 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017 $as_echo_n "checking for $ac_word... " >&6; }
13018 if ${ac_cv_path_orig_target_strip+:} false; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 case $orig_target_strip in
13022 [\\/]* | ?:[\\/]*)
13023 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13029 IFS=$as_save_IFS
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13033 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13035 break 2
13037 done
13038 done
13039 IFS=$as_save_IFS
13042 esac
13044 orig_target_strip=$ac_cv_path_orig_target_strip
13045 if test -n "$orig_target_strip"; then
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13047 $as_echo "$orig_target_strip" >&6; }
13048 else
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050 $as_echo "no" >&6; }
13056 req_avail=yes
13057 if test "$orig_target_strip" = ""; then
13058 req_avail=no
13060 if test "$orig_target_strip" = "no"; then
13061 req_avail=no
13063 if test "$req_avail" = "no"; then
13064 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13067 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13068 if test "$cross_compiling" = "yes" ; then
13069 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13070 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13072 $as_echo_n "checking for $ac_word... " >&6; }
13073 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 case $orig_target_objcopy in
13077 [\\/]* | ?:[\\/]*)
13078 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082 for as_dir in $PATH
13084 IFS=$as_save_IFS
13085 test -z "$as_dir" && as_dir=.
13086 for ac_exec_ext in '' $ac_executable_extensions; do
13087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13088 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13090 break 2
13092 done
13093 done
13094 IFS=$as_save_IFS
13097 esac
13099 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13100 if test -n "$orig_target_objcopy"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13102 $as_echo "$orig_target_objcopy" >&6; }
13103 else
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13109 else
13110 if test "$GCC" = "yes"; then
13111 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13112 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13113 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115 $as_echo_n "checking for $ac_word... " >&6; }
13116 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 case $orig_target_objcopy in
13120 [\\/]* | ?:[\\/]*)
13121 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in `dirname $aros_gcc_objcopy`
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13131 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13135 done
13136 done
13137 IFS=$as_save_IFS
13140 esac
13142 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13143 if test -n "$orig_target_objcopy"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13145 $as_echo "$orig_target_objcopy" >&6; }
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13153 if test "$orig_target_objcopy" = ""; then
13154 # Extract the first word of "objcopy", so it can be a program name with args.
13155 set dummy objcopy; ac_word=$2
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157 $as_echo_n "checking for $ac_word... " >&6; }
13158 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 case $orig_target_objcopy in
13162 [\\/]* | ?:[\\/]*)
13163 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13177 done
13178 done
13179 IFS=$as_save_IFS
13182 esac
13184 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13185 if test -n "$orig_target_objcopy"; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13187 $as_echo "$orig_target_objcopy" >&6; }
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13196 else
13197 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13198 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200 $as_echo_n "checking for $ac_word... " >&6; }
13201 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 case $orig_target_objcopy in
13205 [\\/]* | ?:[\\/]*)
13206 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13212 IFS=$as_save_IFS
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13216 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13218 break 2
13220 done
13221 done
13222 IFS=$as_save_IFS
13225 esac
13227 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13228 if test -n "$orig_target_objcopy"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13230 $as_echo "$orig_target_objcopy" >&6; }
13231 else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13239 req_avail=yes
13240 if test "$orig_target_objcopy" = ""; then
13241 req_avail=no
13243 if test "$orig_target_objcopy" = "no"; then
13244 req_avail=no
13246 if test "$req_avail" = "no"; then
13247 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13250 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13251 if test "$cross_compiling" = "yes" ; then
13252 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13253 set dummy ${target_tool_prefix}objdump; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if ${ac_cv_path_orig_target_objdump+:} false; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 case $orig_target_objdump in
13260 [\\/]* | ?:[\\/]*)
13261 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265 for as_dir in $PATH
13267 IFS=$as_save_IFS
13268 test -z "$as_dir" && as_dir=.
13269 for ac_exec_ext in '' $ac_executable_extensions; do
13270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13271 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13273 break 2
13275 done
13276 done
13277 IFS=$as_save_IFS
13280 esac
13282 orig_target_objdump=$ac_cv_path_orig_target_objdump
13283 if test -n "$orig_target_objdump"; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13285 $as_echo "$orig_target_objdump" >&6; }
13286 else
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288 $as_echo "no" >&6; }
13292 else
13293 if test "$GCC" = "yes"; then
13294 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13295 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13296 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298 $as_echo_n "checking for $ac_word... " >&6; }
13299 if ${ac_cv_path_orig_target_objdump+:} false; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 case $orig_target_objdump in
13303 [\\/]* | ?:[\\/]*)
13304 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in `dirname $aros_gcc_objdump`
13310 IFS=$as_save_IFS
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13314 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 break 2
13318 done
13319 done
13320 IFS=$as_save_IFS
13323 esac
13325 orig_target_objdump=$ac_cv_path_orig_target_objdump
13326 if test -n "$orig_target_objdump"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13328 $as_echo "$orig_target_objdump" >&6; }
13329 else
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13336 if test "$orig_target_objdump" = ""; then
13337 # Extract the first word of "objdump", so it can be a program name with args.
13338 set dummy objdump; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if ${ac_cv_path_orig_target_objdump+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 case $orig_target_objdump in
13345 [\\/]* | ?:[\\/]*)
13346 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350 for as_dir in $PATH
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13360 done
13361 done
13362 IFS=$as_save_IFS
13365 esac
13367 orig_target_objdump=$ac_cv_path_orig_target_objdump
13368 if test -n "$orig_target_objdump"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13370 $as_echo "$orig_target_objdump" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13379 else
13380 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13381 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if ${ac_cv_path_orig_target_objdump+:} false; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 case $orig_target_objdump in
13388 [\\/]* | ?:[\\/]*)
13389 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393 for as_dir in $PATH
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
13397 for ac_exec_ext in '' $ac_executable_extensions; do
13398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13399 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 break 2
13403 done
13404 done
13405 IFS=$as_save_IFS
13408 esac
13410 orig_target_objdump=$ac_cv_path_orig_target_objdump
13411 if test -n "$orig_target_objdump"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13413 $as_echo "$orig_target_objdump" >&6; }
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13422 req_avail=yes
13423 if test "$orig_target_objdump" = ""; then
13424 req_avail=no
13426 if test "$orig_target_objdump" = "no"; then
13427 req_avail=no
13429 if test "$req_avail" = "no"; then
13430 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13434 if test "$kernel_tool_prefix" = "none" ; then
13435 # No kernel tools specified
13436 # Assume target tools == kernel tools with ELF wrapper
13437 aros_kernel_cc=$orig_target_cc
13438 aros_kernel_cxx=$orig_target_cxx
13439 aros_kernel_cpp=$orig_target_cpp
13440 aros_kernel_ld=$orig_target_ld
13441 aros_kernel_as=$orig_target_as
13442 aros_kernel_ar=$orig_target_ar
13443 aros_kernel_ranlib=$orig_target_ranlib
13444 aros_kernel_nm=$orig_target_nm
13445 aros_kernel_strip=$orig_target_strip
13446 aros_kernel_objcopy=$orig_target_objcopy
13447 aros_kernel_objdump=$orig_target_objdump
13448 use_kernel_cc_wrapper=yes
13451 # At this point, all aros_kernel_* and aros_target_*
13452 # tools should be set up correctly
13454 CC="$aros_kernel_cc $kernel_tool_flags"
13455 CPP="$aros_kernel_cpp"
13457 #-----------------------------------------------------------------------------
13459 # Find all the tools we need to compile. This could be cross-compiling
13460 # though! If that is the case we use the GNU form of the target and
13461 # simply add this to the front of the binary name. This is rather simple,
13462 # but it should work under most circumstances.
13464 # The default tools are to use the same as the host, but only if the
13465 # host and target CPU are the same. With GCC this is normally enough.
13468 aros_cc_pre=""
13469 aros_shared_ld="$aros_host_ld"
13471 aros_target_mkdep="$aros_host_mkdep"
13473 # The default tools executables to be linked to.
13474 if test "$rescomp" != ""; then
13475 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13476 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 case $aros_kernel_rescomp in
13483 [\\/]* | ?:[\\/]*)
13484 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488 for as_dir in $PATH
13490 IFS=$as_save_IFS
13491 test -z "$as_dir" && as_dir=.
13492 for ac_exec_ext in '' $ac_executable_extensions; do
13493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13494 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13496 break 2
13498 done
13499 done
13500 IFS=$as_save_IFS
13503 esac
13505 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13506 if test -n "$aros_kernel_rescomp"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13508 $as_echo "$aros_kernel_rescomp" >&6; }
13509 else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13515 req_avail=yes
13516 if test "$aros_kernel_rescomp" = ""; then
13517 req_avail=no
13519 if test "$aros_kernel_rescomp" = "no"; then
13520 req_avail=no
13522 if test "$req_avail" = "no"; then
13523 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13527 # Set up the sources for the symlink farm
13528 if test "$crosstools" = "yes"; then
13529 crosstools_target=tools-crosstools
13532 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13533 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13535 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13536 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13537 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13538 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13539 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13540 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13541 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13543 # aros_cc_pre is a variable that is added to the front of the compiler name
13544 # in the generated aros-gcc shell script. We need this to enable the cache
13545 # to work across cleaned builds. Also, support DISTCC using the correct
13546 # environment variable.
13549 if test "x${DISTCC}" != "x" ; then
13550 if test "x${CCACHE}" != "x" ; then
13551 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13552 else
13553 aros_cc_pre="${DISTCC} "
13555 else
13556 if test "x${CCACHE}" != "x" ; then
13557 aros_cc_pre="${CCACHE} "
13561 aros_target_nostdinc_cflags=-nostdinc
13563 aros_target_nostartup_ldflags=-nostartfiles
13565 aros_target_nix_ldflags=-nix
13567 aros_target_detach_ldflags=-detach
13569 aros_target_nostdlib_ldflags=-nostdlib
13572 # Target tools
13574 if test "$aros_target_toolchain" != "yes"; then
13575 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13576 if test "$GCC" = "yes"; then
13577 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13579 else
13580 # We do not know which c compiler version we are going to build and what we need to know
13581 # here is different for different versions so this will be set later during the
13582 # build of crosstools.
13583 if test "$aros_toolchain" = "gnu" ; then
13584 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13585 elif test "$aros_toolchain" = "llvm" ; then
13586 prefix="$AROS_CROSSTOOLSDIR/bin/"
13588 aros_target_cc_path=@aros_target_cc_path@
13590 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13591 aros_target_cc="${prefix}${toolchain_c_compiler}"
13592 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13593 aros_target_as="${prefix}${toolchain_as}"
13594 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_ld}"
13595 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13596 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13597 aros_target_objdump="${prefix}${toolchain_objdump}"
13598 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13599 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13600 aros_target_strip="${prefix}${toolchain_strip}"
13601 aros_plain_nm="${prefix}${toolchain_nm}"
13602 aros_plain_ar="${prefix}${toolchain_ar}"
13604 # Check whether --enable-includes was given.
13605 if test "${enable_includes+set}" = set; then :
13606 enableval=$enable_includes; aros_target_incl=$enable_includes
13607 else
13608 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13612 if test "$aros_kernel_includes" = ""; then
13613 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13614 aros_kernel_includes="-isystem $aros_target_incl"
13618 if test "$aros_kernel_includes" != "" ; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13620 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13621 if test "$aros_kernel_cc_includes" = "" ; then
13622 # Try to guess where the directory is.
13623 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13624 if test -d $aros_kernel_cc_includes; then
13625 # Check if there is also an include-fixed directory and add it
13626 # to kernel compiler's include path as it may contain some of
13627 # the headers we need.
13628 if test -d "$aros_kernel_cc_includes"-fixed; then
13629 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13631 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13632 case ${host_cpu} in
13633 i[3456]86)
13634 host_cpu_glibc=i386
13637 host_cpu_glibc=${host_cpu}
13639 esac
13640 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13641 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13643 else
13644 # The directory doesn't exist, we need to do some more work.
13645 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13647 # These are the headers we're looking for.
13648 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13649 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13650 zutil.h stdint.h"
13652 dirs=
13653 for h in $headers; do
13654 # Which other headers are needed by each of the above?
13655 deps=$(echo "#include <$h>" | \
13656 $aros_kernel_cc -E -M - 2>/dev/null | \
13657 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13659 # Copy all the needed headers to a directory beneath gendir.
13660 for d in $deps; do
13661 h=$(basename $d)
13662 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13663 sed -n "s,^.*/include\(/.*\),\1,p")
13664 ! test -d $dir && mkdir -p $dir
13665 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13666 done
13667 done
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13671 $as_echo "$aros_kernel_cc_includes" >&6; }
13672 # Adding -nostdinc to kernel includes as they are always used together.
13673 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13676 if test "$crosstools" != "yes"; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13678 $as_echo_n "checking for the target compiler's include path... " >&6; }
13679 if test "$aros_target_cc_includes" = "" ; then
13680 #try to guess where the directory is
13681 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13682 if ! test -d $aros_target_cc_includes; then
13683 #the directory doesn't exist, we need to do some more work
13684 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13686 #these are the headers we're looking for
13687 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13688 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13689 zutil.h"
13691 dirs=
13692 for h in $headers; do
13693 #which other headers each of the above headers needs?
13694 deps=$(echo "#include <$h>" | \
13695 $orig_target_cc -E -M - 2>/dev/null | \
13696 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13698 #copy all the needed headers to a directory beneath gendir
13699 for d in $deps; do
13700 h=$(basename $d)
13701 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13702 sed -n "s,^.*/include\(/.*\),\1,p")
13703 ! test -d $dir && mkdir -p $dir
13704 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13705 done
13706 done
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13710 $as_echo "$aros_target_cc_includes" >&6; }
13711 else
13712 # We do not know which c compiler version we are going to build and what we need to know
13713 # here is different for different versions so this will be set later during the
13714 # build of crosstools.
13715 aros_target_cc_includes=@aros_target_cc_includes@
13719 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13720 # On GCC >= 4.0 -iquote should be used
13723 save_cc="$CC"
13724 save_cflags="$CFLAGS"
13725 CFLAGS="-iquote."
13726 kernel_cflags_iquote=$host_cflags_iquote
13727 kernel_cflags_iquote_end=$host_cflags_iquote_end
13728 if test "x-$cross_compiling" = "x-yes"; then
13729 CC="$aros_kernel_cc"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13731 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13732 if test "x-$crosstools" != "x-yes"; then
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13737 main ()
13741 return 0;
13743 _ACEOF
13744 if ac_fn_c_try_compile "$LINENO"; then :
13745 use_no_stack_protector="yes"
13746 else
13747 use_no_stack_protector="no"
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 else
13751 # we do know it is supported for the smallest version of gcc we are going to build
13752 # we assume it's also supported by later versions
13753 use_no_stack_protector=yes
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13756 $as_echo "$use_no_stack_protector" >&6; }
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13758 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13759 if test "x-$crosstools" != "x-yes"; then
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13764 main ()
13768 return 0;
13770 _ACEOF
13771 if ac_fn_c_try_compile "$LINENO"; then :
13772 has_iquote="yes"
13773 else
13774 has_iquote="no"
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 else
13778 # we do know it is supported for the smallest version of gcc we are going to build
13779 # we assume it's also supported by later versions
13780 has_iquote=yes
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13783 $as_echo "$has_iquote" >&6; }
13784 if test "x-$has_iquote" = "x-yes" ; then
13785 kernel_cflags_iquote=-iquote
13786 kernel_cflags_iquote_end=
13787 else
13788 kernel_cflags_iquote=-I
13789 kernel_cflags_iquote_end=-I-
13792 if test "x-$use_no_stack_protector" = "x-yes" ; then
13793 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13796 #-----------------------------------------------------------------------------
13798 # Check if we can explicitly choose older version of symbol hashing
13800 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13801 CC="$aros_kernel_cc"
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13803 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13808 main ()
13812 return 0;
13814 _ACEOF
13815 if ac_fn_c_try_link "$LINENO"; then :
13816 use_hash_style="yes"
13817 else
13818 use_hash_style="no"
13820 rm -f core conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13823 $as_echo "$use_hash_style" >&6; }
13824 if test "x-$use_hash_style" = "x-yes" ; then
13825 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13827 CC="$save_cc"
13828 CFLAGS="$save_cflags"
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13837 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13839 # Check whether --with-resolution was given.
13840 if test "${with_resolution+set}" = set; then :
13841 withval=$with_resolution; resolution=$withval
13842 else
13843 resolution=none
13846 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13847 if test "$resolution" = "yes" ; then
13848 resolution="none"
13850 if test "$resolution" = "no" ; then
13851 resolution="none"
13853 if test "$resolution" != "none" ; then
13854 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13855 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13856 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13859 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13860 aros_cv_nominal_width=$aros_nominal_width
13861 aros_cv_nominal_height=$aros_nominal_height
13862 aros_cv_nominal_depth=$aros_nominal_depth
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13865 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13867 # Check whether --with-serial-debug was given.
13868 if test "${with_serial_debug+set}" = set; then :
13869 withval=$with_serial_debug; serial_debug=$withval
13870 else
13871 serial_debug=none
13874 if test "$aros_serial_debug" = 0 ; then
13875 serial_debug_forced=""
13876 if test "$serial_debug" = "yes" ; then
13877 serial_debug="1"
13879 if test "$serial_debug" = "no" ; then
13880 serial_debug="none"
13882 else
13883 serial_debug_forced="(forced)"
13884 serial_debug=$aros_serial_debug
13886 if test "$serial_debug" != "none" ; then
13887 aros_serial_debug=$serial_debug
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13889 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13890 else
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13896 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13897 # Check whether --enable-palm_debug_hack was given.
13898 if test "${enable_palm_debug_hack+set}" = set; then :
13899 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13900 else
13901 palm_debug_hack="no"
13904 if test "$palm_debug_hack" = "yes" ; then
13905 aros_palm_debug_hack="1"
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13908 $as_echo "$palm_debug_hack" >&6; }
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
13911 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
13912 # Check whether --enable-usb30_code was given.
13913 if test "${enable_usb30_code+set}" = set; then :
13914 enableval=$enable_usb30_code; usb30_code="yes"
13915 else
13916 usb30_code="no"
13919 if test "$usb30_code" = "yes" ; then
13920 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13921 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13924 $as_echo "$usb30_code" >&6; }
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
13927 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
13928 # Check whether --enable-nesting_supervisor was given.
13929 if test "${enable_nesting_supervisor+set}" = set; then :
13930 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13931 else
13932 nesting_supervisor="no"
13935 if test "$nesting_supervisor" = "yes" ; then
13936 aros_nesting_supervisor="1"
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13939 $as_echo "$nesting_supervisor" >&6; }
13941 if test "$aros_enable_mmu" = "" ; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
13943 $as_echo_n "checking whether MMU support is enabled... " >&6; }
13944 # Check whether --enable-mmu was given.
13945 if test "${enable_mmu+set}" = set; then :
13946 enableval=$enable_mmu; aros_enable_mmu=$enableval
13947 else
13948 aros_enable_mmu="yes"
13951 if test "$aros_enable_mmu" = "" ; then
13952 aros_enable_mmu="yes"
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13955 $as_echo "$aros_enable_mmu" >&6; }
13957 if test "$aros_enable_mmu" = "no" ; then
13958 aros_enable_mmu="0"
13959 else
13960 aros_enable_mmu="1"
13964 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13966 if test "x-$need_dlopen" != "x-no" ; then
13967 save_libs="$LIBS"
13968 LIBS=""
13969 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13970 if test "x$ac_cv_func_dlopen" = xyes; then :
13971 have_dl="yes"
13972 else
13973 have_dl="no"
13976 if test "x-$have_dl" = "x-no" ; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13978 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13979 if ${ac_cv_lib_dl_dlopen+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 ac_check_lib_save_LIBS=$LIBS
13983 LIBS="-ldl $LIBS"
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13987 /* Override any GCC internal prototype to avoid an error.
13988 Use char because int might match the return type of a GCC
13989 builtin and then its argument prototype would still apply. */
13990 #ifdef __cplusplus
13991 extern "C"
13992 #endif
13993 char dlopen ();
13995 main ()
13997 return dlopen ();
13999 return 0;
14001 _ACEOF
14002 if ac_fn_c_try_link "$LINENO"; then :
14003 ac_cv_lib_dl_dlopen=yes
14004 else
14005 ac_cv_lib_dl_dlopen=no
14007 rm -f core conftest.err conftest.$ac_objext \
14008 conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14012 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14013 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14014 have_dl="yes"
14015 aros_host_ldflags="$aros_host_ldflags -ldl"
14016 else
14017 have_dl="no"
14021 if test "x-$have_dl" = "x-no" ; then
14022 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14024 LIBS="$save_libs"
14028 # Check whether --enable-x11_hidd was given.
14029 if test "${enable_x11_hidd+set}" = set; then :
14030 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14031 else
14032 x11_hidd="$need_x11"
14035 case "x-$x11_hidd" in
14036 x-yes|x-no|x-auto) ;;
14037 *) x11_hidd="$need_x11" ;;
14038 esac
14040 ENABLE_X11=0
14042 if test "x-$x11_hidd" != "x-no" ; then
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14045 $as_echo_n "checking for X... " >&6; }
14048 # Check whether --with-x was given.
14049 if test "${with_x+set}" = set; then :
14050 withval=$with_x;
14053 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14054 if test "x$with_x" = xno; then
14055 # The user explicitly disabled X.
14056 have_x=disabled
14057 else
14058 case $x_includes,$x_libraries in #(
14059 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14060 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 # One or both of the vars are not set, and there is no cached value.
14064 ac_x_includes=no ac_x_libraries=no
14065 rm -f -r conftest.dir
14066 if mkdir conftest.dir; then
14067 cd conftest.dir
14068 cat >Imakefile <<'_ACEOF'
14069 incroot:
14070 @echo incroot='${INCROOT}'
14071 usrlibdir:
14072 @echo usrlibdir='${USRLIBDIR}'
14073 libdir:
14074 @echo libdir='${LIBDIR}'
14075 _ACEOF
14076 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14077 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14078 for ac_var in incroot usrlibdir libdir; do
14079 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14080 done
14081 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14082 for ac_extension in a so sl dylib la dll; do
14083 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14084 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14085 ac_im_usrlibdir=$ac_im_libdir; break
14087 done
14088 # Screen out bogus values from the imake configuration. They are
14089 # bogus both because they are the default anyway, and because
14090 # using them would break gcc on systems where it needs fixed includes.
14091 case $ac_im_incroot in
14092 /usr/include) ac_x_includes= ;;
14093 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14094 esac
14095 case $ac_im_usrlibdir in
14096 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14097 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14098 esac
14100 cd ..
14101 rm -f -r conftest.dir
14104 # Standard set of common directories for X headers.
14105 # Check X11 before X11Rn because it is often a symlink to the current release.
14106 ac_x_header_dirs='
14107 /usr/X11/include
14108 /usr/X11R7/include
14109 /usr/X11R6/include
14110 /usr/X11R5/include
14111 /usr/X11R4/include
14113 /usr/include/X11
14114 /usr/include/X11R7
14115 /usr/include/X11R6
14116 /usr/include/X11R5
14117 /usr/include/X11R4
14119 /usr/local/X11/include
14120 /usr/local/X11R7/include
14121 /usr/local/X11R6/include
14122 /usr/local/X11R5/include
14123 /usr/local/X11R4/include
14125 /usr/local/include/X11
14126 /usr/local/include/X11R7
14127 /usr/local/include/X11R6
14128 /usr/local/include/X11R5
14129 /usr/local/include/X11R4
14131 /usr/X386/include
14132 /usr/x386/include
14133 /usr/XFree86/include/X11
14135 /usr/include
14136 /usr/local/include
14137 /usr/unsupported/include
14138 /usr/athena/include
14139 /usr/local/x11r5/include
14140 /usr/lpp/Xamples/include
14142 /usr/openwin/include
14143 /usr/openwin/share/include'
14145 if test "$ac_x_includes" = no; then
14146 # Guess where to find include files, by looking for Xlib.h.
14147 # First, try using that file with no special directory specified.
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 #include <X11/Xlib.h>
14151 _ACEOF
14152 if ac_fn_c_try_cpp "$LINENO"; then :
14153 # We can compile using X headers with no special include directory.
14154 ac_x_includes=
14155 else
14156 for ac_dir in $ac_x_header_dirs; do
14157 if test -r "$ac_dir/X11/Xlib.h"; then
14158 ac_x_includes=$ac_dir
14159 break
14161 done
14163 rm -f conftest.err conftest.i conftest.$ac_ext
14164 fi # $ac_x_includes = no
14166 if test "$ac_x_libraries" = no; then
14167 # Check for the libraries.
14168 # See if we find them without any special options.
14169 # Don't add to $LIBS permanently.
14170 ac_save_LIBS=$LIBS
14171 LIBS="-lX11 $LIBS"
14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14174 #include <X11/Xlib.h>
14176 main ()
14178 XrmInitialize ()
14180 return 0;
14182 _ACEOF
14183 if ac_fn_c_try_link "$LINENO"; then :
14184 LIBS=$ac_save_LIBS
14185 # We can link X programs with no special library path.
14186 ac_x_libraries=
14187 else
14188 LIBS=$ac_save_LIBS
14189 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14191 # Don't even attempt the hair of trying to link an X program!
14192 for ac_extension in a so sl dylib la dll; do
14193 if test -r "$ac_dir/libX11.$ac_extension"; then
14194 ac_x_libraries=$ac_dir
14195 break 2
14197 done
14198 done
14200 rm -f core conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
14202 fi # $ac_x_libraries = no
14204 case $ac_x_includes,$ac_x_libraries in #(
14205 no,* | *,no | *\'*)
14206 # Didn't find X, or a directory has "'" in its name.
14207 ac_cv_have_x="have_x=no";; #(
14209 # Record where we found X for the cache.
14210 ac_cv_have_x="have_x=yes\
14211 ac_x_includes='$ac_x_includes'\
14212 ac_x_libraries='$ac_x_libraries'"
14213 esac
14215 ;; #(
14216 *) have_x=yes;;
14217 esac
14218 eval "$ac_cv_have_x"
14219 fi # $with_x != no
14221 if test "$have_x" != yes; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14223 $as_echo "$have_x" >&6; }
14224 no_x=yes
14225 else
14226 # If each of the values was on the command line, it overrides each guess.
14227 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14228 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14229 # Update the cache value to reflect the command line values.
14230 ac_cv_have_x="have_x=yes\
14231 ac_x_includes='$x_includes'\
14232 ac_x_libraries='$x_libraries'"
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14234 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14237 if test "$no_x" = yes; then
14238 # Not all programs may use this symbol, but it does not hurt to define it.
14240 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
14242 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14243 else
14244 if test -n "$x_includes"; then
14245 X_CFLAGS="$X_CFLAGS -I$x_includes"
14248 # It would also be nice to do this for all -L options, not just this one.
14249 if test -n "$x_libraries"; then
14250 X_LIBS="$X_LIBS -L$x_libraries"
14251 # For Solaris; some versions of Sun CC require a space after -R and
14252 # others require no space. Words are not sufficient . . . .
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
14254 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
14255 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
14256 ac_xsave_c_werror_flag=$ac_c_werror_flag
14257 ac_c_werror_flag=yes
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14262 main ()
14266 return 0;
14268 _ACEOF
14269 if ac_fn_c_try_link "$LINENO"; then :
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14272 X_LIBS="$X_LIBS -R$x_libraries"
14273 else
14274 LIBS="$ac_xsave_LIBS -R $x_libraries"
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14279 main ()
14283 return 0;
14285 _ACEOF
14286 if ac_fn_c_try_link "$LINENO"; then :
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14288 $as_echo "yes" >&6; }
14289 X_LIBS="$X_LIBS -R $x_libraries"
14290 else
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
14292 $as_echo "neither works" >&6; }
14294 rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext conftest.$ac_ext
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14299 ac_c_werror_flag=$ac_xsave_c_werror_flag
14300 LIBS=$ac_xsave_LIBS
14303 # Check for system-dependent libraries X programs must link with.
14304 # Do this before checking for the system-independent R6 libraries
14305 # (-lICE), since we may need -lsocket or whatever for X linking.
14307 if test "$ISC" = yes; then
14308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14309 else
14310 # Martyn Johnson says this is needed for Ultrix, if the X
14311 # libraries were built with DECnet support. And Karl Berry says
14312 # the Alpha needs dnet_stub (dnet does not exist).
14313 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14317 /* Override any GCC internal prototype to avoid an error.
14318 Use char because int might match the return type of a GCC
14319 builtin and then its argument prototype would still apply. */
14320 #ifdef __cplusplus
14321 extern "C"
14322 #endif
14323 char XOpenDisplay ();
14325 main ()
14327 return XOpenDisplay ();
14329 return 0;
14331 _ACEOF
14332 if ac_fn_c_try_link "$LINENO"; then :
14334 else
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
14336 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
14337 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
14338 $as_echo_n "(cached) " >&6
14339 else
14340 ac_check_lib_save_LIBS=$LIBS
14341 LIBS="-ldnet $LIBS"
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14345 /* Override any GCC internal prototype to avoid an error.
14346 Use char because int might match the return type of a GCC
14347 builtin and then its argument prototype would still apply. */
14348 #ifdef __cplusplus
14349 extern "C"
14350 #endif
14351 char dnet_ntoa ();
14353 main ()
14355 return dnet_ntoa ();
14357 return 0;
14359 _ACEOF
14360 if ac_fn_c_try_link "$LINENO"; then :
14361 ac_cv_lib_dnet_dnet_ntoa=yes
14362 else
14363 ac_cv_lib_dnet_dnet_ntoa=no
14365 rm -f core conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14370 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
14371 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
14372 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14375 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
14377 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
14378 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 ac_check_lib_save_LIBS=$LIBS
14382 LIBS="-ldnet_stub $LIBS"
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14386 /* Override any GCC internal prototype to avoid an error.
14387 Use char because int might match the return type of a GCC
14388 builtin and then its argument prototype would still apply. */
14389 #ifdef __cplusplus
14390 extern "C"
14391 #endif
14392 char dnet_ntoa ();
14394 main ()
14396 return dnet_ntoa ();
14398 return 0;
14400 _ACEOF
14401 if ac_fn_c_try_link "$LINENO"; then :
14402 ac_cv_lib_dnet_stub_dnet_ntoa=yes
14403 else
14404 ac_cv_lib_dnet_stub_dnet_ntoa=no
14406 rm -f core conftest.err conftest.$ac_objext \
14407 conftest$ac_exeext conftest.$ac_ext
14408 LIBS=$ac_check_lib_save_LIBS
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14411 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
14412 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
14413 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14418 rm -f core conftest.err conftest.$ac_objext \
14419 conftest$ac_exeext conftest.$ac_ext
14420 LIBS="$ac_xsave_LIBS"
14422 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14423 # to get the SysV transport functions.
14424 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14425 # needs -lnsl.
14426 # The nsl library prevents programs from opening the X display
14427 # on Irix 5.2, according to T.E. Dickey.
14428 # The functions gethostbyname, getservbyname, and inet_addr are
14429 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14430 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14431 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14435 if test $ac_cv_func_gethostbyname = no; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14437 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14438 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441 ac_check_lib_save_LIBS=$LIBS
14442 LIBS="-lnsl $LIBS"
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14446 /* Override any GCC internal prototype to avoid an error.
14447 Use char because int might match the return type of a GCC
14448 builtin and then its argument prototype would still apply. */
14449 #ifdef __cplusplus
14450 extern "C"
14451 #endif
14452 char gethostbyname ();
14454 main ()
14456 return gethostbyname ();
14458 return 0;
14460 _ACEOF
14461 if ac_fn_c_try_link "$LINENO"; then :
14462 ac_cv_lib_nsl_gethostbyname=yes
14463 else
14464 ac_cv_lib_nsl_gethostbyname=no
14466 rm -f core conftest.err conftest.$ac_objext \
14467 conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14471 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14472 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
14473 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14476 if test $ac_cv_lib_nsl_gethostbyname = no; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
14478 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
14479 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 ac_check_lib_save_LIBS=$LIBS
14483 LIBS="-lbsd $LIBS"
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14487 /* Override any GCC internal prototype to avoid an error.
14488 Use char because int might match the return type of a GCC
14489 builtin and then its argument prototype would still apply. */
14490 #ifdef __cplusplus
14491 extern "C"
14492 #endif
14493 char gethostbyname ();
14495 main ()
14497 return gethostbyname ();
14499 return 0;
14501 _ACEOF
14502 if ac_fn_c_try_link "$LINENO"; then :
14503 ac_cv_lib_bsd_gethostbyname=yes
14504 else
14505 ac_cv_lib_bsd_gethostbyname=no
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14509 LIBS=$ac_check_lib_save_LIBS
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
14512 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
14513 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
14514 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
14520 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14521 # socket/setsockopt and other routines are undefined under SCO ODT
14522 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14523 # on later versions), says Simon Leinen: it contains gethostby*
14524 # variants that don't use the name server (or something). -lsocket
14525 # must be given before -lnsl if both are needed. We assume that
14526 # if connect needs -lnsl, so does gethostbyname.
14527 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14528 if test "x$ac_cv_func_connect" = xyes; then :
14532 if test $ac_cv_func_connect = no; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14534 $as_echo_n "checking for connect in -lsocket... " >&6; }
14535 if ${ac_cv_lib_socket_connect+:} false; then :
14536 $as_echo_n "(cached) " >&6
14537 else
14538 ac_check_lib_save_LIBS=$LIBS
14539 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14543 /* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply. */
14546 #ifdef __cplusplus
14547 extern "C"
14548 #endif
14549 char connect ();
14551 main ()
14553 return connect ();
14555 return 0;
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"; then :
14559 ac_cv_lib_socket_connect=yes
14560 else
14561 ac_cv_lib_socket_connect=no
14563 rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565 LIBS=$ac_check_lib_save_LIBS
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14568 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14569 if test "x$ac_cv_lib_socket_connect" = xyes; then :
14570 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14575 # Guillermo Gomez says -lposix is necessary on A/UX.
14576 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
14577 if test "x$ac_cv_func_remove" = xyes; then :
14581 if test $ac_cv_func_remove = no; then
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14583 $as_echo_n "checking for remove in -lposix... " >&6; }
14584 if ${ac_cv_lib_posix_remove+:} false; then :
14585 $as_echo_n "(cached) " >&6
14586 else
14587 ac_check_lib_save_LIBS=$LIBS
14588 LIBS="-lposix $LIBS"
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14592 /* Override any GCC internal prototype to avoid an error.
14593 Use char because int might match the return type of a GCC
14594 builtin and then its argument prototype would still apply. */
14595 #ifdef __cplusplus
14596 extern "C"
14597 #endif
14598 char remove ();
14600 main ()
14602 return remove ();
14604 return 0;
14606 _ACEOF
14607 if ac_fn_c_try_link "$LINENO"; then :
14608 ac_cv_lib_posix_remove=yes
14609 else
14610 ac_cv_lib_posix_remove=no
14612 rm -f core conftest.err conftest.$ac_objext \
14613 conftest$ac_exeext conftest.$ac_ext
14614 LIBS=$ac_check_lib_save_LIBS
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14617 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14618 if test "x$ac_cv_lib_posix_remove" = xyes; then :
14619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14624 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14625 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14626 if test "x$ac_cv_func_shmat" = xyes; then :
14630 if test $ac_cv_func_shmat = no; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14632 $as_echo_n "checking for shmat in -lipc... " >&6; }
14633 if ${ac_cv_lib_ipc_shmat+:} false; then :
14634 $as_echo_n "(cached) " >&6
14635 else
14636 ac_check_lib_save_LIBS=$LIBS
14637 LIBS="-lipc $LIBS"
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14641 /* Override any GCC internal prototype to avoid an error.
14642 Use char because int might match the return type of a GCC
14643 builtin and then its argument prototype would still apply. */
14644 #ifdef __cplusplus
14645 extern "C"
14646 #endif
14647 char shmat ();
14649 main ()
14651 return shmat ();
14653 return 0;
14655 _ACEOF
14656 if ac_fn_c_try_link "$LINENO"; then :
14657 ac_cv_lib_ipc_shmat=yes
14658 else
14659 ac_cv_lib_ipc_shmat=no
14661 rm -f core conftest.err conftest.$ac_objext \
14662 conftest$ac_exeext conftest.$ac_ext
14663 LIBS=$ac_check_lib_save_LIBS
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14666 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14667 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
14668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14674 # Check for libraries that X11R6 Xt/Xaw programs need.
14675 ac_save_LDFLAGS=$LDFLAGS
14676 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14677 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14678 # check for ICE first), but we must link in the order -lSM -lICE or
14679 # we get undefined symbols. So assume we have SM if we have ICE.
14680 # These have to be linked with before -lX11, unlike the other
14681 # libraries we check for below, so use a different variable.
14682 # John Interrante, Karl Berry
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14684 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14685 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 ac_check_lib_save_LIBS=$LIBS
14689 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14693 /* Override any GCC internal prototype to avoid an error.
14694 Use char because int might match the return type of a GCC
14695 builtin and then its argument prototype would still apply. */
14696 #ifdef __cplusplus
14697 extern "C"
14698 #endif
14699 char IceConnectionNumber ();
14701 main ()
14703 return IceConnectionNumber ();
14705 return 0;
14707 _ACEOF
14708 if ac_fn_c_try_link "$LINENO"; then :
14709 ac_cv_lib_ICE_IceConnectionNumber=yes
14710 else
14711 ac_cv_lib_ICE_IceConnectionNumber=no
14713 rm -f core conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LIBS=$ac_check_lib_save_LIBS
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14718 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14719 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
14720 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14723 LDFLAGS=$ac_save_LDFLAGS
14728 if test "x-$no_x" = "x-yes" ; then
14730 if test "x-$x11_hidd" != "x-auto" ; then
14731 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14734 else
14735 host_x_gfx=yes
14736 ENABLE_X11=1
14738 aros_host_x11_cflags="$X_CFLAGS"
14739 aros_host_x11_ldflags="$X_LIBS -lX11"
14741 # Check whether --enable-x11_shm was given.
14742 if test "${enable_x11_shm+set}" = set; then :
14743 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14744 else
14745 x11_hidd_shm="auto"
14748 case "x-$x11_hidd_shm" in
14749 x-yes|x-no|x-auto) ;;
14750 *) x11_hidd_shm="auto" ;;
14751 esac
14753 have_xshm=no
14755 if test "x-$x11_hidd_shm" != "x-no" ; then
14757 for ac_header in sys/ipc.h
14758 do :
14759 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14760 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14761 cat >>confdefs.h <<_ACEOF
14762 #define HAVE_SYS_IPC_H 1
14763 _ACEOF
14767 done
14769 for ac_header in sys/shm.h
14770 do :
14771 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14772 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14773 cat >>confdefs.h <<_ACEOF
14774 #define HAVE_SYS_SHM_H 1
14775 _ACEOF
14779 done
14782 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14784 save_cflags="$CFLAGS"
14785 save_ldflags="$LDFLAGS"
14786 CFLAGS="$CFLAGS $X_CFLAGS"
14787 LDFLAGS="$LDFLAGS $X_LIBS"
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14789 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14790 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 ac_check_lib_save_LIBS=$LIBS
14794 LIBS="-lXext $LIBS"
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14798 /* Override any GCC internal prototype to avoid an error.
14799 Use char because int might match the return type of a GCC
14800 builtin and then its argument prototype would still apply. */
14801 #ifdef __cplusplus
14802 extern "C"
14803 #endif
14804 char XShmQueryExtension ();
14806 main ()
14808 return XShmQueryExtension ();
14810 return 0;
14812 _ACEOF
14813 if ac_fn_c_try_link "$LINENO"; then :
14814 ac_cv_lib_Xext_XShmQueryExtension=yes
14815 else
14816 ac_cv_lib_Xext_XShmQueryExtension=no
14818 rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 LIBS=$ac_check_lib_save_LIBS
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14823 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14824 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14825 have_xshm=yes
14828 CFLAGS="$save_cflags"
14829 LDFLAGS="$save_ldflags"
14833 if test "x-$have_xshm" = "x-yes" ; then
14834 DO_XSHM_SUPPORT="1"
14835 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14836 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14837 else
14838 DO_XSHM_SUPPORT="0"
14842 # Check whether --enable-x11_vidmode was given.
14843 if test "${enable_x11_vidmode+set}" = set; then :
14844 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14845 else
14846 x11_hidd_vidmode="auto"
14849 case "x-$x11_hidd_vidmode" in
14850 x-yes|x-no|x-auto) ;;
14851 *) x11_hidd_vidmode="auto" ;;
14852 esac
14854 have_vidmode=no
14856 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14858 save_cflags="$CFLAGS"
14859 save_ldflags="$LDFLAGS"
14860 CFLAGS="$CFLAGS $X_CFLAGS"
14861 LDFLAGS="$LDFLAGS $X_LIBS"
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14863 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14864 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 ac_check_lib_save_LIBS=$LIBS
14868 LIBS="-lXxf86vm $LIBS"
14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14872 /* Override any GCC internal prototype to avoid an error.
14873 Use char because int might match the return type of a GCC
14874 builtin and then its argument prototype would still apply. */
14875 #ifdef __cplusplus
14876 extern "C"
14877 #endif
14878 char XF86VidModeQueryExtension ();
14880 main ()
14882 return XF86VidModeQueryExtension ();
14884 return 0;
14886 _ACEOF
14887 if ac_fn_c_try_link "$LINENO"; then :
14888 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14889 else
14890 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14892 rm -f core conftest.err conftest.$ac_objext \
14893 conftest$ac_exeext conftest.$ac_ext
14894 LIBS=$ac_check_lib_save_LIBS
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14897 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14898 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14899 have_vidmode=yes
14902 CFLAGS="$save_cflags"
14903 LDFLAGS="$save_ldflags"
14906 if test "x-$have_vidmode" = "x-yes" ; then
14907 DO_VIDMODE_SUPPORT="1"
14908 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14909 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14910 else
14911 DO_VIDMODE_SUPPORT="0"
14916 # Check whether --enable-sdl_hidd was given.
14917 if test "${enable_sdl_hidd+set}" = set; then :
14918 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14919 else
14920 sdl_hidd="auto"
14923 case "x-$sdl_hidd" in
14924 x-yes|x-no|x-auto) ;;
14925 *) sdl_hidd="auto" ;;
14926 esac
14928 if test "x-$sdl_hidd" != "x-no" ; then
14930 SDL_VERSION=1.2.5
14932 # Check whether --with-sdl-prefix was given.
14933 if test "${with_sdl_prefix+set}" = set; then :
14934 withval=$with_sdl_prefix; sdl_prefix="$withval"
14935 else
14936 sdl_prefix=""
14940 # Check whether --with-sdl-exec-prefix was given.
14941 if test "${with_sdl_exec_prefix+set}" = set; then :
14942 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14943 else
14944 sdl_exec_prefix=""
14947 # Check whether --enable-sdltest was given.
14948 if test "${enable_sdltest+set}" = set; then :
14949 enableval=$enable_sdltest;
14950 else
14951 enable_sdltest=yes
14955 if test x$sdl_exec_prefix != x ; then
14956 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14957 if test x${SDL_CONFIG+set} != xset ; then
14958 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14961 if test x$sdl_prefix != x ; then
14962 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14963 if test x${SDL_CONFIG+set} != xset ; then
14964 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14968 as_save_PATH="$PATH"
14969 if test "x$prefix" != xNONE; then
14970 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14972 # Extract the first word of "sdl-config", so it can be a program name with args.
14973 set dummy sdl-config; ac_word=$2
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14975 $as_echo_n "checking for $ac_word... " >&6; }
14976 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14977 $as_echo_n "(cached) " >&6
14978 else
14979 case $SDL_CONFIG in
14980 [\\/]* | ?:[\\/]*)
14981 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14985 for as_dir in $PATH
14987 IFS=$as_save_IFS
14988 test -z "$as_dir" && as_dir=.
14989 for ac_exec_ext in '' $ac_executable_extensions; do
14990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14991 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14993 break 2
14995 done
14996 done
14997 IFS=$as_save_IFS
14999 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15001 esac
15003 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15004 if test -n "$SDL_CONFIG"; then
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15006 $as_echo "$SDL_CONFIG" >&6; }
15007 else
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009 $as_echo "no" >&6; }
15013 PATH="$as_save_PATH"
15014 min_sdl_version=$SDL_VERSION
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15016 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15017 no_sdl=""
15018 if test "$SDL_CONFIG" = "no" ; then
15019 no_sdl=yes
15020 else
15021 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15022 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15024 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15025 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15026 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15027 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15028 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15029 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15030 if test "x$enable_sdltest" = "xyes" ; then
15031 ac_save_CFLAGS="$CFLAGS"
15032 ac_save_CXXFLAGS="$CXXFLAGS"
15033 ac_save_LIBS="$LIBS"
15034 CFLAGS="$CFLAGS $SDL_CFLAGS"
15035 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15036 LIBS="$LIBS $SDL_LIBS"
15037 rm -f conf.sdltest
15038 if test "$cross_compiling" = yes; then :
15039 echo $ac_n "cross compiling; assumed OK... $ac_c"
15040 else
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15044 #include <stdio.h>
15045 #include <stdlib.h>
15046 #include <string.h>
15047 #include "SDL.h"
15049 char*
15050 my_strdup (char *str)
15052 char *new_str;
15054 if (str)
15056 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15057 strcpy (new_str, str);
15059 else
15060 new_str = NULL;
15062 return new_str;
15065 int main (int argc, char *argv[])
15067 int major, minor, micro;
15068 char *tmp_version;
15070 /* This hangs on some systems (?)
15071 system ("touch conf.sdltest");
15073 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15075 /* HP/UX 9 (%@#!) writes to sscanf strings */
15076 tmp_version = my_strdup("$min_sdl_version");
15077 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15078 printf("%s, bad version string\n", "$min_sdl_version");
15079 exit(1);
15082 if (($sdl_major_version > major) ||
15083 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15084 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15086 return 0;
15088 else
15090 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15091 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15092 printf("*** best to upgrade to the required version.\n");
15093 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15094 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15095 printf("*** config.cache before re-running configure\n");
15096 return 1;
15101 _ACEOF
15102 if ac_fn_c_try_run "$LINENO"; then :
15104 else
15105 no_sdl=yes
15107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15108 conftest.$ac_objext conftest.beam conftest.$ac_ext
15111 CFLAGS="$ac_save_CFLAGS"
15112 CXXFLAGS="$ac_save_CXXFLAGS"
15113 LIBS="$ac_save_LIBS"
15116 if test "x$no_sdl" = x ; then
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15118 $as_echo "yes" >&6; }
15119 have_sdl="yes"
15120 else
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15122 $as_echo "no" >&6; }
15123 if test "$SDL_CONFIG" = "no" ; then
15124 echo "*** The sdl-config script installed by SDL could not be found"
15125 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15126 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15127 echo "*** full path to sdl-config."
15128 else
15129 if test -f conf.sdltest ; then
15131 else
15132 echo "*** Could not run SDL test program, checking why..."
15133 CFLAGS="$CFLAGS $SDL_CFLAGS"
15134 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15135 LIBS="$LIBS $SDL_LIBS"
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15139 #include <stdio.h>
15140 #include "SDL.h"
15142 int main(int argc, char *argv[])
15143 { return 0; }
15144 #undef main
15145 #define main K_and_R_C_main
15148 main ()
15150 return 0;
15152 return 0;
15154 _ACEOF
15155 if ac_fn_c_try_link "$LINENO"; then :
15156 echo "*** The test program compiled, but did not run. This usually means"
15157 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15158 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15159 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15160 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15161 echo "*** is required on your system"
15162 echo "***"
15163 echo "*** If you have an old version installed, it is best to remove it, although"
15164 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15165 else
15166 echo "*** The test program failed to compile or link. See the file config.log for the"
15167 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15168 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15169 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15171 rm -f core conftest.err conftest.$ac_objext \
15172 conftest$ac_exeext conftest.$ac_ext
15173 CFLAGS="$ac_save_CFLAGS"
15174 CXXFLAGS="$ac_save_CXXFLAGS"
15175 LIBS="$ac_save_LIBS"
15178 SDL_CFLAGS=""
15179 SDL_LIBS=""
15180 have_sdl="no"
15184 rm -f conf.sdltest
15187 if test "x-$have_sdl" != "x-yes" ; then
15189 if test "x-$sdl_hidd" != "x-auto" ; then
15190 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15193 else
15194 host_sdl_gfx=yes
15195 aros_host_sdl_cflags=$SDL_CFLAGS
15196 aros_host_sdl_libs=$SDL_LIBS
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15204 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15205 # Check whether --enable-dbus was given.
15206 if test "${enable_dbus+set}" = set; then :
15207 enableval=$enable_dbus; dbus="yes"
15208 else
15209 dbus="no"
15212 if test "$dbus" = "yes" ; then
15213 ENABLE_DBUS=1
15214 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15215 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15216 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15217 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15218 else
15219 ENABLE_DBUS=0
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15222 $as_echo "$dbus" >&6; }
15224 if test "$use_kernel_cc_wrapper" = "yes" ; then
15225 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15229 # Generic
15242 # Compatability with other Amiga-like operation systems
15245 # Host related
15274 # Target Related
15346 # Hosted Graphics Related
15364 # Native version related
15368 # Palm native version related
15371 # Unix/Hosted version related
15374 # MMU related
15377 # Apple iOS related
15382 # ARM default GCC target related
15389 # Android related
15394 # DBUS related
15401 #X11 related
15404 # Debug related
15410 # Collect-aros stuff: "-ius" to ignore undefined symbols
15413 # C compiler related
15418 #ObjC compiler related
15421 #Java related
15424 # USB3.0 code
15427 case "$aros_flavour" in
15428 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15429 aros_flavour="emulation" ;;
15430 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15431 aros_flavour="emulation" ;;
15432 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15433 aros_flavour="standalone";;
15434 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15435 aros_flavour="standalone";;
15436 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15437 aros_flavour="native" ;;
15438 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15439 aros_flavour="native" ;;
15440 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15441 aros_flavour="linklib" ;;
15442 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15443 aros_flavour="palmnative" ;;
15444 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15445 aros_flavour="mac68knative" ;;
15446 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15447 aros_flavour="ppcnative" ;;
15448 esac
15450 if test ! -d ${aros_inc_dir} ; then
15451 ${MKDIR} ${aros_inc_dir}
15453 if test ! -d ${aros_geninc_dir} ; then
15454 ${MKDIR} ${aros_geninc_dir}
15456 if test ! -d ${aros_hostcfg_dir} ; then
15457 ${MKDIR} ${aros_hostcfg_dir}
15459 if test ! -d ${aros_targetcfg_dir} ; then
15460 ${MKDIR} ${aros_targetcfg_dir}
15462 if test ! -d ${aros_tools_dir} ; then
15463 ${MKDIR} ${aros_tools_dir}
15465 if test ! -d ${aros_scripts_dir} ; then
15466 ${MKDIR} ${aros_scripts_dir}
15469 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15472 # Generic build tools (metamake, etc)
15473 ac_config_commands="$ac_config_commands genmf-executable-support"
15475 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 ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
15478 # Binutils
15479 ac_config_commands="$ac_config_commands binutils-support"
15481 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
15484 # Bare Elf support script and spec
15485 if test "${use_kernel_cc_wrapper}" = "yes"; then
15486 ac_config_commands="$ac_config_commands elf-compiler-support"
15488 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
15492 # Host compiler support scripts and spec
15493 if test "${aros_target_toolchain}" = "no"; then
15494 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15496 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in"
15500 # Android support
15501 if test "$aros_target_variant" == "android"; then
15502 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15506 # cmake helper
15507 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15510 cat >confcache <<\_ACEOF
15511 # This file is a shell script that caches the results of configure
15512 # tests run on this system so they can be shared between configure
15513 # scripts and configure runs, see configure's option --config-cache.
15514 # It is not useful on other systems. If it contains results you don't
15515 # want to keep, you may remove or edit it.
15517 # config.status only pays attention to the cache file if you give it
15518 # the --recheck option to rerun configure.
15520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15522 # following values.
15524 _ACEOF
15526 # The following way of writing the cache mishandles newlines in values,
15527 # but we know of no workaround that is simple, portable, and efficient.
15528 # So, we kill variables containing newlines.
15529 # Ultrix sh set writes to stderr and can't be redirected directly,
15530 # and sets the high bit in the cache file unless we assign to the vars.
15532 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15533 eval ac_val=\$$ac_var
15534 case $ac_val in #(
15535 *${as_nl}*)
15536 case $ac_var in #(
15537 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15539 esac
15540 case $ac_var in #(
15541 _ | IFS | as_nl) ;; #(
15542 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15543 *) { eval $ac_var=; unset $ac_var;} ;;
15544 esac ;;
15545 esac
15546 done
15548 (set) 2>&1 |
15549 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15550 *${as_nl}ac_space=\ *)
15551 # `set' does not quote correctly, so add quotes: double-quote
15552 # substitution turns \\\\ into \\, and sed turns \\ into \.
15553 sed -n \
15554 "s/'/'\\\\''/g;
15555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15556 ;; #(
15558 # `set' quotes correctly as required by POSIX, so do not add quotes.
15559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15561 esac |
15562 sort
15564 sed '
15565 /^ac_cv_env_/b end
15566 t clear
15567 :clear
15568 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15569 t end
15570 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15571 :end' >>confcache
15572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15573 if test -w "$cache_file"; then
15574 if test "x$cache_file" != "x/dev/null"; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15576 $as_echo "$as_me: updating cache $cache_file" >&6;}
15577 if test ! -f "$cache_file" || test -h "$cache_file"; then
15578 cat confcache >"$cache_file"
15579 else
15580 case $cache_file in #(
15581 */* | ?:*)
15582 mv -f confcache "$cache_file"$$ &&
15583 mv -f "$cache_file"$$ "$cache_file" ;; #(
15585 mv -f confcache "$cache_file" ;;
15586 esac
15589 else
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15591 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15594 rm -f confcache
15596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15597 # Let make expand exec_prefix.
15598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15600 DEFS=-DHAVE_CONFIG_H
15602 ac_libobjs=
15603 ac_ltlibobjs=
15605 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15606 # 1. Remove the extension, and $U if already installed.
15607 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15608 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15609 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15610 # will be set to the directory where LIBOBJS objects are built.
15611 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15612 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15613 done
15614 LIBOBJS=$ac_libobjs
15616 LTLIBOBJS=$ac_ltlibobjs
15620 : "${CONFIG_STATUS=./config.status}"
15621 ac_write_fail=0
15622 ac_clean_files_save=$ac_clean_files
15623 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15625 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15626 as_write_fail=0
15627 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15628 #! $SHELL
15629 # Generated by $as_me.
15630 # Run this file to recreate the current configuration.
15631 # Compiler output produced by configure, useful for debugging
15632 # configure, is in config.log if it exists.
15634 debug=false
15635 ac_cs_recheck=false
15636 ac_cs_silent=false
15638 SHELL=\${CONFIG_SHELL-$SHELL}
15639 export SHELL
15640 _ASEOF
15641 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15642 ## -------------------- ##
15643 ## M4sh Initialization. ##
15644 ## -------------------- ##
15646 # Be more Bourne compatible
15647 DUALCASE=1; export DUALCASE # for MKS sh
15648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15649 emulate sh
15650 NULLCMD=:
15651 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15652 # is contrary to our usage. Disable this feature.
15653 alias -g '${1+"$@"}'='"$@"'
15654 setopt NO_GLOB_SUBST
15655 else
15656 case `(set -o) 2>/dev/null` in #(
15657 *posix*) :
15658 set -o posix ;; #(
15659 *) :
15661 esac
15665 as_nl='
15667 export as_nl
15668 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15669 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15672 # Prefer a ksh shell builtin over an external printf program on Solaris,
15673 # but without wasting forks for bash or zsh.
15674 if test -z "$BASH_VERSION$ZSH_VERSION" \
15675 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15676 as_echo='print -r --'
15677 as_echo_n='print -rn --'
15678 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15679 as_echo='printf %s\n'
15680 as_echo_n='printf %s'
15681 else
15682 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15683 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15684 as_echo_n='/usr/ucb/echo -n'
15685 else
15686 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15687 as_echo_n_body='eval
15688 arg=$1;
15689 case $arg in #(
15690 *"$as_nl"*)
15691 expr "X$arg" : "X\\(.*\\)$as_nl";
15692 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15693 esac;
15694 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15696 export as_echo_n_body
15697 as_echo_n='sh -c $as_echo_n_body as_echo'
15699 export as_echo_body
15700 as_echo='sh -c $as_echo_body as_echo'
15703 # The user is always right.
15704 if test "${PATH_SEPARATOR+set}" != set; then
15705 PATH_SEPARATOR=:
15706 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15707 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15708 PATH_SEPARATOR=';'
15713 # IFS
15714 # We need space, tab and new line, in precisely that order. Quoting is
15715 # there to prevent editors from complaining about space-tab.
15716 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15717 # splitting by setting IFS to empty value.)
15718 IFS=" "" $as_nl"
15720 # Find who we are. Look in the path if we contain no directory separator.
15721 as_myself=
15722 case $0 in #((
15723 *[\\/]* ) as_myself=$0 ;;
15724 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15725 for as_dir in $PATH
15727 IFS=$as_save_IFS
15728 test -z "$as_dir" && as_dir=.
15729 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15730 done
15731 IFS=$as_save_IFS
15734 esac
15735 # We did not find ourselves, most probably we were run as `sh COMMAND'
15736 # in which case we are not to be found in the path.
15737 if test "x$as_myself" = x; then
15738 as_myself=$0
15740 if test ! -f "$as_myself"; then
15741 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15742 exit 1
15745 # Unset variables that we do not need and which cause bugs (e.g. in
15746 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15747 # suppresses any "Segmentation fault" message there. '((' could
15748 # trigger a bug in pdksh 5.2.14.
15749 for as_var in BASH_ENV ENV MAIL MAILPATH
15750 do eval test x\${$as_var+set} = xset \
15751 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15752 done
15753 PS1='$ '
15754 PS2='> '
15755 PS4='+ '
15757 # NLS nuisances.
15758 LC_ALL=C
15759 export LC_ALL
15760 LANGUAGE=C
15761 export LANGUAGE
15763 # CDPATH.
15764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15767 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15768 # ----------------------------------------
15769 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15770 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15771 # script with STATUS, using 1 if that was 0.
15772 as_fn_error ()
15774 as_status=$1; test $as_status -eq 0 && as_status=1
15775 if test "$4"; then
15776 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15777 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15779 $as_echo "$as_me: error: $2" >&2
15780 as_fn_exit $as_status
15781 } # as_fn_error
15784 # as_fn_set_status STATUS
15785 # -----------------------
15786 # Set $? to STATUS, without forking.
15787 as_fn_set_status ()
15789 return $1
15790 } # as_fn_set_status
15792 # as_fn_exit STATUS
15793 # -----------------
15794 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15795 as_fn_exit ()
15797 set +e
15798 as_fn_set_status $1
15799 exit $1
15800 } # as_fn_exit
15802 # as_fn_unset VAR
15803 # ---------------
15804 # Portably unset VAR.
15805 as_fn_unset ()
15807 { eval $1=; unset $1;}
15809 as_unset=as_fn_unset
15810 # as_fn_append VAR VALUE
15811 # ----------------------
15812 # Append the text in VALUE to the end of the definition contained in VAR. Take
15813 # advantage of any shell optimizations that allow amortized linear growth over
15814 # repeated appends, instead of the typical quadratic growth present in naive
15815 # implementations.
15816 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15817 eval 'as_fn_append ()
15819 eval $1+=\$2
15821 else
15822 as_fn_append ()
15824 eval $1=\$$1\$2
15826 fi # as_fn_append
15828 # as_fn_arith ARG...
15829 # ------------------
15830 # Perform arithmetic evaluation on the ARGs, and store the result in the
15831 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15832 # must be portable across $(()) and expr.
15833 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15834 eval 'as_fn_arith ()
15836 as_val=$(( $* ))
15838 else
15839 as_fn_arith ()
15841 as_val=`expr "$@" || test $? -eq 1`
15843 fi # as_fn_arith
15846 if expr a : '\(a\)' >/dev/null 2>&1 &&
15847 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15848 as_expr=expr
15849 else
15850 as_expr=false
15853 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15854 as_basename=basename
15855 else
15856 as_basename=false
15859 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15860 as_dirname=dirname
15861 else
15862 as_dirname=false
15865 as_me=`$as_basename -- "$0" ||
15866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15867 X"$0" : 'X\(//\)$' \| \
15868 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15869 $as_echo X/"$0" |
15870 sed '/^.*\/\([^/][^/]*\)\/*$/{
15871 s//\1/
15874 /^X\/\(\/\/\)$/{
15875 s//\1/
15878 /^X\/\(\/\).*/{
15879 s//\1/
15882 s/.*/./; q'`
15884 # Avoid depending upon Character Ranges.
15885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15888 as_cr_digits='0123456789'
15889 as_cr_alnum=$as_cr_Letters$as_cr_digits
15891 ECHO_C= ECHO_N= ECHO_T=
15892 case `echo -n x` in #(((((
15893 -n*)
15894 case `echo 'xy\c'` in
15895 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15896 xy) ECHO_C='\c';;
15897 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15898 ECHO_T=' ';;
15899 esac;;
15901 ECHO_N='-n';;
15902 esac
15904 rm -f conf$$ conf$$.exe conf$$.file
15905 if test -d conf$$.dir; then
15906 rm -f conf$$.dir/conf$$.file
15907 else
15908 rm -f conf$$.dir
15909 mkdir conf$$.dir 2>/dev/null
15911 if (echo >conf$$.file) 2>/dev/null; then
15912 if ln -s conf$$.file conf$$ 2>/dev/null; then
15913 as_ln_s='ln -s'
15914 # ... but there are two gotchas:
15915 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15916 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15917 # In both cases, we have to default to `cp -pR'.
15918 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15919 as_ln_s='cp -pR'
15920 elif ln conf$$.file conf$$ 2>/dev/null; then
15921 as_ln_s=ln
15922 else
15923 as_ln_s='cp -pR'
15925 else
15926 as_ln_s='cp -pR'
15928 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15929 rmdir conf$$.dir 2>/dev/null
15932 # as_fn_mkdir_p
15933 # -------------
15934 # Create "$as_dir" as a directory, including parents if necessary.
15935 as_fn_mkdir_p ()
15938 case $as_dir in #(
15939 -*) as_dir=./$as_dir;;
15940 esac
15941 test -d "$as_dir" || eval $as_mkdir_p || {
15942 as_dirs=
15943 while :; do
15944 case $as_dir in #(
15945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15946 *) as_qdir=$as_dir;;
15947 esac
15948 as_dirs="'$as_qdir' $as_dirs"
15949 as_dir=`$as_dirname -- "$as_dir" ||
15950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15951 X"$as_dir" : 'X\(//\)[^/]' \| \
15952 X"$as_dir" : 'X\(//\)$' \| \
15953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15954 $as_echo X"$as_dir" |
15955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15956 s//\1/
15959 /^X\(\/\/\)[^/].*/{
15960 s//\1/
15963 /^X\(\/\/\)$/{
15964 s//\1/
15967 /^X\(\/\).*/{
15968 s//\1/
15971 s/.*/./; q'`
15972 test -d "$as_dir" && break
15973 done
15974 test -z "$as_dirs" || eval "mkdir $as_dirs"
15975 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15978 } # as_fn_mkdir_p
15979 if mkdir -p . 2>/dev/null; then
15980 as_mkdir_p='mkdir -p "$as_dir"'
15981 else
15982 test -d ./-p && rmdir ./-p
15983 as_mkdir_p=false
15987 # as_fn_executable_p FILE
15988 # -----------------------
15989 # Test if FILE is an executable regular file.
15990 as_fn_executable_p ()
15992 test -f "$1" && test -x "$1"
15993 } # as_fn_executable_p
15994 as_test_x='test -x'
15995 as_executable_p=as_fn_executable_p
15997 # Sed expression to map a string onto a valid CPP name.
15998 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16000 # Sed expression to map a string onto a valid variable name.
16001 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16004 exec 6>&1
16005 ## ----------------------------------- ##
16006 ## Main body of $CONFIG_STATUS script. ##
16007 ## ----------------------------------- ##
16008 _ASEOF
16009 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16012 # Save the log message, to keep $0 and so on meaningful, and to
16013 # report actual input values of CONFIG_FILES etc. instead of their
16014 # values after options handling.
16015 ac_log="
16016 This file was extended by $as_me, which was
16017 generated by GNU Autoconf 2.69. Invocation command line was
16019 CONFIG_FILES = $CONFIG_FILES
16020 CONFIG_HEADERS = $CONFIG_HEADERS
16021 CONFIG_LINKS = $CONFIG_LINKS
16022 CONFIG_COMMANDS = $CONFIG_COMMANDS
16023 $ $0 $@
16025 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16028 _ACEOF
16030 case $ac_config_files in *"
16031 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16032 esac
16034 case $ac_config_headers in *"
16035 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16036 esac
16039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040 # Files that config.status was made for.
16041 config_files="$ac_config_files"
16042 config_headers="$ac_config_headers"
16043 config_commands="$ac_config_commands"
16045 _ACEOF
16047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16048 ac_cs_usage="\
16049 \`$as_me' instantiates files and other configuration actions
16050 from templates according to the current configuration. Unless the files
16051 and actions are specified as TAGs, all are instantiated by default.
16053 Usage: $0 [OPTION]... [TAG]...
16055 -h, --help print this help, then exit
16056 -V, --version print version number and configuration settings, then exit
16057 --config print configuration, then exit
16058 -q, --quiet, --silent
16059 do not print progress messages
16060 -d, --debug don't remove temporary files
16061 --recheck update $as_me by reconfiguring in the same conditions
16062 --file=FILE[:TEMPLATE]
16063 instantiate the configuration file FILE
16064 --header=FILE[:TEMPLATE]
16065 instantiate the configuration header FILE
16067 Configuration files:
16068 $config_files
16070 Configuration headers:
16071 $config_headers
16073 Configuration commands:
16074 $config_commands
16076 Report bugs to the package provider."
16078 _ACEOF
16079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16080 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16081 ac_cs_version="\\
16082 config.status
16083 configured by $0, generated by GNU Autoconf 2.69,
16084 with options \\"\$ac_cs_config\\"
16086 Copyright (C) 2012 Free Software Foundation, Inc.
16087 This config.status script is free software; the Free Software Foundation
16088 gives unlimited permission to copy, distribute and modify it."
16090 ac_pwd='$ac_pwd'
16091 srcdir='$srcdir'
16092 test -n "\$AWK" || AWK=awk
16093 _ACEOF
16095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096 # The default lists apply if the user does not specify any file.
16097 ac_need_defaults=:
16098 while test $# != 0
16100 case $1 in
16101 --*=?*)
16102 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16103 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16104 ac_shift=:
16106 --*=)
16107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16108 ac_optarg=
16109 ac_shift=:
16112 ac_option=$1
16113 ac_optarg=$2
16114 ac_shift=shift
16116 esac
16118 case $ac_option in
16119 # Handling of the options.
16120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16121 ac_cs_recheck=: ;;
16122 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16123 $as_echo "$ac_cs_version"; exit ;;
16124 --config | --confi | --conf | --con | --co | --c )
16125 $as_echo "$ac_cs_config"; exit ;;
16126 --debug | --debu | --deb | --de | --d | -d )
16127 debug=: ;;
16128 --file | --fil | --fi | --f )
16129 $ac_shift
16130 case $ac_optarg in
16131 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16132 '') as_fn_error $? "missing file argument" ;;
16133 esac
16134 as_fn_append CONFIG_FILES " '$ac_optarg'"
16135 ac_need_defaults=false;;
16136 --header | --heade | --head | --hea )
16137 $ac_shift
16138 case $ac_optarg in
16139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16140 esac
16141 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16142 ac_need_defaults=false;;
16143 --he | --h)
16144 # Conflict between --help and --header
16145 as_fn_error $? "ambiguous option: \`$1'
16146 Try \`$0 --help' for more information.";;
16147 --help | --hel | -h )
16148 $as_echo "$ac_cs_usage"; exit ;;
16149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16150 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16151 ac_cs_silent=: ;;
16153 # This is an error.
16154 -*) as_fn_error $? "unrecognized option: \`$1'
16155 Try \`$0 --help' for more information." ;;
16157 *) as_fn_append ac_config_targets " $1"
16158 ac_need_defaults=false ;;
16160 esac
16161 shift
16162 done
16164 ac_configure_extra_args=
16166 if $ac_cs_silent; then
16167 exec 6>/dev/null
16168 ac_configure_extra_args="$ac_configure_extra_args --silent"
16171 _ACEOF
16172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16173 if \$ac_cs_recheck; then
16174 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16175 shift
16176 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16177 CONFIG_SHELL='$SHELL'
16178 export CONFIG_SHELL
16179 exec "\$@"
16182 _ACEOF
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16184 exec 5>>config.log
16186 echo
16187 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16188 ## Running $as_me. ##
16189 _ASBOX
16190 $as_echo "$ac_log"
16191 } >&5
16193 _ACEOF
16194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16196 # INIT-COMMANDS
16198 aros_tools_dir=${aros_tools_dir}
16201 aros_host_exe_suffix=${aros_host_exe_suffix}
16202 aros_tools_dir=${aros_tools_dir}
16203 aros_target_cpu=${aros_target_cpu}
16204 aros_target_arch=${aros_target_arch}
16205 aros_target_suffix=${aros_target_suffix}
16206 orig_target_nm=${orig_target_nm}
16207 orig_target_as=${orig_target_as}
16208 orig_target_ar=${orig_target_ar}
16209 orig_target_ranlib=${orig_target_ranlib}
16210 orig_target_objdump=${orig_target_objdump}
16211 orig_target_objcopy=${orig_target_objcopy}
16212 orig_target_strip=${orig_target_strip}
16213 aros_kernel_ld=${aros_kernel_ld}
16217 aros_host_exe_suffix=${aros_host_exe_suffix}
16218 aros_tools_dir=${aros_tools_dir}
16219 aros_target_cpu=${aros_target_cpu}
16220 aros_target_arch=${aros_target_arch}
16221 aros_target_suffix=${aros_target_suffix}
16222 aros_kernel_ld=${aros_kernel_ld}
16226 aros_host_exe_suffix=${aros_host_exe_suffix}
16227 aros_tools_dir=${aros_tools_dir}
16228 aros_target_cpu=${aros_target_cpu}
16229 aros_target_arch=${aros_target_arch}
16230 aros_target_suffix=${aros_target_suffix}
16234 _ACEOF
16236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16238 # Handling of arguments.
16239 for ac_config_target in $ac_config_targets
16241 case $ac_config_target in
16242 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16243 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16244 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16245 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16246 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16247 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16248 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16249 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16250 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16251 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16252 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16253 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16254 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16255 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16256 "${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" ;;
16257 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16258 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16259 "${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" ;;
16260 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16261 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16262 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in" ;;
16263 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in" ;;
16264 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in" ;;
16265 "${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" ;;
16266 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16268 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16269 esac
16270 done
16273 # If the user did not use the arguments to specify the items to instantiate,
16274 # then the envvar interface is used. Set only those that are not.
16275 # We use the long form for the default assignment because of an extremely
16276 # bizarre bug on SunOS 4.1.3.
16277 if $ac_need_defaults; then
16278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16279 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16280 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16283 # Have a temporary directory for convenience. Make it in the build tree
16284 # simply because there is no reason against having it here, and in addition,
16285 # creating and moving files from /tmp can sometimes cause problems.
16286 # Hook for its removal unless debugging.
16287 # Note that there is a small window in which the directory will not be cleaned:
16288 # after its creation but before its name has been assigned to `$tmp'.
16289 $debug ||
16291 tmp= ac_tmp=
16292 trap 'exit_status=$?
16293 : "${ac_tmp:=$tmp}"
16294 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16296 trap 'as_fn_exit 1' 1 2 13 15
16298 # Create a (secure) tmp directory for tmp files.
16301 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16302 test -d "$tmp"
16303 } ||
16305 tmp=./conf$$-$RANDOM
16306 (umask 077 && mkdir "$tmp")
16307 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16308 ac_tmp=$tmp
16310 # Set up the scripts for CONFIG_FILES section.
16311 # No need to generate them if there are no CONFIG_FILES.
16312 # This happens for instance with `./config.status config.h'.
16313 if test -n "$CONFIG_FILES"; then
16316 ac_cr=`echo X | tr X '\015'`
16317 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16318 # But we know of no other shell where ac_cr would be empty at this
16319 # point, so we can use a bashism as a fallback.
16320 if test "x$ac_cr" = x; then
16321 eval ac_cr=\$\'\\r\'
16323 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16324 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16325 ac_cs_awk_cr='\\r'
16326 else
16327 ac_cs_awk_cr=$ac_cr
16330 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16331 _ACEOF
16335 echo "cat >conf$$subs.awk <<_ACEOF" &&
16336 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16337 echo "_ACEOF"
16338 } >conf$$subs.sh ||
16339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16340 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16341 ac_delim='%!_!# '
16342 for ac_last_try in false false false false false :; do
16343 . ./conf$$subs.sh ||
16344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16346 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16347 if test $ac_delim_n = $ac_delim_num; then
16348 break
16349 elif $ac_last_try; then
16350 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16351 else
16352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16354 done
16355 rm -f conf$$subs.sh
16357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16358 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16359 _ACEOF
16360 sed -n '
16362 s/^/S["/; s/!.*/"]=/
16365 s/^[^!]*!//
16366 :repl
16367 t repl
16368 s/'"$ac_delim"'$//
16369 t delim
16372 s/\(.\{148\}\)..*/\1/
16373 t more1
16374 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16377 b repl
16378 :more1
16379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16382 s/.\{148\}//
16383 t nl
16384 :delim
16386 s/\(.\{148\}\)..*/\1/
16387 t more2
16388 s/["\\]/\\&/g; s/^/"/; s/$/"/
16391 :more2
16392 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16395 s/.\{148\}//
16396 t delim
16397 ' <conf$$subs.awk | sed '
16398 /^[^""]/{
16400 s/\n//
16402 ' >>$CONFIG_STATUS || ac_write_fail=1
16403 rm -f conf$$subs.awk
16404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16405 _ACAWK
16406 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16407 for (key in S) S_is_set[key] = 1
16408 FS = "\a"
16412 line = $ 0
16413 nfields = split(line, field, "@")
16414 substed = 0
16415 len = length(field[1])
16416 for (i = 2; i < nfields; i++) {
16417 key = field[i]
16418 keylen = length(key)
16419 if (S_is_set[key]) {
16420 value = S[key]
16421 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16422 len += length(value) + length(field[++i])
16423 substed = 1
16424 } else
16425 len += 1 + keylen
16428 print line
16431 _ACAWK
16432 _ACEOF
16433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16434 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16435 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16436 else
16438 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16439 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16440 _ACEOF
16442 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16443 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16444 # trailing colons and then remove the whole line if VPATH becomes empty
16445 # (actually we leave an empty line to preserve line numbers).
16446 if test "x$srcdir" = x.; then
16447 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16449 s///
16450 s/^/:/
16451 s/[ ]*$/:/
16452 s/:\$(srcdir):/:/g
16453 s/:\${srcdir}:/:/g
16454 s/:@srcdir@:/:/g
16455 s/^:*//
16456 s/:*$//
16458 s/\(=[ ]*\).*/\1/
16460 s/\n//
16461 s/^[^=]*=[ ]*$//
16465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16466 fi # test -n "$CONFIG_FILES"
16468 # Set up the scripts for CONFIG_HEADERS section.
16469 # No need to generate them if there are no CONFIG_HEADERS.
16470 # This happens for instance with `./config.status Makefile'.
16471 if test -n "$CONFIG_HEADERS"; then
16472 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16473 BEGIN {
16474 _ACEOF
16476 # Transform confdefs.h into an awk script `defines.awk', embedded as
16477 # here-document in config.status, that substitutes the proper values into
16478 # config.h.in to produce config.h.
16480 # Create a delimiter string that does not exist in confdefs.h, to ease
16481 # handling of long lines.
16482 ac_delim='%!_!# '
16483 for ac_last_try in false false :; do
16484 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16485 if test -z "$ac_tt"; then
16486 break
16487 elif $ac_last_try; then
16488 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16489 else
16490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16492 done
16494 # For the awk script, D is an array of macro values keyed by name,
16495 # likewise P contains macro parameters if any. Preserve backslash
16496 # newline sequences.
16498 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16499 sed -n '
16500 s/.\{148\}/&'"$ac_delim"'/g
16501 t rset
16502 :rset
16503 s/^[ ]*#[ ]*define[ ][ ]*/ /
16504 t def
16506 :def
16507 s/\\$//
16508 t bsnl
16509 s/["\\]/\\&/g
16510 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16511 D["\1"]=" \3"/p
16512 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16514 :bsnl
16515 s/["\\]/\\&/g
16516 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16517 D["\1"]=" \3\\\\\\n"\\/p
16518 t cont
16519 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16520 t cont
16522 :cont
16524 s/.\{148\}/&'"$ac_delim"'/g
16525 t clear
16526 :clear
16527 s/\\$//
16528 t bsnlc
16529 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16531 :bsnlc
16532 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16533 b cont
16534 ' <confdefs.h | sed '
16535 s/'"$ac_delim"'/"\\\
16536 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16539 for (key in D) D_is_set[key] = 1
16540 FS = "\a"
16542 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16543 line = \$ 0
16544 split(line, arg, " ")
16545 if (arg[1] == "#") {
16546 defundef = arg[2]
16547 mac1 = arg[3]
16548 } else {
16549 defundef = substr(arg[1], 2)
16550 mac1 = arg[2]
16552 split(mac1, mac2, "(") #)
16553 macro = mac2[1]
16554 prefix = substr(line, 1, index(line, defundef) - 1)
16555 if (D_is_set[macro]) {
16556 # Preserve the white space surrounding the "#".
16557 print prefix "define", macro P[macro] D[macro]
16558 next
16559 } else {
16560 # Replace #undef with comments. This is necessary, for example,
16561 # in the case of _POSIX_SOURCE, which is predefined and required
16562 # on some systems where configure will not decide to define it.
16563 if (defundef == "undef") {
16564 print "/*", prefix defundef, macro, "*/"
16565 next
16569 { print }
16570 _ACAWK
16571 _ACEOF
16572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16573 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16574 fi # test -n "$CONFIG_HEADERS"
16577 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16578 shift
16579 for ac_tag
16581 case $ac_tag in
16582 :[FHLC]) ac_mode=$ac_tag; continue;;
16583 esac
16584 case $ac_mode$ac_tag in
16585 :[FHL]*:*);;
16586 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16587 :[FH]-) ac_tag=-:-;;
16588 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16589 esac
16590 ac_save_IFS=$IFS
16591 IFS=:
16592 set x $ac_tag
16593 IFS=$ac_save_IFS
16594 shift
16595 ac_file=$1
16596 shift
16598 case $ac_mode in
16599 :L) ac_source=$1;;
16600 :[FH])
16601 ac_file_inputs=
16602 for ac_f
16604 case $ac_f in
16605 -) ac_f="$ac_tmp/stdin";;
16606 *) # Look for the file first in the build tree, then in the source tree
16607 # (if the path is not absolute). The absolute path cannot be DOS-style,
16608 # because $ac_f cannot contain `:'.
16609 test -f "$ac_f" ||
16610 case $ac_f in
16611 [\\/$]*) false;;
16612 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16613 esac ||
16614 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16615 esac
16616 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16617 as_fn_append ac_file_inputs " '$ac_f'"
16618 done
16620 # Let's still pretend it is `configure' which instantiates (i.e., don't
16621 # use $as_me), people would be surprised to read:
16622 # /* config.h. Generated by config.status. */
16623 configure_input='Generated from '`
16624 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16625 `' by configure.'
16626 if test x"$ac_file" != x-; then
16627 configure_input="$ac_file. $configure_input"
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16629 $as_echo "$as_me: creating $ac_file" >&6;}
16631 # Neutralize special characters interpreted by sed in replacement strings.
16632 case $configure_input in #(
16633 *\&* | *\|* | *\\* )
16634 ac_sed_conf_input=`$as_echo "$configure_input" |
16635 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16636 *) ac_sed_conf_input=$configure_input;;
16637 esac
16639 case $ac_tag in
16640 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16642 esac
16644 esac
16646 ac_dir=`$as_dirname -- "$ac_file" ||
16647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16648 X"$ac_file" : 'X\(//\)[^/]' \| \
16649 X"$ac_file" : 'X\(//\)$' \| \
16650 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16651 $as_echo X"$ac_file" |
16652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16653 s//\1/
16656 /^X\(\/\/\)[^/].*/{
16657 s//\1/
16660 /^X\(\/\/\)$/{
16661 s//\1/
16664 /^X\(\/\).*/{
16665 s//\1/
16668 s/.*/./; q'`
16669 as_dir="$ac_dir"; as_fn_mkdir_p
16670 ac_builddir=.
16672 case "$ac_dir" in
16673 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16675 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16676 # A ".." for each directory in $ac_dir_suffix.
16677 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16678 case $ac_top_builddir_sub in
16679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16681 esac ;;
16682 esac
16683 ac_abs_top_builddir=$ac_pwd
16684 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16685 # for backward compatibility:
16686 ac_top_builddir=$ac_top_build_prefix
16688 case $srcdir in
16689 .) # We are building in place.
16690 ac_srcdir=.
16691 ac_top_srcdir=$ac_top_builddir_sub
16692 ac_abs_top_srcdir=$ac_pwd ;;
16693 [\\/]* | ?:[\\/]* ) # Absolute name.
16694 ac_srcdir=$srcdir$ac_dir_suffix;
16695 ac_top_srcdir=$srcdir
16696 ac_abs_top_srcdir=$srcdir ;;
16697 *) # Relative name.
16698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16699 ac_top_srcdir=$ac_top_build_prefix$srcdir
16700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16701 esac
16702 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16705 case $ac_mode in
16708 # CONFIG_FILE
16711 _ACEOF
16713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16714 # If the template does not know about datarootdir, expand it.
16715 # FIXME: This hack should be removed a few years after 2.60.
16716 ac_datarootdir_hack=; ac_datarootdir_seen=
16717 ac_sed_dataroot='
16718 /datarootdir/ {
16722 /@datadir@/p
16723 /@docdir@/p
16724 /@infodir@/p
16725 /@localedir@/p
16726 /@mandir@/p'
16727 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16728 *datarootdir*) ac_datarootdir_seen=yes;;
16729 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16731 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16732 _ACEOF
16733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16734 ac_datarootdir_hack='
16735 s&@datadir@&$datadir&g
16736 s&@docdir@&$docdir&g
16737 s&@infodir@&$infodir&g
16738 s&@localedir@&$localedir&g
16739 s&@mandir@&$mandir&g
16740 s&\\\${datarootdir}&$datarootdir&g' ;;
16741 esac
16742 _ACEOF
16744 # Neutralize VPATH when `$srcdir' = `.'.
16745 # Shell code in configure.ac might set extrasub.
16746 # FIXME: do we really want to maintain this feature?
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 ac_sed_extra="$ac_vpsub
16749 $extrasub
16750 _ACEOF
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16754 s|@configure_input@|$ac_sed_conf_input|;t t
16755 s&@top_builddir@&$ac_top_builddir_sub&;t t
16756 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16757 s&@srcdir@&$ac_srcdir&;t t
16758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16759 s&@top_srcdir@&$ac_top_srcdir&;t t
16760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16761 s&@builddir@&$ac_builddir&;t t
16762 s&@abs_builddir@&$ac_abs_builddir&;t t
16763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16764 $ac_datarootdir_hack
16766 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16767 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16770 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16771 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16772 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16774 which seems to be undefined. Please make sure it is defined" >&5
16775 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16776 which seems to be undefined. Please make sure it is defined" >&2;}
16778 rm -f "$ac_tmp/stdin"
16779 case $ac_file in
16780 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16781 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16782 esac \
16783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16787 # CONFIG_HEADER
16789 if test x"$ac_file" != x-; then
16791 $as_echo "/* $configure_input */" \
16792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16793 } >"$ac_tmp/config.h" \
16794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16795 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16797 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16798 else
16799 rm -f "$ac_file"
16800 mv "$ac_tmp/config.h" "$ac_file" \
16801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16803 else
16804 $as_echo "/* $configure_input */" \
16805 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16806 || as_fn_error $? "could not create -" "$LINENO" 5
16810 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16811 $as_echo "$as_me: executing $ac_file commands" >&6;}
16813 esac
16816 case $ac_file$ac_mode in
16817 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16818 "binutils-support":C)
16819 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16820 mkdir -p $prefix
16821 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16823 chmod a+x ${prefix2}-ld
16825 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16826 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16827 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16828 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16829 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16830 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16831 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16833 "elf-compiler-support":C)
16834 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16835 mkdir -p $prefix
16836 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16838 chmod a+x ${prefix2}-gcc
16840 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16842 "host-compiler-wrapper-support":C)
16843 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16844 mkdir -p $prefix
16845 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16847 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16850 esac
16851 done # for ac_tag
16854 as_fn_exit 0
16855 _ACEOF
16856 ac_clean_files=$ac_clean_files_save
16858 test $ac_write_fail = 0 ||
16859 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16862 # configure is writing to config.log, and then calls config.status.
16863 # config.status does its own redirection, appending to config.log.
16864 # Unfortunately, on DOS this fails, as config.log is still kept open
16865 # by configure, so config.status won't be able to write to it; its
16866 # output is simply discarded. So we exec the FD to /dev/null,
16867 # effectively closing config.log, so it can be properly (re)opened and
16868 # appended to by config.status. When coming back to configure, we
16869 # need to make the FD available again.
16870 if test "$no_create" != yes; then
16871 ac_cs_success=:
16872 ac_config_status_args=
16873 test "$silent" = yes &&
16874 ac_config_status_args="$ac_config_status_args --quiet"
16875 exec 5>/dev/null
16876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16877 exec 5>>config.log
16878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16879 # would make configure fail if this is the last instruction.
16880 $ac_cs_success || as_fn_exit 1
16882 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16884 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16889 #XXX compatability...
16890 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16892 if test -n "$aros_shared_cflags" ; then
16893 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16894 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg