finish transitioning from arosmesa -> mesa3dgl.library
[AROS.git] / configure
blobf77f537452b55f02a3ce8b6f35b044d1a0355d54
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_float_abi
643 gcc_default_fpu
644 gcc_default_cpu_tune
645 gcc_default_cpu
646 aros_ios_sdk
647 aros_ios_version
648 aros_ios_platform
649 aros_enable_mmu
650 aros_nesting_supervisor
651 aros_palm_debug_hack
652 ENABLE_EXECSMP
653 aros_serial_debug
654 aros_host_sdl_libs
655 aros_host_sdl_cflags
656 aros_host_x11_libdirs
657 aros_host_x11_includes
658 DO_VIDMODE_SUPPORT
659 DO_XSHM_SUPPORT
660 aros_default_wbdepth
661 aros_default_wbheight
662 aros_default_wbwidth
663 oss_library_target
664 pci_hidd_target
665 sdl_hidd_target
666 unixgfx_hidd_target
667 aros_cflags_format_security
668 aros_cflags_strict_overflow
669 aros_cflags_enum_compare
670 aros_cflags_array_bounds
671 aros_cflags_unused_but_set_variable
672 crosstools_cxx_target
673 crosstools_target
674 aros_isa_flags
675 aros_optimization_cflags
676 aros_target_strip_flags
677 aros_target_genmap
678 aros_debug_ldflags
679 aros_debug_aflags
680 aros_debug_cflags
681 aros_target_cflags
682 aros_kernel_ldflags
683 aros_kernel_objcflags
684 aros_kernel_includes
685 aros_kernel_cflags
686 aros_kernel_sysroot
687 aros_config_ldflags
688 aros_config_aflags
689 aros_config_cflags
690 aros_config_sysroot
691 aros_shared_ldflags
692 aros_shared_aflags
693 aros_shared_cflags
694 aros_arch_libs
695 aros_compiler_libs
696 spec_obj_format
697 aros_object_format
698 aros_shared_ld
699 aros_shared_default
700 aros_target_nm
701 aros_target_strip
702 aros_target_objcopy
703 aros_target_objdump
704 aros_target_cc_path
705 aros_target_cc_includes
706 aros_target_ld
707 aros_target_as
708 aros_target_cpp
709 aros_target_cxx
710 aros_target_cc
711 aros_plain_ar
712 aros_plain_nm
713 aros_target_ranlib
714 aros_target_ar
715 aros_target_suffix
716 aros_target_variant
717 aros_target_cpu
718 aros_target_family
719 aros_target_arch
720 aros_target_bootloader
721 aros_target_iconset
722 aros_target_guitheme
723 aros_tools_dir
724 aros_host_lib_suffix
725 aros_host_exe_suffix
726 aros_host_mkargs
727 aros_host_mkdep
728 aros_host_debug
729 aros_host_ldflags
730 gnu89_inline
731 aros_host_cxxflags
732 aros_host_cflags
733 aros_host_make
734 aros_host_cxx
735 aros_host_cc
736 aros_host_cpp
737 aros_host_cpu
738 aros_host_arch
739 aros_cc_pre
740 aros_amigaos_compliance
741 AROS_PORTSSRCDIR
742 AROS_CROSSTOOLSDIR
743 SRCDIR
744 AROS_BUILDDIR_UNIX
745 AROS_BUILDDIR
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 XMKMF
755 aros_cflags_iquote_end
756 aros_cflags_iquote
757 kernel_cflags_iquote_end
758 kernel_cflags_iquote
759 host_cflags_iquote_end
760 host_cflags_iquote
761 aros_target_nostdlib_ldflags
762 aros_target_detach_ldflags
763 aros_target_nix_ldflags
764 aros_target_nostartup_ldflags
765 aros_target_nostdinc_cflags
766 aros_kernel_rescomp
767 orig_target_objdump
768 orig_target_objcopy
769 orig_target_strip
770 orig_target_nm
771 orig_target_ranlib
772 orig_target_ar
773 orig_target_as
774 orig_target_ld
775 orig_target_cxx
776 orig_target_cc
777 orig_target_cpp
778 aros_kernel_objdump
779 aros_kernel_objcopy
780 aros_kernel_strip
781 aros_kernel_nm
782 aros_kernel_ranlib
783 aros_kernel_ar
784 aros_kernel_as
785 aros_kernel_ld
786 aros_kernel_cxx
787 aros_kernel_cc
788 aros_kernel_cpp
789 target_gcc_version
791 android_tool
792 CCACHE
793 DISTCC
794 LIBOBJS
795 EGREP
796 GREP
798 TEST
801 pkgpyexecdir
802 pyexecdir
803 pkgpythondir
804 pythondir
805 PYTHON_PLATFORM
806 PYTHON_EXEC_PREFIX
807 PYTHON_PREFIX
808 PYTHON_VERSION
809 PYTHON
810 PATCH
811 CHMOD
813 PPMTOILBM
814 PNGTOPNM
815 FLEX
816 BISON
819 UNIQ
820 SORT
821 TOUCH
822 MKDIR
823 ECHO
827 aros_host_strip
828 aros_host_ranlib
829 aros_host_ar
830 aros_host_automake
831 aros_host_autoheader
832 aros_host_autoconf
833 aros_host_aclocal
834 aros_host_ld
835 MMAKE
838 ac_ct_CC
839 CFLAGS
841 OBJEXT
842 EXEEXT
843 ac_ct_CXX
844 CPPFLAGS
845 LDFLAGS
846 CXXFLAGS
848 host_os
849 host_vendor
850 host_cpu
851 host
852 build_os
853 build_vendor
854 build_cpu
855 build
856 target_alias
857 host_alias
858 build_alias
859 LIBS
860 ECHO_T
861 ECHO_N
862 ECHO_C
863 DEFS
864 mandir
865 localedir
866 libdir
867 psdir
868 pdfdir
869 dvidir
870 htmldir
871 infodir
872 docdir
873 oldincludedir
874 includedir
875 localstatedir
876 sharedstatedir
877 sysconfdir
878 datadir
879 datarootdir
880 libexecdir
881 sbindir
882 bindir
883 program_transform_name
884 prefix
885 exec_prefix
886 PACKAGE_URL
887 PACKAGE_BUGREPORT
888 PACKAGE_STRING
889 PACKAGE_VERSION
890 PACKAGE_TARNAME
891 PACKAGE_NAME
892 PATH_SEPARATOR
893 SHELL'
894 ac_subst_files=''
895 ac_user_opts='
896 enable_option_checking
897 enable_build_type
898 enable_debug
899 enable_distcc
900 enable_ccache
901 with_kernel_gcc_version
902 with_optimization
903 with_paranoia
904 enable_target_variant
905 with_xcode
906 with_sdk_version
907 with_sdk
908 with_ndk
909 with_ndk_version
910 with_apk_version
911 enable_amigaos_compliance
912 with_kernel_toolchain_prefix
913 with_elf_toolchain_prefix
914 with_aros_toolchain
915 enable_crosstools
916 with_aros_toolchain_install
917 with_binutils_version
918 with_gcc_version
919 enable_objc
920 enable_java
921 with_cpu
922 with_fpu
923 with_float
924 with_portssources
925 with_bootloader
926 with_iconset
927 with_theme
928 enable_includes
929 with_resolution
930 with_serial_debug
931 enable_palm_debug_hack
932 enable_usb30_code
933 enable_nesting_supervisor
934 enable_mmu
935 enable_x11_hidd
936 with_x
937 enable_x11_shm
938 enable_x11_vidmode
939 enable_sdl_hidd
940 with_sdl_prefix
941 with_sdl_exec_prefix
942 enable_sdltest
943 enable_dbus
945 ac_precious_vars='build_alias
946 host_alias
947 target_alias
949 CXXFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
955 CFLAGS
957 PYTHON
958 XMKMF'
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 ac_unrecognized_opts=
965 ac_unrecognized_sep=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1020 case $ac_option in
1021 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *=) ac_optarg= ;;
1023 *) ac_optarg=yes ;;
1024 esac
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1030 ac_dashdash=yes ;;
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1052 -datadir | --datadir | --datadi | --datad)
1053 ac_prev=datadir ;;
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid feature name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=no ;;
1080 -docdir | --docdir | --docdi | --doc | --do)
1081 ac_prev=docdir ;;
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086 ac_prev=dvidir ;;
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1090 -enable-* | --enable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid feature name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "enable_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval enable_$ac_useropt=\$ac_optarg ;;
1106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108 | --exec | --exe | --ex)
1109 ac_prev=exec_prefix ;;
1110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112 | --exec=* | --exe=* | --ex=*)
1113 exec_prefix=$ac_optarg ;;
1115 -gas | --gas | --ga | --g)
1116 # Obsolete; use --with-gas.
1117 with_gas=yes ;;
1119 -help | --help | --hel | --he | -h)
1120 ac_init_help=long ;;
1121 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122 ac_init_help=recursive ;;
1123 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124 ac_init_help=short ;;
1126 -host | --host | --hos | --ho)
1127 ac_prev=host_alias ;;
1128 -host=* | --host=* | --hos=* | --ho=*)
1129 host_alias=$ac_optarg ;;
1131 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132 ac_prev=htmldir ;;
1133 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134 | --ht=*)
1135 htmldir=$ac_optarg ;;
1137 -includedir | --includedir | --includedi | --included | --include \
1138 | --includ | --inclu | --incl | --inc)
1139 ac_prev=includedir ;;
1140 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141 | --includ=* | --inclu=* | --incl=* | --inc=*)
1142 includedir=$ac_optarg ;;
1144 -infodir | --infodir | --infodi | --infod | --info | --inf)
1145 ac_prev=infodir ;;
1146 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147 infodir=$ac_optarg ;;
1149 -libdir | --libdir | --libdi | --libd)
1150 ac_prev=libdir ;;
1151 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152 libdir=$ac_optarg ;;
1154 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155 | --libexe | --libex | --libe)
1156 ac_prev=libexecdir ;;
1157 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158 | --libexe=* | --libex=* | --libe=*)
1159 libexecdir=$ac_optarg ;;
1161 -localedir | --localedir | --localedi | --localed | --locale)
1162 ac_prev=localedir ;;
1163 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164 localedir=$ac_optarg ;;
1166 -localstatedir | --localstatedir | --localstatedi | --localstated \
1167 | --localstate | --localstat | --localsta | --localst | --locals)
1168 ac_prev=localstatedir ;;
1169 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171 localstatedir=$ac_optarg ;;
1173 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174 ac_prev=mandir ;;
1175 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176 mandir=$ac_optarg ;;
1178 -nfp | --nfp | --nf)
1179 # Obsolete; use --without-fp.
1180 with_fp=no ;;
1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183 | --no-cr | --no-c | -n)
1184 no_create=yes ;;
1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 no_recursion=yes ;;
1190 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192 | --oldin | --oldi | --old | --ol | --o)
1193 ac_prev=oldincludedir ;;
1194 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197 oldincludedir=$ac_optarg ;;
1199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200 ac_prev=prefix ;;
1201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202 prefix=$ac_optarg ;;
1204 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205 | --program-pre | --program-pr | --program-p)
1206 ac_prev=program_prefix ;;
1207 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209 program_prefix=$ac_optarg ;;
1211 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212 | --program-suf | --program-su | --program-s)
1213 ac_prev=program_suffix ;;
1214 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216 program_suffix=$ac_optarg ;;
1218 -program-transform-name | --program-transform-name \
1219 | --program-transform-nam | --program-transform-na \
1220 | --program-transform-n | --program-transform- \
1221 | --program-transform | --program-transfor \
1222 | --program-transfo | --program-transf \
1223 | --program-trans | --program-tran \
1224 | --progr-tra | --program-tr | --program-t)
1225 ac_prev=program_transform_name ;;
1226 -program-transform-name=* | --program-transform-name=* \
1227 | --program-transform-nam=* | --program-transform-na=* \
1228 | --program-transform-n=* | --program-transform-=* \
1229 | --program-transform=* | --program-transfor=* \
1230 | --program-transfo=* | --program-transf=* \
1231 | --program-trans=* | --program-tran=* \
1232 | --progr-tra=* | --program-tr=* | --program-t=*)
1233 program_transform_name=$ac_optarg ;;
1235 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236 ac_prev=pdfdir ;;
1237 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238 pdfdir=$ac_optarg ;;
1240 -psdir | --psdir | --psdi | --psd | --ps)
1241 ac_prev=psdir ;;
1242 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 psdir=$ac_optarg ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 silent=yes ;;
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 ac_prev=sbindir ;;
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 | --sbi=* | --sb=*)
1253 sbindir=$ac_optarg ;;
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1258 | --sha | --sh)
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 | --sha=* | --sh=*)
1264 sharedstatedir=$ac_optarg ;;
1266 -site | --site | --sit)
1267 ac_prev=site ;;
1268 -site=* | --site=* | --sit=*)
1269 site=$ac_optarg ;;
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 ac_prev=srcdir ;;
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 verbose=yes ;;
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1294 -with-* | --with-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=\$ac_optarg ;;
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=no ;;
1326 --x)
1327 # Obsolete; use --with-x.
1328 with_x=yes ;;
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1344 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information"
1348 *=*)
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' | [0-9]* | *[!_$as_cr_alnum]* )
1353 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1354 esac
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1366 esac
1367 done
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error $? "missing argument to $ac_option"
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1376 no) ;;
1377 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 esac
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1390 case $ac_val in
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1394 esac
1395 # Be sure to have absolute directory names.
1396 case $ac_val in
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 esac
1400 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1401 done
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1406 build=$build_alias
1407 host=$host_alias
1408 target=$target_alias
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422 test "$silent" = yes && exec 6>/dev/null
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error $? "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error $? "pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 s//\1/
1447 /^X\(\/\/\)[^/].*/{
1448 s//\1/
1451 /^X\(\/\/\)$/{
1452 s//\1/
1455 /^X\(\/\).*/{
1456 s//\1/
1459 s/.*/./; q'`
1460 srcdir=$ac_confdir
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 srcdir=..
1464 else
1465 ac_srcdir_defaulted=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1474 pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499 \`configure' configures this package to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1508 Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking ...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1552 _ACEOF
1554 cat <<\_ACEOF
1556 X features:
1557 --x-includes=DIR X include files are in DIR
1558 --x-libraries=DIR X library files are in DIR
1560 System types:
1561 --build=BUILD configure for building on BUILD [guessed]
1562 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1563 _ACEOF
1566 if test -n "$ac_init_help"; then
1568 cat <<\_ACEOF
1570 Optional Features:
1571 --disable-option-checking ignore unrecognized --enable/--with options
1572 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1573 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1574 --enable-build-type=TYPE
1575 Select the build type. Available types are:
1576 personal, nightly, snapshot, milestone, release. Do
1577 NOT use this option unless you know what you are
1578 doing! (default=personal)
1579 --enable-debug=list Enable different types of debug. Commas or
1580 whitespaces can be used to separate the items in the
1581 list. Available types of debug are: all, none,
1582 messages, stack, mungwall, modules, symbols. If no
1583 list is provided then "all" is assumed.
1584 (default=none)
1585 --enable-distcc Use distcc as a front end to the compiler
1586 (default=no).
1587 --enable-ccache Use ccache as a front end to the compiler
1588 (default=no).
1589 --enable-target-variant=NAME
1590 Enable a specific target variant(default=none)
1591 --enable-amigaos-compliance=VERSION
1592 Enforce userspace AmigaOS compliance to a specific
1593 KickStart version (default=none).
1594 --disable-crosstools Do not build cross-compiler toolchain
1595 --enable-objc Enable Objectve-C support (default=no)
1596 --enable-java Enable Java support (default=no)
1597 --enable-includes=dir Alternative system include directory
1598 --enable-palm-debug-hack
1599 Enable palm debug output hack in palm native
1600 (default=no)
1601 --enable-usb30-code Enable usb3.0 code (default=no)
1602 --enable-nesting-supervisor
1603 Enable nesting supervisor support in unix
1604 (default=no)
1605 --disable-mmu Disable MMU support (default=enabled)
1606 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1607 --enable-x11-shm use X11 shared memory (default=auto)
1608 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1609 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1610 --disable-sdltest Do not try to compile and run a test SDL program
1611 --enable-dbus Enable DBUS support via dbus.library (default=no)
1613 Optional Packages:
1614 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1615 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1616 --with-kernel-gcc-version=VERSION
1617 Use gcc-VERSION for building bootstrap
1618 --with-optimization=FLAGS
1619 Use optimization flags FLAGS (default=-O2).
1620 --with-paranoia=FLAGS CC flags to enable paranoia
1621 --with-xcode=PATH Specify XCode path for iOS targets
1622 (default=/Developer).
1623 --with-sdk-version=VERSION
1624 Use iOS SDK version VERSION (default=4.1).
1625 --with-sdk=PATH Specify Android SDK path
1626 (default=$default_android_sdk).
1627 --with-ndk=PATH Specify Android NDK path (default=none).
1628 --with-sdk-version=LEVEL
1629 Use Android SDK for API LEVEL (default=12).
1630 --with-ndk-version=LEVEL
1631 Use Android NDK for API LEVEL (default=9).
1632 --with-apk-version=(release|debug)
1633 Which version of AROSBootstrap.apk to compile.
1634 Release version needs key for signing, debug version
1635 will only run in emulator. (default=release)
1636 --with-kernel-toolchain-prefix=...
1637 Specify crosscompile toolchain prefix for kernel
1638 objects
1639 --with-elf-toolchain-prefix=...
1640 Specify crosscompile toolchain prefix to wrap for
1641 AROS objects
1642 --with-aros-toolchain=PREFIX
1643 Specify prebuilt AROS toolchain. Use yes for default
1644 name
1645 --with-aros-toolchain-install=DIR
1646 Where to install or search for cross tools binaries
1647 --with-binutils-version=VERSION
1648 Use binutils-VERSION for building AROS
1649 --with-gcc-version=VERSION
1650 Use gcc-VERSION for building AROS
1651 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1652 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1653 --with-float=<spec> Specify floating point ABI
1654 (default=$gcc_default_float_abi).
1655 --with-portssources=DIR Where to download sourcecode for external ports
1656 --with-bootloader=NAME Use a specific bootloader
1657 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1658 --with-theme=NAME Use a specific GUI Theme
1659 --with-resolution=XRESxYRESxDEPTH
1660 Default resolution of the initial WorkbenchScreen
1661 --with-serial-debug Enable serial debug output in native (default=no)
1662 --with-x use the X Window System
1663 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1664 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1666 Some influential environment variables:
1667 CXX C++ compiler command
1668 CXXFLAGS C++ compiler flags
1669 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1670 nonstandard directory <lib dir>
1671 LIBS libraries to pass to the linker, e.g. -l<library>
1672 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1673 you have headers in a nonstandard directory <include dir>
1674 CC C compiler command
1675 CFLAGS C compiler flags
1676 CPP C preprocessor
1677 PYTHON the Python interpreter
1678 XMKMF Path to xmkmf, Makefile generator for X Window System
1680 Use these variables to override the choices made by `configure' or to help
1681 it to find libraries and programs with nonstandard names/locations.
1683 Report bugs to the package provider.
1684 _ACEOF
1685 ac_status=$?
1688 if test "$ac_init_help" = "recursive"; then
1689 # If there are subdirs, report their specific --help.
1690 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691 test -d "$ac_dir" ||
1692 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1693 continue
1694 ac_builddir=.
1696 case "$ac_dir" in
1697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700 # A ".." for each directory in $ac_dir_suffix.
1701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702 case $ac_top_builddir_sub in
1703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705 esac ;;
1706 esac
1707 ac_abs_top_builddir=$ac_pwd
1708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709 # for backward compatibility:
1710 ac_top_builddir=$ac_top_build_prefix
1712 case $srcdir in
1713 .) # We are building in place.
1714 ac_srcdir=.
1715 ac_top_srcdir=$ac_top_builddir_sub
1716 ac_abs_top_srcdir=$ac_pwd ;;
1717 [\\/]* | ?:[\\/]* ) # Absolute name.
1718 ac_srcdir=$srcdir$ac_dir_suffix;
1719 ac_top_srcdir=$srcdir
1720 ac_abs_top_srcdir=$srcdir ;;
1721 *) # Relative name.
1722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723 ac_top_srcdir=$ac_top_build_prefix$srcdir
1724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1725 esac
1726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1728 cd "$ac_dir" || { ac_status=$?; continue; }
1729 # Check for guested configure.
1730 if test -f "$ac_srcdir/configure.gnu"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733 elif test -f "$ac_srcdir/configure"; then
1734 echo &&
1735 $SHELL "$ac_srcdir/configure" --help=recursive
1736 else
1737 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738 fi || ac_status=$?
1739 cd "$ac_pwd" || { ac_status=$?; break; }
1740 done
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1745 cat <<\_ACEOF
1746 configure
1747 generated by GNU Autoconf 2.69
1749 Copyright (C) 2012 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1752 _ACEOF
1753 exit
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1760 # ac_fn_cxx_try_compile LINENO
1761 # ----------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_cxx_try_compile ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext
1767 if { { ac_try="$ac_compile"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_compile") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_cxx_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest.$ac_objext; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1791 ac_retval=1
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1796 } # ac_fn_cxx_try_compile
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext
1805 if { { ac_try="$ac_compile"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 ac_retval=1
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_c_try_compile
1836 # ac_fn_c_try_cpp LINENO
1837 # ----------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_cpp ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_cpp conftest.$ac_ext"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } > conftest.i && {
1858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=1
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_cpp
1873 # ac_fn_c_try_link LINENO
1874 # -----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_c_try_link ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 test -x conftest$ac_exeext
1901 }; then :
1902 ac_retval=0
1903 else
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1907 ac_retval=1
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_c_try_link
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1923 # accordingly.
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if eval \${$3+:} false; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 else
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1947 else
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1963 else
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.i conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972 yes:no: )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 no:yes:* )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 esac
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 eval "$3=\$ac_header_compiler"
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_try_run LINENO
2007 # ----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2009 # that executables *can* be run.
2010 ac_fn_c_try_run ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if { { ac_try="$ac_link"
2014 case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2017 esac
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>&5
2021 ac_status=$?
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2024 { { case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_try") 2>&5
2031 ac_status=$?
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; }; }; then :
2034 ac_retval=0
2035 else
2036 $as_echo "$as_me: program exited with status $ac_status" >&5
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2040 ac_retval=$ac_status
2042 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2046 } # ac_fn_c_try_run
2048 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2049 # -------------------------------------------------------
2050 # Tests whether HEADER exists and can be compiled using the include files in
2051 # INCLUDES, setting the cache variable VAR accordingly.
2052 ac_fn_c_check_header_compile ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2059 else
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2063 #include <$2>
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 eval "$3=yes"
2067 else
2068 eval "$3=no"
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_header_compile
2079 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2080 # ----------------------------------------------------
2081 # Tries to find if the field MEMBER exists in type AGGR, after including
2082 # INCLUDES, setting cache variable VAR accordingly.
2083 ac_fn_c_check_member ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2087 $as_echo_n "checking for $2.$3... " >&6; }
2088 if eval \${$4+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090 else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2095 main ()
2097 static $2 ac_aggr;
2098 if (ac_aggr.$3)
2099 return 0;
2101 return 0;
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 eval "$4=yes"
2106 else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 static $2 ac_aggr;
2114 if (sizeof ac_aggr.$3)
2115 return 0;
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 eval "$4=yes"
2122 else
2123 eval "$4=no"
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 eval ac_res=\$$4
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_member
2136 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2137 # ---------------------------------------------
2138 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2139 # accordingly.
2140 ac_fn_c_check_decl ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 as_decl_name=`echo $2|sed 's/ *(.*//'`
2144 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2146 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2147 if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2154 main ()
2156 #ifndef $as_decl_name
2157 #ifdef __cplusplus
2158 (void) $as_decl_use;
2159 #else
2160 (void) $as_decl_name;
2161 #endif
2162 #endif
2165 return 0;
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169 eval "$3=yes"
2170 else
2171 eval "$3=no"
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 eval ac_res=\$$3
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 } # ac_fn_c_check_decl
2182 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2183 # -------------------------------------------
2184 # Tests whether TYPE exists after having included INCLUDES, setting cache
2185 # variable VAR accordingly.
2186 ac_fn_c_check_type ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if eval \${$3+:} false; then :
2192 $as_echo_n "(cached) " >&6
2193 else
2194 eval "$3=no"
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2199 main ()
2201 if (sizeof ($2))
2202 return 0;
2204 return 0;
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2212 main ()
2214 if (sizeof (($2)))
2215 return 0;
2217 return 0;
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2222 else
2223 eval "$3=yes"
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234 } # ac_fn_c_check_type
2236 # ac_fn_c_check_func LINENO FUNC VAR
2237 # ----------------------------------
2238 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2239 ac_fn_c_check_func ()
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if eval \${$3+:} false; then :
2245 $as_echo_n "(cached) " >&6
2246 else
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2249 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2251 #define $2 innocuous_$2
2253 /* System header to define __stub macros and hopefully few prototypes,
2254 which can conflict with char $2 (); below.
2255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2256 <limits.h> exists even on freestanding compilers. */
2258 #ifdef __STDC__
2259 # include <limits.h>
2260 #else
2261 # include <assert.h>
2262 #endif
2264 #undef $2
2266 /* Override any GCC internal prototype to avoid an error.
2267 Use char because int might match the return type of a GCC
2268 builtin and then its argument prototype would still apply. */
2269 #ifdef __cplusplus
2270 extern "C"
2271 #endif
2272 char $2 ();
2273 /* The GNU C library defines this for functions which it implements
2274 to always fail with ENOSYS. Some functions are actually named
2275 something starting with __ and the normal name is an alias. */
2276 #if defined __stub_$2 || defined __stub___$2
2277 choke me
2278 #endif
2281 main ()
2283 return $2 ();
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_link "$LINENO"; then :
2289 eval "$3=yes"
2290 else
2291 eval "$3=no"
2293 rm -f core conftest.err conftest.$ac_objext \
2294 conftest$ac_exeext conftest.$ac_ext
2296 eval ac_res=\$$3
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 } # ac_fn_c_check_func
2302 cat >config.log <<_ACEOF
2303 This file contains any messages produced by compilers while
2304 running configure, to aid debugging if configure makes a mistake.
2306 It was created by $as_me, which was
2307 generated by GNU Autoconf 2.69. Invocation command line was
2309 $ $0 $@
2311 _ACEOF
2312 exec 5>>config.log
2314 cat <<_ASUNAME
2315 ## --------- ##
2316 ## Platform. ##
2317 ## --------- ##
2319 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2320 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2321 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2322 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2323 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2325 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2326 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2328 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2329 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2330 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2331 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2332 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2333 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2334 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2336 _ASUNAME
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 $as_echo "PATH: $as_dir"
2344 done
2345 IFS=$as_save_IFS
2347 } >&5
2349 cat >&5 <<_ACEOF
2352 ## ----------- ##
2353 ## Core tests. ##
2354 ## ----------- ##
2356 _ACEOF
2359 # Keep a trace of the command line.
2360 # Strip out --no-create and --no-recursion so they do not pile up.
2361 # Strip out --silent because we don't want to record it for future runs.
2362 # Also quote any args containing shell meta-characters.
2363 # Make two passes to allow for proper duplicate-argument suppression.
2364 ac_configure_args=
2365 ac_configure_args0=
2366 ac_configure_args1=
2367 ac_must_keep_next=false
2368 for ac_pass in 1 2
2370 for ac_arg
2372 case $ac_arg in
2373 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2375 | -silent | --silent | --silen | --sile | --sil)
2376 continue ;;
2377 *\'*)
2378 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2379 esac
2380 case $ac_pass in
2381 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2383 as_fn_append ac_configure_args1 " '$ac_arg'"
2384 if test $ac_must_keep_next = true; then
2385 ac_must_keep_next=false # Got value, back to normal.
2386 else
2387 case $ac_arg in
2388 *=* | --config-cache | -C | -disable-* | --disable-* \
2389 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2390 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2391 | -with-* | --with-* | -without-* | --without-* | --x)
2392 case "$ac_configure_args0 " in
2393 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2394 esac
2396 -* ) ac_must_keep_next=true ;;
2397 esac
2399 as_fn_append ac_configure_args " '$ac_arg'"
2401 esac
2402 done
2403 done
2404 { ac_configure_args0=; unset ac_configure_args0;}
2405 { ac_configure_args1=; unset ac_configure_args1;}
2407 # When interrupted or exit'd, cleanup temporary files, and complete
2408 # config.log. We remove comments because anyway the quotes in there
2409 # would cause problems or look ugly.
2410 # WARNING: Use '\'' to represent an apostrophe within the trap.
2411 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2412 trap 'exit_status=$?
2413 # Save into config.log some information that might help in debugging.
2415 echo
2417 $as_echo "## ---------------- ##
2418 ## Cache variables. ##
2419 ## ---------------- ##"
2420 echo
2421 # The following way of writing the cache mishandles newlines in values,
2423 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in #(
2426 *${as_nl}*)
2427 case $ac_var in #(
2428 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2429 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2430 esac
2431 case $ac_var in #(
2432 _ | IFS | as_nl) ;; #(
2433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2434 *) { eval $ac_var=; unset $ac_var;} ;;
2435 esac ;;
2436 esac
2437 done
2438 (set) 2>&1 |
2439 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2440 *${as_nl}ac_space=\ *)
2441 sed -n \
2442 "s/'\''/'\''\\\\'\'''\''/g;
2443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2444 ;; #(
2446 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 esac |
2449 sort
2451 echo
2453 $as_echo "## ----------------- ##
2454 ## Output variables. ##
2455 ## ----------------- ##"
2456 echo
2457 for ac_var in $ac_subst_vars
2459 eval ac_val=\$$ac_var
2460 case $ac_val in
2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462 esac
2463 $as_echo "$ac_var='\''$ac_val'\''"
2464 done | sort
2465 echo
2467 if test -n "$ac_subst_files"; then
2468 $as_echo "## ------------------- ##
2469 ## File substitutions. ##
2470 ## ------------------- ##"
2471 echo
2472 for ac_var in $ac_subst_files
2474 eval ac_val=\$$ac_var
2475 case $ac_val in
2476 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2477 esac
2478 $as_echo "$ac_var='\''$ac_val'\''"
2479 done | sort
2480 echo
2483 if test -s confdefs.h; then
2484 $as_echo "## ----------- ##
2485 ## confdefs.h. ##
2486 ## ----------- ##"
2487 echo
2488 cat confdefs.h
2489 echo
2491 test "$ac_signal" != 0 &&
2492 $as_echo "$as_me: caught signal $ac_signal"
2493 $as_echo "$as_me: exit $exit_status"
2494 } >&5
2495 rm -f core *.core core.conftest.* &&
2496 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2497 exit $exit_status
2499 for ac_signal in 1 2 13 15; do
2500 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2501 done
2502 ac_signal=0
2504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2505 rm -f -r conftest* confdefs.h
2507 $as_echo "/* confdefs.h */" > confdefs.h
2509 # Predefined preprocessor variables.
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_NAME "$PACKAGE_NAME"
2513 _ACEOF
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2517 _ACEOF
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2521 _ACEOF
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_STRING "$PACKAGE_STRING"
2525 _ACEOF
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2529 _ACEOF
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_URL "$PACKAGE_URL"
2533 _ACEOF
2536 # Let the site file select an alternate cache file if it wants to.
2537 # Prefer an explicitly selected file to automatically selected ones.
2538 ac_site_file1=NONE
2539 ac_site_file2=NONE
2540 if test -n "$CONFIG_SITE"; then
2541 # We do not want a PATH search for config.site.
2542 case $CONFIG_SITE in #((
2543 -*) ac_site_file1=./$CONFIG_SITE;;
2544 */*) ac_site_file1=$CONFIG_SITE;;
2545 *) ac_site_file1=./$CONFIG_SITE;;
2546 esac
2547 elif test "x$prefix" != xNONE; then
2548 ac_site_file1=$prefix/share/config.site
2549 ac_site_file2=$prefix/etc/config.site
2550 else
2551 ac_site_file1=$ac_default_prefix/share/config.site
2552 ac_site_file2=$ac_default_prefix/etc/config.site
2554 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2556 test "x$ac_site_file" = xNONE && continue
2557 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2559 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2560 sed 's/^/| /' "$ac_site_file" >&5
2561 . "$ac_site_file" \
2562 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 as_fn_error $? "failed to load site script $ac_site_file
2565 See \`config.log' for more details" "$LINENO" 5; }
2567 done
2569 if test -r "$cache_file"; then
2570 # Some versions of bash will fail to source /dev/null (special files
2571 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2572 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2574 $as_echo "$as_me: loading cache $cache_file" >&6;}
2575 case $cache_file in
2576 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2577 *) . "./$cache_file";;
2578 esac
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2582 $as_echo "$as_me: creating cache $cache_file" >&6;}
2583 >$cache_file
2586 as_fn_append ac_header_list " stdlib.h"
2587 as_fn_append ac_header_list " unistd.h"
2588 as_fn_append ac_header_list " sys/param.h"
2589 # Check that the precious variables saved in the cache have kept the same
2590 # value.
2591 ac_cache_corrupted=false
2592 for ac_var in $ac_precious_vars; do
2593 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594 eval ac_new_set=\$ac_env_${ac_var}_set
2595 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596 eval ac_new_val=\$ac_env_${ac_var}_value
2597 case $ac_old_set,$ac_new_set in
2598 set,)
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,set)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2606 ,);;
2608 if test "x$ac_old_val" != "x$ac_new_val"; then
2609 # differences in whitespace do not lead to failure.
2610 ac_old_val_w=`echo x $ac_old_val`
2611 ac_new_val_w=`echo x $ac_new_val`
2612 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615 ac_cache_corrupted=:
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619 eval $ac_var=\$ac_old_val
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2625 fi;;
2626 esac
2627 # Pass precious variables to config.status.
2628 if test "$ac_new_set" = set; then
2629 case $ac_new_val in
2630 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2631 *) ac_arg=$ac_var=$ac_new_val ;;
2632 esac
2633 case " $ac_configure_args " in
2634 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2635 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2636 esac
2638 done
2639 if $ac_cache_corrupted; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2644 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2646 ## -------------------- ##
2647 ## Main body of script. ##
2648 ## -------------------- ##
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 ac_aux_dir=
2659 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2660 if test -f "$ac_dir/install-sh"; then
2661 ac_aux_dir=$ac_dir
2662 ac_install_sh="$ac_aux_dir/install-sh -c"
2663 break
2664 elif test -f "$ac_dir/install.sh"; then
2665 ac_aux_dir=$ac_dir
2666 ac_install_sh="$ac_aux_dir/install.sh -c"
2667 break
2668 elif test -f "$ac_dir/shtool"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/shtool install -c"
2671 break
2673 done
2674 if test -z "$ac_aux_dir"; then
2675 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2678 # These three variables are undocumented and unsupported,
2679 # and are intended to be withdrawn in a future Autoconf release.
2680 # They can cause serious problems if a builder's source tree is in a directory
2681 # whose full name contains unusual characters.
2682 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2683 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2684 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2688 # Check what host we are running on.
2689 # If a target is not suggested, we use this one.
2690 # Note that what we call a target, Autoconf calls a host.
2691 # Make sure we can run config.sub.
2692 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2693 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2696 $as_echo_n "checking build system type... " >&6; }
2697 if ${ac_cv_build+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 ac_build_alias=$build_alias
2701 test "x$ac_build_alias" = x &&
2702 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2703 test "x$ac_build_alias" = x &&
2704 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2705 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2710 $as_echo "$ac_cv_build" >&6; }
2711 case $ac_cv_build in
2712 *-*-*) ;;
2713 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2714 esac
2715 build=$ac_cv_build
2716 ac_save_IFS=$IFS; IFS='-'
2717 set x $ac_cv_build
2718 shift
2719 build_cpu=$1
2720 build_vendor=$2
2721 shift; shift
2722 # Remember, the first character of IFS is used to create $*,
2723 # except with old shells:
2724 build_os=$*
2725 IFS=$ac_save_IFS
2726 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2730 $as_echo_n "checking host system type... " >&6; }
2731 if ${ac_cv_host+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test "x$host_alias" = x; then
2735 ac_cv_host=$ac_cv_build
2736 else
2737 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2743 $as_echo "$ac_cv_host" >&6; }
2744 case $ac_cv_host in
2745 *-*-*) ;;
2746 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2747 esac
2748 host=$ac_cv_host
2749 ac_save_IFS=$IFS; IFS='-'
2750 set x $ac_cv_host
2751 shift
2752 host_cpu=$1
2753 host_vendor=$2
2754 shift; shift
2755 # Remember, the first character of IFS is used to create $*,
2756 # except with old shells:
2757 host_os=$*
2758 IFS=$ac_save_IFS
2759 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2763 # Default version of gnu tools to use
2764 default_gcc_version="4.6.4"
2765 default_binutils_version="2.23.2"
2767 # The AROS target is slightly different to the normal GNU style
2768 # format. We don't have the middle part, and we reverse the order
2769 # of the $(CPU) and $(OS) bits.
2771 # Don't strip the version of the target yet, it might be
2772 # useful on some systems.
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2775 $as_echo_n "checking for AROS style target... " >&6; }
2777 if test "$target" = "NONE" ; then
2778 target=$host_os-$host_cpu
2779 else
2780 if test "$target" = "" ; then
2781 target=$host_os-$host_cpu
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2785 $as_echo "$target" >&6; }
2787 if test "$host_os" = "mingw32" ; then
2788 PWDCMD="pwd -W"
2791 # Don't know where else to put this...
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2793 $as_echo_n "checking building AROS in... " >&6; }
2794 AROS_BUILDDIR=`${PWDCMD-pwd}`
2795 AROS_BUILDDIR_UNIX=${PWD}
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2797 $as_echo "$AROS_BUILDDIR" >&6; }
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2800 $as_echo_n "checking AROS source in... " >&6; }
2801 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2802 SRCDIR=${srcpwd}
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2804 $as_echo "$SRCDIR" >&6; }
2806 # Parse the target field into something useful.
2808 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2809 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2812 # Some debug output, to be removed again.
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2814 $as_echo_n "checking for target system (debug output)... " >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2816 $as_echo "$target_os" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2818 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2820 $as_echo "$target_cpu" >&6; }
2822 aros_default_wbwidth=800
2823 aros_default_wbheight=600
2824 aros_default_wbdepth=4
2827 # The first step is to find the host binaries.
2828 # Check for a compiler.
2829 # Due to a bug in autoconf check for c++ compiler first.
2830 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2831 ac_ext=cpp
2832 ac_cpp='$CXXCPP $CPPFLAGS'
2833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2836 if test -z "$CXX"; then
2837 if test -n "$CCC"; then
2838 CXX=$CCC
2839 else
2840 if test -n "$ac_tool_prefix"; then
2841 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_CXX+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$CXX"; then
2851 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 CXX=$ac_cv_prog_CXX
2871 if test -n "$CXX"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2873 $as_echo "$CXX" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2880 test -n "$CXX" && break
2881 done
2883 if test -z "$CXX"; then
2884 ac_ct_CXX=$CXX
2885 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2887 # Extract the first word of "$ac_prog", so it can be a program name with args.
2888 set dummy $ac_prog; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$ac_ct_CXX"; then
2895 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_ac_ct_CXX="$ac_prog"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2908 done
2909 done
2910 IFS=$as_save_IFS
2914 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2915 if test -n "$ac_ct_CXX"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2917 $as_echo "$ac_ct_CXX" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2924 test -n "$ac_ct_CXX" && break
2925 done
2927 if test "x$ac_ct_CXX" = x; then
2928 CXX="g++"
2929 else
2930 case $cross_compiling:$ac_tool_warned in
2931 yes:)
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936 CXX=$ac_ct_CXX
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2944 set X $ac_compile
2945 ac_compiler=$2
2946 for ac_option in --version -v -V -qversion; do
2947 { { ac_try="$ac_compiler $ac_option >&5"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2955 ac_status=$?
2956 if test -s conftest.err; then
2957 sed '10a\
2958 ... rest of stderr output deleted ...
2959 10q' conftest.err >conftest.er1
2960 cat conftest.er1 >&5
2962 rm -f conftest.er1 conftest.err
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }
2965 done
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2971 main ()
2975 return 0;
2977 _ACEOF
2978 ac_clean_files_save=$ac_clean_files
2979 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2980 # Try to create an executable without -o first, disregard a.out.
2981 # It will help us diagnose broken compilers, and finding out an intuition
2982 # of exeext.
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2984 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2985 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2987 # The possible output files:
2988 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2990 ac_rmfiles=
2991 for ac_file in $ac_files
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2996 esac
2997 done
2998 rm -f $ac_rmfiles
3000 if { { ac_try="$ac_link_default"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link_default") 2>&5
3008 ac_status=$?
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3014 # so that the user can short-circuit this test for compilers unknown to
3015 # Autoconf.
3016 for ac_file in $ac_files ''
3018 test -f "$ac_file" || continue
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3022 [ab].out )
3023 # We found the default executable, but exeext='' is most
3024 # certainly right.
3025 break;;
3026 *.* )
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028 then :; else
3029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3035 # actually working.
3036 break;;
3038 break;;
3039 esac
3040 done
3041 test "$ac_cv_exeext" = no && ac_cv_exeext=
3043 else
3044 ac_file=''
3046 if test -z "$ac_file"; then :
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 $as_echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error 77 "C++ compiler cannot create executables
3055 See \`config.log' for more details" "$LINENO" 5; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3061 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3063 $as_echo "$ac_file" >&6; }
3064 ac_exeext=$ac_cv_exeext
3066 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3067 ac_clean_files=$ac_clean_files_save
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069 $as_echo_n "checking for suffix of executables... " >&6; }
3070 if { { ac_try="$ac_link"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3084 # `rm'.
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 break;;
3091 * ) break;;
3092 esac
3093 done
3094 else
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details" "$LINENO" 5; }
3100 rm -f conftest conftest$ac_cv_exeext
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3104 rm -f conftest.$ac_ext
3105 EXEEXT=$ac_cv_exeext
3106 ac_exeext=$EXEEXT
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3109 #include <stdio.h>
3111 main ()
3113 FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3117 return 0;
3119 _ACEOF
3120 ac_clean_files="$ac_clean_files conftest.out"
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 if test "$cross_compiling" != yes; then
3126 { { ac_try="$ac_link"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 if { ac_try='./conftest$ac_cv_exeext'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3148 cross_compiling=no
3149 else
3150 if test "$cross_compiling" = maybe; then
3151 cross_compiling=yes
3152 else
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "cannot run C++ compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details" "$LINENO" 5; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162 $as_echo "$cross_compiling" >&6; }
3164 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3165 ac_clean_files=$ac_clean_files_save
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167 $as_echo_n "checking for suffix of object files... " >&6; }
3168 if ${ac_cv_objext+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3175 main ()
3179 return 0;
3181 _ACEOF
3182 rm -f conftest.o conftest.obj
3183 if { { ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compile") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 for ac_file in conftest.o conftest.obj conftest.*; do
3195 test -f "$ac_file" || continue;
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3199 break;;
3200 esac
3201 done
3202 else
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details" "$LINENO" 5; }
3211 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3214 $as_echo "$ac_cv_objext" >&6; }
3215 OBJEXT=$ac_cv_objext
3216 ac_objext=$OBJEXT
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3218 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3219 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3226 main ()
3228 #ifndef __GNUC__
3229 choke me
3230 #endif
3233 return 0;
3235 _ACEOF
3236 if ac_fn_cxx_try_compile "$LINENO"; then :
3237 ac_compiler_gnu=yes
3238 else
3239 ac_compiler_gnu=no
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3246 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3247 if test $ac_compiler_gnu = yes; then
3248 GXX=yes
3249 else
3250 GXX=
3252 ac_test_CXXFLAGS=${CXXFLAGS+set}
3253 ac_save_CXXFLAGS=$CXXFLAGS
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3255 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3256 if ${ac_cv_prog_cxx_g+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3260 ac_cxx_werror_flag=yes
3261 ac_cv_prog_cxx_g=no
3262 CXXFLAGS="-g"
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3267 main ()
3271 return 0;
3273 _ACEOF
3274 if ac_fn_cxx_try_compile "$LINENO"; then :
3275 ac_cv_prog_cxx_g=yes
3276 else
3277 CXXFLAGS=""
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3282 main ()
3286 return 0;
3288 _ACEOF
3289 if ac_fn_cxx_try_compile "$LINENO"; then :
3291 else
3292 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3293 CXXFLAGS="-g"
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3298 main ()
3302 return 0;
3304 _ACEOF
3305 if ac_fn_cxx_try_compile "$LINENO"; then :
3306 ac_cv_prog_cxx_g=yes
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3316 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3317 if test "$ac_test_CXXFLAGS" = set; then
3318 CXXFLAGS=$ac_save_CXXFLAGS
3319 elif test $ac_cv_prog_cxx_g = yes; then
3320 if test "$GXX" = yes; then
3321 CXXFLAGS="-g -O2"
3322 else
3323 CXXFLAGS="-g"
3325 else
3326 if test "$GXX" = yes; then
3327 CXXFLAGS="-O2"
3328 else
3329 CXXFLAGS=
3332 ac_ext=c
3333 ac_cpp='$CPP $CPPFLAGS'
3334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3367 IFS=$as_save_IFS
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3382 if test -z "$ac_cv_prog_CC"; then
3383 ac_ct_CC=$CC
3384 # Extract the first word of "gcc", so it can be a program name with args.
3385 set dummy gcc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_ac_ct_CC="gcc"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3405 done
3406 done
3407 IFS=$as_save_IFS
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3420 if test "x$ac_ct_CC" = x; then
3421 CC=""
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429 CC=$ac_ct_CC
3431 else
3432 CC="$ac_cv_prog_CC"
3435 if test -z "$CC"; then
3436 if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3438 set dummy ${ac_tool_prefix}cc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="${ac_tool_prefix}cc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3458 done
3459 done
3460 IFS=$as_save_IFS
3464 CC=$ac_cv_prog_CC
3465 if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467 $as_echo "$CC" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3476 if test -z "$CC"; then
3477 # Extract the first word of "cc", so it can be a program name with args.
3478 set dummy cc; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 ac_prog_rejected=no
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3496 ac_prog_rejected=yes
3497 continue
3499 ac_cv_prog_CC="cc"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3503 done
3504 done
3505 IFS=$as_save_IFS
3507 if test $ac_prog_rejected = yes; then
3508 # We found a bogon in the path, so make sure we never use it.
3509 set dummy $ac_cv_prog_CC
3510 shift
3511 if test $# != 0; then
3512 # We chose a different compiler from the bogus one.
3513 # However, it has the same basename, so the bogon will be chosen
3514 # first if we set CC to just the basename; use the full file name.
3515 shift
3516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3532 if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
3534 for ac_prog in cl.exe
3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3557 done
3558 done
3559 IFS=$as_save_IFS
3563 CC=$ac_cv_prog_CC
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3573 test -n "$CC" && break
3574 done
3576 if test -z "$CC"; then
3577 ac_ct_CC=$CC
3578 for ac_prog in cl.exe
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_ac_ct_CC="$ac_prog"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3603 IFS=$as_save_IFS
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3617 test -n "$ac_ct_CC" && break
3618 done
3620 if test "x$ac_ct_CC" = x; then
3621 CC=""
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 CC=$ac_ct_CC
3636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "no acceptable C compiler found in \$PATH
3639 See \`config.log' for more details" "$LINENO" 5; }
3641 # Provide some information about the compiler.
3642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3643 set X $ac_compile
3644 ac_compiler=$2
3645 for ac_option in --version -v -V -qversion; do
3646 { { ac_try="$ac_compiler $ac_option >&5"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654 ac_status=$?
3655 if test -s conftest.err; then
3656 sed '10a\
3657 ... rest of stderr output deleted ...
3658 10q' conftest.err >conftest.er1
3659 cat conftest.er1 >&5
3661 rm -f conftest.er1 conftest.err
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3664 done
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3668 if ${ac_cv_c_compiler_gnu+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3675 main ()
3677 #ifndef __GNUC__
3678 choke me
3679 #endif
3682 return 0;
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686 ac_compiler_gnu=yes
3687 else
3688 ac_compiler_gnu=no
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3696 if test $ac_compiler_gnu = yes; then
3697 GCC=yes
3698 else
3699 GCC=
3701 ac_test_CFLAGS=${CFLAGS+set}
3702 ac_save_CFLAGS=$CFLAGS
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3705 if ${ac_cv_prog_cc_g+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 ac_save_c_werror_flag=$ac_c_werror_flag
3709 ac_c_werror_flag=yes
3710 ac_cv_prog_cc_g=no
3711 CFLAGS="-g"
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3716 main ()
3720 return 0;
3722 _ACEOF
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_prog_cc_g=yes
3725 else
3726 CFLAGS=""
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3731 main ()
3735 return 0;
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3740 else
3741 ac_c_werror_flag=$ac_save_c_werror_flag
3742 CFLAGS="-g"
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3747 main ()
3751 return 0;
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_prog_cc_g=yes
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ac_c_werror_flag=$ac_save_c_werror_flag
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3765 $as_echo "$ac_cv_prog_cc_g" >&6; }
3766 if test "$ac_test_CFLAGS" = set; then
3767 CFLAGS=$ac_save_CFLAGS
3768 elif test $ac_cv_prog_cc_g = yes; then
3769 if test "$GCC" = yes; then
3770 CFLAGS="-g -O2"
3771 else
3772 CFLAGS="-g"
3774 else
3775 if test "$GCC" = yes; then
3776 CFLAGS="-O2"
3777 else
3778 CFLAGS=
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3783 if ${ac_cv_prog_cc_c89+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 ac_cv_prog_cc_c89=no
3787 ac_save_CC=$CC
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790 #include <stdarg.h>
3791 #include <stdio.h>
3792 struct stat;
3793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3794 struct buf { int x; };
3795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3796 static char *e (p, i)
3797 char **p;
3798 int i;
3800 return p[i];
3802 static char *f (char * (*g) (char **, int), char **p, ...)
3804 char *s;
3805 va_list v;
3806 va_start (v,p);
3807 s = g (p, va_arg (v,int));
3808 va_end (v);
3809 return s;
3812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3813 function prototypes and stuff, but not '\xHH' hex character constants.
3814 These don't provoke an error unfortunately, instead are silently treated
3815 as 'x'. The following induces an error, until -std is added to get
3816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3817 array size at least. It's necessary to write '\x00'==0 to get something
3818 that's true only with -std. */
3819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3822 inside strings and character constants. */
3823 #define FOO(x) 'x'
3824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3826 int test (int i, double x);
3827 struct s1 {int (*f) (int a);};
3828 struct s2 {int (*f) (double a);};
3829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3830 int argc;
3831 char **argv;
3833 main ()
3835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3837 return 0;
3839 _ACEOF
3840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3843 CC="$ac_save_CC $ac_arg"
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_cv_prog_cc_c89=$ac_arg
3847 rm -f core conftest.err conftest.$ac_objext
3848 test "x$ac_cv_prog_cc_c89" != "xno" && break
3849 done
3850 rm -f conftest.$ac_ext
3851 CC=$ac_save_CC
3854 # AC_CACHE_VAL
3855 case "x$ac_cv_prog_cc_c89" in
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858 $as_echo "none needed" >&6; } ;;
3859 xno)
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3861 $as_echo "unsupported" >&6; } ;;
3863 CC="$CC $ac_cv_prog_cc_c89"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3866 esac
3867 if test "x$ac_cv_prog_cc_c89" != xno; then :
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 case $ac_cv_prog_cc_stdc in #(
3878 no) :
3879 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3880 *) :
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3882 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3883 if ${ac_cv_prog_cc_c99+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 ac_cv_prog_cc_c99=no
3887 ac_save_CC=$CC
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890 #include <stdarg.h>
3891 #include <stdbool.h>
3892 #include <stdlib.h>
3893 #include <wchar.h>
3894 #include <stdio.h>
3896 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3897 #define debug(...) fprintf (stderr, __VA_ARGS__)
3898 #define showlist(...) puts (#__VA_ARGS__)
3899 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3900 static void
3901 test_varargs_macros (void)
3903 int x = 1234;
3904 int y = 5678;
3905 debug ("Flag");
3906 debug ("X = %d\n", x);
3907 showlist (The first, second, and third items.);
3908 report (x>y, "x is %d but y is %d", x, y);
3911 // Check long long types.
3912 #define BIG64 18446744073709551615ull
3913 #define BIG32 4294967295ul
3914 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3915 #if !BIG_OK
3916 your preprocessor is broken;
3917 #endif
3918 #if BIG_OK
3919 #else
3920 your preprocessor is broken;
3921 #endif
3922 static long long int bignum = -9223372036854775807LL;
3923 static unsigned long long int ubignum = BIG64;
3925 struct incomplete_array
3927 int datasize;
3928 double data[];
3931 struct named_init {
3932 int number;
3933 const wchar_t *name;
3934 double average;
3937 typedef const char *ccp;
3939 static inline int
3940 test_restrict (ccp restrict text)
3942 // See if C++-style comments work.
3943 // Iterate through items via the restricted pointer.
3944 // Also check for declarations in for loops.
3945 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3946 continue;
3947 return 0;
3950 // Check varargs and va_copy.
3951 static void
3952 test_varargs (const char *format, ...)
3954 va_list args;
3955 va_start (args, format);
3956 va_list args_copy;
3957 va_copy (args_copy, args);
3959 const char *str;
3960 int number;
3961 float fnumber;
3963 while (*format)
3965 switch (*format++)
3967 case 's': // string
3968 str = va_arg (args_copy, const char *);
3969 break;
3970 case 'd': // int
3971 number = va_arg (args_copy, int);
3972 break;
3973 case 'f': // float
3974 fnumber = va_arg (args_copy, double);
3975 break;
3976 default:
3977 break;
3980 va_end (args_copy);
3981 va_end (args);
3985 main ()
3988 // Check bool.
3989 _Bool success = false;
3991 // Check restrict.
3992 if (test_restrict ("String literal") == 0)
3993 success = true;
3994 char *restrict newvar = "Another string";
3996 // Check varargs.
3997 test_varargs ("s, d' f .", "string", 65, 34.234);
3998 test_varargs_macros ();
4000 // Check flexible array members.
4001 struct incomplete_array *ia =
4002 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4003 ia->datasize = 10;
4004 for (int i = 0; i < ia->datasize; ++i)
4005 ia->data[i] = i * 1.234;
4007 // Check named initializers.
4008 struct named_init ni = {
4009 .number = 34,
4010 .name = L"Test wide string",
4011 .average = 543.34343,
4014 ni.number = 58;
4016 int dynamic_array[ni.number];
4017 dynamic_array[ni.number - 1] = 543;
4019 // work around unused variable warnings
4020 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4021 || dynamic_array[ni.number - 1] != 543);
4024 return 0;
4026 _ACEOF
4027 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4029 CC="$ac_save_CC $ac_arg"
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_prog_cc_c99=$ac_arg
4033 rm -f core conftest.err conftest.$ac_objext
4034 test "x$ac_cv_prog_cc_c99" != "xno" && break
4035 done
4036 rm -f conftest.$ac_ext
4037 CC=$ac_save_CC
4040 # AC_CACHE_VAL
4041 case "x$ac_cv_prog_cc_c99" in
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4044 $as_echo "none needed" >&6; } ;;
4045 xno)
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4047 $as_echo "unsupported" >&6; } ;;
4049 CC="$CC $ac_cv_prog_cc_c99"
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4051 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4052 esac
4053 if test "x$ac_cv_prog_cc_c99" != xno; then :
4054 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4057 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4058 if ${ac_cv_prog_cc_c89+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 ac_cv_prog_cc_c89=no
4062 ac_save_CC=$CC
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <stdarg.h>
4066 #include <stdio.h>
4067 struct stat;
4068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4069 struct buf { int x; };
4070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4071 static char *e (p, i)
4072 char **p;
4073 int i;
4075 return p[i];
4077 static char *f (char * (*g) (char **, int), char **p, ...)
4079 char *s;
4080 va_list v;
4081 va_start (v,p);
4082 s = g (p, va_arg (v,int));
4083 va_end (v);
4084 return s;
4087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4088 function prototypes and stuff, but not '\xHH' hex character constants.
4089 These don't provoke an error unfortunately, instead are silently treated
4090 as 'x'. The following induces an error, until -std is added to get
4091 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4092 array size at least. It's necessary to write '\x00'==0 to get something
4093 that's true only with -std. */
4094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4096 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4097 inside strings and character constants. */
4098 #define FOO(x) 'x'
4099 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4101 int test (int i, double x);
4102 struct s1 {int (*f) (int a);};
4103 struct s2 {int (*f) (double a);};
4104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4105 int argc;
4106 char **argv;
4108 main ()
4110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4112 return 0;
4114 _ACEOF
4115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4116 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4118 CC="$ac_save_CC $ac_arg"
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_c89=$ac_arg
4122 rm -f core conftest.err conftest.$ac_objext
4123 test "x$ac_cv_prog_cc_c89" != "xno" && break
4124 done
4125 rm -f conftest.$ac_ext
4126 CC=$ac_save_CC
4129 # AC_CACHE_VAL
4130 case "x$ac_cv_prog_cc_c89" in
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4133 $as_echo "none needed" >&6; } ;;
4134 xno)
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4136 $as_echo "unsupported" >&6; } ;;
4138 CC="$CC $ac_cv_prog_cc_c89"
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4140 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4141 esac
4142 if test "x$ac_cv_prog_cc_c89" != xno; then :
4143 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4144 else
4145 ac_cv_prog_cc_stdc=no
4150 esac
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4152 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4153 if ${ac_cv_prog_cc_stdc+:} false; then :
4154 $as_echo_n "(cached) " >&6
4157 case $ac_cv_prog_cc_stdc in #(
4158 no) :
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160 $as_echo "unsupported" >&6; } ;; #(
4161 '') :
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163 $as_echo "none needed" >&6; } ;; #(
4164 *) :
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4166 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4167 esac
4169 ac_ext=c
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4175 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4176 # On Suns, sometimes $CPP names a directory.
4177 if test -n "$CPP" && test -d "$CPP"; then
4178 CPP=
4180 if test -z "$CPP"; then
4181 if ${ac_cv_prog_CPP+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 # Double quotes because CPP needs to be expanded
4185 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4187 ac_preproc_ok=false
4188 for ac_c_preproc_warn_flag in '' yes
4190 # Use a header file that comes with gcc, so configuring glibc
4191 # with a fresh cross-compiler works.
4192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4193 # <limits.h> exists even on freestanding compilers.
4194 # On the NeXT, cc -E runs the code through the compiler's parser,
4195 # not just through cpp. "Syntax error" is here to catch this case.
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #ifdef __STDC__
4199 # include <limits.h>
4200 #else
4201 # include <assert.h>
4202 #endif
4203 Syntax error
4204 _ACEOF
4205 if ac_fn_c_try_cpp "$LINENO"; then :
4207 else
4208 # Broken: fails on valid input.
4209 continue
4211 rm -f conftest.err conftest.i conftest.$ac_ext
4213 # OK, works on sane cases. Now check whether nonexistent headers
4214 # can be detected and how.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <ac_nonexistent.h>
4218 _ACEOF
4219 if ac_fn_c_try_cpp "$LINENO"; then :
4220 # Broken: success on invalid input.
4221 continue
4222 else
4223 # Passes both tests.
4224 ac_preproc_ok=:
4225 break
4227 rm -f conftest.err conftest.i conftest.$ac_ext
4229 done
4230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4231 rm -f conftest.i conftest.err conftest.$ac_ext
4232 if $ac_preproc_ok; then :
4233 break
4236 done
4237 ac_cv_prog_CPP=$CPP
4240 CPP=$ac_cv_prog_CPP
4241 else
4242 ac_cv_prog_CPP=$CPP
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4245 $as_echo "$CPP" >&6; }
4246 ac_preproc_ok=false
4247 for ac_c_preproc_warn_flag in '' yes
4249 # Use a header file that comes with gcc, so configuring glibc
4250 # with a fresh cross-compiler works.
4251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4252 # <limits.h> exists even on freestanding compilers.
4253 # On the NeXT, cc -E runs the code through the compiler's parser,
4254 # not just through cpp. "Syntax error" is here to catch this case.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #ifdef __STDC__
4258 # include <limits.h>
4259 #else
4260 # include <assert.h>
4261 #endif
4262 Syntax error
4263 _ACEOF
4264 if ac_fn_c_try_cpp "$LINENO"; then :
4266 else
4267 # Broken: fails on valid input.
4268 continue
4270 rm -f conftest.err conftest.i conftest.$ac_ext
4272 # OK, works on sane cases. Now check whether nonexistent headers
4273 # can be detected and how.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #include <ac_nonexistent.h>
4277 _ACEOF
4278 if ac_fn_c_try_cpp "$LINENO"; then :
4279 # Broken: success on invalid input.
4280 continue
4281 else
4282 # Passes both tests.
4283 ac_preproc_ok=:
4284 break
4286 rm -f conftest.err conftest.i conftest.$ac_ext
4288 done
4289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4290 rm -f conftest.i conftest.err conftest.$ac_ext
4291 if $ac_preproc_ok; then :
4293 else
4294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4297 See \`config.log' for more details" "$LINENO" 5; }
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 # Check for a compatible awk
4308 for ac_prog in gawk nawk
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311 set dummy $ac_prog; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_AWK+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$AWK"; then
4318 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_AWK="$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4333 IFS=$as_save_IFS
4337 AWK=$ac_cv_prog_AWK
4338 if test -n "$AWK"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4340 $as_echo "$AWK" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4347 test -n "$AWK" && break
4348 done
4350 if test "$AWK" = ""; then
4351 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4353 # Extract the first word of "mmake", so it can be a program name with args.
4354 set dummy mmake; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_MMAKE+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -n "$MMAKE"; then
4361 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_MMAKE="mmake "
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4376 IFS=$as_save_IFS
4380 MMAKE=$ac_cv_prog_MMAKE
4381 if test -n "$MMAKE"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4383 $as_echo "$MMAKE" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4391 # Perform some default variable assignments. Note all of these will be
4392 # Regenerated from the script, so there is no need to cache them.
4394 aros_host_cpp="$CPP"
4395 aros_host_cc="$CC"
4396 aros_host_cxx="$CXX"
4397 if test "$GCC" = "yes"; then
4398 aros_gcc_ld=`$CC -print-prog-name=ld`
4399 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4400 set dummy `basename $aros_gcc_ld`; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if ${ac_cv_path_aros_host_ld+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 case $aros_host_ld in
4407 [\\/]* | ?:[\\/]*)
4408 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in `dirname $aros_gcc_ld`
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4422 done
4423 done
4424 IFS=$as_save_IFS
4427 esac
4429 aros_host_ld=$ac_cv_path_aros_host_ld
4430 if test -n "$aros_host_ld"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4432 $as_echo "$aros_host_ld" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4440 if test "$aros_host_ld" = ""; then
4441 # Extract the first word of "ld", so it can be a program name with args.
4442 set dummy ld; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_path_aros_host_ld+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 case $aros_host_ld in
4449 [\\/]* | ?:[\\/]*)
4450 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4464 done
4465 done
4466 IFS=$as_save_IFS
4469 esac
4471 aros_host_ld=$ac_cv_path_aros_host_ld
4472 if test -n "$aros_host_ld"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4474 $as_echo "$aros_host_ld" >&6; }
4475 else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4482 if test "$aros_host_ld" = ""; then
4483 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4485 aros_host_make="make"
4486 aros_host_cflags="$CFLAGS"
4487 aros_host_cxxflags="$CXXFLAGS"
4488 aros_host_ldflags="$LDFLAGS"
4489 aros_host_debug="-g -O0"
4490 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4491 aros_host_mkargs="--no-print-directory"
4492 aros_host_exe_suffix="$EXEEXT"
4493 aros_host_lib_suffix=""
4495 # Ignore all compliance, AROS ROMs = 0
4496 # KickStart v1.0 = 30
4497 # KickStart v1.3 = 34
4498 # KickStart v2.0 = 37
4499 # KickStart v3.0 = 39
4500 # KickStart v3.1 = 40
4501 # AmigaOS v3.5 = 44
4502 aros_amigaos_compliance=0
4504 for ac_prog in aclocal aclocal19 aclocal-1.9
4506 # Extract the first word of "$ac_prog", so it can be a program name with args.
4507 set dummy $ac_prog; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -n "$aros_host_aclocal"; then
4514 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_aros_host_aclocal="$ac_prog"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4527 done
4528 done
4529 IFS=$as_save_IFS
4533 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4534 if test -n "$aros_host_aclocal"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4536 $as_echo "$aros_host_aclocal" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4543 test -n "$aros_host_aclocal" && break
4544 done
4546 for ac_prog in autoconf autoconf259 autoconf253
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 if test -n "$aros_host_autoconf"; then
4556 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_aros_host_autoconf="$ac_prog"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4569 done
4570 done
4571 IFS=$as_save_IFS
4575 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4576 if test -n "$aros_host_autoconf"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4578 $as_echo "$aros_host_autoconf" >&6; }
4579 else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4585 test -n "$aros_host_autoconf" && break
4586 done
4588 for ac_prog in autoheader autoheader259 autoheader253
4590 # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$aros_host_autoheader"; then
4598 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_aros_host_autoheader="$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4611 done
4612 done
4613 IFS=$as_save_IFS
4617 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4618 if test -n "$aros_host_autoheader"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4620 $as_echo "$aros_host_autoheader" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4627 test -n "$aros_host_autoheader" && break
4628 done
4630 for ac_prog in automake automake19 automake-1.9
4632 # Extract the first word of "$ac_prog", so it can be a program name with args.
4633 set dummy $ac_prog; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_aros_host_automake+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$aros_host_automake"; then
4640 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_aros_host_automake="$ac_prog"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 aros_host_automake=$ac_cv_prog_aros_host_automake
4660 if test -n "$aros_host_automake"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4662 $as_echo "$aros_host_automake" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4669 test -n "$aros_host_automake" && break
4670 done
4673 if test "$aros_host_aclocal" = ""; then
4674 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4676 if test "$aros_host_automake" = ""; then
4677 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4680 case "$aros_host_cc" in
4681 *clang*)
4682 aros_host_cc_pipe=""
4684 *gcc*)
4685 aros_host_cc_pipe="-pipe"
4687 icc)
4688 aros_host_cc_pipe=""
4691 aros_host_cc_pipe=""
4693 esac
4695 aros_kernel_cc_includes=""
4696 aros_target_cc_includes=""
4697 host_cc_elf=yes
4699 # ----------------------------------------------------------------------------------------
4700 # Host-specific defaults
4702 # This is the main host configuration section. It is where the host
4703 # can change the values of any variables it needs to change. We do
4704 # not look at anything that compiles to the target yet, we'll get
4705 # to that later.
4707 case "$host_os" in
4708 aros*)
4709 aros_host_arch="aros"
4710 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4711 case "$host_cpu" in
4712 *i?86*)
4713 aros_host_cpu="i386"
4715 *x86_64*)
4716 aros_host_cpu="x86_64"
4718 *powerpc*)
4719 aros_host_cpu="ppc"
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4723 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4724 aros_host_cpu="$host_cpu"
4726 esac
4729 linux*)
4730 aros_host_arch="linux"
4731 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4732 android_build_os="linux-x86"
4733 android_tool="android"
4734 default_android_sdk="/opt/android-sdk-linux_x86"
4735 case "$host_cpu" in
4736 *i?86*)
4737 aros_host_cpu="i386"
4739 *x86_64*)
4740 aros_host_cpu="x86_64"
4742 *m68k*)
4743 aros_host_cpu="m68k"
4745 *powerpc*)
4746 aros_host_cpu="ppc"
4748 *arm*)
4749 aros_host_cpu="arm"
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
4759 freebsd*)
4760 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4761 aros_host_make="gmake"
4762 aros_host_arch="freebsd"
4763 aros_host_cpu="i386"
4765 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4767 case $host_os in
4768 freebsd[234]*)
4769 aros_object_format="elf_i386"
4773 aros_object_format="elf_i386_fbsd"
4775 esac
4779 darwin*)
4780 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4781 aros_host_arch="darwin"
4782 host_cc_elf=no
4783 if [ -z ${SED+x} ]; then SED="gsed"; fi
4784 android_build_os="darwin-x86"
4785 android_tool="android"
4786 default_android_sdk="/android-sdk-mac_x86"
4787 case "$host_cpu" in
4788 *i?86*)
4789 aros_host_cpu="i386"
4791 *x86_64*)
4792 aros_host_cpu="x86_64"
4794 *powerpc*)
4795 aros_host_cpu="ppc"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4799 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4800 aros_host_cpu="$host_cpu"
4802 esac
4804 aros_host_ldflags="$aros_host_ldflags -liconv"
4808 dragonfly*)
4809 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4810 aros_host_make="gmake"
4811 aros_host_arch="dragonfly"
4812 case $host_cpu in
4813 *i?86*)
4814 aros_host_cpu="i386"
4816 *amd64*)
4817 aros_host_cpu="x86_64"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4821 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4822 aros_host_cpu="$host_cpu"
4824 esac
4827 netbsd*)
4828 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4829 aros_host_make="gmake"
4830 aros_host_arch="netbsd"
4831 case "$host_cpu" in
4832 *i?86*)
4833 aros_host_cpu="i386"
4835 *m68k*)
4836 aros_host_cpu="m68k"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4840 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4841 aros_host_cpu="$host_cpu"
4843 esac
4844 aros_host_lib_suffix=".0.0"
4847 openbsd*)
4848 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4849 aros_host_make="gmake"
4850 aros_host_arch="openbsd"
4851 case "$host_cpu" in
4852 *i?86*)
4853 aros_host_cpu="i386"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4857 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4858 aros_host_cpu="$host_cpu"
4860 esac
4863 solaris*)
4864 aros_host_arch="solaris"
4865 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4866 case "$host_cpu" in
4867 *i?86*)
4868 aros_host_cpu="i386"
4870 *sparc*)
4871 aros_host_cpu="sparc"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4875 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4876 aros_host_cpu="$host_cpu"
4878 esac
4881 morphos*)
4882 aros_host_arch="morphos"
4883 aros_host_cpu="ppc"
4884 host_cc_elf=no
4887 amiga*)
4888 aros_host_arch="amiga"
4889 host_cc_elf=no
4890 SORT="/gg/bin/sort"
4891 TEST="/gg/bin/test"
4892 UNIQ="/gg/bin/uniq"
4893 FOR="for"
4894 TOUCH="/gg/bin/touch"
4895 case "$host_cpu" in
4896 *m68k*)
4897 aros_host_cpu="m68k"
4899 *powerpc*)
4900 aros_host_cpu="ppc"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4904 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4905 aros_host_cpu="$host_cpu"
4907 esac
4910 cygwin*)
4911 aros_host_arch="cygwin"
4912 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4913 host_cc_elf=no
4914 android_build_os="windows"
4915 android_tool="android.bat"
4916 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4918 case "$host_cpu" in
4919 *i?86*)
4920 aros_host_cpu="i386"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4924 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4925 aros_host_cpu="$host_cpu"
4927 esac
4930 mingw32*)
4931 aros_host_arch="mingw32"
4932 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4933 host_cc_elf=no
4934 android_build_os="windows"
4935 android_tool="android.bat"
4936 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4938 case "$host_cpu" in
4939 *i?86*)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4942 $as_echo_n "checking for Windows native gcc target... " >&6; }
4943 host_cpu=`gcc -dumpmachine`
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4945 $as_echo "$host_cpu" >&6; }
4948 esac
4950 case "$host_cpu" in
4951 *i?86*)
4952 aros_host_cpu="i386"
4955 mingw32*)
4956 aros_host_cpu="i386"
4959 *x86_64*)
4960 aros_host_cpu="x86_64"
4961 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4966 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4967 aros_host_cpu="$host_cpu"
4969 esac
4972 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4974 esac
4976 # Extract the first word of "ar", so it can be a program name with args.
4977 set dummy ar; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_prog_aros_host_ar+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$aros_host_ar"; then
4984 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_aros_host_ar="ar cr"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
4999 IFS=$as_save_IFS
5003 aros_host_ar=$ac_cv_prog_aros_host_ar
5004 if test -n "$aros_host_ar"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
5006 $as_echo "$aros_host_ar" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5013 if test "$aros_host_ar" = ""; then
5014 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5016 # Extract the first word of "ranlib", so it can be a program name with args.
5017 set dummy ranlib; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -n "$aros_host_ranlib"; then
5024 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_aros_host_ranlib="ranlib "
5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5037 done
5038 done
5039 IFS=$as_save_IFS
5043 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5044 if test -n "$aros_host_ranlib"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5046 $as_echo "$aros_host_ranlib" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5053 if test "$aros_host_ranlib" = ""; then
5054 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5056 # Extract the first word of "strip", so it can be a program name with args.
5057 set dummy strip; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_aros_host_strip+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$aros_host_strip"; then
5064 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_aros_host_strip="strip "
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5083 aros_host_strip=$ac_cv_prog_aros_host_strip
5084 if test -n "$aros_host_strip"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5086 $as_echo "$aros_host_strip" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 if test "$aros_host_strip" = ""; then
5094 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5097 # Extract the first word of "rm", so it can be a program name with args.
5098 set dummy rm; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_RM+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -n "$RM"; then
5105 ac_cv_prog_RM="$RM" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_RM="rm -rf"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5118 done
5119 done
5120 IFS=$as_save_IFS
5124 RM=$ac_cv_prog_RM
5125 if test -n "$RM"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5127 $as_echo "$RM" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5134 if test "$RM" = ""; then
5135 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5137 # Extract the first word of "cp", so it can be a program name with args.
5138 set dummy cp; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_prog_CP+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if test -n "$CP"; then
5145 ac_cv_prog_CP="$CP" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_CP="cp "
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5158 done
5159 done
5160 IFS=$as_save_IFS
5164 CP=$ac_cv_prog_CP
5165 if test -n "$CP"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5167 $as_echo "$CP" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5174 if test "$CP" = ""; then
5175 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5177 # Extract the first word of "mv", so it can be a program name with args.
5178 set dummy mv; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_prog_MV+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 if test -n "$MV"; then
5185 ac_cv_prog_MV="$MV" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_MV="mv "
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5198 done
5199 done
5200 IFS=$as_save_IFS
5204 MV=$ac_cv_prog_MV
5205 if test -n "$MV"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5207 $as_echo "$MV" >&6; }
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5214 if test "$MV" = ""; then
5215 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5217 # Extract the first word of "echo", so it can be a program name with args.
5218 set dummy echo; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_ECHO+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$ECHO"; then
5225 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ECHO="echo "
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5240 IFS=$as_save_IFS
5244 ECHO=$ac_cv_prog_ECHO
5245 if test -n "$ECHO"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5247 $as_echo "$ECHO" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5254 if test "$ECHO" = ""; then
5255 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5257 # Extract the first word of "mkdir", so it can be a program name with args.
5258 set dummy mkdir; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if ${ac_cv_prog_MKDIR+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -n "$MKDIR"; then
5265 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_prog_MKDIR="mkdir -p"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5278 done
5279 done
5280 IFS=$as_save_IFS
5284 MKDIR=$ac_cv_prog_MKDIR
5285 if test -n "$MKDIR"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5287 $as_echo "$MKDIR" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5294 if test "$MKDIR" = ""; then
5295 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5297 # Extract the first word of "touch", so it can be a program name with args.
5298 set dummy touch; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_TOUCH+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$TOUCH"; then
5305 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_TOUCH="touch "
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5320 IFS=$as_save_IFS
5324 TOUCH=$ac_cv_prog_TOUCH
5325 if test -n "$TOUCH"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5327 $as_echo "$TOUCH" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5334 if test "$TOUCH" = ""; then
5335 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5337 # Extract the first word of "sort", so it can be a program name with args.
5338 set dummy sort; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_prog_SORT+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$SORT"; then
5345 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_SORT="sort "
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 SORT=$ac_cv_prog_SORT
5365 if test -n "$SORT"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5367 $as_echo "$SORT" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5374 if test "$SORT" = ""; then
5375 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5377 # Extract the first word of "uniq", so it can be a program name with args.
5378 set dummy uniq; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_UNIQ+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$UNIQ"; then
5385 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_UNIQ="uniq "
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5404 UNIQ=$ac_cv_prog_UNIQ
5405 if test -n "$UNIQ"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5407 $as_echo "$UNIQ" >&6; }
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5414 if test "$UNIQ" = ""; then
5415 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5417 # Extract the first word of "true", so it can be a program name with args.
5418 set dummy true; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_NOP+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if test -n "$NOP"; then
5425 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_NOP="true "
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5438 done
5439 done
5440 IFS=$as_save_IFS
5444 NOP=$ac_cv_prog_NOP
5445 if test -n "$NOP"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5447 $as_echo "$NOP" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5454 if test "$NOP" = ""; then
5455 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5457 # Extract the first word of "cat", so it can be a program name with args.
5458 set dummy cat; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if ${ac_cv_prog_CAT+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if test -n "$CAT"; then
5465 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_CAT="cat "
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5478 done
5479 done
5480 IFS=$as_save_IFS
5484 CAT=$ac_cv_prog_CAT
5485 if test -n "$CAT"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5487 $as_echo "$CAT" >&6; }
5488 else
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5494 if test "$CAT" = ""; then
5495 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5497 # Extract the first word of "bison", so it can be a program name with args.
5498 set dummy bison; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_BISON+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$BISON"; then
5505 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_BISON="bison "
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5518 done
5519 done
5520 IFS=$as_save_IFS
5524 BISON=$ac_cv_prog_BISON
5525 if test -n "$BISON"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5527 $as_echo "$BISON" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5534 if test "$BISON" = ""; then
5535 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5537 # Extract the first word of "flex", so it can be a program name with args.
5538 set dummy flex; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_FLEX+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$FLEX"; then
5545 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_FLEX="flex "
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5558 done
5559 done
5560 IFS=$as_save_IFS
5564 FLEX=$ac_cv_prog_FLEX
5565 if test -n "$FLEX"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5567 $as_echo "$FLEX" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5574 if test "$FLEX" = ""; then
5575 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5577 # Extract the first word of "pngtopnm", so it can be a program name with args.
5578 set dummy pngtopnm; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 if test -n "$PNGTOPNM"; then
5585 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_PNGTOPNM="pngtopnm "
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 break 2
5598 done
5599 done
5600 IFS=$as_save_IFS
5604 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5605 if test -n "$PNGTOPNM"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5607 $as_echo "$PNGTOPNM" >&6; }
5608 else
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5614 if test "$PNGTOPNM" = ""; then
5615 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5617 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5618 set dummy ppmtoilbm; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 if test -n "$PPMTOILBM"; then
5625 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5638 done
5639 done
5640 IFS=$as_save_IFS
5644 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5645 if test -n "$PPMTOILBM"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5647 $as_echo "$PPMTOILBM" >&6; }
5648 else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5654 if test "$PPMTOILBM" = ""; then
5655 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5657 # Extract the first word of "sed", so it can be a program name with args.
5658 set dummy sed; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_SED+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -n "$SED"; then
5665 ac_cv_prog_SED="$SED" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_SED="sed "
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5678 done
5679 done
5680 IFS=$as_save_IFS
5684 SED=$ac_cv_prog_SED
5685 if test -n "$SED"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5687 $as_echo "$SED" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5694 if test "$SED" = ""; then
5695 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5697 # Extract the first word of "chmod", so it can be a program name with args.
5698 set dummy chmod; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_CHMOD+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if test -n "$CHMOD"; then
5705 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_CHMOD="chmod "
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5718 done
5719 done
5720 IFS=$as_save_IFS
5724 CHMOD=$ac_cv_prog_CHMOD
5725 if test -n "$CHMOD"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5727 $as_echo "$CHMOD" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5734 if test "$CHMOD" = ""; then
5735 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5737 # Extract the first word of "patch", so it can be a program name with args.
5738 set dummy patch; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_prog_PATCH+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if test -n "$PATCH"; then
5745 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754 ac_cv_prog_PATCH="patch "
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5758 done
5759 done
5760 IFS=$as_save_IFS
5764 PATCH=$ac_cv_prog_PATCH
5765 if test -n "$PATCH"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5767 $as_echo "$PATCH" >&6; }
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5774 if test "$PATCH" = ""; then
5775 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5784 if test -n "$PYTHON"; then
5785 # If the user set $PYTHON, use it and don't search something else.
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5787 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5788 prog="import sys
5789 # split strings by '.' and convert to numeric. Append some zeros
5790 # because we need at least 4 digits for the hex conversion.
5791 # map returns an iterator in Python 3.0 and a list in 2.x
5792 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5793 minverhex = 0
5794 # xrange is not present in Python 3.0 and range returns an iterator
5795 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5796 sys.exit(sys.hexversion < minverhex)"
5797 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5798 ($PYTHON -c "$prog") >&5 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; then :
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5803 $as_echo "yes" >&6; }
5804 else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5809 am_display_PYTHON=$PYTHON
5810 else
5811 # Otherwise, try each interpreter until we find one that satisfies
5812 # VERSION.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5814 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5815 if ${am_cv_pathless_PYTHON+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5819 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
5820 test "$am_cv_pathless_PYTHON" = none && break
5821 prog="import sys
5822 # split strings by '.' and convert to numeric. Append some zeros
5823 # because we need at least 4 digits for the hex conversion.
5824 # map returns an iterator in Python 3.0 and a list in 2.x
5825 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5826 minverhex = 0
5827 # xrange is not present in Python 3.0 and range returns an iterator
5828 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5829 sys.exit(sys.hexversion < minverhex)"
5830 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5831 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; then :
5835 break
5837 done
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5840 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5841 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5842 if test "$am_cv_pathless_PYTHON" = none; then
5843 PYTHON=:
5844 else
5845 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5846 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_path_PYTHON+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 case $PYTHON in
5853 [\\/]* | ?:[\\/]*)
5854 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5873 esac
5875 PYTHON=$ac_cv_path_PYTHON
5876 if test -n "$PYTHON"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5878 $as_echo "$PYTHON" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5886 am_display_PYTHON=$am_cv_pathless_PYTHON
5890 if test "$PYTHON" = :; then
5891 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5892 else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5896 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5897 if ${am_cv_python_version+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5903 $as_echo "$am_cv_python_version" >&6; }
5904 PYTHON_VERSION=$am_cv_python_version
5908 PYTHON_PREFIX='${prefix}'
5910 PYTHON_EXEC_PREFIX='${exec_prefix}'
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5915 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5916 if ${am_cv_python_platform+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5922 $as_echo "$am_cv_python_platform" >&6; }
5923 PYTHON_PLATFORM=$am_cv_python_platform
5926 # Just factor out some code duplication.
5927 am_python_setup_sysconfig="\
5928 import sys
5929 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5930 # with python 3.x. See automake bug#10227.
5931 try:
5932 import sysconfig
5933 except ImportError:
5934 can_use_sysconfig = 0
5935 else:
5936 can_use_sysconfig = 1
5937 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5938 # <https://github.com/pypa/virtualenv/issues/118>
5939 try:
5940 from platform import python_implementation
5941 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5942 can_use_sysconfig = 0
5943 except ImportError:
5944 pass"
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5948 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5949 if ${am_cv_python_pythondir+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 if test "x$prefix" = xNONE
5953 then
5954 am_py_prefix=$ac_default_prefix
5955 else
5956 am_py_prefix=$prefix
5958 am_cv_python_pythondir=`$PYTHON -c "
5959 $am_python_setup_sysconfig
5960 if can_use_sysconfig:
5961 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5962 else:
5963 from distutils import sysconfig
5964 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5965 sys.stdout.write(sitedir)"`
5966 case $am_cv_python_pythondir in
5967 $am_py_prefix*)
5968 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5969 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5972 case $am_py_prefix in
5973 /usr|/System*) ;;
5975 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5977 esac
5979 esac
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5983 $as_echo "$am_cv_python_pythondir" >&6; }
5984 pythondir=$am_cv_python_pythondir
5988 pkgpythondir=\${pythondir}/$PACKAGE
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5992 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5993 if ${am_cv_python_pyexecdir+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if test "x$exec_prefix" = xNONE
5997 then
5998 am_py_exec_prefix=$am_py_prefix
5999 else
6000 am_py_exec_prefix=$exec_prefix
6002 am_cv_python_pyexecdir=`$PYTHON -c "
6003 $am_python_setup_sysconfig
6004 if can_use_sysconfig:
6005 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6006 else:
6007 from distutils import sysconfig
6008 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6009 sys.stdout.write(sitedir)"`
6010 case $am_cv_python_pyexecdir in
6011 $am_py_exec_prefix*)
6012 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6013 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6016 case $am_py_exec_prefix in
6017 /usr|/System*) ;;
6019 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6021 esac
6023 esac
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6027 $as_echo "$am_cv_python_pyexecdir" >&6; }
6028 pyexecdir=$am_cv_python_pyexecdir
6032 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6042 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6043 if ${ac_cv_lib_png_png_read_png+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 ac_check_lib_save_LIBS=$LIBS
6047 LIBS="-lpng $LIBS"
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6051 /* Override any GCC internal prototype to avoid an error.
6052 Use char because int might match the return type of a GCC
6053 builtin and then its argument prototype would still apply. */
6054 #ifdef __cplusplus
6055 extern "C"
6056 #endif
6057 char png_read_png ();
6059 main ()
6061 return png_read_png ();
6063 return 0;
6065 _ACEOF
6066 if ac_fn_c_try_link "$LINENO"; then :
6067 ac_cv_lib_png_png_read_png=yes
6068 else
6069 ac_cv_lib_png_png_read_png=no
6071 rm -f core conftest.err conftest.$ac_objext \
6072 conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6076 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6077 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6078 cat >>confdefs.h <<_ACEOF
6079 #define HAVE_LIBPNG 1
6080 _ACEOF
6082 LIBS="-lpng $LIBS"
6086 if test "$ac_cv_lib_png_png_read_png" = ""; then
6087 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6090 FOR=for
6092 IF=if
6094 TEST=test
6096 CMP=cmp
6100 # Check for some includes for the X11 HIDD and the kernel
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6104 if ${ac_cv_path_GREP+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 if test -z "$GREP"; then
6108 ac_path_GREP_found=false
6109 # Loop through the user's path and test for each of PROGNAME-LIST
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_prog in grep ggrep; do
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6118 as_fn_executable_p "$ac_path_GREP" || continue
6119 # Check for GNU ac_path_GREP and select it if it is found.
6120 # Check for GNU $ac_path_GREP
6121 case `"$ac_path_GREP" --version 2>&1` in
6122 *GNU*)
6123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6125 ac_count=0
6126 $as_echo_n 0123456789 >"conftest.in"
6127 while :
6129 cat "conftest.in" "conftest.in" >"conftest.tmp"
6130 mv "conftest.tmp" "conftest.in"
6131 cp "conftest.in" "conftest.nl"
6132 $as_echo 'GREP' >> "conftest.nl"
6133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6135 as_fn_arith $ac_count + 1 && ac_count=$as_val
6136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6137 # Best one so far, save it but keep looking for a better one
6138 ac_cv_path_GREP="$ac_path_GREP"
6139 ac_path_GREP_max=$ac_count
6141 # 10*(2^10) chars as input seems more than enough
6142 test $ac_count -gt 10 && break
6143 done
6144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6145 esac
6147 $ac_path_GREP_found && break 3
6148 done
6149 done
6150 done
6151 IFS=$as_save_IFS
6152 if test -z "$ac_cv_path_GREP"; then
6153 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6155 else
6156 ac_cv_path_GREP=$GREP
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6161 $as_echo "$ac_cv_path_GREP" >&6; }
6162 GREP="$ac_cv_path_GREP"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6166 $as_echo_n "checking for egrep... " >&6; }
6167 if ${ac_cv_path_EGREP+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6171 then ac_cv_path_EGREP="$GREP -E"
6172 else
6173 if test -z "$EGREP"; then
6174 ac_path_EGREP_found=false
6175 # Loop through the user's path and test for each of PROGNAME-LIST
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_prog in egrep; do
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6184 as_fn_executable_p "$ac_path_EGREP" || continue
6185 # Check for GNU ac_path_EGREP and select it if it is found.
6186 # Check for GNU $ac_path_EGREP
6187 case `"$ac_path_EGREP" --version 2>&1` in
6188 *GNU*)
6189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6191 ac_count=0
6192 $as_echo_n 0123456789 >"conftest.in"
6193 while :
6195 cat "conftest.in" "conftest.in" >"conftest.tmp"
6196 mv "conftest.tmp" "conftest.in"
6197 cp "conftest.in" "conftest.nl"
6198 $as_echo 'EGREP' >> "conftest.nl"
6199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201 as_fn_arith $ac_count + 1 && ac_count=$as_val
6202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6203 # Best one so far, save it but keep looking for a better one
6204 ac_cv_path_EGREP="$ac_path_EGREP"
6205 ac_path_EGREP_max=$ac_count
6207 # 10*(2^10) chars as input seems more than enough
6208 test $ac_count -gt 10 && break
6209 done
6210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 esac
6213 $ac_path_EGREP_found && break 3
6214 done
6215 done
6216 done
6217 IFS=$as_save_IFS
6218 if test -z "$ac_cv_path_EGREP"; then
6219 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6221 else
6222 ac_cv_path_EGREP=$EGREP
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6228 $as_echo "$ac_cv_path_EGREP" >&6; }
6229 EGREP="$ac_cv_path_EGREP"
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6233 $as_echo_n "checking for ANSI C header files... " >&6; }
6234 if ${ac_cv_header_stdc+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 #include <stdlib.h>
6240 #include <stdarg.h>
6241 #include <string.h>
6242 #include <float.h>
6245 main ()
6249 return 0;
6251 _ACEOF
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253 ac_cv_header_stdc=yes
6254 else
6255 ac_cv_header_stdc=no
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 if test $ac_cv_header_stdc = yes; then
6260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 #include <string.h>
6265 _ACEOF
6266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6267 $EGREP "memchr" >/dev/null 2>&1; then :
6269 else
6270 ac_cv_header_stdc=no
6272 rm -f conftest*
6276 if test $ac_cv_header_stdc = yes; then
6277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <stdlib.h>
6282 _ACEOF
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "free" >/dev/null 2>&1; then :
6286 else
6287 ac_cv_header_stdc=no
6289 rm -f conftest*
6293 if test $ac_cv_header_stdc = yes; then
6294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6295 if test "$cross_compiling" = yes; then :
6297 else
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 #include <ctype.h>
6301 #include <stdlib.h>
6302 #if ((' ' & 0x0FF) == 0x020)
6303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6305 #else
6306 # define ISLOWER(c) \
6307 (('a' <= (c) && (c) <= 'i') \
6308 || ('j' <= (c) && (c) <= 'r') \
6309 || ('s' <= (c) && (c) <= 'z'))
6310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6311 #endif
6313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6315 main ()
6317 int i;
6318 for (i = 0; i < 256; i++)
6319 if (XOR (islower (i), ISLOWER (i))
6320 || toupper (i) != TOUPPER (i))
6321 return 2;
6322 return 0;
6324 _ACEOF
6325 if ac_fn_c_try_run "$LINENO"; then :
6327 else
6328 ac_cv_header_stdc=no
6330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6331 conftest.$ac_objext conftest.beam conftest.$ac_ext
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6337 $as_echo "$ac_cv_header_stdc" >&6; }
6338 if test $ac_cv_header_stdc = yes; then
6340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6346 inttypes.h stdint.h unistd.h
6347 do :
6348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6352 cat >>confdefs.h <<_ACEOF
6353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6354 _ACEOF
6358 done
6361 for ac_header in sys/ipc.h sys/shm.h \
6362 sys/mmap.h sys/mman.h sysexits.h \
6363 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6365 do :
6366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6367 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6369 cat >>confdefs.h <<_ACEOF
6370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6371 _ACEOF
6375 done
6378 for ac_header in sys/mount.h
6379 do :
6380 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6382 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6383 cat >>confdefs.h <<_ACEOF
6384 #define HAVE_SYS_MOUNT_H 1
6385 _ACEOF
6389 done
6392 ac_header_dirent=no
6393 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6394 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6396 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6397 if eval \${$as_ac_Header+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 #include <sys/types.h>
6403 #include <$ac_hdr>
6406 main ()
6408 if ((DIR *) 0)
6409 return 0;
6411 return 0;
6413 _ACEOF
6414 if ac_fn_c_try_compile "$LINENO"; then :
6415 eval "$as_ac_Header=yes"
6416 else
6417 eval "$as_ac_Header=no"
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 eval ac_res=\$$as_ac_Header
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6425 cat >>confdefs.h <<_ACEOF
6426 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6427 _ACEOF
6429 ac_header_dirent=$ac_hdr; break
6432 done
6433 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6434 if test $ac_header_dirent = dirent.h; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6436 $as_echo_n "checking for library containing opendir... " >&6; }
6437 if ${ac_cv_search_opendir+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 ac_func_search_save_LIBS=$LIBS
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6444 /* Override any GCC internal prototype to avoid an error.
6445 Use char because int might match the return type of a GCC
6446 builtin and then its argument prototype would still apply. */
6447 #ifdef __cplusplus
6448 extern "C"
6449 #endif
6450 char opendir ();
6452 main ()
6454 return opendir ();
6456 return 0;
6458 _ACEOF
6459 for ac_lib in '' dir; do
6460 if test -z "$ac_lib"; then
6461 ac_res="none required"
6462 else
6463 ac_res=-l$ac_lib
6464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6466 if ac_fn_c_try_link "$LINENO"; then :
6467 ac_cv_search_opendir=$ac_res
6469 rm -f core conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext
6471 if ${ac_cv_search_opendir+:} false; then :
6472 break
6474 done
6475 if ${ac_cv_search_opendir+:} false; then :
6477 else
6478 ac_cv_search_opendir=no
6480 rm conftest.$ac_ext
6481 LIBS=$ac_func_search_save_LIBS
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6484 $as_echo "$ac_cv_search_opendir" >&6; }
6485 ac_res=$ac_cv_search_opendir
6486 if test "$ac_res" != no; then :
6487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6493 $as_echo_n "checking for library containing opendir... " >&6; }
6494 if ${ac_cv_search_opendir+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 ac_func_search_save_LIBS=$LIBS
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6501 /* Override any GCC internal prototype to avoid an error.
6502 Use char because int might match the return type of a GCC
6503 builtin and then its argument prototype would still apply. */
6504 #ifdef __cplusplus
6505 extern "C"
6506 #endif
6507 char opendir ();
6509 main ()
6511 return opendir ();
6513 return 0;
6515 _ACEOF
6516 for ac_lib in '' x; do
6517 if test -z "$ac_lib"; then
6518 ac_res="none required"
6519 else
6520 ac_res=-l$ac_lib
6521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6523 if ac_fn_c_try_link "$LINENO"; then :
6524 ac_cv_search_opendir=$ac_res
6526 rm -f core conftest.err conftest.$ac_objext \
6527 conftest$ac_exeext
6528 if ${ac_cv_search_opendir+:} false; then :
6529 break
6531 done
6532 if ${ac_cv_search_opendir+:} false; then :
6534 else
6535 ac_cv_search_opendir=no
6537 rm conftest.$ac_ext
6538 LIBS=$ac_func_search_save_LIBS
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6541 $as_echo "$ac_cv_search_opendir" >&6; }
6542 ac_res=$ac_cv_search_opendir
6543 if test "$ac_res" != no; then :
6544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6551 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6552 if ${ac_cv_header_stat_broken+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6557 #include <sys/types.h>
6558 #include <sys/stat.h>
6560 #if defined S_ISBLK && defined S_IFDIR
6561 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6562 #endif
6564 #if defined S_ISBLK && defined S_IFCHR
6565 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6566 #endif
6568 #if defined S_ISLNK && defined S_IFREG
6569 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6570 #endif
6572 #if defined S_ISSOCK && defined S_IFREG
6573 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6574 #endif
6576 _ACEOF
6577 if ac_fn_c_try_compile "$LINENO"; then :
6578 ac_cv_header_stat_broken=no
6579 else
6580 ac_cv_header_stat_broken=yes
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6585 $as_echo "$ac_cv_header_stat_broken" >&6; }
6586 if test $ac_cv_header_stat_broken = yes; then
6588 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6593 $as_echo_n "checking for ANSI C header files... " >&6; }
6594 if ${ac_cv_header_stdc+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 #include <stdlib.h>
6600 #include <stdarg.h>
6601 #include <string.h>
6602 #include <float.h>
6605 main ()
6609 return 0;
6611 _ACEOF
6612 if ac_fn_c_try_compile "$LINENO"; then :
6613 ac_cv_header_stdc=yes
6614 else
6615 ac_cv_header_stdc=no
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 if test $ac_cv_header_stdc = yes; then
6620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 #include <string.h>
6625 _ACEOF
6626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6627 $EGREP "memchr" >/dev/null 2>&1; then :
6629 else
6630 ac_cv_header_stdc=no
6632 rm -f conftest*
6636 if test $ac_cv_header_stdc = yes; then
6637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6640 #include <stdlib.h>
6642 _ACEOF
6643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6644 $EGREP "free" >/dev/null 2>&1; then :
6646 else
6647 ac_cv_header_stdc=no
6649 rm -f conftest*
6653 if test $ac_cv_header_stdc = yes; then
6654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6655 if test "$cross_compiling" = yes; then :
6657 else
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 #include <ctype.h>
6661 #include <stdlib.h>
6662 #if ((' ' & 0x0FF) == 0x020)
6663 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6664 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6665 #else
6666 # define ISLOWER(c) \
6667 (('a' <= (c) && (c) <= 'i') \
6668 || ('j' <= (c) && (c) <= 'r') \
6669 || ('s' <= (c) && (c) <= 'z'))
6670 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6671 #endif
6673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6675 main ()
6677 int i;
6678 for (i = 0; i < 256; i++)
6679 if (XOR (islower (i), ISLOWER (i))
6680 || toupper (i) != TOUPPER (i))
6681 return 2;
6682 return 0;
6684 _ACEOF
6685 if ac_fn_c_try_run "$LINENO"; then :
6687 else
6688 ac_cv_header_stdc=no
6690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6691 conftest.$ac_objext conftest.beam conftest.$ac_ext
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6697 $as_echo "$ac_cv_header_stdc" >&6; }
6698 if test $ac_cv_header_stdc = yes; then
6700 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6705 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6706 if ${ac_cv_header_sys_wait_h+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 #include <sys/types.h>
6712 #include <sys/wait.h>
6713 #ifndef WEXITSTATUS
6714 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6715 #endif
6716 #ifndef WIFEXITED
6717 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6718 #endif
6721 main ()
6723 int s;
6724 wait (&s);
6725 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6727 return 0;
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731 ac_cv_header_sys_wait_h=yes
6732 else
6733 ac_cv_header_sys_wait_h=no
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6738 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6739 if test $ac_cv_header_sys_wait_h = yes; then
6741 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6746 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6747 if ${ac_cv_header_time+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752 #include <sys/types.h>
6753 #include <sys/time.h>
6754 #include <time.h>
6757 main ()
6759 if ((struct tm *) 0)
6760 return 0;
6762 return 0;
6764 _ACEOF
6765 if ac_fn_c_try_compile "$LINENO"; then :
6766 ac_cv_header_time=yes
6767 else
6768 ac_cv_header_time=no
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6773 $as_echo "$ac_cv_header_time" >&6; }
6774 if test $ac_cv_header_time = yes; then
6776 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6780 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6781 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6783 cat >>confdefs.h <<_ACEOF
6784 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6785 _ACEOF
6788 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6793 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6794 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6796 cat >>confdefs.h <<_ACEOF
6797 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6798 _ACEOF
6801 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6803 else
6804 case " $LIBOBJS " in
6805 *" fileblocks.$ac_objext "* ) ;;
6806 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6808 esac
6813 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6814 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_STRUCT_STAT_ST_RDEV 1
6818 _ACEOF
6821 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6827 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6828 if ${ac_cv_struct_tm+:} 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 <time.h>
6837 main ()
6839 struct tm tm;
6840 int *p = &tm.tm_sec;
6841 return !p;
6843 return 0;
6845 _ACEOF
6846 if ac_fn_c_try_compile "$LINENO"; then :
6847 ac_cv_struct_tm=time.h
6848 else
6849 ac_cv_struct_tm=sys/time.h
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6854 $as_echo "$ac_cv_struct_tm" >&6; }
6855 if test $ac_cv_struct_tm = sys/time.h; then
6857 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6861 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6862 #include <$ac_cv_struct_tm>
6865 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6867 cat >>confdefs.h <<_ACEOF
6868 #define HAVE_STRUCT_TM_TM_ZONE 1
6869 _ACEOF
6874 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6876 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6878 else
6879 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6881 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6882 ac_have_decl=1
6883 else
6884 ac_have_decl=0
6887 cat >>confdefs.h <<_ACEOF
6888 #define HAVE_DECL_TZNAME $ac_have_decl
6889 _ACEOF
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6892 $as_echo_n "checking for tzname... " >&6; }
6893 if ${ac_cv_var_tzname+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 #include <time.h>
6899 #if !HAVE_DECL_TZNAME
6900 extern char *tzname[];
6901 #endif
6904 main ()
6906 return tzname[0][0];
6908 return 0;
6910 _ACEOF
6911 if ac_fn_c_try_link "$LINENO"; then :
6912 ac_cv_var_tzname=yes
6913 else
6914 ac_cv_var_tzname=no
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6920 $as_echo "$ac_cv_var_tzname" >&6; }
6921 if test $ac_cv_var_tzname = yes; then
6923 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6928 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6929 if test "x$ac_cv_type_off_t" = xyes; then :
6931 else
6933 cat >>confdefs.h <<_ACEOF
6934 #define off_t long int
6935 _ACEOF
6939 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6940 if test "x$ac_cv_type_pid_t" = xyes; then :
6942 else
6944 cat >>confdefs.h <<_ACEOF
6945 #define pid_t int
6946 _ACEOF
6950 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6951 if test "x$ac_cv_type_size_t" = xyes; then :
6953 else
6955 cat >>confdefs.h <<_ACEOF
6956 #define size_t unsigned int
6957 _ACEOF
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6962 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6963 if ${ac_cv_type_uid_t+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968 #include <sys/types.h>
6970 _ACEOF
6971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6972 $EGREP "uid_t" >/dev/null 2>&1; then :
6973 ac_cv_type_uid_t=yes
6974 else
6975 ac_cv_type_uid_t=no
6977 rm -f conftest*
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6981 $as_echo "$ac_cv_type_uid_t" >&6; }
6982 if test $ac_cv_type_uid_t = no; then
6984 $as_echo "#define uid_t int" >>confdefs.h
6987 $as_echo "#define gid_t int" >>confdefs.h
6992 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6993 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6995 cat >>confdefs.h <<_ACEOF
6996 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6997 _ACEOF
7003 # Look for some functions
7004 for ac_func in getpagesize kqueue statfs statvfs \
7005 clone kse_create rfork_thread thr_create sa_register \
7006 getcontext makecontext setcontext sigaltstack swapcontext
7007 do :
7008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7011 cat >>confdefs.h <<_ACEOF
7012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7013 _ACEOF
7016 done
7022 for ac_header in $ac_header_list
7023 do :
7024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7025 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7027 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7028 cat >>confdefs.h <<_ACEOF
7029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7030 _ACEOF
7034 done
7043 for ac_func in getpagesize
7044 do :
7045 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7046 if test "x$ac_cv_func_getpagesize" = xyes; then :
7047 cat >>confdefs.h <<_ACEOF
7048 #define HAVE_GETPAGESIZE 1
7049 _ACEOF
7052 done
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7055 $as_echo_n "checking for working mmap... " >&6; }
7056 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 if test "$cross_compiling" = yes; then :
7060 ac_cv_func_mmap_fixed_mapped=no
7061 else
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 $ac_includes_default
7065 /* malloc might have been renamed as rpl_malloc. */
7066 #undef malloc
7068 /* Thanks to Mike Haertel and Jim Avera for this test.
7069 Here is a matrix of mmap possibilities:
7070 mmap private not fixed
7071 mmap private fixed at somewhere currently unmapped
7072 mmap private fixed at somewhere already mapped
7073 mmap shared not fixed
7074 mmap shared fixed at somewhere currently unmapped
7075 mmap shared fixed at somewhere already mapped
7076 For private mappings, we should verify that changes cannot be read()
7077 back from the file, nor mmap's back from the file at a different
7078 address. (There have been systems where private was not correctly
7079 implemented like the infamous i386 svr4.0, and systems where the
7080 VM page cache was not coherent with the file system buffer cache
7081 like early versions of FreeBSD and possibly contemporary NetBSD.)
7082 For shared mappings, we should conversely verify that changes get
7083 propagated back to all the places they're supposed to be.
7085 Grep wants private fixed already mapped.
7086 The main things grep needs to know about mmap are:
7087 * does it exist and is it safe to write into the mmap'd area
7088 * how to use it (BSD variants) */
7090 #include <fcntl.h>
7091 #include <sys/mman.h>
7093 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7094 char *malloc ();
7095 #endif
7097 /* This mess was copied from the GNU getpagesize.h. */
7098 #ifndef HAVE_GETPAGESIZE
7099 # ifdef _SC_PAGESIZE
7100 # define getpagesize() sysconf(_SC_PAGESIZE)
7101 # else /* no _SC_PAGESIZE */
7102 # ifdef HAVE_SYS_PARAM_H
7103 # include <sys/param.h>
7104 # ifdef EXEC_PAGESIZE
7105 # define getpagesize() EXEC_PAGESIZE
7106 # else /* no EXEC_PAGESIZE */
7107 # ifdef NBPG
7108 # define getpagesize() NBPG * CLSIZE
7109 # ifndef CLSIZE
7110 # define CLSIZE 1
7111 # endif /* no CLSIZE */
7112 # else /* no NBPG */
7113 # ifdef NBPC
7114 # define getpagesize() NBPC
7115 # else /* no NBPC */
7116 # ifdef PAGESIZE
7117 # define getpagesize() PAGESIZE
7118 # endif /* PAGESIZE */
7119 # endif /* no NBPC */
7120 # endif /* no NBPG */
7121 # endif /* no EXEC_PAGESIZE */
7122 # else /* no HAVE_SYS_PARAM_H */
7123 # define getpagesize() 8192 /* punt totally */
7124 # endif /* no HAVE_SYS_PARAM_H */
7125 # endif /* no _SC_PAGESIZE */
7127 #endif /* no HAVE_GETPAGESIZE */
7130 main ()
7132 char *data, *data2, *data3;
7133 const char *cdata2;
7134 int i, pagesize;
7135 int fd, fd2;
7137 pagesize = getpagesize ();
7139 /* First, make a file with some known garbage in it. */
7140 data = (char *) malloc (pagesize);
7141 if (!data)
7142 return 1;
7143 for (i = 0; i < pagesize; ++i)
7144 *(data + i) = rand ();
7145 umask (0);
7146 fd = creat ("conftest.mmap", 0600);
7147 if (fd < 0)
7148 return 2;
7149 if (write (fd, data, pagesize) != pagesize)
7150 return 3;
7151 close (fd);
7153 /* Next, check that the tail of a page is zero-filled. File must have
7154 non-zero length, otherwise we risk SIGBUS for entire page. */
7155 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7156 if (fd2 < 0)
7157 return 4;
7158 cdata2 = "";
7159 if (write (fd2, cdata2, 1) != 1)
7160 return 5;
7161 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7162 if (data2 == MAP_FAILED)
7163 return 6;
7164 for (i = 0; i < pagesize; ++i)
7165 if (*(data2 + i))
7166 return 7;
7167 close (fd2);
7168 if (munmap (data2, pagesize))
7169 return 8;
7171 /* Next, try to mmap the file at a fixed address which already has
7172 something else allocated at it. If we can, also make sure that
7173 we see the same garbage. */
7174 fd = open ("conftest.mmap", O_RDWR);
7175 if (fd < 0)
7176 return 9;
7177 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7178 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7179 return 10;
7180 for (i = 0; i < pagesize; ++i)
7181 if (*(data + i) != *(data2 + i))
7182 return 11;
7184 /* Finally, make sure that changes to the mapped area do not
7185 percolate back to the file as seen by read(). (This is a bug on
7186 some variants of i386 svr4.0.) */
7187 for (i = 0; i < pagesize; ++i)
7188 *(data2 + i) = *(data2 + i) + 1;
7189 data3 = (char *) malloc (pagesize);
7190 if (!data3)
7191 return 12;
7192 if (read (fd, data3, pagesize) != pagesize)
7193 return 13;
7194 for (i = 0; i < pagesize; ++i)
7195 if (*(data + i) != *(data3 + i))
7196 return 14;
7197 close (fd);
7198 return 0;
7200 _ACEOF
7201 if ac_fn_c_try_run "$LINENO"; then :
7202 ac_cv_func_mmap_fixed_mapped=yes
7203 else
7204 ac_cv_func_mmap_fixed_mapped=no
7206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7207 conftest.$ac_objext conftest.beam conftest.$ac_ext
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7212 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7213 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7215 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7218 rm -f conftest.mmap conftest.txt
7223 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7224 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7225 aros_config_ldflags=""
7227 aros_shared_default=yes
7229 aros_shared_cflags="-fPIC"
7230 aros_shared_aflags=""
7231 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7232 aros_kernel_ldflags="-Wl,-rpath,./lib"
7234 aros_kernel_ar_flags="cr"
7235 aros_target_ar_flags="cr"
7236 aros_target_nm_flags="-C -ul"
7237 aros_target_strip_flags="--strip-unneeded -R.comment"
7239 aros_compiler_libs=
7240 aros_arch_libs=
7242 aros_target_genmap="-Wl,-Map -Xlinker"
7244 # Native flavour stuff
7245 aros_serial_debug="0"
7247 # Palm native flavour stuff
7248 aros_palm_debug_hack="0"
7250 # Unix flavour stuff
7251 aros_nesting_supervisor="0"
7253 # Collect-aros stuff: "-ius" to ignore undefined symbols
7254 ignore_undefined_symbols=""
7256 # Check for X11 by default
7257 need_x11="auto"
7259 #-----------------------------------------------------------------------------
7262 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7263 # it switched on by default, and we use the host compiler, so it compiles AROS
7264 # code with this enabled resulting in link failures as we don't have support
7265 # for it.
7267 # We use two methods to disable it. For the host compiler (used to compile
7268 # some hosted modules), we test to see if the compiler supports stack
7269 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7270 # work on all platforms.
7272 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7273 # (this is done unconditionally, as it should have no effect on compilers
7274 # without the stack protection feature). This may be specific to the way that
7275 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7276 # strong enough to disable it in a generic way though, so we'll live with it
7277 # until another vendor ships GCC with it enabled in a different way, and deal
7278 # with it then.
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7282 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7283 save_cflags="$CFLAGS"
7284 CFLAGS="$CFLAGS -fno-stack-protector"
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7289 main ()
7293 return 0;
7295 _ACEOF
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297 use_no_stack_protector="yes"
7298 else
7299 use_no_stack_protector="no"
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7303 $as_echo "$use_no_stack_protector" >&6; }
7304 if test "x-$use_no_stack_protector" = "x-yes" ; then
7305 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7307 CFLAGS="$save_cflags"
7309 #-----------------------------------------------------------------------------
7311 # Disable pointer-signedness warnings if the compiler recognises the option
7312 # (this only works for the host compiler at the moment)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7315 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7316 save_cflags="$CFLAGS"
7317 CFLAGS="$CFLAGS -Wno-pointer-sign"
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7322 main ()
7326 return 0;
7328 _ACEOF
7329 if ac_fn_c_try_compile "$LINENO"; then :
7330 use_no_sign_warning="yes"
7331 else
7332 use_no_sign_warning="no"
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7336 $as_echo "$use_no_sign_warning" >&6; }
7337 if test "x-$use_no_sign_warning" = "x-yes" ; then
7338 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7340 CFLAGS="$save_cflags"
7342 #-----------------------------------------------------------------------------
7344 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7347 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7348 save_cflags="$CFLAGS"
7349 CFLAGS="$CFLAGS -fgnu89-inline"
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7354 main ()
7358 return 0;
7360 _ACEOF
7361 if ac_fn_c_try_compile "$LINENO"; then :
7362 use_gnu89_inline="yes"
7363 else
7364 use_gnu89_inline="no"
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7368 $as_echo "$use_gnu89_inline" >&6; }
7369 if test "x-$use_gnu89_inline" = "x-yes" ; then
7370 gnu89_inline="-fgnu89-inline"
7372 CFLAGS="$save_cflags"
7374 #-----------------------------------------------------------------------------
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7377 $as_echo_n "checking for type of build... " >&6; }
7378 # Check whether --enable-build_type was given.
7379 if test "${enable_build_type+set}" = set; then :
7380 enableval=$enable_build_type; build_type=$enableval
7381 else
7382 build_type="personal"
7386 if test "$build_type" = "nightly"; then
7387 build_type_string="NIGHTLY"
7388 elif test "$build_type" = "snapshot"; then
7389 build_type_string="SNAPSHOT"
7390 elif test "$build_type" = "milestone"; then
7391 build_type_string="MILESTONE"
7392 elif test "$build_type" = "release"; then
7393 build_type_string="RELEASE"
7394 else
7395 build_type_string="PERSONAL"
7396 build_type="personal"
7399 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7402 $as_echo "$build_type" >&6; }
7404 #-----------------------------------------------------------------------------
7405 all_debug_types="messages stack modules mungwall symbols"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7408 $as_echo_n "checking which debug types to enable... " >&6; }
7409 # Check whether --enable-debug was given.
7410 if test "${enable_debug+set}" = set; then :
7411 enableval=$enable_debug; debug="$enableval"
7412 else
7413 debug=""
7417 if test "$debug" = "" -o "$debug" = "no"; then
7418 debug="none"
7419 elif test "$debug" = "yes"; then
7420 debug="all"
7423 if test "$debug" = "all" ; then
7424 debug="messages stack modules symbols"
7425 for d in $all_debug_types; do
7426 export aros_${d}_debug="1"
7427 done
7428 else
7429 for d in $all_debug_types; do
7430 export aros_${d}_debug="0"
7431 done
7434 if test "$debug" != "none"; then
7435 debug=`echo $debug | sed s/,/\ /g`
7436 for d in $debug; do
7437 found="0"
7438 for d2 in $all_debug_types; do
7439 if test "$d2" = "$d"; then
7440 found="1"
7441 break
7443 done
7444 if test "$found" = "0"; then
7445 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7447 export aros_${d}_debug="1"
7448 done
7449 aros_debug="yes"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7452 $as_echo "$debug" >&6; }
7454 if test "$aros_messages_debug" = "1"; then
7455 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7456 else
7457 aros_messages_debug=""
7459 if test "$aros_symbols_debug" = "1"; then
7460 aros_symbols_debug="-g"
7461 else
7462 aros_symbols_debug=""
7465 # These are the flags to pass when compiling debugged programs
7466 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7467 aros_debug_aflags=""
7468 aros_debug_ldflags="$aros_symbols_debug"
7470 #-----------------------------------------------------------------------------
7471 # Checking for distcc and ccache.
7473 # Always apply the transforms in this particular order. Basically you should
7474 # always run 'ccache distcc compiler' in that order for the best performance.
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7477 $as_echo_n "checking whether to enable distcc... " >&6; }
7478 # Check whether --enable-distcc was given.
7479 if test "${enable_distcc+set}" = set; then :
7480 enableval=$enable_distcc; distcc="$enableval"
7481 else
7482 distcc="no"
7485 if test "$distcc" != "" -a "$distcc" != "no"; then
7486 # AC_CHECK_PROG will print out the result in this case
7487 # Extract the first word of "distcc", so it can be a program name with args.
7488 set dummy distcc; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_path_DISTCC+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 case $DISTCC in
7495 [\\/]* | ?:[\\/]*)
7496 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7510 done
7511 done
7512 IFS=$as_save_IFS
7514 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7516 esac
7518 DISTCC=$ac_cv_path_DISTCC
7519 if test -n "$DISTCC"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7521 $as_echo "$DISTCC" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7528 else
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 $as_echo "no" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7534 $as_echo_n "checking whether to enable ccache... " >&6; }
7535 # Check whether --enable-ccache was given.
7536 if test "${enable_ccache+set}" = set; then :
7537 enableval=$enable_ccache; ccache="$enableval"
7538 else
7539 ccache="no"
7542 if test "$ccache" != "" -a "$ccache" != "no"; then
7543 # AC_CHECK_PROG will print out the result in this case
7544 # Extract the first word of "ccache", so it can be a program name with args.
7545 set dummy ccache; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_CCACHE+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 if test -n "$CCACHE"; then
7552 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_CCACHE="ccache"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7565 done
7566 done
7567 IFS=$as_save_IFS
7571 CCACHE=$ac_cv_prog_CCACHE
7572 if test -n "$CCACHE"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7574 $as_echo "$CCACHE" >&6; }
7575 else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7581 else
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7586 #-----------------------------------------------------------------------------
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7588 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7590 # Check whether --with-kernel-gcc-version was given.
7591 if test "${with_kernel_gcc_version+set}" = set; then :
7592 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7593 else
7594 kernel_tool_version=""
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7598 $as_echo "$kernel_tool_version" >&6; }
7600 #-----------------------------------------------------------------------------
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7602 $as_echo_n "checking what optimization flags to use... " >&6; }
7604 # Check whether --with-optimization was given.
7605 if test "${with_optimization+set}" = set; then :
7606 withval=$with_optimization; optimization="$withval"
7607 else
7608 optimization="unknown"
7611 if test "$optimization" = "unknown"; then
7612 if test "$debug" != "none"; then
7613 optimization="-O0"
7614 else
7615 optimization="-O2"
7618 aros_optimization_cflags="$optimization"
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7620 $as_echo "$optimization" >&6; }
7622 #-----------------------------------------------------------------------------
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7624 $as_echo_n "checking what paranoia flags to use... " >&6; }
7626 # Check whether --with-paranoia was given.
7627 if test "${with_paranoia+set}" = set; then :
7628 withval=$with_paranoia; paranoia_flags="$withval"
7629 else
7630 paranoia_flags="default"
7633 if test "$paranoia_flags" = "default"; then
7634 paranoia_flags=""
7635 else if test "$paranoia_flags" = "yes"; then
7636 paranoia_flags="-Wall -Werror"
7637 fi fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7639 $as_echo "$paranoia_flags" >&6; }
7640 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7642 #-----------------------------------------------------------------------------
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7644 $as_echo_n "checking what target variant to enable... " >&6; }
7645 # Check whether --enable-target_variant was given.
7646 if test "${enable_target_variant+set}" = set; then :
7647 enableval=$enable_target_variant; target_variant=$enableval
7648 else
7649 target_variant=""
7652 if test "$target_variant" = ""; then
7653 aros_target_variant=""
7654 aros_target_suffix=""
7655 enableval="none"
7656 else
7657 aros_target_variant="$target_variant"
7658 aros_target_suffix="-$target_variant"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7661 $as_echo "$enableval" >&6; }
7663 #-----------------------------------------------------------------------------
7664 # Target-specific defaults. You can override then on a per-target basis.
7666 # Bootloader name. Currently used by PC target.
7667 target_bootloader="none"
7668 ENABLE_EXECSMP=
7670 #-----------------------------------------------------------------------------
7671 # Additional options for some specific targets
7673 case "$aros_target_variant" in
7674 ios)
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7676 $as_echo_n "checking XCode path... " >&6; }
7678 # Check whether --with-xcode was given.
7679 if test "${with_xcode+set}" = set; then :
7680 withval=$with_xcode; aros_xcode_path="$withval"
7681 else
7682 aros_xcode_path="/Developer"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7686 $as_echo "$aros_xcode_path" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7689 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7691 # Check whether --with-sdk-version was given.
7692 if test "${with_sdk_version+set}" = set; then :
7693 withval=$with_sdk_version; aros_sdk_version="$withval"
7694 else
7695 aros_sdk_version="4.1"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7699 $as_echo "$aros_sdk_version" >&6; }
7703 "android")
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7705 $as_echo_n "checking Android SDK path... " >&6; }
7707 # Check whether --with-sdk was given.
7708 if test "${with_sdk+set}" = set; then :
7709 withval=$with_sdk; aros_android_sdk="$withval"
7710 else
7711 aros_android_sdk=$default_android_sdk
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7715 $as_echo "$aros_android_sdk" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7718 $as_echo_n "checking Android NDK path... " >&6; }
7720 # Check whether --with-ndk was given.
7721 if test "${with_ndk+set}" = set; then :
7722 withval=$with_ndk; aros_android_ndk="$withval"
7723 else
7724 aros_android_ndk="none"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7728 $as_echo "$aros_android_ndk" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7731 $as_echo_n "checking what Android SDK version to use... " >&6; }
7733 # Check whether --with-sdk-version was given.
7734 if test "${with_sdk_version+set}" = set; then :
7735 withval=$with_sdk_version; aros_sdk_version="$withval"
7736 else
7737 aros_sdk_version="12"
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7741 $as_echo "$aros_sdk_version" >&6; }
7743 aros_android_level=android-$aros_sdk_version
7744 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7745 echo "Platform $aros_android_level is not installed in your SDK"
7746 echo "Use --with-sdk-version=<API level number> to select another platform version"
7747 echo "You can check what plaform versions are installed in your SDK"
7748 echo "by examining contents of $aros_android_sdk/platforms directory"
7749 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7752 export PATH="$aros_android_sdk/tools:$PATH"
7753 # Extract the first word of "$android_tool", so it can be a program name with args.
7754 set dummy $android_tool; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_path_android_tool+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 case $android_tool in
7761 [\\/]* | ?:[\\/]*)
7762 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7776 done
7777 done
7778 IFS=$as_save_IFS
7781 esac
7783 android_tool=$ac_cv_path_android_tool
7784 if test -n "$android_tool"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7786 $as_echo "$android_tool" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7793 if test "$android_tool" = ""; then
7794 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7797 if test "$aros_android_ndk" != "none"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7799 $as_echo_n "checking what Android NDK version to use... " >&6; }
7801 # Check whether --with-ndk-version was given.
7802 if test "${with_ndk_version+set}" = set; then :
7803 withval=$with_ndk_version; aros_ndk_version="$withval"
7804 else
7805 aros_ndk_version="9"
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7809 $as_echo "$aros_ndk_version" >&6; }
7812 # Extract the first word of "ant", so it can be a program name with args.
7813 set dummy ant; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_path_ant+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 case $ant in
7820 [\\/]* | ?:[\\/]*)
7821 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7835 done
7836 done
7837 IFS=$as_save_IFS
7840 esac
7842 ant=$ac_cv_path_ant
7843 if test -n "$ant"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7845 $as_echo "$ant" >&6; }
7846 else
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7852 if test "$ant" = ""; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7854 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7858 $as_echo_n "checking Build debug or release apk... " >&6; }
7860 # Check whether --with-apk-version was given.
7861 if test "${with_apk_version+set}" = set; then :
7862 withval=$with_apk_version; aros_android_antapk=$withval
7863 else
7864 aros_android_antapk=release
7867 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7868 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7871 $as_echo "$aros_android_antapk" >&6; }
7873 if test "$host_os" = "mingw32"; then
7874 android_tool="cmd //c $android_tool"
7877 need_dlopen="no"
7880 esac
7882 #-----------------------------------------------------------------------------
7883 # External toolchains
7884 kernel_tool_prefix="none"
7885 aros_tool_prefix="none"
7886 elf_tool_prefix="${target_cpu}-elf-"
7888 # This is the target configuration switch.
7889 case "$target_os" in
7890 linux*)
7891 aros_target_arch="linux"
7892 aros_target_family="unix"
7893 case "$target_cpu" in
7894 *m68k*)
7895 aros_target_cpu="m68k"
7896 aros_object_format="m68kelf"
7897 aros_flavour="emulcompat"
7898 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7899 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7900 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7901 gcc_target_cpu="mc68000"
7903 *i?86*)
7904 aros_target_cpu="i386"
7905 aros_object_format="elf_i386"
7906 aros_flavour="emulation"
7907 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7908 aros_kernel_ldflags="-Wl,-melf_i386"
7909 aros_default_wbdepth=8
7910 gcc_target_cpu="i386"
7911 pci_hidd_target="hidd-pci-linux"
7912 android_tool_dir_prefix="x86"
7913 android_tool_prefix="i686-android-linux"
7914 android_ndk_arch="x86"
7916 *x86_64*)
7917 aros_target_cpu="x86_64"
7918 aros_object_format="elf_x86_64"
7919 aros_flavour="emulation"
7920 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7921 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7922 aros_default_wbdepth=8
7923 pci_hidd_target="hidd-pci-linux"
7925 *powerpc*)
7926 aros_target_cpu="ppc"
7927 aros_object_format="elf32ppc"
7928 aros_flavour="emulation"
7929 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7930 aros_default_wbdepth=8
7931 gcc_target_cpu="ppc"
7933 # TODO
7934 # Same as powerpc, but I need this for the nightly build to work again.
7935 # Actually, the nightly should be made working with powerpc target.
7936 # That just was too much work for the moment, another week or two.
7937 *ppc*)
7938 aros_target_cpu="ppc"
7939 aros_object_format="elf32ppc"
7940 aros_flavour="emulation"
7941 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7942 aros_default_wbdepth=8
7943 gcc_target_cpu="ppc"
7945 *armhf*)
7946 aros_target_cpu="arm"
7947 target_cpu="arm"
7948 aros_object_format="armelf_aros"
7949 aros_flavour="emulation"
7950 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7951 gcc_target_cpu="arm"
7952 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7953 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7954 aros_arch_libs="-laeabi"
7955 gcc_default_float_abi="hard"
7956 android_tool_dir_prefix="arm-linux-androideabi"
7957 android_tool_prefix="arm-linux-androideabi"
7958 android_ndk_arch="arm"
7959 kernel_tool_prefix="arm-linux-gnueabihf-"
7961 *arm*)
7962 aros_target_cpu="arm"
7963 aros_object_format="armelf_aros"
7964 aros_flavour="emulation"
7965 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7966 gcc_target_cpu="arm"
7967 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7968 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7969 aros_arch_libs="-laeabi"
7970 android_tool_dir_prefix="arm-linux-androideabi"
7971 android_tool_prefix="arm-linux-androideabi"
7972 android_ndk_arch="arm"
7973 kernel_tool_prefix="arm-linux-gnueabi-"
7976 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7978 esac
7979 case "$aros_target_variant" in
7980 android)
7982 if test "$android_ndk_arch" = ""; then
7983 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7986 aros_default_wbwidth=320
7987 aros_default_wbheight=480
7988 if test "$aros_android_ndk" = "none"; then
7989 aros_kernel_cflags="-mandroid"
7990 aros_kernel_ldflags="-mandroid"
7991 CFLAGS="-mandroid"
7992 else
7993 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7994 kernel_tool_version=""
7995 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7996 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7997 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7998 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7999 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8001 need_x11=no
8002 unixgfx_hidd_target=kernel-hidd-androidgfx
8003 # Disable implicit PIC mode
8004 aros_target_cflags="$aros_target_cflags -fno-pic"
8005 kernel_tool_prefix="$android_tool_prefix-"
8007 esac
8011 aros_target_arch="pc"
8012 aros_shared_default="no"
8013 target_bootloader="grub2"
8014 case "$target_cpu" in
8015 *i?86*)
8016 aros_target_cpu="i386"
8019 if test "$aros_object_format" = "" ; then
8020 aros_object_format="elf_i386"
8022 aros_flavour="standalone"
8023 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8024 aros_kernel_ldflags="-Wl,-melf_i386"
8025 aros_default_wbwidth=640
8026 aros_default_wbheight=480
8027 gcc_target_cpu="i386"
8029 *x86_64*)
8030 aros_target_cpu="x86_64"
8031 aros_serial_debug=1
8032 if test "$aros_object_format" = "" ; then
8033 aros_object_format="elf_x86_64"
8035 aros_flavour="standalone"
8036 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8037 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8038 aros_kernel_ldflags=""
8039 aros_default_wbwidth=640
8040 aros_default_wbheight=480
8041 case "$aros_target_variant" in
8042 smp)
8043 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8045 esac
8048 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8050 esac
8053 prep)
8054 aros_target_arch="prep"
8055 aros_shared_default="no"
8056 aros_target_cpu="ppc"
8057 aros_object_format="elf32ppc"
8058 aros_flavour="ppcnative"
8059 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8060 aros_kernel_ldflags=""
8061 aros_default_wbwidth=640
8062 aros_default_wbheight=480
8063 gcc_target_cpu="ppc"
8066 freebsd*)
8067 aros_target_arch="freebsd"
8068 aros_target_family="unix"
8069 aros_target_cpu="i386"
8070 aros_flavour="emulation"
8071 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8072 gcc_target_cpu="i386"
8074 aros_target_strip_flags="-x"
8077 darwin*)
8078 aros_target_arch="darwin"
8079 aros_target_family="unix"
8080 aros_flavour="emulation"
8081 case "$target_cpu" in
8082 *i?86*)
8083 aros_ios_platform="iPhoneSimulator"
8084 aros_target_cpu="i386"
8085 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8086 aros_kernel_ldflags=""
8087 aros_macosx_version="10.4"
8088 aros_default_wbdepth=8
8089 gcc_target_cpu="i386"
8090 aros_object_format="elf_i386"
8091 aros_kernel_ar_flags="-cr"
8092 aros_target_strip_flags="-x"
8093 kernel_tool_flags="-m32"
8095 *x86_64*)
8096 aros_target_cpu="x86_64"
8097 aros_object_format="elf_x86_64"
8098 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8099 aros_macosx_version="10.6"
8100 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8101 aros_kernel_cflags="-m64"
8102 aros_kernel_ldflags="-m64"
8103 aros_target_cflags="-mcmodel=large"
8104 aros_default_wbdepth=8
8105 aros_kernel_ar="ar"
8106 aros_kernel_ar_flags="-cr"
8107 aros_kernel_ld="ld"
8108 aros_kernel_as="as"
8109 aros_kernel_ranlib="ranlib"
8110 aros_kernel_nm="nm"
8111 aros_kernel_strip="strip"
8112 kernel_tool_prefix="i686-apple-darwin10-"
8114 *ppc*)
8115 aros_target_cpu="ppc"
8116 aros_object_format="elf32ppc"
8117 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8118 aros_kernel_ldflags=""
8119 aros_macosx_version="10.0"
8120 aros_default_wbdepth=8
8121 gcc_target_cpu="ppc"
8122 aros_kernel_ar="ar"
8123 aros_kernel_ar_flags="-cr"
8124 aros_kernel_ld="ld -arch ppc"
8125 aros_kernel_as="as -arch ppc"
8126 aros_kernel_ranlib="ranlib -arch ppc"
8127 aros_kernel_nm="nm -arch ppc"
8128 aros_kernel_strip="strip -arch ppc"
8129 kernel_tool_prefix="powerpc-apple-darwin10-"
8131 *arm*)
8132 aros_ios_platform="iPhoneOS"
8133 aros_target_cpu="arm"
8134 aros_object_format="armelf_aros"
8135 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8136 aros_arch_libs="-laeabi"
8137 aros_default_wbdepth=8
8138 gcc_target_cpu="arm"
8139 aros_kernel_ar="ar"
8140 aros_kernel_ar_flags="-cr"
8141 aros_kernel_ld="ld -arch arm"
8142 aros_kernel_ranlib="ranlib -arch arm"
8143 kernel_tool_prefix="arm-apple-darwin10-"
8144 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8147 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8149 esac
8150 case "$aros_target_variant" in
8151 ios)
8152 aros_ios_version="3.0"
8153 aros_default_wbwidth=320
8154 aros_default_wbheight=480
8155 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8156 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8157 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8158 need_x11=no
8159 # This is here because it may depend on iOS or SDK version
8160 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8161 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8162 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8165 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8166 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8168 esac
8171 dragonfly*)
8172 aros_target_arch="dragonfly"
8173 aros_target_family="unix"
8174 aros_flavour="emulation"
8175 case "$target_cpu" in
8176 *i?86*)
8177 aros_target_cpu="i386"
8178 aros_object_format="elf_i386"
8179 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8181 *x86_64*)
8182 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8183 aros_target_cpu="x86_64"
8184 aros_object_format="elf_x86_64"
8185 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8188 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8190 esac
8193 netbsd*)
8194 aros_target_arch="netbsd"
8195 aros_target_family="unix"
8196 case "$target_cpu" in
8197 *m68k*)
8198 aros_target_cpu="m68k"
8199 aros_object_format="m68kelf"
8200 aros_flavour="emulcompat"
8201 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8202 gcc_target_cpu="mc68000"
8204 *i?86*)
8205 aros_target_cpu="i386"
8206 aros_object_format="elf_i386"
8207 aros_flavour="emulation"
8208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8209 aros_default_wbdepth=8
8210 gcc_target_cpu="i386"
8213 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8215 esac
8216 aros_target_genmap="-Wl,-M -Xlinker >"
8217 aros_flavour="emulation"
8218 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8221 openbsd*)
8222 aros_target_arch="openbsd"
8223 aros_target_family="unix"
8224 case "$target_cpu" in
8225 *i?86*)
8226 aros_target_cpu="i386"
8227 aros_object_format="elf_i386"
8228 aros_flavour="emulation"
8229 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8230 gcc_target_cpu="i386"
8233 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8235 esac
8236 aros_target_genmap="-Wl,-M -Xlinker >"
8237 aros_target_nm_flags="-u"
8238 aros_flavour="emulation"
8241 solaris*)
8242 aros_target_arch="solaris"
8243 aros_target_family="unix"
8244 case "$target_cpu" in
8245 *i?86*)
8246 aros_target_cpu="i386"
8247 aros_object_format="elf_i386"
8248 aros_flavour="emulation"
8249 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8250 aros_default_wbdepth=8
8251 gcc_target_cpu="i386"
8253 *sparc*)
8254 aros_target_cpu="sparc"
8255 aros_object_format="elf_sparc"
8256 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8257 gcc_target_cpu="sparc"
8260 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8262 esac
8263 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8264 aros_flavour="emulation"
8267 morphos*)
8268 aros_target_arch="morphos"
8269 aros_shared_default="no"
8270 aros_target_cpu="ppc"
8271 aros_object_format="elf_ppc"
8272 aros_flavour="nativecompat"
8273 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8274 gcc_target_cpu="ppc"
8277 sam440)
8278 aros_target_arch="sam440"
8279 aros_shared_default="no"
8280 aros_target_cpu="ppc"
8281 aros_object_format="elf32ppc"
8282 aros_flavour="ppcnative"
8283 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8284 aros_kernel_ldflags=""
8285 aros_default_wbwidth=1024
8286 aros_default_wbheight=768
8287 aros_default_wbdepth=24
8288 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8289 gcc_target_cpu="powerpc"
8292 efika)
8293 aros_target_arch="efika"
8294 aros_shared_default="no"
8295 aros_target_cpu="arm"
8296 aros_object_format="armelf_aros"
8297 aros_flavour="standalone"
8298 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8299 aros_kernel_ldflags=""
8300 aros_default_wbwidth=1024
8301 aros_default_wbheight=600
8302 aros_arch_libs="-laeabi"
8303 gcc_default_cpu="armv7-a"
8304 gcc_default_fpu="vfpv3"
8305 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8306 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8307 aros_optimization_cflags="$aros_optimization_cflags -Os"
8308 case "$target_cpu" in
8309 *armhf*)
8310 gcc_default_float_abi="hard"
8311 target_cpu=arm
8312 aros_target_cpu=arm
8314 *arm*)
8315 gcc_default_float_abi="softfp"
8318 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8320 esac
8323 chrp)
8324 aros_target_arch="chrp"
8325 aros_shared_default="no"
8326 aros_target_cpu="ppc"
8327 aros_object_format="elf32ppc"
8328 aros_flavour="ppcnative"
8329 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8330 aros_kernel_ldflags=""
8331 aros_default_wbwidth=640
8332 aros_default_wbheight=480
8333 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8334 gcc_target_cpu="powerpc"
8335 case "$aros_target_variant" in
8336 efika)
8337 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8339 esac
8342 r*pi)
8343 aros_flavour="standalone"
8344 aros_target_arch="raspi"
8345 aros_target_cpu="arm"
8346 aros_object_format="armelf_aros"
8347 aros_shared_default="no"
8348 aros_arch_libs="-laeabi"
8350 gcc_default_cpu="armv6zk"
8351 gcc_default_cpu_tune="arm1176jzf-s"
8353 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8354 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8355 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8356 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8357 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8358 case "$aros_target_variant" in
8359 smp)
8360 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8362 esac
8365 sun4i)
8366 aros_flavour="standalone"
8367 aros_target_arch="sun4i"
8368 aros_target_cpu="arm"
8369 aros_object_format="armelf_aros"
8370 aros_shared_default="no"
8371 aros_arch_libs="-laeabi"
8373 gcc_default_cpu="armv7-a"
8374 gcc_default_fpu="neon"
8375 gcc_default_cpu_tune="cortex-a8"
8376 gcc_default_float_abi="hard"
8378 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8379 aros_optimization_cflags=""
8380 aros_config_cflags="$aros_config_cflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8381 aros_config_aflags="$aros_config_aflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8384 amiga*)
8385 aros_target_arch="amiga"
8386 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8387 aros_shared_default="no"
8389 case "$target_cpu" in
8390 *m68k*)
8391 # Check whether --enable-amigaos_compliance was given.
8392 if test "${enable_amigaos_compliance+set}" = set; then :
8393 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8396 aros_enable_mmu=no
8397 aros_target_cpu="m68k"
8398 aros_object_format="m68kelf"
8399 aros_flavour="standcompat"
8400 gcc_target_cpu="m68000"
8401 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8402 aros_optimization_cflags="$aros_optimization_cflags -Os"
8403 aros_config_aflags="$aros_config_aflags"
8404 aros_target_strip_flags="-R.comment --strip-debug"
8405 aros_default_wbwidth=640
8406 aros_default_wbheight=256
8407 aros_default_wbdepth=2
8409 *ppc*)
8410 aros_cpu="ppc"
8411 aros_flavour="native"
8412 gcc_target_cpu="ppc"
8415 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8417 esac
8420 mingw*)
8421 aros_target_arch="mingw32"
8422 aros_shared_default="no"
8423 aros_flavour="emulation"
8424 aros_shared_cflags=""
8425 need_crosstools="yes"
8426 need_dlopen="no"
8427 rescomp="windres"
8428 case "$target_cpu" in
8429 *i?86*)
8430 aros_target_cpu="i386"
8431 aros_object_format="elf_i386"
8432 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8433 aros_default_wbdepth=8
8434 gcc_target_cpu="i386"
8436 kernel_tool_prefix="i386-mingw32-"
8438 *x86_64*)
8439 aros_target_cpu="x86_64"
8440 aros_object_format="elf_x86_64"
8441 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8442 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8443 aros_default_wbdepth=8
8444 kernel_tool_prefix="x86_64-w64-mingw32-"
8446 *arm*)
8447 aros_target_cpu="arm"
8448 aros_object_format="armelf_aros"
8449 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8450 aros_arch_libs="-laeabi"
8451 aros_default_wbdepth=8
8452 gcc_target_cpu="arm"
8453 gcc_default_float_abi="soft"
8454 kernel_tool_prefix="arm-mingw32ce-"
8455 aros_default_wbwidth=160
8456 aros_default_wbheight=160
8459 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8461 esac
8462 if test $host_os = "cygwin"; then
8463 aros_kernel_cflags="-mno-cygwin"
8466 pp*)
8467 aros_target_arch="pp"
8468 aros_shared_default="no"
8469 case "$target_cpu" in
8470 *m68k*)
8471 aros_target_cpu="m68k"
8472 aros_object_format="m68kelf"
8473 aros_flavour="palmnative"
8474 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8475 aros_default_wbwidth=160
8476 aros_default_wbheight=160
8477 aros_default_wbdepth=1
8478 aros_target_ar_flags="cru"
8479 aros_compiler_libs="-lgcc1"
8480 aros_shared_default=no
8481 aros_shared_cflags="-fpic"
8482 aros_shared_aflags=""
8483 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8484 aros_kernel_ldflags="-Wl,-rpath,./lib"
8485 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8486 aros_debug_aflags=""
8487 aros_debug_ldflags="$aros_symbols_debug"
8488 aros_mungwall_debug="0"
8489 aros_modules_debug="0"
8490 gcc_target_cpu="mc68000"
8491 ignore_undefined_symbols="-ius"
8494 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8496 esac
8499 mac*)
8500 aros_target_arch="mac"
8501 aros_shared_default="no"
8502 case "$target_cpu" in
8503 *m68k*)
8504 aros_target_cpu="m68k"
8505 aros_object_format="m68kelf"
8506 aros_flavour="mac68knative"
8507 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8508 aros_default_wbwidth=512
8509 aros_default_wbheight=384
8510 aros_default_wbdepth=8
8511 aros_target_ar_flags="cru"
8512 aros_compiler_libs="-lgcc1"
8513 aros_shared_default=no
8514 aros_shared_cflags="-fpic"
8515 aros_shared_aflags=""
8516 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8517 aros_kernel_ldflags="-Wl,-rpath,./lib"
8518 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8519 aros_debug_aflags=""
8520 aros_debug_ldflags="$aros_symbols_debug"
8521 aros_mungwall_debug="0"
8522 aros_modules_debug="0"
8523 gcc_target_cpu="mc68000"
8524 ignore_undefined_symbols="-ius"
8527 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8529 esac
8533 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8535 esac
8537 #-----------------------------------------------------------------------------
8538 crosstools_guess="yes"
8539 aros_target_toolchain="no"
8540 aros_config_sysroot=""
8541 aros_kernel_sysroot=""
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8544 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8546 # Check whether --with-kernel-toolchain-prefix was given.
8547 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8548 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8552 $as_echo "$kernel_tool_prefix" >&6; }
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8555 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8557 # Check whether --with-elf-toolchain-prefix was given.
8558 if test "${with_elf_toolchain_prefix+set}" = set; then :
8559 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8560 crosstools_guess="no"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8564 $as_echo "$elf_tool_prefix" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8567 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8569 # Check whether --with-aros-toolchain was given.
8570 if test "${with_aros_toolchain+set}" = set; then :
8571 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8572 crosstools_guess="no"
8575 if test "$aros_tool_prefix" = "yes" ; then
8576 aros_tool_prefix=$aros_target_cpu-aros-
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8579 $as_echo "$aros_tool_prefix" >&6; }
8581 #-----------------------------------------------------------------------------
8582 # Checking if we should build crosstools..
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8584 $as_echo_n "checking whether to build crosstools... " >&6; }
8585 # Check whether --enable-crosstools was given.
8586 if test "${enable_crosstools+set}" = set; then :
8587 enableval=$enable_crosstools; crosstools="$enableval"
8588 else
8589 crosstools="$crosstools_guess"
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8593 $as_echo "$crosstools" >&6; }
8595 if test "${crosstools}" = "yes"; then
8596 if test "${crosstools_guess}" = "no"; then
8597 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8601 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8602 aros_target_toolchain="yes"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8606 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8608 # Check whether --with-aros-toolchain-install was given.
8609 if test "${with_aros_toolchain_install+set}" = set; then :
8610 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8613 if test "x$aros_toolchain_install" = "x"; then
8614 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8615 else
8616 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8617 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8618 if test "$crosstools_guess" = "no" ; then
8619 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8621 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8622 aros_kernel_sysroot = $aros_config_sysroot
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8627 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8629 #-----------------------------------------------------------------------------
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8631 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8633 # Check whether --with-binutils-version was given.
8634 if test "${with_binutils_version+set}" = set; then :
8635 withval=$with_binutils_version; use_binutils_version="$withval"
8636 else
8637 use_binutils_version=""
8640 if test "$use_binutils_version" = ""; then
8641 target_binutils_version="$default_binutils_version"
8642 else
8643 target_binutils_version="$use_binutils_version"
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8646 $as_echo "$target_binutils_version" >&6; }
8649 # Helper to identify gcc version
8652 #-----------------------------------------------------------------------------
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8654 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8656 # Check whether --with-gcc-version was given.
8657 if test "${with_gcc_version+set}" = set; then :
8658 withval=$with_gcc_version; use_gcc_version="$withval"
8659 else
8660 use_gcc_version=""
8663 if test "$use_gcc_version" = ""; then
8664 if test "${crosstools}" = "no"; then
8665 if test "x$aros_toolchain_install" != "x"; then
8667 target_gcc_version=""
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8669 $as_echo_n "checking gcc version... " >&6; }
8670 if ${ax_cv_gcc_version+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8674 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8675 if test "x$ax_cv_gcc_version" = "x"; then :
8677 ax_cv_gcc_version=""
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8683 $as_echo "$ax_cv_gcc_version" >&6; }
8684 target_gcc_version=$ax_cv_gcc_version
8689 if test "$use_gcc_version" = ""; then
8690 target_gcc_version="$default_gcc_version"
8692 else
8693 target_gcc_version="$use_gcc_version"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8696 $as_echo "$target_gcc_version" >&6; }
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8699 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8700 # Check whether --enable-objc was given.
8701 if test "${enable_objc+set}" = set; then :
8702 enableval=$enable_objc; objc="$enableval"
8703 else
8704 objc="no"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8708 $as_echo "$objc" >&6; }
8709 if test "x$objc" = "xyes"; then
8710 objc_target="$objc"
8711 else
8712 objc_target="no-objc"
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8716 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8717 # Check whether --enable-java was given.
8718 if test "${enable_java+set}" = set; then :
8719 enableval=$enable_java; java="$enableval"
8720 else
8721 java="no"
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8725 $as_echo "$java" >&6; }
8726 if test "x$java" != "xno"; then
8727 java_target="$java"
8728 else
8729 java_target="no-java"
8732 spec_obj_format="-m $aros_object_format"
8733 # Now process extra architecture-specific options.
8734 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8735 # as well as floating-point ABI.
8736 case "$aros_target_cpu" in
8737 *x86_64*)
8738 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8740 arm*)
8741 if test "$gcc_default_cpu" = ""; then
8742 gcc_default_cpu="armv6"
8744 if test "$gcc_default_fpu" = ""; then
8745 gcc_default_fpu="vfp"
8747 if test "$gcc_default_float_abi" = ""; then
8748 if test "$target_cpu" = "armhf"; then
8749 gcc_default_float_abi="hard"
8750 else
8751 gcc_default_float_abi="softfp"
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8756 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8758 # Check whether --with-cpu was given.
8759 if test "${with_cpu+set}" = set; then :
8760 withval=$with_cpu; aros_gcc_cpu="$withval"
8761 else
8762 aros_gcc_cpu=$gcc_default_cpu
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8766 $as_echo "$aros_gcc_cpu" >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8769 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8771 # Check whether --with-fpu was given.
8772 if test "${with_fpu+set}" = set; then :
8773 withval=$with_fpu; aros_gcc_fpu="$withval"
8774 else
8775 aros_gcc_fpu=$gcc_default_fpu
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8779 $as_echo "$aros_gcc_fpu" >&6; }
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8782 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8784 # Check whether --with-float was given.
8785 if test "${with_float+set}" = set; then :
8786 withval=$with_float; aros_gcc_float_abi="$withval"
8787 else
8788 aros_gcc_float_abi=$gcc_default_float_abi
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8792 $as_echo "$aros_gcc_float_abi" >&6; }
8794 aros_isa_flags="-marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8795 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8796 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8798 i386)
8799 aros_isa_flags="-m32 -march=i486"
8800 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8801 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8803 esac
8805 # Some architectures may need custom ELF specs.
8806 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8807 elf_specs_in=config/${aros_object_format}-specs.in
8808 else
8809 elf_specs_in=config/elf-specs.in
8812 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8813 # Since we override specs, we may need to put these defines there
8814 if test "$gcc_target_cpu" != ""; then
8815 gcc_target_cpu="-D__${gcc_target_cpu}__"
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8819 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8821 # Check whether --with-portssources was given.
8822 if test "${with_portssources+set}" = set; then :
8823 withval=$with_portssources; with_portssrcdir=$withval
8824 else
8825 with_portssrcdir="default"
8828 if test "$with_portssrcdir" = "default"; then
8829 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8830 else
8831 AROS_PORTSSRCDIR="$with_portssrcdir"
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8834 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8837 $as_echo_n "checking which bootloader to use... " >&6; }
8839 # Check whether --with-bootloader was given.
8840 if test "${with_bootloader+set}" = set; then :
8841 withval=$with_bootloader; target_bootloader=$withval
8842 else
8843 target_bootloader=$target_bootloader
8846 if test "$target_bootloader" = "none"; then
8847 aros_target_bootloader=""
8848 else
8849 aros_target_bootloader="$target_bootloader"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8852 $as_echo "$target_bootloader" >&6; }
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8855 $as_echo_n "checking which icon-set to use... " >&6; }
8857 # Check whether --with-iconset was given.
8858 if test "${with_iconset+set}" = set; then :
8859 withval=$with_iconset; target_iconset=$withval
8860 else
8861 target_iconset="default"
8864 if test "$target_iconset" = "default"; then
8865 aros_target_iconset="Gorilla"
8866 target_iconset="default (Gorilla)"
8867 else
8868 aros_target_iconset="$target_iconset"
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8871 $as_echo "$target_iconset" >&6; }
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8874 $as_echo_n "checking which GUI Theme to use... " >&6; }
8876 # Check whether --with-theme was given.
8877 if test "${with_theme+set}" = set; then :
8878 withval=$with_theme; target_guitheme=$withval
8879 else
8880 target_guitheme="default"
8883 if test "$target_guitheme" = "default"; then
8884 aros_target_guitheme="Ice"
8885 else
8886 aros_target_guitheme="$target_guitheme"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8889 $as_echo "$aros_target_guitheme" >&6; }
8891 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8892 # for target code)
8893 cross_compiling=no
8895 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8896 cross_compiling=yes
8899 if test "$aros_host_cpu" == "x86_64" ; then
8900 if test "$aros_target_cpu" == "i386" ; then
8901 cross_compiling=no
8905 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8906 if test "$aros_host_arch" != "$aros_target_arch" ; then
8907 cross_compiling=yes
8909 else
8910 if test "$host_cc_elf" = "no" ; then
8911 cross_compiling=yes
8915 if test "$cross_compiling" = "no" ; then
8916 kernel_tool_prefix=""
8917 if test "$host_cc_elf" = "yes" ; then
8918 elf_tool_prefix=""
8922 if test "$kernel_tool_version" != ""; then
8923 kernel_tool_version="-$kernel_tool_version"
8926 #######################################################################
8927 ## Compute what toolchains to use, and their paths ##
8928 #######################################################################
8930 # This takes, as input:
8931 # crosstools {yes,no}
8932 # kernel_tool_version {"",[version]}
8933 # target_tool_version {"",[version]}
8934 # kernel_tool_prefix {none,[some-arch-os-]}
8935 # target_tool_prefix ${aros_target_cpu}-aros-
8936 # aros_tool_prefix ${aros_target_cpu}-aros-
8938 # The output is
8939 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8940 # Where the 'kernel' binaries are located
8941 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8942 # Where the 'target' binaries are located
8943 # (not the symlink farm - that is aros_target_*!)
8945 # The rules are:
8946 # if crosstools then
8947 # if kernel_tools_prefix = "no-kernel-prefix-"
8948 # aros_kernel_* = crosstools cc paths
8949 # aros_kernel_cc = elf cc wrapper around crosstools cc
8950 # else
8951 # VALIDATE(${kernel_tools_prefix}*)
8952 # aros_kernel_* = ${kernel_tools_prefix}*
8953 # if ${kernel_tools_prefix}cc is an AROS gcc
8954 # aros_kernel_cc = ${kernel_tools_prefix}cc
8955 # else
8956 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8957 # fi
8958 # fi
8960 # orig_target_* = aros built crosstools
8961 # orig_target_cc = elf cc wrapper around crosstools cc
8962 # else
8963 # VALIDATE(${kernel_tools_prefix}*)
8965 # orig_target_* = aros_kernel_*
8966 # if aros_kernel_cc is an AROS gcc
8967 # orig_target_cc = aros_kernel_cc
8968 # else
8969 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8970 # fi
8971 # fi
8973 target_tool_prefix="${aros_target_cpu}-aros-"
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8976 $as_echo_n "checking which kernel tools... " >&6; }
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8978 $as_echo "$kernel_tool_prefix" >&6; };
8980 if test "$kernel_tool_prefix" = "none" ; then
8981 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8982 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8984 else
8985 # Kernel tools required - find them
8986 # Note that 'normally', aros_kernel_* overrides will be
8987 # empty, unless specified in the per-arch sections above.
8988 if test "x$aros_kernel_cpp" = "x"; then
8989 aros_kernel_cpp=${kernel_tool_prefix}cpp
8992 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8993 if test "$cross_compiling" = "yes" ; then
8994 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8995 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 case $aros_kernel_cpp in
9002 [\\/]* | ?:[\\/]*)
9003 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 break 2
9017 done
9018 done
9019 IFS=$as_save_IFS
9022 esac
9024 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9025 if test -n "$aros_kernel_cpp"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9027 $as_echo "$aros_kernel_cpp" >&6; }
9028 else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9034 else
9035 if test "$GCC" = "yes"; then
9036 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9037 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9038 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040 $as_echo_n "checking for $ac_word... " >&6; }
9041 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 case $aros_kernel_cpp in
9045 [\\/]* | ?:[\\/]*)
9046 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in `dirname $aros_gcc_cpp`
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9060 done
9061 done
9062 IFS=$as_save_IFS
9065 esac
9067 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9068 if test -n "$aros_kernel_cpp"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9070 $as_echo "$aros_kernel_cpp" >&6; }
9071 else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9078 if test "$aros_kernel_cpp" = ""; then
9079 # Extract the first word of "cpp", so it can be a program name with args.
9080 set dummy cpp; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 case $aros_kernel_cpp in
9087 [\\/]* | ?:[\\/]*)
9088 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
9096 for ac_exec_ext in '' $ac_executable_extensions; do
9097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9098 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 break 2
9102 done
9103 done
9104 IFS=$as_save_IFS
9107 esac
9109 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9110 if test -n "$aros_kernel_cpp"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9112 $as_echo "$aros_kernel_cpp" >&6; }
9113 else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9121 else
9122 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9123 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 case $aros_kernel_cpp in
9130 [\\/]* | ?:[\\/]*)
9131 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 for as_dir in $PATH
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
9140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9141 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 break 2
9145 done
9146 done
9147 IFS=$as_save_IFS
9150 esac
9152 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9153 if test -n "$aros_kernel_cpp"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9155 $as_echo "$aros_kernel_cpp" >&6; }
9156 else
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9164 if test "$aros_kernel_cpp" = ""; then
9165 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9167 if test "x$aros_kernel_cc" = "x"; then
9168 aros_kernel_cc=${kernel_tool_prefix}gcc
9171 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9172 if test "$cross_compiling" = "yes" ; then
9173 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9174 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176 $as_echo_n "checking for $ac_word... " >&6; }
9177 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 case $aros_kernel_cc in
9181 [\\/]* | ?:[\\/]*)
9182 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 for as_dir in $PATH
9188 IFS=$as_save_IFS
9189 test -z "$as_dir" && as_dir=.
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9192 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9194 break 2
9196 done
9197 done
9198 IFS=$as_save_IFS
9201 esac
9203 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9204 if test -n "$aros_kernel_cc"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9206 $as_echo "$aros_kernel_cc" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9213 else
9214 if test "$GCC" = "yes"; then
9215 aros_gcc_cc=`$CC -print-prog-name=cc`
9216 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9217 set dummy `basename $aros_gcc_cc`; ac_word=$2
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 $as_echo_n "checking for $ac_word... " >&6; }
9220 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 case $aros_kernel_cc in
9224 [\\/]* | ?:[\\/]*)
9225 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in `dirname $aros_gcc_cc`
9231 IFS=$as_save_IFS
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9235 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 break 2
9239 done
9240 done
9241 IFS=$as_save_IFS
9244 esac
9246 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9247 if test -n "$aros_kernel_cc"; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9249 $as_echo "$aros_kernel_cc" >&6; }
9250 else
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9257 if test "$aros_kernel_cc" = ""; then
9258 # Extract the first word of "cc", so it can be a program name with args.
9259 set dummy cc; ac_word=$2
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261 $as_echo_n "checking for $ac_word... " >&6; }
9262 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 case $aros_kernel_cc in
9266 [\\/]* | ?:[\\/]*)
9267 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9281 done
9282 done
9283 IFS=$as_save_IFS
9286 esac
9288 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9289 if test -n "$aros_kernel_cc"; then
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9291 $as_echo "$aros_kernel_cc" >&6; }
9292 else
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294 $as_echo "no" >&6; }
9300 else
9301 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9302 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 case $aros_kernel_cc in
9309 [\\/]* | ?:[\\/]*)
9310 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in $PATH
9316 IFS=$as_save_IFS
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9320 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 break 2
9324 done
9325 done
9326 IFS=$as_save_IFS
9329 esac
9331 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9332 if test -n "$aros_kernel_cc"; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9334 $as_echo "$aros_kernel_cc" >&6; }
9335 else
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 $as_echo "no" >&6; }
9343 if test "$aros_kernel_cc" = ""; then
9344 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9346 if test "x$aros_kernel_cxx" = "x"; then
9347 aros_kernel_cxx=${kernel_tool_prefix}g++
9350 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9351 if test "$cross_compiling" = "yes" ; then
9352 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9353 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355 $as_echo_n "checking for $ac_word... " >&6; }
9356 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 case $aros_kernel_cxx in
9360 [\\/]* | ?:[\\/]*)
9361 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9367 IFS=$as_save_IFS
9368 test -z "$as_dir" && as_dir=.
9369 for ac_exec_ext in '' $ac_executable_extensions; do
9370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9371 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373 break 2
9375 done
9376 done
9377 IFS=$as_save_IFS
9380 esac
9382 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9383 if test -n "$aros_kernel_cxx"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9385 $as_echo "$aros_kernel_cxx" >&6; }
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9392 else
9393 if test "$GCC" = "yes"; then
9394 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9395 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9396 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9398 $as_echo_n "checking for $ac_word... " >&6; }
9399 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 case $aros_kernel_cxx in
9403 [\\/]* | ?:[\\/]*)
9404 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408 for as_dir in `dirname $aros_gcc_cxx`
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9414 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 break 2
9418 done
9419 done
9420 IFS=$as_save_IFS
9423 esac
9425 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9426 if test -n "$aros_kernel_cxx"; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9428 $as_echo "$aros_kernel_cxx" >&6; }
9429 else
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9436 if test "$aros_kernel_cxx" = ""; then
9437 # Extract the first word of "cxx", so it can be a program name with args.
9438 set dummy cxx; ac_word=$2
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 $as_echo_n "checking for $ac_word... " >&6; }
9441 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 case $aros_kernel_cxx in
9445 [\\/]* | ?:[\\/]*)
9446 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9456 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 break 2
9460 done
9461 done
9462 IFS=$as_save_IFS
9465 esac
9467 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9468 if test -n "$aros_kernel_cxx"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9470 $as_echo "$aros_kernel_cxx" >&6; }
9471 else
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473 $as_echo "no" >&6; }
9479 else
9480 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9481 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 case $aros_kernel_cxx in
9488 [\\/]* | ?:[\\/]*)
9489 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 for as_dir in $PATH
9495 IFS=$as_save_IFS
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9499 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 break 2
9503 done
9504 done
9505 IFS=$as_save_IFS
9508 esac
9510 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9511 if test -n "$aros_kernel_cxx"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9513 $as_echo "$aros_kernel_cxx" >&6; }
9514 else
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9522 # If it's set, make sure it's really there
9523 if test "x$aros_kernel_cxx" != "x" ; then
9524 if test "$aros_kernel_cxx" = ""; then
9525 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9529 if test "$aros_kernel_ld" = ""; then
9530 if test "$cross_compiling" = "yes" ; then
9531 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9532 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 case $aros_kernel_ld in
9539 [\\/]* | ?:[\\/]*)
9540 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9550 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 break 2
9554 done
9555 done
9556 IFS=$as_save_IFS
9559 esac
9561 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9562 if test -n "$aros_kernel_ld"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9564 $as_echo "$aros_kernel_ld" >&6; }
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9571 else
9572 if test "$GCC" = "yes"; then
9573 aros_gcc_ld=`$CC -print-prog-name=ld`
9574 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9575 set dummy `basename $aros_gcc_ld`; ac_word=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 case $aros_kernel_ld in
9582 [\\/]* | ?:[\\/]*)
9583 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in `dirname $aros_gcc_ld`
9589 IFS=$as_save_IFS
9590 test -z "$as_dir" && as_dir=.
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9593 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 break 2
9597 done
9598 done
9599 IFS=$as_save_IFS
9602 esac
9604 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9605 if test -n "$aros_kernel_ld"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9607 $as_echo "$aros_kernel_ld" >&6; }
9608 else
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9615 if test "$aros_kernel_ld" = ""; then
9616 # Extract the first word of "ld", so it can be a program name with args.
9617 set dummy ld; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 case $aros_kernel_ld in
9624 [\\/]* | ?:[\\/]*)
9625 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 for as_dir in $PATH
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9639 done
9640 done
9641 IFS=$as_save_IFS
9644 esac
9646 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9647 if test -n "$aros_kernel_ld"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9649 $as_echo "$aros_kernel_ld" >&6; }
9650 else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652 $as_echo "no" >&6; }
9658 else
9659 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9660 set dummy $aros_kernel_ld; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 case $aros_kernel_ld in
9667 [\\/]* | ?:[\\/]*)
9668 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9678 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9682 done
9683 done
9684 IFS=$as_save_IFS
9687 esac
9689 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9690 if test -n "$aros_kernel_ld"; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9692 $as_echo "$aros_kernel_ld" >&6; }
9693 else
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9701 if test "$aros_kernel_ld" = ""; then
9702 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9705 if test "$aros_kernel_as" = ""; then
9706 if test "$cross_compiling" = "yes" ; then
9707 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9708 set dummy ${kernel_tool_prefix}as; ac_word=$2
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 $as_echo_n "checking for $ac_word... " >&6; }
9711 if ${ac_cv_path_aros_kernel_as+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 case $aros_kernel_as in
9715 [\\/]* | ?:[\\/]*)
9716 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 for as_dir in $PATH
9722 IFS=$as_save_IFS
9723 test -z "$as_dir" && as_dir=.
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9726 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9728 break 2
9730 done
9731 done
9732 IFS=$as_save_IFS
9735 esac
9737 aros_kernel_as=$ac_cv_path_aros_kernel_as
9738 if test -n "$aros_kernel_as"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9740 $as_echo "$aros_kernel_as" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9747 else
9748 if test "$GCC" = "yes"; then
9749 aros_gcc_as=`$CC -print-prog-name=as`
9750 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9751 set dummy `basename $aros_gcc_as`; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if ${ac_cv_path_aros_kernel_as+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 case $aros_kernel_as in
9758 [\\/]* | ?:[\\/]*)
9759 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in `dirname $aros_gcc_as`
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9769 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9773 done
9774 done
9775 IFS=$as_save_IFS
9778 esac
9780 aros_kernel_as=$ac_cv_path_aros_kernel_as
9781 if test -n "$aros_kernel_as"; then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9783 $as_echo "$aros_kernel_as" >&6; }
9784 else
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 $as_echo "no" >&6; }
9791 if test "$aros_kernel_as" = ""; then
9792 # Extract the first word of "as", so it can be a program name with args.
9793 set dummy as; ac_word=$2
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9795 $as_echo_n "checking for $ac_word... " >&6; }
9796 if ${ac_cv_path_aros_kernel_as+:} false; then :
9797 $as_echo_n "(cached) " >&6
9798 else
9799 case $aros_kernel_as in
9800 [\\/]* | ?:[\\/]*)
9801 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9820 esac
9822 aros_kernel_as=$ac_cv_path_aros_kernel_as
9823 if test -n "$aros_kernel_as"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9825 $as_echo "$aros_kernel_as" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9834 else
9835 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9836 set dummy $aros_kernel_as; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_path_aros_kernel_as+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 case $aros_kernel_as in
9843 [\\/]* | ?:[\\/]*)
9844 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in $PATH
9850 IFS=$as_save_IFS
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 break 2
9858 done
9859 done
9860 IFS=$as_save_IFS
9863 esac
9865 aros_kernel_as=$ac_cv_path_aros_kernel_as
9866 if test -n "$aros_kernel_as"; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9868 $as_echo "$aros_kernel_as" >&6; }
9869 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 $as_echo "no" >&6; }
9877 if test "$aros_kernel_as" = ""; then
9878 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9881 if test "$aros_kernel_ar" = ""; then
9882 if test "$cross_compiling" = "yes" ; then
9883 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9884 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 case $aros_kernel_ar in
9891 [\\/]* | ?:[\\/]*)
9892 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896 for as_dir in $PATH
9898 IFS=$as_save_IFS
9899 test -z "$as_dir" && as_dir=.
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9902 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 break 2
9906 done
9907 done
9908 IFS=$as_save_IFS
9911 esac
9913 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9914 if test -n "$aros_kernel_ar"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9916 $as_echo "$aros_kernel_ar" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9923 else
9924 if test "$GCC" = "yes"; then
9925 aros_gcc_ar=`$CC -print-prog-name=ar`
9926 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9927 set dummy `basename $aros_gcc_ar`; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 case $aros_kernel_ar in
9934 [\\/]* | ?:[\\/]*)
9935 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 for as_dir in `dirname $aros_gcc_ar`
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
9943 for ac_exec_ext in '' $ac_executable_extensions; do
9944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9945 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 break 2
9949 done
9950 done
9951 IFS=$as_save_IFS
9954 esac
9956 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9957 if test -n "$aros_kernel_ar"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9959 $as_echo "$aros_kernel_ar" >&6; }
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9967 if test "$aros_kernel_ar" = ""; then
9968 # Extract the first word of "ar", so it can be a program name with args.
9969 set dummy ar; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 case $aros_kernel_ar in
9976 [\\/]* | ?:[\\/]*)
9977 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in $PATH
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9991 done
9992 done
9993 IFS=$as_save_IFS
9996 esac
9998 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9999 if test -n "$aros_kernel_ar"; then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10001 $as_echo "$aros_kernel_ar" >&6; }
10002 else
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10010 else
10011 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10012 set dummy $aros_kernel_ar; ac_word=$2
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014 $as_echo_n "checking for $ac_word... " >&6; }
10015 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 case $aros_kernel_ar in
10019 [\\/]* | ?:[\\/]*)
10020 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024 for as_dir in $PATH
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10030 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10034 done
10035 done
10036 IFS=$as_save_IFS
10039 esac
10041 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10042 if test -n "$aros_kernel_ar"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10044 $as_echo "$aros_kernel_ar" >&6; }
10045 else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10053 if test "$aros_kernel_ar" = ""; then
10054 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10057 if test "$aros_kernel_ranlib" = ""; then
10058 if test "$cross_compiling" = "yes" ; then
10059 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10060 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062 $as_echo_n "checking for $ac_word... " >&6; }
10063 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10066 case $aros_kernel_ranlib in
10067 [\\/]* | ?:[\\/]*)
10068 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10074 IFS=$as_save_IFS
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080 break 2
10082 done
10083 done
10084 IFS=$as_save_IFS
10087 esac
10089 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10090 if test -n "$aros_kernel_ranlib"; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10092 $as_echo "$aros_kernel_ranlib" >&6; }
10093 else
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10099 else
10100 if test "$GCC" = "yes"; then
10101 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10102 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10103 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 $as_echo_n "checking for $ac_word... " >&6; }
10106 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 case $aros_kernel_ranlib in
10110 [\\/]* | ?:[\\/]*)
10111 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115 for as_dir in `dirname $aros_gcc_ranlib`
10117 IFS=$as_save_IFS
10118 test -z "$as_dir" && as_dir=.
10119 for ac_exec_ext in '' $ac_executable_extensions; do
10120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10121 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123 break 2
10125 done
10126 done
10127 IFS=$as_save_IFS
10130 esac
10132 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10133 if test -n "$aros_kernel_ranlib"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10135 $as_echo "$aros_kernel_ranlib" >&6; }
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10143 if test "$aros_kernel_ranlib" = ""; then
10144 # Extract the first word of "ranlib", so it can be a program name with args.
10145 set dummy ranlib; 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_ranlib+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 case $aros_kernel_ranlib in
10152 [\\/]* | ?:[\\/]*)
10153 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
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_ranlib="$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_ranlib=$ac_cv_path_aros_kernel_ranlib
10175 if test -n "$aros_kernel_ranlib"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10177 $as_echo "$aros_kernel_ranlib" >&6; }
10178 else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10186 else
10187 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10188 set dummy $aros_kernel_ranlib; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 case $aros_kernel_ranlib in
10195 [\\/]* | ?:[\\/]*)
10196 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10210 done
10211 done
10212 IFS=$as_save_IFS
10215 esac
10217 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10218 if test -n "$aros_kernel_ranlib"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10220 $as_echo "$aros_kernel_ranlib" >&6; }
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10229 if test "$aros_kernel_ranlib" = ""; then
10230 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10233 if test "$aros_kernel_nm" = ""; then
10234 if test "$cross_compiling" = "yes" ; then
10235 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10236 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10238 $as_echo_n "checking for $ac_word... " >&6; }
10239 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 case $aros_kernel_nm in
10243 [\\/]* | ?:[\\/]*)
10244 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10254 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10258 done
10259 done
10260 IFS=$as_save_IFS
10263 esac
10265 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10266 if test -n "$aros_kernel_nm"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10268 $as_echo "$aros_kernel_nm" >&6; }
10269 else
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10275 else
10276 if test "$GCC" = "yes"; then
10277 aros_gcc_nm=`$CC -print-prog-name=nm`
10278 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10279 set dummy `basename $aros_gcc_nm`; ac_word=$2
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281 $as_echo_n "checking for $ac_word... " >&6; }
10282 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 case $aros_kernel_nm in
10286 [\\/]* | ?:[\\/]*)
10287 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291 for as_dir in `dirname $aros_gcc_nm`
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10297 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10299 break 2
10301 done
10302 done
10303 IFS=$as_save_IFS
10306 esac
10308 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10309 if test -n "$aros_kernel_nm"; then
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10311 $as_echo "$aros_kernel_nm" >&6; }
10312 else
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10319 if test "$aros_kernel_nm" = ""; then
10320 # Extract the first word of "nm", so it can be a program name with args.
10321 set dummy nm; ac_word=$2
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323 $as_echo_n "checking for $ac_word... " >&6; }
10324 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10327 case $aros_kernel_nm in
10328 [\\/]* | ?:[\\/]*)
10329 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10339 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 break 2
10343 done
10344 done
10345 IFS=$as_save_IFS
10348 esac
10350 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10351 if test -n "$aros_kernel_nm"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10353 $as_echo "$aros_kernel_nm" >&6; }
10354 else
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356 $as_echo "no" >&6; }
10362 else
10363 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10364 set dummy $aros_kernel_nm; ac_word=$2
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366 $as_echo_n "checking for $ac_word... " >&6; }
10367 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 case $aros_kernel_nm in
10371 [\\/]* | ?:[\\/]*)
10372 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10382 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10386 done
10387 done
10388 IFS=$as_save_IFS
10391 esac
10393 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10394 if test -n "$aros_kernel_nm"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10396 $as_echo "$aros_kernel_nm" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10405 if test "$aros_kernel_nm" = ""; then
10406 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10409 if test "$aros_kernel_strip" = ""; then
10410 if test "$cross_compiling" = "yes" ; then
10411 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10412 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414 $as_echo_n "checking for $ac_word... " >&6; }
10415 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 case $aros_kernel_strip in
10419 [\\/]* | ?:[\\/]*)
10420 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424 for as_dir in $PATH
10426 IFS=$as_save_IFS
10427 test -z "$as_dir" && as_dir=.
10428 for ac_exec_ext in '' $ac_executable_extensions; do
10429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10430 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10432 break 2
10434 done
10435 done
10436 IFS=$as_save_IFS
10439 esac
10441 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10442 if test -n "$aros_kernel_strip"; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10444 $as_echo "$aros_kernel_strip" >&6; }
10445 else
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10451 else
10452 if test "$GCC" = "yes"; then
10453 aros_gcc_strip=`$CC -print-prog-name=strip`
10454 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10455 set dummy `basename $aros_gcc_strip`; ac_word=$2
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457 $as_echo_n "checking for $ac_word... " >&6; }
10458 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 case $aros_kernel_strip in
10462 [\\/]* | ?:[\\/]*)
10463 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in `dirname $aros_gcc_strip`
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10473 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10475 break 2
10477 done
10478 done
10479 IFS=$as_save_IFS
10482 esac
10484 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10485 if test -n "$aros_kernel_strip"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10487 $as_echo "$aros_kernel_strip" >&6; }
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10495 if test "$aros_kernel_strip" = ""; then
10496 # Extract the first word of "strip", so it can be a program name with args.
10497 set dummy strip; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 case $aros_kernel_strip in
10504 [\\/]* | ?:[\\/]*)
10505 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10519 done
10520 done
10521 IFS=$as_save_IFS
10524 esac
10526 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10527 if test -n "$aros_kernel_strip"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10529 $as_echo "$aros_kernel_strip" >&6; }
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10538 else
10539 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10540 set dummy $aros_kernel_strip; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 case $aros_kernel_strip in
10547 [\\/]* | ?:[\\/]*)
10548 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10562 done
10563 done
10564 IFS=$as_save_IFS
10567 esac
10569 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10570 if test -n "$aros_kernel_strip"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10572 $as_echo "$aros_kernel_strip" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10581 if test "$aros_kernel_strip" = ""; then
10582 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10585 # Objcopy and objdump are not required for the kernel
10586 # toolchain on many architectures.
10587 # So we'll look for them, but not make them strictly required.
10589 if test "$aros_kernel_objcopy" = ""; then
10590 if test "$cross_compiling" = "yes" ; then
10591 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10592 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594 $as_echo_n "checking for $ac_word... " >&6; }
10595 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 case $aros_kernel_objcopy in
10599 [\\/]* | ?:[\\/]*)
10600 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10606 IFS=$as_save_IFS
10607 test -z "$as_dir" && as_dir=.
10608 for ac_exec_ext in '' $ac_executable_extensions; do
10609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10610 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612 break 2
10614 done
10615 done
10616 IFS=$as_save_IFS
10619 esac
10621 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10622 if test -n "$aros_kernel_objcopy"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10624 $as_echo "$aros_kernel_objcopy" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10631 else
10632 if test "$GCC" = "yes"; then
10633 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10634 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10635 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637 $as_echo_n "checking for $ac_word... " >&6; }
10638 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 case $aros_kernel_objcopy in
10642 [\\/]* | ?:[\\/]*)
10643 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in `dirname $aros_gcc_objcopy`
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10653 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 break 2
10657 done
10658 done
10659 IFS=$as_save_IFS
10662 esac
10664 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10665 if test -n "$aros_kernel_objcopy"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10667 $as_echo "$aros_kernel_objcopy" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10675 if test "$aros_kernel_objcopy" = ""; then
10676 # Extract the first word of "objcopy", so it can be a program name with args.
10677 set dummy objcopy; ac_word=$2
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 case $aros_kernel_objcopy in
10684 [\\/]* | ?:[\\/]*)
10685 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10695 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10699 done
10700 done
10701 IFS=$as_save_IFS
10704 esac
10706 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10707 if test -n "$aros_kernel_objcopy"; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10709 $as_echo "$aros_kernel_objcopy" >&6; }
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "no" >&6; }
10718 else
10719 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10720 set dummy $aros_kernel_objcopy; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 case $aros_kernel_objcopy in
10727 [\\/]* | ?:[\\/]*)
10728 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10734 IFS=$as_save_IFS
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 break 2
10742 done
10743 done
10744 IFS=$as_save_IFS
10747 esac
10749 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10750 if test -n "$aros_kernel_objcopy"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10752 $as_echo "$aros_kernel_objcopy" >&6; }
10753 else
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; }
10762 if test "$aros_kernel_objdump" = ""; then
10763 if test "$cross_compiling" = "yes" ; then
10764 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10765 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10767 $as_echo_n "checking for $ac_word... " >&6; }
10768 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10769 $as_echo_n "(cached) " >&6
10770 else
10771 case $aros_kernel_objdump in
10772 [\\/]* | ?:[\\/]*)
10773 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10779 IFS=$as_save_IFS
10780 test -z "$as_dir" && as_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10783 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10785 break 2
10787 done
10788 done
10789 IFS=$as_save_IFS
10792 esac
10794 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10795 if test -n "$aros_kernel_objdump"; then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10797 $as_echo "$aros_kernel_objdump" >&6; }
10798 else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800 $as_echo "no" >&6; }
10804 else
10805 if test "$GCC" = "yes"; then
10806 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10807 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10808 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 case $aros_kernel_objdump in
10815 [\\/]* | ?:[\\/]*)
10816 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in `dirname $aros_gcc_objdump`
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10830 done
10831 done
10832 IFS=$as_save_IFS
10835 esac
10837 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10838 if test -n "$aros_kernel_objdump"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10840 $as_echo "$aros_kernel_objdump" >&6; }
10841 else
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10848 if test "$aros_kernel_objdump" = ""; then
10849 # Extract the first word of "objdump", so it can be a program name with args.
10850 set dummy objdump; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 case $aros_kernel_objdump in
10857 [\\/]* | ?:[\\/]*)
10858 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10864 IFS=$as_save_IFS
10865 test -z "$as_dir" && as_dir=.
10866 for ac_exec_ext in '' $ac_executable_extensions; do
10867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10868 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10870 break 2
10872 done
10873 done
10874 IFS=$as_save_IFS
10877 esac
10879 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10880 if test -n "$aros_kernel_objdump"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10882 $as_echo "$aros_kernel_objdump" >&6; }
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10891 else
10892 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10893 set dummy $aros_kernel_objdump; ac_word=$2
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10895 $as_echo_n "checking for $ac_word... " >&6; }
10896 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 case $aros_kernel_objdump in
10900 [\\/]* | ?:[\\/]*)
10901 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905 for as_dir in $PATH
10907 IFS=$as_save_IFS
10908 test -z "$as_dir" && as_dir=.
10909 for ac_exec_ext in '' $ac_executable_extensions; do
10910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10911 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10915 done
10916 done
10917 IFS=$as_save_IFS
10920 esac
10922 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10923 if test -n "$aros_kernel_objdump"; then
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10925 $as_echo "$aros_kernel_objdump" >&6; }
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10934 if test "x${crosstools}" != "xyes" ; then
10935 if test "$aros_kernel_objcopy" = ""; then
10936 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10938 if test "$aros_kernel_objdump" = ""; then
10939 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10945 $as_echo_n "checking which target tools to use... " >&6; }
10946 if test "$aros_target_toolchain" = "yes"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10948 $as_echo "$target_tool_prefix" >&6; }
10949 # We are building AROS crosstools
10950 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10951 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10952 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10953 orig_target_cpp="${tmp_tool_prefix}cpp"
10954 orig_target_ld="${tmp_tool_prefix}ld"
10955 orig_target_as="${tmp_tool_prefix}as"
10956 orig_target_ar="${tmp_tool_prefix}ar"
10957 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10958 orig_target_nm="${tmp_tool_prefix}nm"
10959 orig_target_strip="${tmp_tool_prefix}strip"
10960 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10961 orig_target_objdump="${tmp_tool_prefix}objdump"
10962 else
10963 # Determine whether AROS or ELF tools should be used
10964 if test "$aros_tool_prefix" = "none"; then
10965 aros_tool_prefix="${elf_tool_prefix}"
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10969 $as_echo "$aros_tool_prefix" >&6; }
10970 # We are *not* building AROS crosstools - use the AROS or ELF tools
10972 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10973 if test "$cross_compiling" = "yes" ; then
10974 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10975 set dummy ${target_tool_prefix}cpp; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if ${ac_cv_path_orig_target_cpp+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 case $orig_target_cpp in
10982 [\\/]* | ?:[\\/]*)
10983 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10993 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10997 done
10998 done
10999 IFS=$as_save_IFS
11002 esac
11004 orig_target_cpp=$ac_cv_path_orig_target_cpp
11005 if test -n "$orig_target_cpp"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11007 $as_echo "$orig_target_cpp" >&6; }
11008 else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11014 else
11015 if test "$GCC" = "yes"; then
11016 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11017 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11018 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020 $as_echo_n "checking for $ac_word... " >&6; }
11021 if ${ac_cv_path_orig_target_cpp+:} false; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 case $orig_target_cpp in
11025 [\\/]* | ?:[\\/]*)
11026 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in `dirname $aros_gcc_cpp`
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11036 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 break 2
11040 done
11041 done
11042 IFS=$as_save_IFS
11045 esac
11047 orig_target_cpp=$ac_cv_path_orig_target_cpp
11048 if test -n "$orig_target_cpp"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11050 $as_echo "$orig_target_cpp" >&6; }
11051 else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11058 if test "$orig_target_cpp" = ""; then
11059 # Extract the first word of "cpp", so it can be a program name with args.
11060 set dummy cpp; ac_word=$2
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062 $as_echo_n "checking for $ac_word... " >&6; }
11063 if ${ac_cv_path_orig_target_cpp+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 case $orig_target_cpp in
11067 [\\/]* | ?:[\\/]*)
11068 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11078 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11082 done
11083 done
11084 IFS=$as_save_IFS
11087 esac
11089 orig_target_cpp=$ac_cv_path_orig_target_cpp
11090 if test -n "$orig_target_cpp"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11092 $as_echo "$orig_target_cpp" >&6; }
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11101 else
11102 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11103 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11105 $as_echo_n "checking for $ac_word... " >&6; }
11106 if ${ac_cv_path_orig_target_cpp+:} false; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 case $orig_target_cpp in
11110 [\\/]* | ?:[\\/]*)
11111 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in $PATH
11117 IFS=$as_save_IFS
11118 test -z "$as_dir" && as_dir=.
11119 for ac_exec_ext in '' $ac_executable_extensions; do
11120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11121 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11123 break 2
11125 done
11126 done
11127 IFS=$as_save_IFS
11130 esac
11132 orig_target_cpp=$ac_cv_path_orig_target_cpp
11133 if test -n "$orig_target_cpp"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11135 $as_echo "$orig_target_cpp" >&6; }
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11144 if test "$orig_target_cpp" = ""; then
11145 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11148 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11149 if test "$cross_compiling" = "yes" ; then
11150 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11151 set dummy ${target_tool_prefix}gcc; ac_word=$2
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153 $as_echo_n "checking for $ac_word... " >&6; }
11154 if ${ac_cv_path_orig_target_cc+:} false; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 case $orig_target_cc in
11158 [\\/]* | ?:[\\/]*)
11159 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 break 2
11173 done
11174 done
11175 IFS=$as_save_IFS
11178 esac
11180 orig_target_cc=$ac_cv_path_orig_target_cc
11181 if test -n "$orig_target_cc"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11183 $as_echo "$orig_target_cc" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11190 else
11191 if test "$GCC" = "yes"; then
11192 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11193 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11194 set dummy `basename $aros_gcc_gcc`; 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_orig_target_cc+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 case $orig_target_cc in
11201 [\\/]* | ?:[\\/]*)
11202 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in `dirname $aros_gcc_gcc`
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_orig_target_cc="$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 orig_target_cc=$ac_cv_path_orig_target_cc
11224 if test -n "$orig_target_cc"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11226 $as_echo "$orig_target_cc" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11234 if test "$orig_target_cc" = ""; then
11235 # Extract the first word of "gcc", so it can be a program name with args.
11236 set dummy gcc; ac_word=$2
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11238 $as_echo_n "checking for $ac_word... " >&6; }
11239 if ${ac_cv_path_orig_target_cc+:} false; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 case $orig_target_cc in
11243 [\\/]* | ?:[\\/]*)
11244 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248 for as_dir in $PATH
11250 IFS=$as_save_IFS
11251 test -z "$as_dir" && as_dir=.
11252 for ac_exec_ext in '' $ac_executable_extensions; do
11253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11254 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 break 2
11258 done
11259 done
11260 IFS=$as_save_IFS
11263 esac
11265 orig_target_cc=$ac_cv_path_orig_target_cc
11266 if test -n "$orig_target_cc"; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11268 $as_echo "$orig_target_cc" >&6; }
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11277 else
11278 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11279 set dummy ${aros_tool_prefix}gcc${target_tool_version}; 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_orig_target_cc+:} false; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 case $orig_target_cc in
11286 [\\/]* | ?:[\\/]*)
11287 ac_cv_path_orig_target_cc="$orig_target_cc" # 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_orig_target_cc="$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 orig_target_cc=$ac_cv_path_orig_target_cc
11309 if test -n "$orig_target_cc"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11311 $as_echo "$orig_target_cc" >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11320 if test "$orig_target_cc" = ""; then
11321 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11324 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11325 if test "$cross_compiling" = "yes" ; then
11326 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11327 set dummy ${target_tool_prefix}g++; ac_word=$2
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329 $as_echo_n "checking for $ac_word... " >&6; }
11330 if ${ac_cv_path_orig_target_cxx+:} false; then :
11331 $as_echo_n "(cached) " >&6
11332 else
11333 case $orig_target_cxx in
11334 [\\/]* | ?:[\\/]*)
11335 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339 for as_dir in $PATH
11341 IFS=$as_save_IFS
11342 test -z "$as_dir" && as_dir=.
11343 for ac_exec_ext in '' $ac_executable_extensions; do
11344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11345 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11347 break 2
11349 done
11350 done
11351 IFS=$as_save_IFS
11354 esac
11356 orig_target_cxx=$ac_cv_path_orig_target_cxx
11357 if test -n "$orig_target_cxx"; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11359 $as_echo "$orig_target_cxx" >&6; }
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11366 else
11367 if test "$GCC" = "yes"; then
11368 aros_gcc_g++=`$CC -print-prog-name=g++`
11369 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11370 set dummy `basename $aros_gcc_g++`; ac_word=$2
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372 $as_echo_n "checking for $ac_word... " >&6; }
11373 if ${ac_cv_path_orig_target_cxx+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 case $orig_target_cxx in
11377 [\\/]* | ?:[\\/]*)
11378 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in `dirname $aros_gcc_g++`
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11388 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11392 done
11393 done
11394 IFS=$as_save_IFS
11397 esac
11399 orig_target_cxx=$ac_cv_path_orig_target_cxx
11400 if test -n "$orig_target_cxx"; then
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11402 $as_echo "$orig_target_cxx" >&6; }
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11410 if test "$orig_target_cxx" = ""; then
11411 # Extract the first word of "g++", so it can be a program name with args.
11412 set dummy g++; ac_word=$2
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414 $as_echo_n "checking for $ac_word... " >&6; }
11415 if ${ac_cv_path_orig_target_cxx+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 case $orig_target_cxx in
11419 [\\/]* | ?:[\\/]*)
11420 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 break 2
11434 done
11435 done
11436 IFS=$as_save_IFS
11439 esac
11441 orig_target_cxx=$ac_cv_path_orig_target_cxx
11442 if test -n "$orig_target_cxx"; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11444 $as_echo "$orig_target_cxx" >&6; }
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11453 else
11454 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11455 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if ${ac_cv_path_orig_target_cxx+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 case $orig_target_cxx in
11462 [\\/]* | ?:[\\/]*)
11463 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11473 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11477 done
11478 done
11479 IFS=$as_save_IFS
11482 esac
11484 orig_target_cxx=$ac_cv_path_orig_target_cxx
11485 if test -n "$orig_target_cxx"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11487 $as_echo "$orig_target_cxx" >&6; }
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11496 if test "$orig_target_cxx" = ""; then
11497 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11500 if test "${aros_tool_prefix}ld" = ""; then
11501 if test "$cross_compiling" = "yes" ; then
11502 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11503 set dummy ${target_tool_prefix}gcc; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_orig_target_ld+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 case $orig_target_ld in
11510 [\\/]* | ?:[\\/]*)
11511 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11525 done
11526 done
11527 IFS=$as_save_IFS
11530 esac
11532 orig_target_ld=$ac_cv_path_orig_target_ld
11533 if test -n "$orig_target_ld"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11535 $as_echo "$orig_target_ld" >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11542 else
11543 if test "$GCC" = "yes"; then
11544 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11545 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11546 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_orig_target_ld+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 case $orig_target_ld in
11553 [\\/]* | ?:[\\/]*)
11554 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in `dirname $aros_gcc_gcc`
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11568 done
11569 done
11570 IFS=$as_save_IFS
11573 esac
11575 orig_target_ld=$ac_cv_path_orig_target_ld
11576 if test -n "$orig_target_ld"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11578 $as_echo "$orig_target_ld" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11586 if test "$orig_target_ld" = ""; then
11587 # Extract the first word of "gcc", so it can be a program name with args.
11588 set dummy gcc; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_orig_target_ld+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 case $orig_target_ld in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11610 done
11611 done
11612 IFS=$as_save_IFS
11615 esac
11617 orig_target_ld=$ac_cv_path_orig_target_ld
11618 if test -n "$orig_target_ld"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11620 $as_echo "$orig_target_ld" >&6; }
11621 else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11629 else
11630 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11631 set dummy ${aros_tool_prefix}ld; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_path_orig_target_ld+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 case $orig_target_ld in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $PATH
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11653 done
11654 done
11655 IFS=$as_save_IFS
11658 esac
11660 orig_target_ld=$ac_cv_path_orig_target_ld
11661 if test -n "$orig_target_ld"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11663 $as_echo "$orig_target_ld" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11672 if test "$orig_target_ld" = ""; then
11673 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11676 if test "${aros_tool_prefix}as" = ""; then
11677 if test "$cross_compiling" = "yes" ; then
11678 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11679 set dummy ${target_tool_prefix}as; ac_word=$2
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 $as_echo_n "checking for $ac_word... " >&6; }
11682 if ${ac_cv_path_orig_target_as+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 case $orig_target_as in
11686 [\\/]* | ?:[\\/]*)
11687 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11701 done
11702 done
11703 IFS=$as_save_IFS
11706 esac
11708 orig_target_as=$ac_cv_path_orig_target_as
11709 if test -n "$orig_target_as"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11711 $as_echo "$orig_target_as" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11718 else
11719 if test "$GCC" = "yes"; then
11720 aros_gcc_as=`$CC -print-prog-name=as`
11721 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11722 set dummy `basename $aros_gcc_as`; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if ${ac_cv_path_orig_target_as+:} false; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 case $orig_target_as in
11729 [\\/]* | ?:[\\/]*)
11730 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in `dirname $aros_gcc_as`
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11744 done
11745 done
11746 IFS=$as_save_IFS
11749 esac
11751 orig_target_as=$ac_cv_path_orig_target_as
11752 if test -n "$orig_target_as"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11754 $as_echo "$orig_target_as" >&6; }
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11762 if test "$orig_target_as" = ""; then
11763 # Extract the first word of "as", so it can be a program name with args.
11764 set dummy as; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_path_orig_target_as+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 case $orig_target_as in
11771 [\\/]* | ?:[\\/]*)
11772 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11786 done
11787 done
11788 IFS=$as_save_IFS
11791 esac
11793 orig_target_as=$ac_cv_path_orig_target_as
11794 if test -n "$orig_target_as"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11796 $as_echo "$orig_target_as" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11805 else
11806 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11807 set dummy ${aros_tool_prefix}as; ac_word=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if ${ac_cv_path_orig_target_as+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813 case $orig_target_as in
11814 [\\/]* | ?:[\\/]*)
11815 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11825 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11829 done
11830 done
11831 IFS=$as_save_IFS
11834 esac
11836 orig_target_as=$ac_cv_path_orig_target_as
11837 if test -n "$orig_target_as"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11839 $as_echo "$orig_target_as" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11848 if test "$orig_target_as" = ""; then
11849 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11852 if test "${aros_tool_prefix}ar" = ""; then
11853 if test "$cross_compiling" = "yes" ; then
11854 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11855 set dummy ${target_tool_prefix}ar; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_path_orig_target_ar+:} false; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 case $orig_target_ar in
11862 [\\/]* | ?:[\\/]*)
11863 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11877 done
11878 done
11879 IFS=$as_save_IFS
11882 esac
11884 orig_target_ar=$ac_cv_path_orig_target_ar
11885 if test -n "$orig_target_ar"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11887 $as_echo "$orig_target_ar" >&6; }
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11894 else
11895 if test "$GCC" = "yes"; then
11896 aros_gcc_ar=`$CC -print-prog-name=ar`
11897 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11898 set dummy `basename $aros_gcc_ar`; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if ${ac_cv_path_orig_target_ar+:} false; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 case $orig_target_ar in
11905 [\\/]* | ?:[\\/]*)
11906 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in `dirname $aros_gcc_ar`
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11920 done
11921 done
11922 IFS=$as_save_IFS
11925 esac
11927 orig_target_ar=$ac_cv_path_orig_target_ar
11928 if test -n "$orig_target_ar"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11930 $as_echo "$orig_target_ar" >&6; }
11931 else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11938 if test "$orig_target_ar" = ""; then
11939 # Extract the first word of "ar", so it can be a program name with args.
11940 set dummy ar; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_path_orig_target_ar+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 case $orig_target_ar in
11947 [\\/]* | ?:[\\/]*)
11948 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11962 done
11963 done
11964 IFS=$as_save_IFS
11967 esac
11969 orig_target_ar=$ac_cv_path_orig_target_ar
11970 if test -n "$orig_target_ar"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11972 $as_echo "$orig_target_ar" >&6; }
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11981 else
11982 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11983 set dummy ${aros_tool_prefix}ar; ac_word=$2
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if ${ac_cv_path_orig_target_ar+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 case $orig_target_ar in
11990 [\\/]* | ?:[\\/]*)
11991 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12005 done
12006 done
12007 IFS=$as_save_IFS
12010 esac
12012 orig_target_ar=$ac_cv_path_orig_target_ar
12013 if test -n "$orig_target_ar"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12015 $as_echo "$orig_target_ar" >&6; }
12016 else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018 $as_echo "no" >&6; }
12024 if test "$orig_target_ar" = ""; then
12025 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12028 if test "${aros_tool_prefix}ranlib" = ""; then
12029 if test "$cross_compiling" = "yes" ; then
12030 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12031 set dummy ${target_tool_prefix}ar; ac_word=$2
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033 $as_echo_n "checking for $ac_word... " >&6; }
12034 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 case $orig_target_ranlib in
12038 [\\/]* | ?:[\\/]*)
12039 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 break 2
12053 done
12054 done
12055 IFS=$as_save_IFS
12058 esac
12060 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12061 if test -n "$orig_target_ranlib"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12063 $as_echo "$orig_target_ranlib" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12070 else
12071 if test "$GCC" = "yes"; then
12072 aros_gcc_ar=`$CC -print-prog-name=ar`
12073 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12074 set dummy `basename $aros_gcc_ar`; ac_word=$2
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076 $as_echo_n "checking for $ac_word... " >&6; }
12077 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 case $orig_target_ranlib in
12081 [\\/]* | ?:[\\/]*)
12082 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086 for as_dir in `dirname $aros_gcc_ar`
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12092 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 break 2
12096 done
12097 done
12098 IFS=$as_save_IFS
12101 esac
12103 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12104 if test -n "$orig_target_ranlib"; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12106 $as_echo "$orig_target_ranlib" >&6; }
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12114 if test "$orig_target_ranlib" = ""; then
12115 # Extract the first word of "ar", so it can be a program name with args.
12116 set dummy ar; ac_word=$2
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118 $as_echo_n "checking for $ac_word... " >&6; }
12119 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 case $orig_target_ranlib in
12123 [\\/]* | ?:[\\/]*)
12124 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12138 done
12139 done
12140 IFS=$as_save_IFS
12143 esac
12145 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12146 if test -n "$orig_target_ranlib"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12148 $as_echo "$orig_target_ranlib" >&6; }
12149 else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12157 else
12158 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12159 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 case $orig_target_ranlib in
12166 [\\/]* | ?:[\\/]*)
12167 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12173 IFS=$as_save_IFS
12174 test -z "$as_dir" && as_dir=.
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12177 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179 break 2
12181 done
12182 done
12183 IFS=$as_save_IFS
12186 esac
12188 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12189 if test -n "$orig_target_ranlib"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12191 $as_echo "$orig_target_ranlib" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12200 if test "$orig_target_ranlib" = ""; then
12201 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12204 if test "${aros_tool_prefix}nm" = ""; then
12205 if test "$cross_compiling" = "yes" ; then
12206 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12207 set dummy ${target_tool_prefix}nm; ac_word=$2
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12209 $as_echo_n "checking for $ac_word... " >&6; }
12210 if ${ac_cv_path_orig_target_nm+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 case $orig_target_nm in
12214 [\\/]* | ?:[\\/]*)
12215 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12225 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 break 2
12229 done
12230 done
12231 IFS=$as_save_IFS
12234 esac
12236 orig_target_nm=$ac_cv_path_orig_target_nm
12237 if test -n "$orig_target_nm"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12239 $as_echo "$orig_target_nm" >&6; }
12240 else
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12246 else
12247 if test "$GCC" = "yes"; then
12248 aros_gcc_nm=`$CC -print-prog-name=nm`
12249 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12250 set dummy `basename $aros_gcc_nm`; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if ${ac_cv_path_orig_target_nm+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 case $orig_target_nm in
12257 [\\/]* | ?:[\\/]*)
12258 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in `dirname $aros_gcc_nm`
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12268 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 break 2
12272 done
12273 done
12274 IFS=$as_save_IFS
12277 esac
12279 orig_target_nm=$ac_cv_path_orig_target_nm
12280 if test -n "$orig_target_nm"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12282 $as_echo "$orig_target_nm" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12290 if test "$orig_target_nm" = ""; then
12291 # Extract the first word of "nm", so it can be a program name with args.
12292 set dummy nm; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if ${ac_cv_path_orig_target_nm+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 case $orig_target_nm in
12299 [\\/]* | ?:[\\/]*)
12300 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12314 done
12315 done
12316 IFS=$as_save_IFS
12319 esac
12321 orig_target_nm=$ac_cv_path_orig_target_nm
12322 if test -n "$orig_target_nm"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12324 $as_echo "$orig_target_nm" >&6; }
12325 else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12333 else
12334 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12335 set dummy ${aros_tool_prefix}nm; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337 $as_echo_n "checking for $ac_word... " >&6; }
12338 if ${ac_cv_path_orig_target_nm+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 case $orig_target_nm in
12342 [\\/]* | ?:[\\/]*)
12343 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12347 for as_dir in $PATH
12349 IFS=$as_save_IFS
12350 test -z "$as_dir" && as_dir=.
12351 for ac_exec_ext in '' $ac_executable_extensions; do
12352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12353 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 break 2
12357 done
12358 done
12359 IFS=$as_save_IFS
12362 esac
12364 orig_target_nm=$ac_cv_path_orig_target_nm
12365 if test -n "$orig_target_nm"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12367 $as_echo "$orig_target_nm" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12376 if test "$orig_target_nm" = ""; then
12377 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12380 if test "${aros_tool_prefix}strip" = ""; then
12381 if test "$cross_compiling" = "yes" ; then
12382 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12383 set dummy ${target_tool_prefix}strip; ac_word=$2
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385 $as_echo_n "checking for $ac_word... " >&6; }
12386 if ${ac_cv_path_orig_target_strip+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 case $orig_target_strip in
12390 [\\/]* | ?:[\\/]*)
12391 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12397 IFS=$as_save_IFS
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
12400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12401 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 break 2
12405 done
12406 done
12407 IFS=$as_save_IFS
12410 esac
12412 orig_target_strip=$ac_cv_path_orig_target_strip
12413 if test -n "$orig_target_strip"; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12415 $as_echo "$orig_target_strip" >&6; }
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12422 else
12423 if test "$GCC" = "yes"; then
12424 aros_gcc_strip=`$CC -print-prog-name=strip`
12425 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12426 set dummy `basename $aros_gcc_strip`; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if ${ac_cv_path_orig_target_strip+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 case $orig_target_strip in
12433 [\\/]* | ?:[\\/]*)
12434 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in `dirname $aros_gcc_strip`
12440 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12444 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446 break 2
12448 done
12449 done
12450 IFS=$as_save_IFS
12453 esac
12455 orig_target_strip=$ac_cv_path_orig_target_strip
12456 if test -n "$orig_target_strip"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12458 $as_echo "$orig_target_strip" >&6; }
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12466 if test "$orig_target_strip" = ""; then
12467 # Extract the first word of "strip", so it can be a program name with args.
12468 set dummy strip; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if ${ac_cv_path_orig_target_strip+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 case $orig_target_strip in
12475 [\\/]* | ?:[\\/]*)
12476 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12486 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12490 done
12491 done
12492 IFS=$as_save_IFS
12495 esac
12497 orig_target_strip=$ac_cv_path_orig_target_strip
12498 if test -n "$orig_target_strip"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12500 $as_echo "$orig_target_strip" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12509 else
12510 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12511 set dummy ${aros_tool_prefix}strip; ac_word=$2
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513 $as_echo_n "checking for $ac_word... " >&6; }
12514 if ${ac_cv_path_orig_target_strip+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 case $orig_target_strip in
12518 [\\/]* | ?:[\\/]*)
12519 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12533 done
12534 done
12535 IFS=$as_save_IFS
12538 esac
12540 orig_target_strip=$ac_cv_path_orig_target_strip
12541 if test -n "$orig_target_strip"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12543 $as_echo "$orig_target_strip" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12552 if test "$orig_target_strip" = ""; then
12553 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12556 if test "${aros_tool_prefix}objcopy" = ""; then
12557 if test "$cross_compiling" = "yes" ; then
12558 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12559 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561 $as_echo_n "checking for $ac_word... " >&6; }
12562 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 case $orig_target_objcopy in
12566 [\\/]* | ?:[\\/]*)
12567 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12577 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12581 done
12582 done
12583 IFS=$as_save_IFS
12586 esac
12588 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12589 if test -n "$orig_target_objcopy"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12591 $as_echo "$orig_target_objcopy" >&6; }
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12598 else
12599 if test "$GCC" = "yes"; then
12600 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12601 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12602 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 case $orig_target_objcopy in
12609 [\\/]* | ?:[\\/]*)
12610 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614 for as_dir in `dirname $aros_gcc_objcopy`
12616 IFS=$as_save_IFS
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12620 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 break 2
12624 done
12625 done
12626 IFS=$as_save_IFS
12629 esac
12631 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12632 if test -n "$orig_target_objcopy"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12634 $as_echo "$orig_target_objcopy" >&6; }
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12642 if test "$orig_target_objcopy" = ""; then
12643 # Extract the first word of "objcopy", so it can be a program name with args.
12644 set dummy objcopy; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 case $orig_target_objcopy in
12651 [\\/]* | ?:[\\/]*)
12652 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12666 done
12667 done
12668 IFS=$as_save_IFS
12671 esac
12673 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12674 if test -n "$orig_target_objcopy"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12676 $as_echo "$orig_target_objcopy" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12685 else
12686 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12687 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 case $orig_target_objcopy in
12694 [\\/]* | ?:[\\/]*)
12695 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $PATH
12701 IFS=$as_save_IFS
12702 test -z "$as_dir" && as_dir=.
12703 for ac_exec_ext in '' $ac_executable_extensions; do
12704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12705 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707 break 2
12709 done
12710 done
12711 IFS=$as_save_IFS
12714 esac
12716 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12717 if test -n "$orig_target_objcopy"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12719 $as_echo "$orig_target_objcopy" >&6; }
12720 else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12728 if test "$orig_target_objcopy" = ""; then
12729 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12732 if test "${aros_tool_prefix}objdump" = ""; then
12733 if test "$cross_compiling" = "yes" ; then
12734 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12735 set dummy ${target_tool_prefix}objdump; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if ${ac_cv_path_orig_target_objdump+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 case $orig_target_objdump in
12742 [\\/]* | ?:[\\/]*)
12743 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12749 IFS=$as_save_IFS
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12753 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 break 2
12757 done
12758 done
12759 IFS=$as_save_IFS
12762 esac
12764 orig_target_objdump=$ac_cv_path_orig_target_objdump
12765 if test -n "$orig_target_objdump"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12767 $as_echo "$orig_target_objdump" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12774 else
12775 if test "$GCC" = "yes"; then
12776 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12777 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12778 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 $as_echo_n "checking for $ac_word... " >&6; }
12781 if ${ac_cv_path_orig_target_objdump+:} false; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 case $orig_target_objdump in
12785 [\\/]* | ?:[\\/]*)
12786 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790 for as_dir in `dirname $aros_gcc_objdump`
12792 IFS=$as_save_IFS
12793 test -z "$as_dir" && as_dir=.
12794 for ac_exec_ext in '' $ac_executable_extensions; do
12795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12796 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12798 break 2
12800 done
12801 done
12802 IFS=$as_save_IFS
12805 esac
12807 orig_target_objdump=$ac_cv_path_orig_target_objdump
12808 if test -n "$orig_target_objdump"; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12810 $as_echo "$orig_target_objdump" >&6; }
12811 else
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813 $as_echo "no" >&6; }
12818 if test "$orig_target_objdump" = ""; then
12819 # Extract the first word of "objdump", so it can be a program name with args.
12820 set dummy objdump; ac_word=$2
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822 $as_echo_n "checking for $ac_word... " >&6; }
12823 if ${ac_cv_path_orig_target_objdump+:} false; then :
12824 $as_echo_n "(cached) " >&6
12825 else
12826 case $orig_target_objdump in
12827 [\\/]* | ?:[\\/]*)
12828 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12838 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840 break 2
12842 done
12843 done
12844 IFS=$as_save_IFS
12847 esac
12849 orig_target_objdump=$ac_cv_path_orig_target_objdump
12850 if test -n "$orig_target_objdump"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12852 $as_echo "$orig_target_objdump" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12861 else
12862 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12863 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if ${ac_cv_path_orig_target_objdump+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 case $orig_target_objdump in
12870 [\\/]* | ?:[\\/]*)
12871 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12877 IFS=$as_save_IFS
12878 test -z "$as_dir" && as_dir=.
12879 for ac_exec_ext in '' $ac_executable_extensions; do
12880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12881 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883 break 2
12885 done
12886 done
12887 IFS=$as_save_IFS
12890 esac
12892 orig_target_objdump=$ac_cv_path_orig_target_objdump
12893 if test -n "$orig_target_objdump"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12895 $as_echo "$orig_target_objdump" >&6; }
12896 else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12904 if test "$orig_target_objdump" = ""; then
12905 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12909 if test "$kernel_tool_prefix" = "none" ; then
12910 # No kernel tools specified
12911 # Assume target tools == kernel tools with ELF wrapper
12912 aros_kernel_cc=$orig_target_cc
12913 aros_kernel_cxx=$orig_target_cxx
12914 aros_kernel_cpp=$orig_target_cpp
12915 aros_kernel_ld=$orig_target_ld
12916 aros_kernel_as=$orig_target_as
12917 aros_kernel_ar=$orig_target_ar
12918 aros_kernel_ranlib=$orig_target_ranlib
12919 aros_kernel_nm=$orig_target_nm
12920 aros_kernel_strip=$orig_target_strip
12921 aros_kernel_objcopy=$orig_target_objcopy
12922 aros_kernel_objdump=$orig_target_objdump
12923 use_kernel_cc_wrapper=yes
12926 # At this point, all aros_kernel_* and aros_target_*
12927 # tools should be set up correctly
12929 CC="$aros_kernel_cc $kernel_tool_flags"
12930 CPP="$aros_kernel_cpp"
12932 #-----------------------------------------------------------------------------
12934 # Disable pointer-signedness warnings if the compiler recognises the option
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12937 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12938 save_cflags="$CFLAGS"
12939 if test "$crosstools" != "yes" ; then
12940 CFLAGS="$CFLAGS -Wno-pointer-sign"
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12945 main ()
12949 return 0;
12951 _ACEOF
12952 if ac_fn_c_try_compile "$LINENO"; then :
12953 use_no_sign_warning="yes"
12954 else
12955 use_no_sign_warning="no"
12957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12958 else
12959 # we do know it is supported for the smallest version of gcc we are going to build
12960 # we assume it's also supported by later versions
12961 use_no_sign_warning=yes
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12964 $as_echo "$use_no_sign_warning" >&6; }
12965 if test "x-$use_no_sign_warning" = "x-yes" ; then
12966 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12968 CFLAGS="$save_cflags"
12970 #-----------------------------------------------------------------------------
12972 # Find all the tools we need to compile. This could be cross-compiling
12973 # though! If that is the case we use the GNU form of the target and
12974 # simply add this to the front of the binary name. This is rather simple,
12975 # but it should work under most circumstances.
12977 # The default tools are to use the same as the host, but only if the
12978 # host and target CPU are the same. With GCC this is normally enough.
12981 aros_cc_pre=""
12982 aros_shared_ld="$aros_host_ld"
12984 aros_target_mkdep="$aros_host_mkdep"
12986 # The default tools executables to be linked to.
12987 if test "$rescomp" != ""; then
12988 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12989 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 $as_echo_n "checking for $ac_word... " >&6; }
12992 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12993 $as_echo_n "(cached) " >&6
12994 else
12995 case $aros_kernel_rescomp in
12996 [\\/]* | ?:[\\/]*)
12997 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13007 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 break 2
13011 done
13012 done
13013 IFS=$as_save_IFS
13016 esac
13018 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13019 if test -n "$aros_kernel_rescomp"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13021 $as_echo "$aros_kernel_rescomp" >&6; }
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13028 if test "$aros_kernel_rescomp" = ""; then
13029 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13033 # Set up the sources for the symlink farm
13034 if test "$crosstools" = "yes"; then
13035 crosstools_target=tools-crosstools
13038 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13039 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13041 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
13042 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13043 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13044 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13045 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13046 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13047 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13049 # aros_cc_pre is a variable that is added to the front of the compiler name
13050 # in the generated aros-gcc shell script. We need this to enable the cache
13051 # to work across cleaned builds. Also, support DISTCC using the correct
13052 # environment variable.
13055 if test "x${DISTCC}" != "x" ; then
13056 if test "x${CCACHE}" != "x" ; then
13057 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13058 else
13059 aros_cc_pre="${DISTCC} "
13061 else
13062 if test "x${CCACHE}" != "x" ; then
13063 aros_cc_pre="${CCACHE} "
13067 aros_target_nostdinc_cflags=-nostdinc
13069 aros_target_nostartup_ldflags=-nostartfiles
13071 aros_target_nix_ldflags=-nix
13073 aros_target_detach_ldflags=-detach
13075 aros_target_nostdlib_ldflags=-nostdlib
13078 # Target tools
13079 if test "$aros_target_toolchain" != "yes"; then
13080 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13081 if test "$GCC" = "yes"; then
13082 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13084 else
13085 # We do not know which gcc version we are going to build and what we need to know
13086 # here is different for different versions so this will be set later during the
13087 # build of crosstools.
13088 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13089 aros_target_cc_path=@aros_target_cc_path@
13091 aros_target_cpp="${prefix}cpp"
13092 aros_target_cc="${prefix}gcc"
13093 aros_target_cxx="${prefix}g++"
13094 aros_target_as="${prefix}as"
13095 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13096 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13097 aros_target_objcopy="${prefix}objcopy"
13098 aros_target_objdump="${prefix}objdump"
13099 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13100 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13101 aros_target_strip="${prefix}strip"
13102 aros_plain_nm="${prefix}nm"
13103 aros_plain_ar="${prefix}ar"
13105 # Check whether --enable-includes was given.
13106 if test "${enable_includes+set}" = set; then :
13107 enableval=$enable_includes; aros_target_incl=$enable_includes
13108 else
13109 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13113 if test "$aros_kernel_includes" = ""; then
13114 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13115 aros_kernel_includes="-isystem $aros_target_incl"
13119 if test "$aros_kernel_includes" != "" ; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13121 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13122 if test "$aros_kernel_cc_includes" = "" ; then
13123 # Try to guess where the directory is.
13124 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13125 if test -d $aros_kernel_cc_includes; then
13126 # Check if there is also an include-fixed directory and add it
13127 # to kernel compiler's include path as it may contain some of
13128 # the headers we need.
13129 if test -d "$aros_kernel_cc_includes"-fixed; then
13130 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13132 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13133 case ${host_cpu} in
13134 i[3456]86)
13135 host_cpu_glibc=i386
13138 host_cpu_glibc=${host_cpu}
13140 esac
13141 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13142 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13144 else
13145 # The directory doesn't exist, we need to do some more work.
13146 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13148 # These are the headers we're looking for.
13149 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13150 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13151 zutil.h stdint.h"
13153 dirs=
13154 for h in $headers; do
13155 # Which other headers are needed by each of the above?
13156 deps=$(echo "#include <$h>" | \
13157 $aros_kernel_cc -E -M - 2>/dev/null | \
13158 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13160 # Copy all the needed headers to a directory beneath gendir.
13161 for d in $deps; do
13162 h=$(basename $d)
13163 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13164 sed -n "s,^.*/include\(/.*\),\1,p")
13165 ! test -d $dir && mkdir -p $dir
13166 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13167 done
13168 done
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13172 $as_echo "$aros_kernel_cc_includes" >&6; }
13173 # Adding -nostdinc to kernel includes as they are always used together.
13174 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13177 if test "$crosstools" != "yes"; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13179 $as_echo_n "checking for the target compiler's include path... " >&6; }
13180 if test "$aros_target_cc_includes" = "" ; then
13181 #try to guess where the directory is
13182 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13183 if ! test -d $aros_target_cc_includes; then
13184 #the directory doesn't exist, we need to do some more work
13185 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13187 #these are the headers we're looking for
13188 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13189 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13190 zutil.h"
13192 dirs=
13193 for h in $headers; do
13194 #which other headers each of the above headers needs?
13195 deps=$(echo "#include <$h>" | \
13196 $orig_target_cc -E -M - 2>/dev/null | \
13197 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13199 #copy all the needed headers to a directory beneath gendir
13200 for d in $deps; do
13201 h=$(basename $d)
13202 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13203 sed -n "s,^.*/include\(/.*\),\1,p")
13204 ! test -d $dir && mkdir -p $dir
13205 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13206 done
13207 done
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13211 $as_echo "$aros_target_cc_includes" >&6; }
13212 else
13213 # We do not know which gcc version we are going to build and what we need to know
13214 # here is different for different versions so this will be set later during the
13215 # build of crosstools.
13216 aros_target_cc_includes=@aros_target_cc_includes@
13220 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13221 # On GCC >= 4.0 -iquote should be used
13224 save_cc="$CC"
13225 save_cflags="$CFLAGS"
13226 CFLAGS="-iquote."
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13228 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13229 if test "x-$crosstools" != "x-yes"; then
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13234 main ()
13238 return 0;
13240 _ACEOF
13241 if ac_fn_c_try_compile "$LINENO"; then :
13242 has_iquote="yes"
13243 else
13244 has_iquote="no"
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247 else
13248 # we do know it is supported for the smallest version of gcc we are going to build
13249 # we assume it's also supported by later versions
13250 has_iquote=yes
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13253 $as_echo "$has_iquote" >&6; }
13254 if test "x-$has_iquote" = "x-yes" ; then
13255 host_cflags_iquote=-iquote
13256 host_cflags_iquote_end=
13257 else
13258 host_cflags_iquote=-I
13259 host_cflags_iquote_end=-I-
13261 kernel_cflags_iquote=$host_cflags_iquote
13262 kernel_cflags_iquote_end=$host_cflags_iquote_end
13263 if test "x-$cross_compiling" = "x-yes"; then
13264 CC="$aros_kernel_cc"
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13266 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13267 if test "x-$crosstools" != "x-yes"; then
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13272 main ()
13276 return 0;
13278 _ACEOF
13279 if ac_fn_c_try_compile "$LINENO"; then :
13280 use_no_stack_protector="yes"
13281 else
13282 use_no_stack_protector="no"
13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 else
13286 # we do know it is supported for the smallest version of gcc we are going to build
13287 # we assume it's also supported by later versions
13288 use_no_stack_protector=yes
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13291 $as_echo "$use_no_stack_protector" >&6; }
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13293 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13294 if test "x-$crosstools" != "x-yes"; then
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13299 main ()
13303 return 0;
13305 _ACEOF
13306 if ac_fn_c_try_compile "$LINENO"; then :
13307 has_iquote="yes"
13308 else
13309 has_iquote="no"
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312 else
13313 # we do know it is supported for the smallest version of gcc we are going to build
13314 # we assume it's also supported by later versions
13315 has_iquote=yes
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13318 $as_echo "$has_iquote" >&6; }
13319 if test "x-$has_iquote" = "x-yes" ; then
13320 kernel_cflags_iquote=-iquote
13321 kernel_cflags_iquote_end=
13322 else
13323 kernel_cflags_iquote=-I
13324 kernel_cflags_iquote_end=-I-
13327 aros_cflags_iquote=$kernel_cflags_iquote
13328 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13329 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13330 CC="$orig_target_cc"
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13332 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13333 if test "x-$crosstools" != "x-yes"; then
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13338 main ()
13342 return 0;
13344 _ACEOF
13345 if ac_fn_c_try_compile "$LINENO"; then :
13346 has_iquote="yes"
13347 else
13348 has_iquote="no"
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 else
13352 # we do know it is supported for the smallest version of gcc we are going to build
13353 # we assume it's also supported by later versions
13354 has_iquote=yes
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13357 $as_echo "$has_iquote" >&6; }
13358 if test "x-$has_iquote" = "x-yes" ; then
13359 aros_cflags_iquote=-iquote
13360 aros_cflags_iquote_end=
13361 else
13362 aros_cflags_iquote=-I
13363 aros_cflags_iquote_end=-I-
13366 if test "x-$use_no_stack_protector" = "x-yes" ; then
13367 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13371 #-----------------------------------------------------------------------------
13373 # Check if the target compiler supports some options used for delinting:
13374 # -Wunused-but-set-variable
13375 # -Warray-bounds
13376 # -Wenum-compare
13377 # -Wstrict-overflow
13378 # -Wformat-security
13380 if test "x-$crosstools" != "x-yes"; then
13381 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13382 CC="$orig_target_cc"
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13385 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13386 CFLAGS=-Wunused-but-set-variable
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13391 main ()
13395 return 0;
13397 _ACEOF
13398 if ac_fn_c_try_compile "$LINENO"; then :
13399 aros_unused_but_set_variable="yes"
13400 else
13401 aros_unused_but_set_variable="no"
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13405 $as_echo "$aros_unused_but_set_variable" >&6; }
13406 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13407 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13411 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13412 CFLAGS=-Warray-bounds
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13417 main ()
13421 return 0;
13423 _ACEOF
13424 if ac_fn_c_try_compile "$LINENO"; then :
13425 aros_array_bounds="yes"
13426 else
13427 aros_array_bounds="no"
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13431 $as_echo "$aros_array_bounds" >&6; }
13432 if test "x-$aros_array_bounds" = "x-yes" ; then
13433 aros_cflags_array_bounds=-Wno-array-bounds
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13437 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13438 CFLAGS=-Wenum-compare
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13443 main ()
13447 return 0;
13449 _ACEOF
13450 if ac_fn_c_try_compile "$LINENO"; then :
13451 aros_enum_compare="yes"
13452 else
13453 aros_enum_compare="no"
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13457 $as_echo "$aros_enum_compare" >&6; }
13458 if test "x-$aros_enum_compare" = "x-yes" ; then
13459 aros_cflags_enum_compare=-Wno-enum-compare
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13463 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13464 CFLAGS=-Wstrict-overflow
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13469 main ()
13473 return 0;
13475 _ACEOF
13476 if ac_fn_c_try_compile "$LINENO"; then :
13477 aros_strict_overflow="yes"
13478 else
13479 aros_strict_overflow="no"
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13483 $as_echo "$aros_strict_overflow" >&6; }
13484 if test "x-$aros_strict_overflow" = "x-yes" ; then
13485 aros_cflags_strict_overflow=-Wno-strict-overflow
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13489 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13490 CFLAGS=-Wformat-security
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492 /* end confdefs.h. */
13495 main ()
13499 return 0;
13501 _ACEOF
13502 if ac_fn_c_try_compile "$LINENO"; then :
13503 aros_format_security="yes"
13504 else
13505 aros_format_security="no"
13507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13509 $as_echo "$aros_format_security" >&6; }
13510 if test "x-$aros_format_security" = "x-yes" ; then
13511 aros_cflags_format_security=-Wno-format-security
13513 else
13514 # We do not know which gcc version we are going to build and what we need to know
13515 # here is different for different versions so this will be set later during the
13516 # build of crosstools.
13517 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13518 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13519 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13520 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13521 aros_cflags_format_security=@aros_cflags_format_security@
13524 #-----------------------------------------------------------------------------
13526 # Check if we can explicitly choose older version of symbol hashing
13528 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13529 CC="$aros_kernel_cc"
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13531 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13536 main ()
13540 return 0;
13542 _ACEOF
13543 if ac_fn_c_try_link "$LINENO"; then :
13544 use_hash_style="yes"
13545 else
13546 use_hash_style="no"
13548 rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13551 $as_echo "$use_hash_style" >&6; }
13552 if test "x-$use_hash_style" = "x-yes" ; then
13553 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13555 CC="$save_cc"
13556 CFLAGS="$save_cflags"
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13567 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13569 # Check whether --with-resolution was given.
13570 if test "${with_resolution+set}" = set; then :
13571 withval=$with_resolution; resolution=$withval
13572 else
13573 resolution=none
13576 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13577 if test "$resolution" = "yes" ; then
13578 resolution="none"
13580 if test "$resolution" = "no" ; then
13581 resolution="none"
13583 if test "$resolution" != "none" ; then
13584 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13585 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13586 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13589 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13590 aros_cv_default_wbwidth=$aros_default_wbwidth
13591 aros_cv_default_wbheight=$aros_default_wbheight
13592 aros_cv_default_wbdepth=$aros_default_wbdepth
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13595 $as_echo_n "checking if serial debug is enabled... " >&6; }
13597 # Check whether --with-serial-debug was given.
13598 if test "${with_serial_debug+set}" = set; then :
13599 withval=$with_serial_debug; serial_debug=$withval
13600 else
13601 serial_debug=none
13604 if test "$aros_serial_debug" = 0 ; then
13605 serial_debug_forced=""
13606 if test "$serial_debug" = "yes" ; then
13607 serial_debug="1"
13609 if test "$serial_debug" = "no" ; then
13610 serial_debug="none"
13612 else
13613 serial_debug_forced="(forced)"
13614 serial_debug=$aros_serial_debug
13616 if test "$serial_debug" != "none" ; then
13617 aros_serial_debug=$serial_debug
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13619 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13620 else
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13626 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13627 # Check whether --enable-palm_debug_hack was given.
13628 if test "${enable_palm_debug_hack+set}" = set; then :
13629 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13630 else
13631 palm_debug_hack="no"
13634 if test "$palm_debug_hack" = "yes" ; then
13635 aros_palm_debug_hack="1"
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13638 $as_echo "$palm_debug_hack" >&6; }
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13641 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13642 # Check whether --enable-usb30_code was given.
13643 if test "${enable_usb30_code+set}" = set; then :
13644 enableval=$enable_usb30_code; usb30_code="yes"
13645 else
13646 usb30_code="no"
13649 if test "$usb30_code" = "yes" ; then
13650 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13651 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13654 $as_echo "$usb30_code" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13657 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13658 # Check whether --enable-nesting_supervisor was given.
13659 if test "${enable_nesting_supervisor+set}" = set; then :
13660 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13661 else
13662 nesting_supervisor="no"
13665 if test "$nesting_supervisor" = "yes" ; then
13666 aros_nesting_supervisor="1"
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13669 $as_echo "$nesting_supervisor" >&6; }
13671 if test "$aros_enable_mmu" = "" ; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13673 $as_echo_n "checking if MMU support is enabled... " >&6; }
13674 # Check whether --enable-mmu was given.
13675 if test "${enable_mmu+set}" = set; then :
13676 enableval=$enable_mmu; aros_enable_mmu=$enableval
13677 else
13678 aros_enable_mmu="yes"
13681 if test "$aros_enable_mmu" = "" ; then
13682 aros_enable_mmu="yes"
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13685 $as_echo "$aros_enable_mmu" >&6; }
13687 if test "$aros_enable_mmu" = "no" ; then
13688 aros_enable_mmu="0"
13689 else
13690 aros_enable_mmu="1"
13694 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13696 if test "x-$need_dlopen" != "x-no" ; then
13697 save_libs="$LIBS"
13698 LIBS=""
13699 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13700 if test "x$ac_cv_func_dlopen" = xyes; then :
13701 have_dl="yes"
13702 else
13703 have_dl="no"
13706 if test "x-$have_dl" = "x-no" ; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13708 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13709 if ${ac_cv_lib_dl_dlopen+:} false; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712 ac_check_lib_save_LIBS=$LIBS
13713 LIBS="-ldl $LIBS"
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13720 #ifdef __cplusplus
13721 extern "C"
13722 #endif
13723 char dlopen ();
13725 main ()
13727 return dlopen ();
13729 return 0;
13731 _ACEOF
13732 if ac_fn_c_try_link "$LINENO"; then :
13733 ac_cv_lib_dl_dlopen=yes
13734 else
13735 ac_cv_lib_dl_dlopen=no
13737 rm -f core conftest.err conftest.$ac_objext \
13738 conftest$ac_exeext conftest.$ac_ext
13739 LIBS=$ac_check_lib_save_LIBS
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13742 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13743 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13744 have_dl="yes"
13745 aros_host_ldflags="$aros_host_ldflags -ldl"
13746 else
13747 have_dl="no"
13751 if test "x-$have_dl" = "x-no" ; then
13752 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13754 LIBS="$save_libs"
13758 # Check whether --enable-x11_hidd was given.
13759 if test "${enable_x11_hidd+set}" = set; then :
13760 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13761 else
13762 x11_hidd="$need_x11"
13765 case "x-$x11_hidd" in
13766 x-yes|x-no|x-auto) ;;
13767 *) x11_hidd="$need_x11" ;;
13768 esac
13770 ENABLE_X11=0
13772 if test "x-$x11_hidd" != "x-no" ; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13775 $as_echo_n "checking for X... " >&6; }
13778 # Check whether --with-x was given.
13779 if test "${with_x+set}" = set; then :
13780 withval=$with_x;
13783 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13784 if test "x$with_x" = xno; then
13785 # The user explicitly disabled X.
13786 have_x=disabled
13787 else
13788 case $x_includes,$x_libraries in #(
13789 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13790 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13791 $as_echo_n "(cached) " >&6
13792 else
13793 # One or both of the vars are not set, and there is no cached value.
13794 ac_x_includes=no ac_x_libraries=no
13795 rm -f -r conftest.dir
13796 if mkdir conftest.dir; then
13797 cd conftest.dir
13798 cat >Imakefile <<'_ACEOF'
13799 incroot:
13800 @echo incroot='${INCROOT}'
13801 usrlibdir:
13802 @echo usrlibdir='${USRLIBDIR}'
13803 libdir:
13804 @echo libdir='${LIBDIR}'
13805 _ACEOF
13806 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13807 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13808 for ac_var in incroot usrlibdir libdir; do
13809 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13810 done
13811 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13812 for ac_extension in a so sl dylib la dll; do
13813 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13814 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13815 ac_im_usrlibdir=$ac_im_libdir; break
13817 done
13818 # Screen out bogus values from the imake configuration. They are
13819 # bogus both because they are the default anyway, and because
13820 # using them would break gcc on systems where it needs fixed includes.
13821 case $ac_im_incroot in
13822 /usr/include) ac_x_includes= ;;
13823 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13824 esac
13825 case $ac_im_usrlibdir in
13826 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13827 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13828 esac
13830 cd ..
13831 rm -f -r conftest.dir
13834 # Standard set of common directories for X headers.
13835 # Check X11 before X11Rn because it is often a symlink to the current release.
13836 ac_x_header_dirs='
13837 /usr/X11/include
13838 /usr/X11R7/include
13839 /usr/X11R6/include
13840 /usr/X11R5/include
13841 /usr/X11R4/include
13843 /usr/include/X11
13844 /usr/include/X11R7
13845 /usr/include/X11R6
13846 /usr/include/X11R5
13847 /usr/include/X11R4
13849 /usr/local/X11/include
13850 /usr/local/X11R7/include
13851 /usr/local/X11R6/include
13852 /usr/local/X11R5/include
13853 /usr/local/X11R4/include
13855 /usr/local/include/X11
13856 /usr/local/include/X11R7
13857 /usr/local/include/X11R6
13858 /usr/local/include/X11R5
13859 /usr/local/include/X11R4
13861 /usr/X386/include
13862 /usr/x386/include
13863 /usr/XFree86/include/X11
13865 /usr/include
13866 /usr/local/include
13867 /usr/unsupported/include
13868 /usr/athena/include
13869 /usr/local/x11r5/include
13870 /usr/lpp/Xamples/include
13872 /usr/openwin/include
13873 /usr/openwin/share/include'
13875 if test "$ac_x_includes" = no; then
13876 # Guess where to find include files, by looking for Xlib.h.
13877 # First, try using that file with no special directory specified.
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 #include <X11/Xlib.h>
13881 _ACEOF
13882 if ac_fn_c_try_cpp "$LINENO"; then :
13883 # We can compile using X headers with no special include directory.
13884 ac_x_includes=
13885 else
13886 for ac_dir in $ac_x_header_dirs; do
13887 if test -r "$ac_dir/X11/Xlib.h"; then
13888 ac_x_includes=$ac_dir
13889 break
13891 done
13893 rm -f conftest.err conftest.i conftest.$ac_ext
13894 fi # $ac_x_includes = no
13896 if test "$ac_x_libraries" = no; then
13897 # Check for the libraries.
13898 # See if we find them without any special options.
13899 # Don't add to $LIBS permanently.
13900 ac_save_LIBS=$LIBS
13901 LIBS="-lX11 $LIBS"
13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h. */
13904 #include <X11/Xlib.h>
13906 main ()
13908 XrmInitialize ()
13910 return 0;
13912 _ACEOF
13913 if ac_fn_c_try_link "$LINENO"; then :
13914 LIBS=$ac_save_LIBS
13915 # We can link X programs with no special library path.
13916 ac_x_libraries=
13917 else
13918 LIBS=$ac_save_LIBS
13919 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13921 # Don't even attempt the hair of trying to link an X program!
13922 for ac_extension in a so sl dylib la dll; do
13923 if test -r "$ac_dir/libX11.$ac_extension"; then
13924 ac_x_libraries=$ac_dir
13925 break 2
13927 done
13928 done
13930 rm -f core conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext conftest.$ac_ext
13932 fi # $ac_x_libraries = no
13934 case $ac_x_includes,$ac_x_libraries in #(
13935 no,* | *,no | *\'*)
13936 # Didn't find X, or a directory has "'" in its name.
13937 ac_cv_have_x="have_x=no";; #(
13939 # Record where we found X for the cache.
13940 ac_cv_have_x="have_x=yes\
13941 ac_x_includes='$ac_x_includes'\
13942 ac_x_libraries='$ac_x_libraries'"
13943 esac
13945 ;; #(
13946 *) have_x=yes;;
13947 esac
13948 eval "$ac_cv_have_x"
13949 fi # $with_x != no
13951 if test "$have_x" != yes; then
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13953 $as_echo "$have_x" >&6; }
13954 no_x=yes
13955 else
13956 # If each of the values was on the command line, it overrides each guess.
13957 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13958 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13959 # Update the cache value to reflect the command line values.
13960 ac_cv_have_x="have_x=yes\
13961 ac_x_includes='$x_includes'\
13962 ac_x_libraries='$x_libraries'"
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13964 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13968 x_cflags=
13969 for path in $x_libraries
13971 x_cflags="$x_cflags -L$path"
13972 done
13974 for path in $x_includes
13976 x_cflags="$x_cflags -I$path"
13977 done
13979 if test "x-$no_x" = "x-yes" ; then
13981 if test "x-$x11_hidd" != "x-auto" ; then
13982 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13985 else
13986 unixgfx_hidd_target=kernel-x11gfx
13987 ENABLE_X11=1
13989 # Check whether --enable-x11_shm was given.
13990 if test "${enable_x11_shm+set}" = set; then :
13991 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13992 else
13993 x11_hidd_shm="auto"
13996 case "x-$x11_hidd_shm" in
13997 x-yes|x-no|x-auto) ;;
13998 *) x11_hidd_shm="auto" ;;
13999 esac
14001 have_xshm=no
14003 if test "x-$x11_hidd_shm" != "x-no" ; then
14005 for ac_header in sys/ipc.h
14006 do :
14007 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14008 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14009 cat >>confdefs.h <<_ACEOF
14010 #define HAVE_SYS_IPC_H 1
14011 _ACEOF
14015 done
14017 for ac_header in sys/shm.h
14018 do :
14019 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14020 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14021 cat >>confdefs.h <<_ACEOF
14022 #define HAVE_SYS_SHM_H 1
14023 _ACEOF
14027 done
14030 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14032 save_cflags="$CFLAGS"
14033 CFLAGS="$CFLAGS $x_cflags"
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14035 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14036 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14037 $as_echo_n "(cached) " >&6
14038 else
14039 ac_check_lib_save_LIBS=$LIBS
14040 LIBS="-lXext $LIBS"
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14047 #ifdef __cplusplus
14048 extern "C"
14049 #endif
14050 char XShmQueryExtension ();
14052 main ()
14054 return XShmQueryExtension ();
14056 return 0;
14058 _ACEOF
14059 if ac_fn_c_try_link "$LINENO"; then :
14060 ac_cv_lib_Xext_XShmQueryExtension=yes
14061 else
14062 ac_cv_lib_Xext_XShmQueryExtension=no
14064 rm -f core conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
14066 LIBS=$ac_check_lib_save_LIBS
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14069 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14070 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14071 have_xshm=yes
14074 CFLAGS="$save_cflags"
14078 if test "x-$have_xshm" = "x-yes" ; then
14079 DO_XSHM_SUPPORT="1"
14080 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14081 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14082 else
14083 DO_XSHM_SUPPORT="0"
14087 # Check whether --enable-x11_vidmode was given.
14088 if test "${enable_x11_vidmode+set}" = set; then :
14089 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14090 else
14091 x11_hidd_vidmode="auto"
14094 case "x-$x11_hidd_vidmode" in
14095 x-yes|x-no|x-auto) ;;
14096 *) x11_hidd_vidmode="auto" ;;
14097 esac
14099 have_vidmode=no
14101 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14103 save_cflags="$CFLAGS"
14104 CFLAGS="$CFLAGS $x_cflags"
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14106 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14107 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14108 $as_echo_n "(cached) " >&6
14109 else
14110 ac_check_lib_save_LIBS=$LIBS
14111 LIBS="-lXxf86vm $LIBS"
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14115 /* Override any GCC internal prototype to avoid an error.
14116 Use char because int might match the return type of a GCC
14117 builtin and then its argument prototype would still apply. */
14118 #ifdef __cplusplus
14119 extern "C"
14120 #endif
14121 char XF86VidModeQueryExtension ();
14123 main ()
14125 return XF86VidModeQueryExtension ();
14127 return 0;
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14132 else
14133 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14135 rm -f core conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14137 LIBS=$ac_check_lib_save_LIBS
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14140 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14141 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14142 have_vidmode=yes
14145 CFLAGS="$save_cflags"
14148 if test "x-$have_vidmode" = "x-yes" ; then
14149 DO_VIDMODE_SUPPORT="1"
14150 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14151 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14152 else
14153 DO_VIDMODE_SUPPORT="0"
14157 aros_host_x11_includes=$x_includes
14158 aros_host_x11_libdirs=$x_libraries
14162 # Check whether --enable-sdl_hidd was given.
14163 if test "${enable_sdl_hidd+set}" = set; then :
14164 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14165 else
14166 sdl_hidd="auto"
14169 case "x-$sdl_hidd" in
14170 x-yes|x-no|x-auto) ;;
14171 *) sdl_hidd="auto" ;;
14172 esac
14174 if test "x-$sdl_hidd" != "x-no" ; then
14177 # Check whether --with-sdl-prefix was given.
14178 if test "${with_sdl_prefix+set}" = set; then :
14179 withval=$with_sdl_prefix; sdl_prefix="$withval"
14180 else
14181 sdl_prefix=""
14185 # Check whether --with-sdl-exec-prefix was given.
14186 if test "${with_sdl_exec_prefix+set}" = set; then :
14187 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14188 else
14189 sdl_exec_prefix=""
14192 # Check whether --enable-sdltest was given.
14193 if test "${enable_sdltest+set}" = set; then :
14194 enableval=$enable_sdltest;
14195 else
14196 enable_sdltest=yes
14200 if test x$sdl_exec_prefix != x ; then
14201 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14202 if test x${SDL_CONFIG+set} != xset ; then
14203 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14206 if test x$sdl_prefix != x ; then
14207 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14208 if test x${SDL_CONFIG+set} != xset ; then
14209 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14213 as_save_PATH="$PATH"
14214 if test "x$prefix" != xNONE; then
14215 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14217 # Extract the first word of "sdl-config", so it can be a program name with args.
14218 set dummy sdl-config; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 case $SDL_CONFIG in
14225 [\\/]* | ?:[\\/]*)
14226 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230 for as_dir in $PATH
14232 IFS=$as_save_IFS
14233 test -z "$as_dir" && as_dir=.
14234 for ac_exec_ext in '' $ac_executable_extensions; do
14235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14236 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14238 break 2
14240 done
14241 done
14242 IFS=$as_save_IFS
14244 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14246 esac
14248 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14249 if test -n "$SDL_CONFIG"; then
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14251 $as_echo "$SDL_CONFIG" >&6; }
14252 else
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254 $as_echo "no" >&6; }
14258 PATH="$as_save_PATH"
14259 min_sdl_version=1.2.10
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14261 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14262 no_sdl=""
14263 if test "$SDL_CONFIG" = "no" ; then
14264 no_sdl=yes
14265 else
14266 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14267 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14269 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14270 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14271 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14272 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14273 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14274 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14275 if test "x$enable_sdltest" = "xyes" ; then
14276 ac_save_CFLAGS="$CFLAGS"
14277 ac_save_CXXFLAGS="$CXXFLAGS"
14278 ac_save_LIBS="$LIBS"
14279 CFLAGS="$CFLAGS $SDL_CFLAGS"
14280 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14281 LIBS="$LIBS $SDL_LIBS"
14282 rm -f conf.sdltest
14283 if test "$cross_compiling" = yes; then :
14284 echo $ac_n "cross compiling; assumed OK... $ac_c"
14285 else
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14289 #include <stdio.h>
14290 #include <stdlib.h>
14291 #include <string.h>
14292 #include "SDL.h"
14294 char*
14295 my_strdup (char *str)
14297 char *new_str;
14299 if (str)
14301 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14302 strcpy (new_str, str);
14304 else
14305 new_str = NULL;
14307 return new_str;
14310 int main (int argc, char *argv[])
14312 int major, minor, micro;
14313 char *tmp_version;
14315 /* This hangs on some systems (?)
14316 system ("touch conf.sdltest");
14318 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14320 /* HP/UX 9 (%@#!) writes to sscanf strings */
14321 tmp_version = my_strdup("$min_sdl_version");
14322 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14323 printf("%s, bad version string\n", "$min_sdl_version");
14324 exit(1);
14327 if (($sdl_major_version > major) ||
14328 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14329 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14331 return 0;
14333 else
14335 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14336 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14337 printf("*** best to upgrade to the required version.\n");
14338 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14339 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14340 printf("*** config.cache before re-running configure\n");
14341 return 1;
14346 _ACEOF
14347 if ac_fn_c_try_run "$LINENO"; then :
14349 else
14350 no_sdl=yes
14352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14353 conftest.$ac_objext conftest.beam conftest.$ac_ext
14356 CFLAGS="$ac_save_CFLAGS"
14357 CXXFLAGS="$ac_save_CXXFLAGS"
14358 LIBS="$ac_save_LIBS"
14361 if test "x$no_sdl" = x ; then
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14363 $as_echo "yes" >&6; }
14364 have_sdl="yes"
14365 else
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 $as_echo "no" >&6; }
14368 if test "$SDL_CONFIG" = "no" ; then
14369 echo "*** The sdl-config script installed by SDL could not be found"
14370 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14371 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14372 echo "*** full path to sdl-config."
14373 else
14374 if test -f conf.sdltest ; then
14376 else
14377 echo "*** Could not run SDL test program, checking why..."
14378 CFLAGS="$CFLAGS $SDL_CFLAGS"
14379 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14380 LIBS="$LIBS $SDL_LIBS"
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14384 #include <stdio.h>
14385 #include "SDL.h"
14387 int main(int argc, char *argv[])
14388 { return 0; }
14389 #undef main
14390 #define main K_and_R_C_main
14393 main ()
14395 return 0;
14397 return 0;
14399 _ACEOF
14400 if ac_fn_c_try_link "$LINENO"; then :
14401 echo "*** The test program compiled, but did not run. This usually means"
14402 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14403 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14404 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14405 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14406 echo "*** is required on your system"
14407 echo "***"
14408 echo "*** If you have an old version installed, it is best to remove it, although"
14409 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14410 else
14411 echo "*** The test program failed to compile or link. See the file config.log for the"
14412 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14413 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14414 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14416 rm -f core conftest.err conftest.$ac_objext \
14417 conftest$ac_exeext conftest.$ac_ext
14418 CFLAGS="$ac_save_CFLAGS"
14419 CXXFLAGS="$ac_save_CXXFLAGS"
14420 LIBS="$ac_save_LIBS"
14423 SDL_CFLAGS=""
14424 SDL_LIBS=""
14425 have_sdl="no"
14429 rm -f conf.sdltest
14432 if test "x-$have_sdl" != "x-yes" ; then
14434 if test "x-$sdl_hidd" != "x-auto" ; then
14435 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14438 else
14439 sdl_hidd_target=kernel-hidd-sdl
14440 aros_host_sdl_cflags=SDL_CFLAGS
14441 aros_host_sdl_libs=SDL_LIBS
14445 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14446 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14451 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14452 oss_library_target=workbench-libs-oss-unix
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14458 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14459 # Check whether --enable-dbus was given.
14460 if test "${enable_dbus+set}" = set; then :
14461 enableval=$enable_dbus; dbus="yes"
14462 else
14463 dbus="no"
14466 if test "$dbus" = "yes" ; then
14467 ENABLE_DBUS=1
14468 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14469 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14470 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14471 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14472 else
14473 ENABLE_DBUS=0
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14476 $as_echo "$dbus" >&6; }
14478 if test "$use_kernel_cc_wrapper" = "yes" ; then
14479 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14483 # Generic
14495 # Compatability with other Amiga-like operation systems
14498 # Host related
14526 # Target Related
14596 # Delinting target compiler flags
14603 # Graphics Related
14620 # Native version related
14624 # Palm native version related
14627 # Unix/Hosted version related
14630 # MMU related
14633 # Apple iOS related
14638 # ARM default GCC target related
14644 # Android related
14649 # DBUS related
14656 #X11 related
14659 # Debug related
14665 # Collect-aros stuff: "-ius" to ignore undefined symbols
14668 # C compiler related
14673 #ObjC compiler related
14676 #Java related
14679 # USB3.0 code
14682 case "$aros_flavour" in
14683 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14684 aros_flavour="emulation" ;;
14685 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14686 aros_flavour="emulation" ;;
14687 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14688 aros_flavour="standalone";;
14689 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14690 aros_flavour="standalone";;
14691 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14692 aros_flavour="native" ;;
14693 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14694 aros_flavour="native" ;;
14695 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14696 aros_flavour="linklib" ;;
14697 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14698 aros_flavour="palmnative" ;;
14699 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14700 aros_flavour="mac68knative" ;;
14701 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14702 aros_flavour="ppcnative" ;;
14703 esac
14705 if test ! -d ${aros_inc_dir} ; then
14706 ${MKDIR} ${aros_inc_dir}
14708 if test ! -d ${aros_geninc_dir} ; then
14709 ${MKDIR} ${aros_geninc_dir}
14711 if test ! -d ${aros_hostcfg_dir} ; then
14712 ${MKDIR} ${aros_hostcfg_dir}
14714 if test ! -d ${aros_targetcfg_dir} ; then
14715 ${MKDIR} ${aros_targetcfg_dir}
14717 if test ! -d ${aros_tools_dir} ; then
14718 ${MKDIR} ${aros_tools_dir}
14720 if test ! -d ${aros_scripts_dir} ; then
14721 ${MKDIR} ${aros_scripts_dir}
14724 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14727 # Generic build tools (metamake, etc)
14728 ac_config_commands="$ac_config_commands genmf-executable-support"
14730 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14733 # Binutils
14734 ac_config_commands="$ac_config_commands binutils-support"
14736 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14739 # Bare Elf support script and spec
14740 if test "${use_kernel_cc_wrapper}" = "yes"; then
14741 ac_config_commands="$ac_config_commands elf-compiler-support"
14743 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"
14747 # Host compiler support scripts and spec
14748 if test "${aros_target_toolchain}" = "no"; then
14749 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14751 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-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in"
14755 # Android support
14756 if test "$aros_target_variant" == "android"; then
14757 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14761 # cmake helper
14762 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14765 cat >confcache <<\_ACEOF
14766 # This file is a shell script that caches the results of configure
14767 # tests run on this system so they can be shared between configure
14768 # scripts and configure runs, see configure's option --config-cache.
14769 # It is not useful on other systems. If it contains results you don't
14770 # want to keep, you may remove or edit it.
14772 # config.status only pays attention to the cache file if you give it
14773 # the --recheck option to rerun configure.
14775 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14776 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14777 # following values.
14779 _ACEOF
14781 # The following way of writing the cache mishandles newlines in values,
14782 # but we know of no workaround that is simple, portable, and efficient.
14783 # So, we kill variables containing newlines.
14784 # Ultrix sh set writes to stderr and can't be redirected directly,
14785 # and sets the high bit in the cache file unless we assign to the vars.
14787 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14788 eval ac_val=\$$ac_var
14789 case $ac_val in #(
14790 *${as_nl}*)
14791 case $ac_var in #(
14792 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14793 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14794 esac
14795 case $ac_var in #(
14796 _ | IFS | as_nl) ;; #(
14797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14798 *) { eval $ac_var=; unset $ac_var;} ;;
14799 esac ;;
14800 esac
14801 done
14803 (set) 2>&1 |
14804 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14805 *${as_nl}ac_space=\ *)
14806 # `set' does not quote correctly, so add quotes: double-quote
14807 # substitution turns \\\\ into \\, and sed turns \\ into \.
14808 sed -n \
14809 "s/'/'\\\\''/g;
14810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14811 ;; #(
14813 # `set' quotes correctly as required by POSIX, so do not add quotes.
14814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14816 esac |
14817 sort
14819 sed '
14820 /^ac_cv_env_/b end
14821 t clear
14822 :clear
14823 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14824 t end
14825 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14826 :end' >>confcache
14827 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14828 if test -w "$cache_file"; then
14829 if test "x$cache_file" != "x/dev/null"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14831 $as_echo "$as_me: updating cache $cache_file" >&6;}
14832 if test ! -f "$cache_file" || test -h "$cache_file"; then
14833 cat confcache >"$cache_file"
14834 else
14835 case $cache_file in #(
14836 */* | ?:*)
14837 mv -f confcache "$cache_file"$$ &&
14838 mv -f "$cache_file"$$ "$cache_file" ;; #(
14840 mv -f confcache "$cache_file" ;;
14841 esac
14844 else
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14846 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14849 rm -f confcache
14851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14852 # Let make expand exec_prefix.
14853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14855 DEFS=-DHAVE_CONFIG_H
14857 ac_libobjs=
14858 ac_ltlibobjs=
14860 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14861 # 1. Remove the extension, and $U if already installed.
14862 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14863 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14864 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14865 # will be set to the directory where LIBOBJS objects are built.
14866 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14867 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14868 done
14869 LIBOBJS=$ac_libobjs
14871 LTLIBOBJS=$ac_ltlibobjs
14875 : "${CONFIG_STATUS=./config.status}"
14876 ac_write_fail=0
14877 ac_clean_files_save=$ac_clean_files
14878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14880 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14881 as_write_fail=0
14882 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14883 #! $SHELL
14884 # Generated by $as_me.
14885 # Run this file to recreate the current configuration.
14886 # Compiler output produced by configure, useful for debugging
14887 # configure, is in config.log if it exists.
14889 debug=false
14890 ac_cs_recheck=false
14891 ac_cs_silent=false
14893 SHELL=\${CONFIG_SHELL-$SHELL}
14894 export SHELL
14895 _ASEOF
14896 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14897 ## -------------------- ##
14898 ## M4sh Initialization. ##
14899 ## -------------------- ##
14901 # Be more Bourne compatible
14902 DUALCASE=1; export DUALCASE # for MKS sh
14903 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14904 emulate sh
14905 NULLCMD=:
14906 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14907 # is contrary to our usage. Disable this feature.
14908 alias -g '${1+"$@"}'='"$@"'
14909 setopt NO_GLOB_SUBST
14910 else
14911 case `(set -o) 2>/dev/null` in #(
14912 *posix*) :
14913 set -o posix ;; #(
14914 *) :
14916 esac
14920 as_nl='
14922 export as_nl
14923 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14924 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14926 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14927 # Prefer a ksh shell builtin over an external printf program on Solaris,
14928 # but without wasting forks for bash or zsh.
14929 if test -z "$BASH_VERSION$ZSH_VERSION" \
14930 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14931 as_echo='print -r --'
14932 as_echo_n='print -rn --'
14933 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14934 as_echo='printf %s\n'
14935 as_echo_n='printf %s'
14936 else
14937 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14938 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14939 as_echo_n='/usr/ucb/echo -n'
14940 else
14941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14942 as_echo_n_body='eval
14943 arg=$1;
14944 case $arg in #(
14945 *"$as_nl"*)
14946 expr "X$arg" : "X\\(.*\\)$as_nl";
14947 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14948 esac;
14949 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14951 export as_echo_n_body
14952 as_echo_n='sh -c $as_echo_n_body as_echo'
14954 export as_echo_body
14955 as_echo='sh -c $as_echo_body as_echo'
14958 # The user is always right.
14959 if test "${PATH_SEPARATOR+set}" != set; then
14960 PATH_SEPARATOR=:
14961 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14962 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14963 PATH_SEPARATOR=';'
14968 # IFS
14969 # We need space, tab and new line, in precisely that order. Quoting is
14970 # there to prevent editors from complaining about space-tab.
14971 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14972 # splitting by setting IFS to empty value.)
14973 IFS=" "" $as_nl"
14975 # Find who we are. Look in the path if we contain no directory separator.
14976 as_myself=
14977 case $0 in #((
14978 *[\\/]* ) as_myself=$0 ;;
14979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14985 done
14986 IFS=$as_save_IFS
14989 esac
14990 # We did not find ourselves, most probably we were run as `sh COMMAND'
14991 # in which case we are not to be found in the path.
14992 if test "x$as_myself" = x; then
14993 as_myself=$0
14995 if test ! -f "$as_myself"; then
14996 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14997 exit 1
15000 # Unset variables that we do not need and which cause bugs (e.g. in
15001 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15002 # suppresses any "Segmentation fault" message there. '((' could
15003 # trigger a bug in pdksh 5.2.14.
15004 for as_var in BASH_ENV ENV MAIL MAILPATH
15005 do eval test x\${$as_var+set} = xset \
15006 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15007 done
15008 PS1='$ '
15009 PS2='> '
15010 PS4='+ '
15012 # NLS nuisances.
15013 LC_ALL=C
15014 export LC_ALL
15015 LANGUAGE=C
15016 export LANGUAGE
15018 # CDPATH.
15019 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15022 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15023 # ----------------------------------------
15024 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15025 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15026 # script with STATUS, using 1 if that was 0.
15027 as_fn_error ()
15029 as_status=$1; test $as_status -eq 0 && as_status=1
15030 if test "$4"; then
15031 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15032 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15034 $as_echo "$as_me: error: $2" >&2
15035 as_fn_exit $as_status
15036 } # as_fn_error
15039 # as_fn_set_status STATUS
15040 # -----------------------
15041 # Set $? to STATUS, without forking.
15042 as_fn_set_status ()
15044 return $1
15045 } # as_fn_set_status
15047 # as_fn_exit STATUS
15048 # -----------------
15049 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15050 as_fn_exit ()
15052 set +e
15053 as_fn_set_status $1
15054 exit $1
15055 } # as_fn_exit
15057 # as_fn_unset VAR
15058 # ---------------
15059 # Portably unset VAR.
15060 as_fn_unset ()
15062 { eval $1=; unset $1;}
15064 as_unset=as_fn_unset
15065 # as_fn_append VAR VALUE
15066 # ----------------------
15067 # Append the text in VALUE to the end of the definition contained in VAR. Take
15068 # advantage of any shell optimizations that allow amortized linear growth over
15069 # repeated appends, instead of the typical quadratic growth present in naive
15070 # implementations.
15071 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15072 eval 'as_fn_append ()
15074 eval $1+=\$2
15076 else
15077 as_fn_append ()
15079 eval $1=\$$1\$2
15081 fi # as_fn_append
15083 # as_fn_arith ARG...
15084 # ------------------
15085 # Perform arithmetic evaluation on the ARGs, and store the result in the
15086 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15087 # must be portable across $(()) and expr.
15088 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15089 eval 'as_fn_arith ()
15091 as_val=$(( $* ))
15093 else
15094 as_fn_arith ()
15096 as_val=`expr "$@" || test $? -eq 1`
15098 fi # as_fn_arith
15101 if expr a : '\(a\)' >/dev/null 2>&1 &&
15102 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15103 as_expr=expr
15104 else
15105 as_expr=false
15108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15109 as_basename=basename
15110 else
15111 as_basename=false
15114 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15115 as_dirname=dirname
15116 else
15117 as_dirname=false
15120 as_me=`$as_basename -- "$0" ||
15121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15122 X"$0" : 'X\(//\)$' \| \
15123 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15124 $as_echo X/"$0" |
15125 sed '/^.*\/\([^/][^/]*\)\/*$/{
15126 s//\1/
15129 /^X\/\(\/\/\)$/{
15130 s//\1/
15133 /^X\/\(\/\).*/{
15134 s//\1/
15137 s/.*/./; q'`
15139 # Avoid depending upon Character Ranges.
15140 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15141 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15142 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15143 as_cr_digits='0123456789'
15144 as_cr_alnum=$as_cr_Letters$as_cr_digits
15146 ECHO_C= ECHO_N= ECHO_T=
15147 case `echo -n x` in #(((((
15148 -n*)
15149 case `echo 'xy\c'` in
15150 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15151 xy) ECHO_C='\c';;
15152 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15153 ECHO_T=' ';;
15154 esac;;
15156 ECHO_N='-n';;
15157 esac
15159 rm -f conf$$ conf$$.exe conf$$.file
15160 if test -d conf$$.dir; then
15161 rm -f conf$$.dir/conf$$.file
15162 else
15163 rm -f conf$$.dir
15164 mkdir conf$$.dir 2>/dev/null
15166 if (echo >conf$$.file) 2>/dev/null; then
15167 if ln -s conf$$.file conf$$ 2>/dev/null; then
15168 as_ln_s='ln -s'
15169 # ... but there are two gotchas:
15170 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15171 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15172 # In both cases, we have to default to `cp -pR'.
15173 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15174 as_ln_s='cp -pR'
15175 elif ln conf$$.file conf$$ 2>/dev/null; then
15176 as_ln_s=ln
15177 else
15178 as_ln_s='cp -pR'
15180 else
15181 as_ln_s='cp -pR'
15183 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15184 rmdir conf$$.dir 2>/dev/null
15187 # as_fn_mkdir_p
15188 # -------------
15189 # Create "$as_dir" as a directory, including parents if necessary.
15190 as_fn_mkdir_p ()
15193 case $as_dir in #(
15194 -*) as_dir=./$as_dir;;
15195 esac
15196 test -d "$as_dir" || eval $as_mkdir_p || {
15197 as_dirs=
15198 while :; do
15199 case $as_dir in #(
15200 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15201 *) as_qdir=$as_dir;;
15202 esac
15203 as_dirs="'$as_qdir' $as_dirs"
15204 as_dir=`$as_dirname -- "$as_dir" ||
15205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15206 X"$as_dir" : 'X\(//\)[^/]' \| \
15207 X"$as_dir" : 'X\(//\)$' \| \
15208 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15209 $as_echo X"$as_dir" |
15210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15211 s//\1/
15214 /^X\(\/\/\)[^/].*/{
15215 s//\1/
15218 /^X\(\/\/\)$/{
15219 s//\1/
15222 /^X\(\/\).*/{
15223 s//\1/
15226 s/.*/./; q'`
15227 test -d "$as_dir" && break
15228 done
15229 test -z "$as_dirs" || eval "mkdir $as_dirs"
15230 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15233 } # as_fn_mkdir_p
15234 if mkdir -p . 2>/dev/null; then
15235 as_mkdir_p='mkdir -p "$as_dir"'
15236 else
15237 test -d ./-p && rmdir ./-p
15238 as_mkdir_p=false
15242 # as_fn_executable_p FILE
15243 # -----------------------
15244 # Test if FILE is an executable regular file.
15245 as_fn_executable_p ()
15247 test -f "$1" && test -x "$1"
15248 } # as_fn_executable_p
15249 as_test_x='test -x'
15250 as_executable_p=as_fn_executable_p
15252 # Sed expression to map a string onto a valid CPP name.
15253 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15255 # Sed expression to map a string onto a valid variable name.
15256 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15259 exec 6>&1
15260 ## ----------------------------------- ##
15261 ## Main body of $CONFIG_STATUS script. ##
15262 ## ----------------------------------- ##
15263 _ASEOF
15264 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15267 # Save the log message, to keep $0 and so on meaningful, and to
15268 # report actual input values of CONFIG_FILES etc. instead of their
15269 # values after options handling.
15270 ac_log="
15271 This file was extended by $as_me, which was
15272 generated by GNU Autoconf 2.69. Invocation command line was
15274 CONFIG_FILES = $CONFIG_FILES
15275 CONFIG_HEADERS = $CONFIG_HEADERS
15276 CONFIG_LINKS = $CONFIG_LINKS
15277 CONFIG_COMMANDS = $CONFIG_COMMANDS
15278 $ $0 $@
15280 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15283 _ACEOF
15285 case $ac_config_files in *"
15286 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15287 esac
15289 case $ac_config_headers in *"
15290 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15291 esac
15294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15295 # Files that config.status was made for.
15296 config_files="$ac_config_files"
15297 config_headers="$ac_config_headers"
15298 config_commands="$ac_config_commands"
15300 _ACEOF
15302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303 ac_cs_usage="\
15304 \`$as_me' instantiates files and other configuration actions
15305 from templates according to the current configuration. Unless the files
15306 and actions are specified as TAGs, all are instantiated by default.
15308 Usage: $0 [OPTION]... [TAG]...
15310 -h, --help print this help, then exit
15311 -V, --version print version number and configuration settings, then exit
15312 --config print configuration, then exit
15313 -q, --quiet, --silent
15314 do not print progress messages
15315 -d, --debug don't remove temporary files
15316 --recheck update $as_me by reconfiguring in the same conditions
15317 --file=FILE[:TEMPLATE]
15318 instantiate the configuration file FILE
15319 --header=FILE[:TEMPLATE]
15320 instantiate the configuration header FILE
15322 Configuration files:
15323 $config_files
15325 Configuration headers:
15326 $config_headers
15328 Configuration commands:
15329 $config_commands
15331 Report bugs to the package provider."
15333 _ACEOF
15334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15336 ac_cs_version="\\
15337 config.status
15338 configured by $0, generated by GNU Autoconf 2.69,
15339 with options \\"\$ac_cs_config\\"
15341 Copyright (C) 2012 Free Software Foundation, Inc.
15342 This config.status script is free software; the Free Software Foundation
15343 gives unlimited permission to copy, distribute and modify it."
15345 ac_pwd='$ac_pwd'
15346 srcdir='$srcdir'
15347 test -n "\$AWK" || AWK=awk
15348 _ACEOF
15350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15351 # The default lists apply if the user does not specify any file.
15352 ac_need_defaults=:
15353 while test $# != 0
15355 case $1 in
15356 --*=?*)
15357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15359 ac_shift=:
15361 --*=)
15362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15363 ac_optarg=
15364 ac_shift=:
15367 ac_option=$1
15368 ac_optarg=$2
15369 ac_shift=shift
15371 esac
15373 case $ac_option in
15374 # Handling of the options.
15375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15376 ac_cs_recheck=: ;;
15377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15378 $as_echo "$ac_cs_version"; exit ;;
15379 --config | --confi | --conf | --con | --co | --c )
15380 $as_echo "$ac_cs_config"; exit ;;
15381 --debug | --debu | --deb | --de | --d | -d )
15382 debug=: ;;
15383 --file | --fil | --fi | --f )
15384 $ac_shift
15385 case $ac_optarg in
15386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15387 '') as_fn_error $? "missing file argument" ;;
15388 esac
15389 as_fn_append CONFIG_FILES " '$ac_optarg'"
15390 ac_need_defaults=false;;
15391 --header | --heade | --head | --hea )
15392 $ac_shift
15393 case $ac_optarg in
15394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15395 esac
15396 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15397 ac_need_defaults=false;;
15398 --he | --h)
15399 # Conflict between --help and --header
15400 as_fn_error $? "ambiguous option: \`$1'
15401 Try \`$0 --help' for more information.";;
15402 --help | --hel | -h )
15403 $as_echo "$ac_cs_usage"; exit ;;
15404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15406 ac_cs_silent=: ;;
15408 # This is an error.
15409 -*) as_fn_error $? "unrecognized option: \`$1'
15410 Try \`$0 --help' for more information." ;;
15412 *) as_fn_append ac_config_targets " $1"
15413 ac_need_defaults=false ;;
15415 esac
15416 shift
15417 done
15419 ac_configure_extra_args=
15421 if $ac_cs_silent; then
15422 exec 6>/dev/null
15423 ac_configure_extra_args="$ac_configure_extra_args --silent"
15426 _ACEOF
15427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15428 if \$ac_cs_recheck; then
15429 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15430 shift
15431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15432 CONFIG_SHELL='$SHELL'
15433 export CONFIG_SHELL
15434 exec "\$@"
15437 _ACEOF
15438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15439 exec 5>>config.log
15441 echo
15442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15443 ## Running $as_me. ##
15444 _ASBOX
15445 $as_echo "$ac_log"
15446 } >&5
15448 _ACEOF
15449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15451 # INIT-COMMANDS
15453 aros_tools_dir=${aros_tools_dir}
15456 aros_host_exe_suffix=${aros_host_exe_suffix}
15457 aros_tools_dir=${aros_tools_dir}
15458 aros_target_cpu=${aros_target_cpu}
15459 aros_target_arch=${aros_target_arch}
15460 aros_target_suffix=${aros_target_suffix}
15461 orig_target_nm=${orig_target_nm}
15462 orig_target_as=${orig_target_as}
15463 orig_target_ar=${orig_target_ar}
15464 orig_target_ranlib=${orig_target_ranlib}
15465 orig_target_objdump=${orig_target_objdump}
15466 orig_target_objcopy=${orig_target_objcopy}
15467 orig_target_strip=${orig_target_strip}
15468 aros_kernel_ld=${aros_kernel_ld}
15472 aros_host_exe_suffix=${aros_host_exe_suffix}
15473 aros_tools_dir=${aros_tools_dir}
15474 aros_target_cpu=${aros_target_cpu}
15475 aros_target_arch=${aros_target_arch}
15476 aros_target_suffix=${aros_target_suffix}
15477 aros_kernel_ld=${aros_kernel_ld}
15481 aros_host_exe_suffix=${aros_host_exe_suffix}
15482 aros_tools_dir=${aros_tools_dir}
15483 aros_target_cpu=${aros_target_cpu}
15484 aros_target_arch=${aros_target_arch}
15485 aros_target_suffix=${aros_target_suffix}
15489 _ACEOF
15491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15493 # Handling of arguments.
15494 for ac_config_target in $ac_config_targets
15496 case $ac_config_target in
15497 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15498 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15499 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15500 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15501 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15502 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15503 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15504 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15505 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15506 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15507 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15508 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15509 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15510 "${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" ;;
15511 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15512 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15513 "${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" ;;
15514 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15515 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15516 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in" ;;
15517 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in" ;;
15518 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in" ;;
15519 "${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" ;;
15520 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15522 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15523 esac
15524 done
15527 # If the user did not use the arguments to specify the items to instantiate,
15528 # then the envvar interface is used. Set only those that are not.
15529 # We use the long form for the default assignment because of an extremely
15530 # bizarre bug on SunOS 4.1.3.
15531 if $ac_need_defaults; then
15532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15533 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15534 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15537 # Have a temporary directory for convenience. Make it in the build tree
15538 # simply because there is no reason against having it here, and in addition,
15539 # creating and moving files from /tmp can sometimes cause problems.
15540 # Hook for its removal unless debugging.
15541 # Note that there is a small window in which the directory will not be cleaned:
15542 # after its creation but before its name has been assigned to `$tmp'.
15543 $debug ||
15545 tmp= ac_tmp=
15546 trap 'exit_status=$?
15547 : "${ac_tmp:=$tmp}"
15548 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15550 trap 'as_fn_exit 1' 1 2 13 15
15552 # Create a (secure) tmp directory for tmp files.
15555 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15556 test -d "$tmp"
15557 } ||
15559 tmp=./conf$$-$RANDOM
15560 (umask 077 && mkdir "$tmp")
15561 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15562 ac_tmp=$tmp
15564 # Set up the scripts for CONFIG_FILES section.
15565 # No need to generate them if there are no CONFIG_FILES.
15566 # This happens for instance with `./config.status config.h'.
15567 if test -n "$CONFIG_FILES"; then
15570 ac_cr=`echo X | tr X '\015'`
15571 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15572 # But we know of no other shell where ac_cr would be empty at this
15573 # point, so we can use a bashism as a fallback.
15574 if test "x$ac_cr" = x; then
15575 eval ac_cr=\$\'\\r\'
15577 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15578 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15579 ac_cs_awk_cr='\\r'
15580 else
15581 ac_cs_awk_cr=$ac_cr
15584 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15585 _ACEOF
15589 echo "cat >conf$$subs.awk <<_ACEOF" &&
15590 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15591 echo "_ACEOF"
15592 } >conf$$subs.sh ||
15593 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15594 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15595 ac_delim='%!_!# '
15596 for ac_last_try in false false false false false :; do
15597 . ./conf$$subs.sh ||
15598 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15600 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15601 if test $ac_delim_n = $ac_delim_num; then
15602 break
15603 elif $ac_last_try; then
15604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15605 else
15606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15608 done
15609 rm -f conf$$subs.sh
15611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15612 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15613 _ACEOF
15614 sed -n '
15616 s/^/S["/; s/!.*/"]=/
15619 s/^[^!]*!//
15620 :repl
15621 t repl
15622 s/'"$ac_delim"'$//
15623 t delim
15626 s/\(.\{148\}\)..*/\1/
15627 t more1
15628 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15631 b repl
15632 :more1
15633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15636 s/.\{148\}//
15637 t nl
15638 :delim
15640 s/\(.\{148\}\)..*/\1/
15641 t more2
15642 s/["\\]/\\&/g; s/^/"/; s/$/"/
15645 :more2
15646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15649 s/.\{148\}//
15650 t delim
15651 ' <conf$$subs.awk | sed '
15652 /^[^""]/{
15654 s/\n//
15656 ' >>$CONFIG_STATUS || ac_write_fail=1
15657 rm -f conf$$subs.awk
15658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659 _ACAWK
15660 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15661 for (key in S) S_is_set[key] = 1
15662 FS = "\a"
15666 line = $ 0
15667 nfields = split(line, field, "@")
15668 substed = 0
15669 len = length(field[1])
15670 for (i = 2; i < nfields; i++) {
15671 key = field[i]
15672 keylen = length(key)
15673 if (S_is_set[key]) {
15674 value = S[key]
15675 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15676 len += length(value) + length(field[++i])
15677 substed = 1
15678 } else
15679 len += 1 + keylen
15682 print line
15685 _ACAWK
15686 _ACEOF
15687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15688 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15689 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15690 else
15692 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15693 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15694 _ACEOF
15696 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15697 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15698 # trailing colons and then remove the whole line if VPATH becomes empty
15699 # (actually we leave an empty line to preserve line numbers).
15700 if test "x$srcdir" = x.; then
15701 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15703 s///
15704 s/^/:/
15705 s/[ ]*$/:/
15706 s/:\$(srcdir):/:/g
15707 s/:\${srcdir}:/:/g
15708 s/:@srcdir@:/:/g
15709 s/^:*//
15710 s/:*$//
15712 s/\(=[ ]*\).*/\1/
15714 s/\n//
15715 s/^[^=]*=[ ]*$//
15719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15720 fi # test -n "$CONFIG_FILES"
15722 # Set up the scripts for CONFIG_HEADERS section.
15723 # No need to generate them if there are no CONFIG_HEADERS.
15724 # This happens for instance with `./config.status Makefile'.
15725 if test -n "$CONFIG_HEADERS"; then
15726 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15727 BEGIN {
15728 _ACEOF
15730 # Transform confdefs.h into an awk script `defines.awk', embedded as
15731 # here-document in config.status, that substitutes the proper values into
15732 # config.h.in to produce config.h.
15734 # Create a delimiter string that does not exist in confdefs.h, to ease
15735 # handling of long lines.
15736 ac_delim='%!_!# '
15737 for ac_last_try in false false :; do
15738 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15739 if test -z "$ac_tt"; then
15740 break
15741 elif $ac_last_try; then
15742 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15743 else
15744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15746 done
15748 # For the awk script, D is an array of macro values keyed by name,
15749 # likewise P contains macro parameters if any. Preserve backslash
15750 # newline sequences.
15752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15753 sed -n '
15754 s/.\{148\}/&'"$ac_delim"'/g
15755 t rset
15756 :rset
15757 s/^[ ]*#[ ]*define[ ][ ]*/ /
15758 t def
15760 :def
15761 s/\\$//
15762 t bsnl
15763 s/["\\]/\\&/g
15764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15765 D["\1"]=" \3"/p
15766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15768 :bsnl
15769 s/["\\]/\\&/g
15770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15771 D["\1"]=" \3\\\\\\n"\\/p
15772 t cont
15773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15774 t cont
15776 :cont
15778 s/.\{148\}/&'"$ac_delim"'/g
15779 t clear
15780 :clear
15781 s/\\$//
15782 t bsnlc
15783 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15785 :bsnlc
15786 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15787 b cont
15788 ' <confdefs.h | sed '
15789 s/'"$ac_delim"'/"\\\
15790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15793 for (key in D) D_is_set[key] = 1
15794 FS = "\a"
15796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15797 line = \$ 0
15798 split(line, arg, " ")
15799 if (arg[1] == "#") {
15800 defundef = arg[2]
15801 mac1 = arg[3]
15802 } else {
15803 defundef = substr(arg[1], 2)
15804 mac1 = arg[2]
15806 split(mac1, mac2, "(") #)
15807 macro = mac2[1]
15808 prefix = substr(line, 1, index(line, defundef) - 1)
15809 if (D_is_set[macro]) {
15810 # Preserve the white space surrounding the "#".
15811 print prefix "define", macro P[macro] D[macro]
15812 next
15813 } else {
15814 # Replace #undef with comments. This is necessary, for example,
15815 # in the case of _POSIX_SOURCE, which is predefined and required
15816 # on some systems where configure will not decide to define it.
15817 if (defundef == "undef") {
15818 print "/*", prefix defundef, macro, "*/"
15819 next
15823 { print }
15824 _ACAWK
15825 _ACEOF
15826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15827 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15828 fi # test -n "$CONFIG_HEADERS"
15831 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15832 shift
15833 for ac_tag
15835 case $ac_tag in
15836 :[FHLC]) ac_mode=$ac_tag; continue;;
15837 esac
15838 case $ac_mode$ac_tag in
15839 :[FHL]*:*);;
15840 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15841 :[FH]-) ac_tag=-:-;;
15842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15843 esac
15844 ac_save_IFS=$IFS
15845 IFS=:
15846 set x $ac_tag
15847 IFS=$ac_save_IFS
15848 shift
15849 ac_file=$1
15850 shift
15852 case $ac_mode in
15853 :L) ac_source=$1;;
15854 :[FH])
15855 ac_file_inputs=
15856 for ac_f
15858 case $ac_f in
15859 -) ac_f="$ac_tmp/stdin";;
15860 *) # Look for the file first in the build tree, then in the source tree
15861 # (if the path is not absolute). The absolute path cannot be DOS-style,
15862 # because $ac_f cannot contain `:'.
15863 test -f "$ac_f" ||
15864 case $ac_f in
15865 [\\/$]*) false;;
15866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15867 esac ||
15868 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15869 esac
15870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15871 as_fn_append ac_file_inputs " '$ac_f'"
15872 done
15874 # Let's still pretend it is `configure' which instantiates (i.e., don't
15875 # use $as_me), people would be surprised to read:
15876 # /* config.h. Generated by config.status. */
15877 configure_input='Generated from '`
15878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15879 `' by configure.'
15880 if test x"$ac_file" != x-; then
15881 configure_input="$ac_file. $configure_input"
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15883 $as_echo "$as_me: creating $ac_file" >&6;}
15885 # Neutralize special characters interpreted by sed in replacement strings.
15886 case $configure_input in #(
15887 *\&* | *\|* | *\\* )
15888 ac_sed_conf_input=`$as_echo "$configure_input" |
15889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15890 *) ac_sed_conf_input=$configure_input;;
15891 esac
15893 case $ac_tag in
15894 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15896 esac
15898 esac
15900 ac_dir=`$as_dirname -- "$ac_file" ||
15901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15902 X"$ac_file" : 'X\(//\)[^/]' \| \
15903 X"$ac_file" : 'X\(//\)$' \| \
15904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15905 $as_echo X"$ac_file" |
15906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15907 s//\1/
15910 /^X\(\/\/\)[^/].*/{
15911 s//\1/
15914 /^X\(\/\/\)$/{
15915 s//\1/
15918 /^X\(\/\).*/{
15919 s//\1/
15922 s/.*/./; q'`
15923 as_dir="$ac_dir"; as_fn_mkdir_p
15924 ac_builddir=.
15926 case "$ac_dir" in
15927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15930 # A ".." for each directory in $ac_dir_suffix.
15931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15932 case $ac_top_builddir_sub in
15933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15935 esac ;;
15936 esac
15937 ac_abs_top_builddir=$ac_pwd
15938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15939 # for backward compatibility:
15940 ac_top_builddir=$ac_top_build_prefix
15942 case $srcdir in
15943 .) # We are building in place.
15944 ac_srcdir=.
15945 ac_top_srcdir=$ac_top_builddir_sub
15946 ac_abs_top_srcdir=$ac_pwd ;;
15947 [\\/]* | ?:[\\/]* ) # Absolute name.
15948 ac_srcdir=$srcdir$ac_dir_suffix;
15949 ac_top_srcdir=$srcdir
15950 ac_abs_top_srcdir=$srcdir ;;
15951 *) # Relative name.
15952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15953 ac_top_srcdir=$ac_top_build_prefix$srcdir
15954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15955 esac
15956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15959 case $ac_mode in
15962 # CONFIG_FILE
15965 _ACEOF
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 # If the template does not know about datarootdir, expand it.
15969 # FIXME: This hack should be removed a few years after 2.60.
15970 ac_datarootdir_hack=; ac_datarootdir_seen=
15971 ac_sed_dataroot='
15972 /datarootdir/ {
15976 /@datadir@/p
15977 /@docdir@/p
15978 /@infodir@/p
15979 /@localedir@/p
15980 /@mandir@/p'
15981 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15982 *datarootdir*) ac_datarootdir_seen=yes;;
15983 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15985 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15986 _ACEOF
15987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15988 ac_datarootdir_hack='
15989 s&@datadir@&$datadir&g
15990 s&@docdir@&$docdir&g
15991 s&@infodir@&$infodir&g
15992 s&@localedir@&$localedir&g
15993 s&@mandir@&$mandir&g
15994 s&\\\${datarootdir}&$datarootdir&g' ;;
15995 esac
15996 _ACEOF
15998 # Neutralize VPATH when `$srcdir' = `.'.
15999 # Shell code in configure.ac might set extrasub.
16000 # FIXME: do we really want to maintain this feature?
16001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16002 ac_sed_extra="$ac_vpsub
16003 $extrasub
16004 _ACEOF
16005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16008 s|@configure_input@|$ac_sed_conf_input|;t t
16009 s&@top_builddir@&$ac_top_builddir_sub&;t t
16010 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16011 s&@srcdir@&$ac_srcdir&;t t
16012 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16013 s&@top_srcdir@&$ac_top_srcdir&;t t
16014 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16015 s&@builddir@&$ac_builddir&;t t
16016 s&@abs_builddir@&$ac_abs_builddir&;t t
16017 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16018 $ac_datarootdir_hack
16020 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16021 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16023 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16024 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16025 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16026 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16028 which seems to be undefined. Please make sure it is defined" >&5
16029 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16030 which seems to be undefined. Please make sure it is defined" >&2;}
16032 rm -f "$ac_tmp/stdin"
16033 case $ac_file in
16034 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16035 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16036 esac \
16037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16041 # CONFIG_HEADER
16043 if test x"$ac_file" != x-; then
16045 $as_echo "/* $configure_input */" \
16046 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16047 } >"$ac_tmp/config.h" \
16048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16049 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16051 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16052 else
16053 rm -f "$ac_file"
16054 mv "$ac_tmp/config.h" "$ac_file" \
16055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16057 else
16058 $as_echo "/* $configure_input */" \
16059 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16060 || as_fn_error $? "could not create -" "$LINENO" 5
16064 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16065 $as_echo "$as_me: executing $ac_file commands" >&6;}
16067 esac
16070 case $ac_file$ac_mode in
16071 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16072 "binutils-support":C)
16073 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16074 mkdir -p $prefix
16075 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16077 chmod a+x ${prefix2}-ld
16079 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16080 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16081 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16082 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16083 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16084 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16085 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16087 "elf-compiler-support":C)
16088 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16089 mkdir -p $prefix
16090 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16092 chmod a+x ${prefix2}-gcc
16094 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16096 "host-compiler-wrapper-support":C)
16097 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16098 mkdir -p $prefix
16099 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16101 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16104 esac
16105 done # for ac_tag
16108 as_fn_exit 0
16109 _ACEOF
16110 ac_clean_files=$ac_clean_files_save
16112 test $ac_write_fail = 0 ||
16113 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16116 # configure is writing to config.log, and then calls config.status.
16117 # config.status does its own redirection, appending to config.log.
16118 # Unfortunately, on DOS this fails, as config.log is still kept open
16119 # by configure, so config.status won't be able to write to it; its
16120 # output is simply discarded. So we exec the FD to /dev/null,
16121 # effectively closing config.log, so it can be properly (re)opened and
16122 # appended to by config.status. When coming back to configure, we
16123 # need to make the FD available again.
16124 if test "$no_create" != yes; then
16125 ac_cs_success=:
16126 ac_config_status_args=
16127 test "$silent" = yes &&
16128 ac_config_status_args="$ac_config_status_args --quiet"
16129 exec 5>/dev/null
16130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16131 exec 5>>config.log
16132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16133 # would make configure fail if this is the last instruction.
16134 $ac_cs_success || as_fn_exit 1
16136 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16138 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16143 #XXX compatability...
16144 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16146 if test -n "$aros_shared_cflags" ; then
16147 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16148 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg