alsa.audio: change include order to fix compilation issue
[AROS.git] / configure
blob97bc8a51e2848b1e4b1e42ae7f8972d91d86ac41
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_nominal_depth
661 aros_nominal_height
662 aros_nominal_width
663 pci_hidd_target
664 sdl_hidd_target
665 unixgfx_hidd_target
666 aros_cflags_format_security
667 aros_cflags_strict_overflow
668 aros_cflags_enum_compare
669 aros_cflags_array_bounds
670 aros_cflags_unused_but_set_variable
671 crosstools_cxx_target
672 crosstools_target
673 aros_isa_flags
674 aros_optimization_cflags
675 aros_target_strip_flags
676 aros_target_genmap
677 aros_debug_ldflags
678 aros_debug_aflags
679 aros_debug_cflags
680 aros_target_cflags
681 aros_kernel_ldflags
682 aros_kernel_objcflags
683 aros_kernel_includes
684 aros_kernel_cflags
685 aros_kernel_sysroot
686 aros_config_ldflags
687 aros_config_aflags
688 aros_config_cflags
689 aros_config_sysroot
690 aros_shared_ldflags
691 aros_shared_aflags
692 aros_shared_cflags
693 aros_arch_libs
694 aros_compiler_libs
695 spec_obj_format
696 aros_object_format
697 aros_shared_ld
698 aros_shared_default
699 aros_target_nm
700 aros_target_strip
701 aros_target_objcopy
702 aros_target_objdump
703 aros_target_cc_path
704 aros_target_cc_includes
705 aros_target_ld
706 aros_target_as
707 aros_target_cpp
708 aros_target_cxx
709 aros_target_cc
710 aros_plain_ar
711 aros_plain_nm
712 aros_target_ranlib
713 aros_target_ar
714 aros_target_suffix
715 aros_target_variant
716 aros_target_cpu
717 aros_target_family
718 aros_target_arch
719 aros_target_bootloader
720 aros_target_iconset
721 aros_target_guitheme
722 aros_tools_dir
723 aros_host_lib_suffix
724 aros_host_exe_suffix
725 aros_host_mkargs
726 aros_host_mkdep
727 aros_host_debug
728 aros_host_ldflags
729 gnu89_inline
730 aros_host_cxxflags
731 aros_host_cflags
732 aros_host_make
733 aros_host_cxx
734 aros_host_cc
735 aros_host_cpp
736 aros_host_cpu
737 aros_host_arch
738 aros_cc_pre
739 aros_amigaos_compliance
740 AROS_PORTSSRCDIR
741 AROS_CROSSTOOLSDIR
742 SRCDIR
743 AROS_BUILDDIR_UNIX
744 AROS_BUILDDIR
745 aros_target_toolchain
746 aros_flavour_uc
747 aros_flavour
748 aros_cpu
749 aros_arch
750 SDL_LIBS
751 SDL_CFLAGS
752 SDL_CONFIG
753 XMKMF
754 aros_cflags_iquote_end
755 aros_cflags_iquote
756 kernel_cflags_iquote_end
757 kernel_cflags_iquote
758 host_cflags_iquote_end
759 host_cflags_iquote
760 aros_target_nostdlib_ldflags
761 aros_target_detach_ldflags
762 aros_target_nix_ldflags
763 aros_target_nostartup_ldflags
764 aros_target_nostdinc_cflags
765 aros_kernel_rescomp
766 orig_target_objdump
767 orig_target_objcopy
768 orig_target_strip
769 orig_target_nm
770 orig_target_ranlib
771 orig_target_ar
772 orig_target_as
773 orig_target_ld
774 orig_target_cxx
775 orig_target_cc
776 orig_target_cpp
777 aros_kernel_objdump
778 aros_kernel_objcopy
779 aros_kernel_strip
780 aros_kernel_nm
781 aros_kernel_ranlib
782 aros_kernel_ar
783 aros_kernel_as
784 aros_kernel_ld
785 aros_kernel_cxx
786 aros_kernel_cc
787 aros_kernel_cpp
788 target_gcc_version
790 android_tool
791 CCACHE
792 DISTCC
793 LIBOBJS
794 EGREP
795 GREP
797 TEST
800 pkgpyexecdir
801 pyexecdir
802 pkgpythondir
803 pythondir
804 PYTHON_PLATFORM
805 PYTHON_EXEC_PREFIX
806 PYTHON_PREFIX
807 PYTHON_VERSION
808 PYTHON
809 PATCH
810 CHMOD
812 PPMTOILBM
813 PNGTOPNM
814 FLEX
815 BISON
818 UNIQ
819 SORT
820 TOUCH
821 MKDIR
822 ECHO
826 aros_host_strip
827 aros_host_ranlib
828 aros_host_ar
829 aros_host_automake
830 aros_host_autoheader
831 aros_host_autoconf
832 aros_host_aclocal
833 aros_host_ld
834 MMAKE
837 ac_ct_CC
838 CFLAGS
840 OBJEXT
841 EXEEXT
842 ac_ct_CXX
843 CPPFLAGS
844 LDFLAGS
845 CXXFLAGS
847 host_os
848 host_vendor
849 host_cpu
850 host
851 build_os
852 build_vendor
853 build_cpu
854 build
855 target_alias
856 host_alias
857 build_alias
858 LIBS
859 ECHO_T
860 ECHO_N
861 ECHO_C
862 DEFS
863 mandir
864 localedir
865 libdir
866 psdir
867 pdfdir
868 dvidir
869 htmldir
870 infodir
871 docdir
872 oldincludedir
873 includedir
874 localstatedir
875 sharedstatedir
876 sysconfdir
877 datadir
878 datarootdir
879 libexecdir
880 sbindir
881 bindir
882 program_transform_name
883 prefix
884 exec_prefix
885 PACKAGE_URL
886 PACKAGE_BUGREPORT
887 PACKAGE_STRING
888 PACKAGE_VERSION
889 PACKAGE_TARNAME
890 PACKAGE_NAME
891 PATH_SEPARATOR
892 SHELL'
893 ac_subst_files=''
894 ac_user_opts='
895 enable_option_checking
896 enable_build_type
897 enable_debug
898 enable_distcc
899 enable_ccache
900 with_kernel_gcc_version
901 with_optimization
902 with_paranoia
903 enable_target_variant
904 with_xcode
905 with_sdk_version
906 with_sdk
907 with_ndk
908 with_ndk_version
909 with_apk_version
910 enable_amigaos_compliance
911 with_kernel_toolchain_prefix
912 with_elf_toolchain_prefix
913 with_aros_toolchain
914 enable_crosstools
915 with_aros_toolchain_install
916 with_binutils_version
917 with_gcc_version
918 enable_objc
919 enable_java
920 with_cpu
921 with_fpu
922 with_float
923 with_portssources
924 with_bootloader
925 with_iconset
926 with_theme
927 enable_includes
928 with_resolution
929 with_serial_debug
930 enable_palm_debug_hack
931 enable_usb30_code
932 enable_nesting_supervisor
933 enable_mmu
934 enable_x11_hidd
935 with_x
936 enable_x11_shm
937 enable_x11_vidmode
938 enable_sdl_hidd
939 with_sdl_prefix
940 with_sdl_exec_prefix
941 enable_sdltest
942 enable_dbus
944 ac_precious_vars='build_alias
945 host_alias
946 target_alias
948 CXXFLAGS
949 LDFLAGS
950 LIBS
951 CPPFLAGS
954 CFLAGS
956 PYTHON
957 XMKMF'
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 ac_unrecognized_opts=
964 ac_unrecognized_sep=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
967 cache_file=/dev/null
968 exec_prefix=NONE
969 no_create=
970 no_recursion=
971 prefix=NONE
972 program_prefix=NONE
973 program_suffix=NONE
974 program_transform_name=s,x,x,
975 silent=
976 site=
977 srcdir=
978 verbose=
979 x_includes=NONE
980 x_libraries=NONE
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE}'
999 infodir='${datarootdir}/info'
1000 htmldir='${docdir}'
1001 dvidir='${docdir}'
1002 pdfdir='${docdir}'
1003 psdir='${docdir}'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1008 ac_prev=
1009 ac_dashdash=
1010 for ac_option
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1015 ac_prev=
1016 continue
1019 case $ac_option in
1020 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 *=) ac_optarg= ;;
1022 *) ac_optarg=yes ;;
1023 esac
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1029 ac_dashdash=yes ;;
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid feature name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=no ;;
1079 -docdir | --docdir | --docdi | --doc | --do)
1080 ac_prev=docdir ;;
1081 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1082 docdir=$ac_optarg ;;
1084 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1085 ac_prev=dvidir ;;
1086 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1087 dvidir=$ac_optarg ;;
1089 -enable-* | --enable-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error $? "invalid feature name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=\$ac_optarg ;;
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1293 -with-* | --with-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error $? "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=\$ac_optarg ;;
1309 -without-* | --without-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error $? "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=no ;;
1325 --x)
1326 # Obsolete; use --with-x.
1327 with_x=yes ;;
1329 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330 | --x-incl | --x-inc | --x-in | --x-i)
1331 ac_prev=x_includes ;;
1332 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334 x_includes=$ac_optarg ;;
1336 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1337 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338 ac_prev=x_libraries ;;
1339 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341 x_libraries=$ac_optarg ;;
1343 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information"
1347 *=*)
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 case $ac_envvar in #(
1351 '' | [0-9]* | *[!_$as_cr_alnum]* )
1352 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1353 esac
1354 eval $ac_envvar=\$ac_optarg
1355 export $ac_envvar ;;
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1365 esac
1366 done
1368 if test -n "$ac_prev"; then
1369 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370 as_fn_error $? "missing argument to $ac_option"
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1375 no) ;;
1376 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 esac
1381 # Check all directory arguments for consistency.
1382 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1387 eval ac_val=\$$ac_var
1388 # Remove trailing slashes.
1389 case $ac_val in
1390 */ )
1391 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\$ac_val;;
1393 esac
1394 # Be sure to have absolute directory names.
1395 case $ac_val in
1396 [\\/$]* | ?:[\\/]* ) continue;;
1397 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398 esac
1399 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1400 done
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1405 build=$build_alias
1406 host=$host_alias
1407 target=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411 if test "x$build_alias" = x; then
1412 cross_compiling=maybe
1413 elif test "x$build_alias" != "x$host_alias"; then
1414 cross_compiling=yes
1418 ac_tool_prefix=
1419 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421 test "$silent" = yes && exec 6>/dev/null
1424 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di=`ls -di .` &&
1426 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427 as_fn_error $? "working directory cannot be determined"
1428 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429 as_fn_error $? "pwd does not report name of working directory"
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 s//\1/
1446 /^X\(\/\/\)[^/].*/{
1447 s//\1/
1450 /^X\(\/\/\)$/{
1451 s//\1/
1454 /^X\(\/\).*/{
1455 s//\1/
1458 s/.*/./; q'`
1459 srcdir=$ac_confdir
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 srcdir=..
1463 else
1464 ac_srcdir_defaulted=no
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1470 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 ac_abs_confdir=`(
1472 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1473 pwd)`
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 srcdir=.
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1481 case $srcdir in
1482 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483 esac
1484 for ac_var in $ac_precious_vars; do
1485 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_${ac_var}_value=\$${ac_var}
1487 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489 done
1492 # Report the --help message.
1494 if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1497 cat <<_ACEOF
1498 \`configure' configures this package to adapt to many kinds of systems.
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE. See below for descriptions of some of the useful variables.
1505 Defaults for the options are specified in brackets.
1507 Configuration:
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking ...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518 Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
1520 [$ac_default_prefix]
1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 [PREFIX]
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1529 For better control, use the options below.
1531 Fine tuning of the installation directories:
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
1551 _ACEOF
1553 cat <<\_ACEOF
1555 X features:
1556 --x-includes=DIR X include files are in DIR
1557 --x-libraries=DIR X library files are in DIR
1559 System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 _ACEOF
1565 if test -n "$ac_init_help"; then
1567 cat <<\_ACEOF
1569 Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-build-type=TYPE
1574 Select the build type. Available types are:
1575 personal, nightly, snapshot, milestone, release. Do
1576 NOT use this option unless you know what you are
1577 doing! (default=personal)
1578 --enable-debug=list Enable different types of debug. Commas or
1579 whitespaces can be used to separate the items in the
1580 list. Available types of debug are: all, none,
1581 messages, stack, mungwall, modules, symbols. If no
1582 list is provided then "all" is assumed.
1583 (default=none)
1584 --enable-distcc Use distcc as a front end to the compiler
1585 (default=no).
1586 --enable-ccache Use ccache as a front end to the compiler
1587 (default=no).
1588 --enable-target-variant=NAME
1589 Enable a specific target variant(default=none)
1590 --enable-amigaos-compliance=VERSION
1591 Enforce userspace AmigaOS compliance to a specific
1592 KickStart version (default=none).
1593 --disable-crosstools Do not build cross-compiler toolchain
1594 --enable-objc Enable Objectve-C support (default=no)
1595 --enable-java Enable Java support (default=no)
1596 --enable-includes=dir Alternative system include directory
1597 --enable-palm-debug-hack
1598 Enable palm debug output hack in palm native
1599 (default=no)
1600 --enable-usb30-code Enable usb3.0 code (default=no)
1601 --enable-nesting-supervisor
1602 Enable nesting supervisor support in unix
1603 (default=no)
1604 --disable-mmu Disable MMU support (default=enabled)
1605 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1606 --enable-x11-shm use X11 shared memory (default=auto)
1607 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1608 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1609 --disable-sdltest Do not try to compile and run a test SDL program
1610 --enable-dbus Enable DBUS support via dbus.library (default=no)
1612 Optional Packages:
1613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1615 --with-kernel-gcc-version=VERSION
1616 Use gcc-VERSION for building bootstrap
1617 --with-optimization=FLAGS
1618 Use optimization flags FLAGS (default=-O2).
1619 --with-paranoia=FLAGS CC flags to enable paranoia
1620 --with-xcode=PATH Specify XCode path for iOS targets
1621 (default=/Developer).
1622 --with-sdk-version=VERSION
1623 Use iOS SDK version VERSION (default=4.1).
1624 --with-sdk=PATH Specify Android SDK path
1625 (default=$default_android_sdk).
1626 --with-ndk=PATH Specify Android NDK path (default=none).
1627 --with-sdk-version=LEVEL
1628 Use Android SDK for API LEVEL (default=12).
1629 --with-ndk-version=LEVEL
1630 Use Android NDK for API LEVEL (default=9).
1631 --with-apk-version=(release|debug)
1632 Which version of AROSBootstrap.apk to compile.
1633 Release version needs key for signing, debug version
1634 will only run in emulator. (default=release)
1635 --with-kernel-toolchain-prefix=...
1636 Specify crosscompile toolchain prefix for kernel
1637 objects
1638 --with-elf-toolchain-prefix=...
1639 Specify crosscompile toolchain prefix to wrap for
1640 AROS objects
1641 --with-aros-toolchain=PREFIX
1642 Specify prebuilt AROS toolchain. Use yes for default
1643 name
1644 --with-aros-toolchain-install=DIR
1645 Where to install or search for cross tools binaries
1646 --with-binutils-version=VERSION
1647 Use binutils-VERSION for building AROS
1648 --with-gcc-version=VERSION
1649 Use gcc-VERSION for building AROS
1650 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1651 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1652 --with-float=<spec> Specify floating point ABI
1653 (default=$gcc_default_float_abi).
1654 --with-portssources=DIR Where to download sourcecode for external ports
1655 --with-bootloader=NAME Use a specific bootloader
1656 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1657 --with-theme=NAME Use a specific GUI Theme
1658 --with-resolution=XRESxYRESxDEPTH
1659 Default resolution of the initial WorkbenchScreen
1660 --with-serial-debug Enable serial debug output in native (default=no)
1661 --with-x use the X Window System
1662 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1663 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1665 Some influential environment variables:
1666 CXX C++ compiler command
1667 CXXFLAGS C++ compiler flags
1668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1669 nonstandard directory <lib dir>
1670 LIBS libraries to pass to the linker, e.g. -l<library>
1671 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1672 you have headers in a nonstandard directory <include dir>
1673 CC C compiler command
1674 CFLAGS C compiler flags
1675 CPP C preprocessor
1676 PYTHON the Python interpreter
1677 XMKMF Path to xmkmf, Makefile generator for X Window System
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1682 Report bugs to the package provider.
1683 _ACEOF
1684 ac_status=$?
1687 if test "$ac_init_help" = "recursive"; then
1688 # If there are subdirs, report their specific --help.
1689 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690 test -d "$ac_dir" ||
1691 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692 continue
1693 ac_builddir=.
1695 case "$ac_dir" in
1696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1699 # A ".." for each directory in $ac_dir_suffix.
1700 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701 case $ac_top_builddir_sub in
1702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704 esac ;;
1705 esac
1706 ac_abs_top_builddir=$ac_pwd
1707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir=$ac_top_build_prefix
1711 case $srcdir in
1712 .) # We are building in place.
1713 ac_srcdir=.
1714 ac_top_srcdir=$ac_top_builddir_sub
1715 ac_abs_top_srcdir=$ac_pwd ;;
1716 [\\/]* | ?:[\\/]* ) # Absolute name.
1717 ac_srcdir=$srcdir$ac_dir_suffix;
1718 ac_top_srcdir=$srcdir
1719 ac_abs_top_srcdir=$srcdir ;;
1720 *) # Relative name.
1721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722 ac_top_srcdir=$ac_top_build_prefix$srcdir
1723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 esac
1725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727 cd "$ac_dir" || { ac_status=$?; continue; }
1728 # Check for guested configure.
1729 if test -f "$ac_srcdir/configure.gnu"; then
1730 echo &&
1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732 elif test -f "$ac_srcdir/configure"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure" --help=recursive
1735 else
1736 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737 fi || ac_status=$?
1738 cd "$ac_pwd" || { ac_status=$?; break; }
1739 done
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1744 cat <<\_ACEOF
1745 configure
1746 generated by GNU Autoconf 2.69
1748 Copyright (C) 2012 Free Software Foundation, Inc.
1749 This configure script is free software; the Free Software Foundation
1750 gives unlimited permission to copy, distribute and modify it.
1751 _ACEOF
1752 exit
1755 ## ------------------------ ##
1756 ## Autoconf initialization. ##
1757 ## ------------------------ ##
1759 # ac_fn_cxx_try_compile LINENO
1760 # ----------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_cxx_try_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext
1766 if { { ac_try="$ac_compile"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_compile") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_cxx_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest.$ac_objext; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=1
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1795 } # ac_fn_cxx_try_compile
1797 # ac_fn_c_try_compile LINENO
1798 # --------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 ac_retval=1
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1833 } # ac_fn_c_try_compile
1835 # ac_fn_c_try_cpp LINENO
1836 # ----------------------
1837 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_cpp ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_cpp conftest.$ac_ext"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } > conftest.i && {
1857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 }; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=1
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_cpp
1872 # ac_fn_c_try_link LINENO
1873 # -----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_link ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext conftest$ac_exeext
1879 if { { ac_try="$ac_link"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest$ac_exeext && {
1898 test "$cross_compiling" = yes ||
1899 test -x conftest$ac_exeext
1900 }; then :
1901 ac_retval=0
1902 else
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1906 ac_retval=1
1908 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910 # interfere with the next link command; also delete a directory that is
1911 # left behind by Apple's compiler. We do this before executing the actions.
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1916 } # ac_fn_c_try_link
1918 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1921 # the include files in INCLUDES and setting the cache variable VAR
1922 # accordingly.
1923 ac_fn_c_check_header_mongrel ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if eval \${$3+:} false; then :
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 else
1936 # Is the header compilable?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1938 $as_echo_n "checking $2 usability... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 ac_header_compiler=yes
1946 else
1947 ac_header_compiler=no
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1951 $as_echo "$ac_header_compiler" >&6; }
1953 # Is the header present?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1955 $as_echo_n "checking $2 presence... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 #include <$2>
1959 _ACEOF
1960 if ac_fn_c_try_cpp "$LINENO"; then :
1961 ac_header_preproc=yes
1962 else
1963 ac_header_preproc=no
1965 rm -f conftest.err conftest.i conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1967 $as_echo "$ac_header_preproc" >&6; }
1969 # So? What about this header?
1970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1971 yes:no: )
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1973 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 no:yes:* )
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1979 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1981 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1983 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1985 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 esac
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1994 else
1995 eval "$3=\$ac_header_compiler"
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_header_mongrel
2005 # ac_fn_c_try_run LINENO
2006 # ----------------------
2007 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2008 # that executables *can* be run.
2009 ac_fn_c_try_run ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if { { ac_try="$ac_link"
2013 case "(($ac_try" in
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2016 esac
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_link") 2>&5
2020 ac_status=$?
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2023 { { case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_try") 2>&5
2030 ac_status=$?
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; }; }; then :
2033 ac_retval=0
2034 else
2035 $as_echo "$as_me: program exited with status $ac_status" >&5
2036 $as_echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2039 ac_retval=$ac_status
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status $ac_retval
2045 } # ac_fn_c_try_run
2047 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2048 # -------------------------------------------------------
2049 # Tests whether HEADER exists and can be compiled using the include files in
2050 # INCLUDES, setting the cache variable VAR accordingly.
2051 ac_fn_c_check_header_compile ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2058 else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2062 #include <$2>
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065 eval "$3=yes"
2066 else
2067 eval "$3=no"
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_header_compile
2078 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2079 # ----------------------------------------------------
2080 # Tries to find if the field MEMBER exists in type AGGR, after including
2081 # INCLUDES, setting cache variable VAR accordingly.
2082 ac_fn_c_check_member ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2086 $as_echo_n "checking for $2.$3... " >&6; }
2087 if eval \${$4+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2094 main ()
2096 static $2 ac_aggr;
2097 if (ac_aggr.$3)
2098 return 0;
2100 return 0;
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 eval "$4=yes"
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 static $2 ac_aggr;
2113 if (sizeof ac_aggr.$3)
2114 return 0;
2116 return 0;
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 eval "$4=yes"
2121 else
2122 eval "$4=no"
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 eval ac_res=\$$4
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_member
2135 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2136 # ---------------------------------------------
2137 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2138 # accordingly.
2139 ac_fn_c_check_decl ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 as_decl_name=`echo $2|sed 's/ *(.*//'`
2143 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2145 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2146 if eval \${$3+:} false; then :
2147 $as_echo_n "(cached) " >&6
2148 else
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 #ifndef $as_decl_name
2156 #ifdef __cplusplus
2157 (void) $as_decl_use;
2158 #else
2159 (void) $as_decl_name;
2160 #endif
2161 #endif
2164 return 0;
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168 eval "$3=yes"
2169 else
2170 eval "$3=no"
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 eval ac_res=\$$3
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 } # ac_fn_c_check_decl
2181 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2182 # -------------------------------------------
2183 # Tests whether TYPE exists after having included INCLUDES, setting cache
2184 # variable VAR accordingly.
2185 ac_fn_c_check_type ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \${$3+:} false; then :
2191 $as_echo_n "(cached) " >&6
2192 else
2193 eval "$3=no"
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2198 main ()
2200 if (sizeof ($2))
2201 return 0;
2203 return 0;
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2211 main ()
2213 if (sizeof (($2)))
2214 return 0;
2216 return 0;
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2221 else
2222 eval "$3=yes"
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 eval ac_res=\$$3
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233 } # ac_fn_c_check_type
2235 # ac_fn_c_check_func LINENO FUNC VAR
2236 # ----------------------------------
2237 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2238 ac_fn_c_check_func ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2250 #define $2 innocuous_$2
2252 /* System header to define __stub macros and hopefully few prototypes,
2253 which can conflict with char $2 (); below.
2254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2255 <limits.h> exists even on freestanding compilers. */
2257 #ifdef __STDC__
2258 # include <limits.h>
2259 #else
2260 # include <assert.h>
2261 #endif
2263 #undef $2
2265 /* Override any GCC internal prototype to avoid an error.
2266 Use char because int might match the return type of a GCC
2267 builtin and then its argument prototype would still apply. */
2268 #ifdef __cplusplus
2269 extern "C"
2270 #endif
2271 char $2 ();
2272 /* The GNU C library defines this for functions which it implements
2273 to always fail with ENOSYS. Some functions are actually named
2274 something starting with __ and the normal name is an alias. */
2275 #if defined __stub_$2 || defined __stub___$2
2276 choke me
2277 #endif
2280 main ()
2282 return $2 ();
2284 return 0;
2286 _ACEOF
2287 if ac_fn_c_try_link "$LINENO"; then :
2288 eval "$3=yes"
2289 else
2290 eval "$3=no"
2292 rm -f core conftest.err conftest.$ac_objext \
2293 conftest$ac_exeext conftest.$ac_ext
2295 eval ac_res=\$$3
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300 } # ac_fn_c_check_func
2301 cat >config.log <<_ACEOF
2302 This file contains any messages produced by compilers while
2303 running configure, to aid debugging if configure makes a mistake.
2305 It was created by $as_me, which was
2306 generated by GNU Autoconf 2.69. Invocation command line was
2308 $ $0 $@
2310 _ACEOF
2311 exec 5>>config.log
2313 cat <<_ASUNAME
2314 ## --------- ##
2315 ## Platform. ##
2316 ## --------- ##
2318 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2319 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2320 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2321 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2322 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2324 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2325 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2327 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2328 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2329 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2330 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2331 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2332 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2333 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2335 _ASUNAME
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 $as_echo "PATH: $as_dir"
2343 done
2344 IFS=$as_save_IFS
2346 } >&5
2348 cat >&5 <<_ACEOF
2351 ## ----------- ##
2352 ## Core tests. ##
2353 ## ----------- ##
2355 _ACEOF
2358 # Keep a trace of the command line.
2359 # Strip out --no-create and --no-recursion so they do not pile up.
2360 # Strip out --silent because we don't want to record it for future runs.
2361 # Also quote any args containing shell meta-characters.
2362 # Make two passes to allow for proper duplicate-argument suppression.
2363 ac_configure_args=
2364 ac_configure_args0=
2365 ac_configure_args1=
2366 ac_must_keep_next=false
2367 for ac_pass in 1 2
2369 for ac_arg
2371 case $ac_arg in
2372 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2374 | -silent | --silent | --silen | --sile | --sil)
2375 continue ;;
2376 *\'*)
2377 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2378 esac
2379 case $ac_pass in
2380 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2382 as_fn_append ac_configure_args1 " '$ac_arg'"
2383 if test $ac_must_keep_next = true; then
2384 ac_must_keep_next=false # Got value, back to normal.
2385 else
2386 case $ac_arg in
2387 *=* | --config-cache | -C | -disable-* | --disable-* \
2388 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2389 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2390 | -with-* | --with-* | -without-* | --without-* | --x)
2391 case "$ac_configure_args0 " in
2392 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2393 esac
2395 -* ) ac_must_keep_next=true ;;
2396 esac
2398 as_fn_append ac_configure_args " '$ac_arg'"
2400 esac
2401 done
2402 done
2403 { ac_configure_args0=; unset ac_configure_args0;}
2404 { ac_configure_args1=; unset ac_configure_args1;}
2406 # When interrupted or exit'd, cleanup temporary files, and complete
2407 # config.log. We remove comments because anyway the quotes in there
2408 # would cause problems or look ugly.
2409 # WARNING: Use '\'' to represent an apostrophe within the trap.
2410 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2411 trap 'exit_status=$?
2412 # Save into config.log some information that might help in debugging.
2414 echo
2416 $as_echo "## ---------------- ##
2417 ## Cache variables. ##
2418 ## ---------------- ##"
2419 echo
2420 # The following way of writing the cache mishandles newlines in values,
2422 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2423 eval ac_val=\$$ac_var
2424 case $ac_val in #(
2425 *${as_nl}*)
2426 case $ac_var in #(
2427 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2428 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2429 esac
2430 case $ac_var in #(
2431 _ | IFS | as_nl) ;; #(
2432 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2433 *) { eval $ac_var=; unset $ac_var;} ;;
2434 esac ;;
2435 esac
2436 done
2437 (set) 2>&1 |
2438 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2439 *${as_nl}ac_space=\ *)
2440 sed -n \
2441 "s/'\''/'\''\\\\'\'''\''/g;
2442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2443 ;; #(
2445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2447 esac |
2448 sort
2450 echo
2452 $as_echo "## ----------------- ##
2453 ## Output variables. ##
2454 ## ----------------- ##"
2455 echo
2456 for ac_var in $ac_subst_vars
2458 eval ac_val=\$$ac_var
2459 case $ac_val in
2460 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2461 esac
2462 $as_echo "$ac_var='\''$ac_val'\''"
2463 done | sort
2464 echo
2466 if test -n "$ac_subst_files"; then
2467 $as_echo "## ------------------- ##
2468 ## File substitutions. ##
2469 ## ------------------- ##"
2470 echo
2471 for ac_var in $ac_subst_files
2473 eval ac_val=\$$ac_var
2474 case $ac_val in
2475 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476 esac
2477 $as_echo "$ac_var='\''$ac_val'\''"
2478 done | sort
2479 echo
2482 if test -s confdefs.h; then
2483 $as_echo "## ----------- ##
2484 ## confdefs.h. ##
2485 ## ----------- ##"
2486 echo
2487 cat confdefs.h
2488 echo
2490 test "$ac_signal" != 0 &&
2491 $as_echo "$as_me: caught signal $ac_signal"
2492 $as_echo "$as_me: exit $exit_status"
2493 } >&5
2494 rm -f core *.core core.conftest.* &&
2495 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2496 exit $exit_status
2498 for ac_signal in 1 2 13 15; do
2499 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2500 done
2501 ac_signal=0
2503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2504 rm -f -r conftest* confdefs.h
2506 $as_echo "/* confdefs.h */" > confdefs.h
2508 # Predefined preprocessor variables.
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_NAME "$PACKAGE_NAME"
2512 _ACEOF
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2516 _ACEOF
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2520 _ACEOF
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_STRING "$PACKAGE_STRING"
2524 _ACEOF
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2528 _ACEOF
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_URL "$PACKAGE_URL"
2532 _ACEOF
2535 # Let the site file select an alternate cache file if it wants to.
2536 # Prefer an explicitly selected file to automatically selected ones.
2537 ac_site_file1=NONE
2538 ac_site_file2=NONE
2539 if test -n "$CONFIG_SITE"; then
2540 # We do not want a PATH search for config.site.
2541 case $CONFIG_SITE in #((
2542 -*) ac_site_file1=./$CONFIG_SITE;;
2543 */*) ac_site_file1=$CONFIG_SITE;;
2544 *) ac_site_file1=./$CONFIG_SITE;;
2545 esac
2546 elif test "x$prefix" != xNONE; then
2547 ac_site_file1=$prefix/share/config.site
2548 ac_site_file2=$prefix/etc/config.site
2549 else
2550 ac_site_file1=$ac_default_prefix/share/config.site
2551 ac_site_file2=$ac_default_prefix/etc/config.site
2553 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2555 test "x$ac_site_file" = xNONE && continue
2556 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2558 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2559 sed 's/^/| /' "$ac_site_file" >&5
2560 . "$ac_site_file" \
2561 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2563 as_fn_error $? "failed to load site script $ac_site_file
2564 See \`config.log' for more details" "$LINENO" 5; }
2566 done
2568 if test -r "$cache_file"; then
2569 # Some versions of bash will fail to source /dev/null (special files
2570 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2571 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2573 $as_echo "$as_me: loading cache $cache_file" >&6;}
2574 case $cache_file in
2575 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2576 *) . "./$cache_file";;
2577 esac
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2581 $as_echo "$as_me: creating cache $cache_file" >&6;}
2582 >$cache_file
2585 as_fn_append ac_header_list " stdlib.h"
2586 as_fn_append ac_header_list " unistd.h"
2587 as_fn_append ac_header_list " sys/param.h"
2588 # Check that the precious variables saved in the cache have kept the same
2589 # value.
2590 ac_cache_corrupted=false
2591 for ac_var in $ac_precious_vars; do
2592 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2593 eval ac_new_set=\$ac_env_${ac_var}_set
2594 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2595 eval ac_new_val=\$ac_env_${ac_var}_value
2596 case $ac_old_set,$ac_new_set in
2597 set,)
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2599 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2600 ac_cache_corrupted=: ;;
2601 ,set)
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2603 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2605 ,);;
2607 if test "x$ac_old_val" != "x$ac_new_val"; then
2608 # differences in whitespace do not lead to failure.
2609 ac_old_val_w=`echo x $ac_old_val`
2610 ac_new_val_w=`echo x $ac_new_val`
2611 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2613 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2614 ac_cache_corrupted=:
2615 else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2617 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2618 eval $ac_var=\$ac_old_val
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2621 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2623 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2624 fi;;
2625 esac
2626 # Pass precious variables to config.status.
2627 if test "$ac_new_set" = set; then
2628 case $ac_new_val in
2629 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2630 *) ac_arg=$ac_var=$ac_new_val ;;
2631 esac
2632 case " $ac_configure_args " in
2633 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2634 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2635 esac
2637 done
2638 if $ac_cache_corrupted; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2642 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2643 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2645 ## -------------------- ##
2646 ## Main body of script. ##
2647 ## -------------------- ##
2649 ac_ext=c
2650 ac_cpp='$CPP $CPPFLAGS'
2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657 ac_aux_dir=
2658 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2659 if test -f "$ac_dir/install-sh"; then
2660 ac_aux_dir=$ac_dir
2661 ac_install_sh="$ac_aux_dir/install-sh -c"
2662 break
2663 elif test -f "$ac_dir/install.sh"; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/install.sh -c"
2666 break
2667 elif test -f "$ac_dir/shtool"; then
2668 ac_aux_dir=$ac_dir
2669 ac_install_sh="$ac_aux_dir/shtool install -c"
2670 break
2672 done
2673 if test -z "$ac_aux_dir"; then
2674 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2677 # These three variables are undocumented and unsupported,
2678 # and are intended to be withdrawn in a future Autoconf release.
2679 # They can cause serious problems if a builder's source tree is in a directory
2680 # whose full name contains unusual characters.
2681 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2682 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2683 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2687 # Check what host we are running on.
2688 # If a target is not suggested, we use this one.
2689 # Note that what we call a target, Autoconf calls a host.
2690 # Make sure we can run config.sub.
2691 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2692 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2695 $as_echo_n "checking build system type... " >&6; }
2696 if ${ac_cv_build+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 ac_build_alias=$build_alias
2700 test "x$ac_build_alias" = x &&
2701 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2702 test "x$ac_build_alias" = x &&
2703 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2704 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2709 $as_echo "$ac_cv_build" >&6; }
2710 case $ac_cv_build in
2711 *-*-*) ;;
2712 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2713 esac
2714 build=$ac_cv_build
2715 ac_save_IFS=$IFS; IFS='-'
2716 set x $ac_cv_build
2717 shift
2718 build_cpu=$1
2719 build_vendor=$2
2720 shift; shift
2721 # Remember, the first character of IFS is used to create $*,
2722 # except with old shells:
2723 build_os=$*
2724 IFS=$ac_save_IFS
2725 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2729 $as_echo_n "checking host system type... " >&6; }
2730 if ${ac_cv_host+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test "x$host_alias" = x; then
2734 ac_cv_host=$ac_cv_build
2735 else
2736 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2737 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2742 $as_echo "$ac_cv_host" >&6; }
2743 case $ac_cv_host in
2744 *-*-*) ;;
2745 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2746 esac
2747 host=$ac_cv_host
2748 ac_save_IFS=$IFS; IFS='-'
2749 set x $ac_cv_host
2750 shift
2751 host_cpu=$1
2752 host_vendor=$2
2753 shift; shift
2754 # Remember, the first character of IFS is used to create $*,
2755 # except with old shells:
2756 host_os=$*
2757 IFS=$ac_save_IFS
2758 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2762 # Default version of gnu tools to use
2763 default_gcc_version="4.6.4"
2764 default_binutils_version="2.23.2"
2766 # The AROS target is slightly different to the normal GNU style
2767 # format. We don't have the middle part, and we reverse the order
2768 # of the $(CPU) and $(OS) bits.
2770 # Don't strip the version of the target yet, it might be
2771 # useful on some systems.
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2774 $as_echo_n "checking for AROS style target... " >&6; }
2776 if test "$target" = "NONE" ; then
2777 target=$host_os-$host_cpu
2778 else
2779 if test "$target" = "" ; then
2780 target=$host_os-$host_cpu
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2784 $as_echo "$target" >&6; }
2786 if test "$host_os" = "mingw32" ; then
2787 PWDCMD="pwd -W"
2790 # Don't know where else to put this...
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2792 $as_echo_n "checking building AROS in... " >&6; }
2793 AROS_BUILDDIR=`${PWDCMD-pwd}`
2794 AROS_BUILDDIR_UNIX=${PWD}
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2796 $as_echo "$AROS_BUILDDIR" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2799 $as_echo_n "checking AROS source in... " >&6; }
2800 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2801 SRCDIR=${srcpwd}
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2803 $as_echo "$SRCDIR" >&6; }
2805 # Parse the target field into something useful.
2807 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2808 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2811 # Some debug output, to be removed again.
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2813 $as_echo_n "checking for target system (debug output)... " >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2815 $as_echo "$target_os" >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2817 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2819 $as_echo "$target_cpu" >&6; }
2821 aros_nominal_width=800
2822 aros_nominal_height=600
2823 aros_nominal_depth=4
2826 # The first step is to find the host binaries.
2827 # Check for a compiler.
2828 # Due to a bug in autoconf check for c++ compiler first.
2829 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2830 ac_ext=cpp
2831 ac_cpp='$CXXCPP $CPPFLAGS'
2832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2835 if test -z "$CXX"; then
2836 if test -n "$CCC"; then
2837 CXX=$CCC
2838 else
2839 if test -n "$ac_tool_prefix"; then
2840 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_CXX+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$CXX"; then
2850 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2863 done
2864 done
2865 IFS=$as_save_IFS
2869 CXX=$ac_cv_prog_CXX
2870 if test -n "$CXX"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2872 $as_echo "$CXX" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2879 test -n "$CXX" && break
2880 done
2882 if test -z "$CXX"; then
2883 ac_ct_CXX=$CXX
2884 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$ac_ct_CXX"; then
2894 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_ac_ct_CXX="$ac_prog"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2907 done
2908 done
2909 IFS=$as_save_IFS
2913 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2914 if test -n "$ac_ct_CXX"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2916 $as_echo "$ac_ct_CXX" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2923 test -n "$ac_ct_CXX" && break
2924 done
2926 if test "x$ac_ct_CXX" = x; then
2927 CXX="g++"
2928 else
2929 case $cross_compiling:$ac_tool_warned in
2930 yes:)
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2934 esac
2935 CXX=$ac_ct_CXX
2941 # Provide some information about the compiler.
2942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2943 set X $ac_compile
2944 ac_compiler=$2
2945 for ac_option in --version -v -V -qversion; do
2946 { { ac_try="$ac_compiler $ac_option >&5"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2954 ac_status=$?
2955 if test -s conftest.err; then
2956 sed '10a\
2957 ... rest of stderr output deleted ...
2958 10q' conftest.err >conftest.er1
2959 cat conftest.er1 >&5
2961 rm -f conftest.er1 conftest.err
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2964 done
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2970 main ()
2974 return 0;
2976 _ACEOF
2977 ac_clean_files_save=$ac_clean_files
2978 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2979 # Try to create an executable without -o first, disregard a.out.
2980 # It will help us diagnose broken compilers, and finding out an intuition
2981 # of exeext.
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2983 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2984 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986 # The possible output files:
2987 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2989 ac_rmfiles=
2990 for ac_file in $ac_files
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2995 esac
2996 done
2997 rm -f $ac_rmfiles
2999 if { { ac_try="$ac_link_default"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_link_default") 2>&5
3007 ac_status=$?
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3011 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3012 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3013 # so that the user can short-circuit this test for compilers unknown to
3014 # Autoconf.
3015 for ac_file in $ac_files ''
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3021 [ab].out )
3022 # We found the default executable, but exeext='' is most
3023 # certainly right.
3024 break;;
3025 *.* )
3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3027 then :; else
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3034 # actually working.
3035 break;;
3037 break;;
3038 esac
3039 done
3040 test "$ac_cv_exeext" = no && ac_cv_exeext=
3042 else
3043 ac_file=''
3045 if test -z "$ac_file"; then :
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 $as_echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error 77 "C++ compiler cannot create executables
3054 See \`config.log' for more details" "$LINENO" 5; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057 $as_echo "yes" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3060 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3062 $as_echo "$ac_file" >&6; }
3063 ac_exeext=$ac_cv_exeext
3065 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3066 ac_clean_files=$ac_clean_files_save
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3068 $as_echo_n "checking for suffix of executables... " >&6; }
3069 if { { ac_try="$ac_link"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3082 # work properly (i.e., refer to `conftest.exe'), while it won't with
3083 # `rm'.
3084 for ac_file in conftest.exe conftest conftest.*; do
3085 test -f "$ac_file" || continue
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3089 break;;
3090 * ) break;;
3091 esac
3092 done
3093 else
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details" "$LINENO" 5; }
3099 rm -f conftest conftest$ac_cv_exeext
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3101 $as_echo "$ac_cv_exeext" >&6; }
3103 rm -f conftest.$ac_ext
3104 EXEEXT=$ac_cv_exeext
3105 ac_exeext=$EXEEXT
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3108 #include <stdio.h>
3110 main ()
3112 FILE *f = fopen ("conftest.out", "w");
3113 return ferror (f) || fclose (f) != 0;
3116 return 0;
3118 _ACEOF
3119 ac_clean_files="$ac_clean_files conftest.out"
3120 # Check that the compiler produces executables we can run. If not, either
3121 # the compiler is broken, or we cross compile.
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3123 $as_echo_n "checking whether we are cross compiling... " >&6; }
3124 if test "$cross_compiling" != yes; then
3125 { { ac_try="$ac_link"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }
3136 if { ac_try='./conftest$ac_cv_exeext'
3137 { { case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; }; then
3147 cross_compiling=no
3148 else
3149 if test "$cross_compiling" = maybe; then
3150 cross_compiling=yes
3151 else
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error $? "cannot run C++ compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details" "$LINENO" 5; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3161 $as_echo "$cross_compiling" >&6; }
3163 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3164 ac_clean_files=$ac_clean_files_save
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3166 $as_echo_n "checking for suffix of object files... " >&6; }
3167 if ${ac_cv_objext+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3174 main ()
3178 return 0;
3180 _ACEOF
3181 rm -f conftest.o conftest.obj
3182 if { { ac_try="$ac_compile"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_compile") 2>&5
3190 ac_status=$?
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; then :
3193 for ac_file in conftest.o conftest.obj conftest.*; do
3194 test -f "$ac_file" || continue;
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3197 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3198 break;;
3199 esac
3200 done
3201 else
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error $? "cannot compute suffix of object files: cannot compile
3208 See \`config.log' for more details" "$LINENO" 5; }
3210 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3213 $as_echo "$ac_cv_objext" >&6; }
3214 OBJEXT=$ac_cv_objext
3215 ac_objext=$OBJEXT
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3217 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3218 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3225 main ()
3227 #ifndef __GNUC__
3228 choke me
3229 #endif
3232 return 0;
3234 _ACEOF
3235 if ac_fn_cxx_try_compile "$LINENO"; then :
3236 ac_compiler_gnu=yes
3237 else
3238 ac_compiler_gnu=no
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3245 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3246 if test $ac_compiler_gnu = yes; then
3247 GXX=yes
3248 else
3249 GXX=
3251 ac_test_CXXFLAGS=${CXXFLAGS+set}
3252 ac_save_CXXFLAGS=$CXXFLAGS
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3254 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3255 if ${ac_cv_prog_cxx_g+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3259 ac_cxx_werror_flag=yes
3260 ac_cv_prog_cxx_g=no
3261 CXXFLAGS="-g"
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3266 main ()
3270 return 0;
3272 _ACEOF
3273 if ac_fn_cxx_try_compile "$LINENO"; then :
3274 ac_cv_prog_cxx_g=yes
3275 else
3276 CXXFLAGS=""
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3281 main ()
3285 return 0;
3287 _ACEOF
3288 if ac_fn_cxx_try_compile "$LINENO"; then :
3290 else
3291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3292 CXXFLAGS="-g"
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3297 main ()
3301 return 0;
3303 _ACEOF
3304 if ac_fn_cxx_try_compile "$LINENO"; then :
3305 ac_cv_prog_cxx_g=yes
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3315 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3316 if test "$ac_test_CXXFLAGS" = set; then
3317 CXXFLAGS=$ac_save_CXXFLAGS
3318 elif test $ac_cv_prog_cxx_g = yes; then
3319 if test "$GXX" = yes; then
3320 CXXFLAGS="-g -O2"
3321 else
3322 CXXFLAGS="-g"
3324 else
3325 if test "$GXX" = yes; then
3326 CXXFLAGS="-O2"
3327 else
3328 CXXFLAGS=
3331 ac_ext=c
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 if test -n "$ac_tool_prefix"; then
3343 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3344 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3364 done
3365 done
3366 IFS=$as_save_IFS
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3381 if test -z "$ac_cv_prog_CC"; then
3382 ac_ct_CC=$CC
3383 # Extract the first word of "gcc", so it can be a program name with args.
3384 set dummy gcc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$ac_ct_CC"; then
3391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_ac_ct_CC="gcc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3404 done
3405 done
3406 IFS=$as_save_IFS
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 $as_echo "$ac_ct_CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3419 if test "x$ac_ct_CC" = x; then
3420 CC=""
3421 else
3422 case $cross_compiling:$ac_tool_warned in
3423 yes:)
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned=yes ;;
3427 esac
3428 CC=$ac_ct_CC
3430 else
3431 CC="$ac_cv_prog_CC"
3434 if test -z "$CC"; then
3435 if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_CC="${ac_tool_prefix}cc"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3457 done
3458 done
3459 IFS=$as_save_IFS
3463 CC=$ac_cv_prog_CC
3464 if test -n "$CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466 $as_echo "$CC" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3475 if test -z "$CC"; then
3476 # Extract the first word of "cc", so it can be a program name with args.
3477 set dummy cc; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if ${ac_cv_prog_CC+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486 ac_prog_rejected=no
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3495 ac_prog_rejected=yes
3496 continue
3498 ac_cv_prog_CC="cc"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3502 done
3503 done
3504 IFS=$as_save_IFS
3506 if test $ac_prog_rejected = yes; then
3507 # We found a bogon in the path, so make sure we never use it.
3508 set dummy $ac_cv_prog_CC
3509 shift
3510 if test $# != 0; then
3511 # We chose a different compiler from the bogus one.
3512 # However, it has the same basename, so the bogon will be chosen
3513 # first if we set CC to just the basename; use the full file name.
3514 shift
3515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 for ac_prog in cl.exe
3535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$CC" && break
3573 done
3575 if test -z "$CC"; then
3576 ac_ct_CC=$CC
3577 for ac_prog in cl.exe
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$ac_ct_CC"; then
3587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_ac_ct_CC="$ac_prog"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3602 IFS=$as_save_IFS
3606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 $as_echo "$ac_ct_CC" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3616 test -n "$ac_ct_CC" && break
3617 done
3619 if test "x$ac_ct_CC" = x; then
3620 CC=""
3621 else
3622 case $cross_compiling:$ac_tool_warned in
3623 yes:)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628 CC=$ac_ct_CC
3635 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "no acceptable C compiler found in \$PATH
3638 See \`config.log' for more details" "$LINENO" 5; }
3640 # Provide some information about the compiler.
3641 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3642 set X $ac_compile
3643 ac_compiler=$2
3644 for ac_option in --version -v -V -qversion; do
3645 { { ac_try="$ac_compiler $ac_option >&5"
3646 case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3653 ac_status=$?
3654 if test -s conftest.err; then
3655 sed '10a\
3656 ... rest of stderr output deleted ...
3657 10q' conftest.err >conftest.er1
3658 cat conftest.er1 >&5
3660 rm -f conftest.er1 conftest.err
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }
3663 done
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3674 main ()
3676 #ifndef __GNUC__
3677 choke me
3678 #endif
3681 return 0;
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"; then :
3685 ac_compiler_gnu=yes
3686 else
3687 ac_compiler_gnu=no
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3696 GCC=yes
3697 else
3698 GCC=
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3709 ac_cv_prog_cc_g=no
3710 CFLAGS="-g"
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3715 main ()
3719 return 0;
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_g=yes
3724 else
3725 CFLAGS=""
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3730 main ()
3734 return 0;
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3739 else
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3741 CFLAGS="-g"
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3746 main ()
3750 return 0;
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_g=yes
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766 CFLAGS=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768 if test "$GCC" = yes; then
3769 CFLAGS="-g -O2"
3770 else
3771 CFLAGS="-g"
3773 else
3774 if test "$GCC" = yes; then
3775 CFLAGS="-O2"
3776 else
3777 CFLAGS=
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 ac_cv_prog_cc_c89=no
3786 ac_save_CC=$CC
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789 #include <stdarg.h>
3790 #include <stdio.h>
3791 struct stat;
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3796 char **p;
3797 int i;
3799 return p[i];
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3803 char *s;
3804 va_list v;
3805 va_start (v,p);
3806 s = g (p, va_arg (v,int));
3807 va_end (v);
3808 return s;
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812 function prototypes and stuff, but not '\xHH' hex character constants.
3813 These don't provoke an error unfortunately, instead are silently treated
3814 as 'x'. The following induces an error, until -std is added to get
3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816 array size at least. It's necessary to write '\x00'==0 to get something
3817 that's true only with -std. */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821 inside strings and character constants. */
3822 #define FOO(x) 'x'
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3829 int argc;
3830 char **argv;
3832 main ()
3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3836 return 0;
3838 _ACEOF
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3842 CC="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_c89=$ac_arg
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c89" in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3858 xno)
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 esac
3866 if test "x$ac_cv_prog_cc_c89" != xno; then :
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876 case $ac_cv_prog_cc_stdc in #(
3877 no) :
3878 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3879 *) :
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3881 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3882 if ${ac_cv_prog_cc_c99+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 ac_cv_prog_cc_c99=no
3886 ac_save_CC=$CC
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889 #include <stdarg.h>
3890 #include <stdbool.h>
3891 #include <stdlib.h>
3892 #include <wchar.h>
3893 #include <stdio.h>
3895 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3896 #define debug(...) fprintf (stderr, __VA_ARGS__)
3897 #define showlist(...) puts (#__VA_ARGS__)
3898 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3899 static void
3900 test_varargs_macros (void)
3902 int x = 1234;
3903 int y = 5678;
3904 debug ("Flag");
3905 debug ("X = %d\n", x);
3906 showlist (The first, second, and third items.);
3907 report (x>y, "x is %d but y is %d", x, y);
3910 // Check long long types.
3911 #define BIG64 18446744073709551615ull
3912 #define BIG32 4294967295ul
3913 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3914 #if !BIG_OK
3915 your preprocessor is broken;
3916 #endif
3917 #if BIG_OK
3918 #else
3919 your preprocessor is broken;
3920 #endif
3921 static long long int bignum = -9223372036854775807LL;
3922 static unsigned long long int ubignum = BIG64;
3924 struct incomplete_array
3926 int datasize;
3927 double data[];
3930 struct named_init {
3931 int number;
3932 const wchar_t *name;
3933 double average;
3936 typedef const char *ccp;
3938 static inline int
3939 test_restrict (ccp restrict text)
3941 // See if C++-style comments work.
3942 // Iterate through items via the restricted pointer.
3943 // Also check for declarations in for loops.
3944 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3945 continue;
3946 return 0;
3949 // Check varargs and va_copy.
3950 static void
3951 test_varargs (const char *format, ...)
3953 va_list args;
3954 va_start (args, format);
3955 va_list args_copy;
3956 va_copy (args_copy, args);
3958 const char *str;
3959 int number;
3960 float fnumber;
3962 while (*format)
3964 switch (*format++)
3966 case 's': // string
3967 str = va_arg (args_copy, const char *);
3968 break;
3969 case 'd': // int
3970 number = va_arg (args_copy, int);
3971 break;
3972 case 'f': // float
3973 fnumber = va_arg (args_copy, double);
3974 break;
3975 default:
3976 break;
3979 va_end (args_copy);
3980 va_end (args);
3984 main ()
3987 // Check bool.
3988 _Bool success = false;
3990 // Check restrict.
3991 if (test_restrict ("String literal") == 0)
3992 success = true;
3993 char *restrict newvar = "Another string";
3995 // Check varargs.
3996 test_varargs ("s, d' f .", "string", 65, 34.234);
3997 test_varargs_macros ();
3999 // Check flexible array members.
4000 struct incomplete_array *ia =
4001 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4002 ia->datasize = 10;
4003 for (int i = 0; i < ia->datasize; ++i)
4004 ia->data[i] = i * 1.234;
4006 // Check named initializers.
4007 struct named_init ni = {
4008 .number = 34,
4009 .name = L"Test wide string",
4010 .average = 543.34343,
4013 ni.number = 58;
4015 int dynamic_array[ni.number];
4016 dynamic_array[ni.number - 1] = 543;
4018 // work around unused variable warnings
4019 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4020 || dynamic_array[ni.number - 1] != 543);
4023 return 0;
4025 _ACEOF
4026 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4028 CC="$ac_save_CC $ac_arg"
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030 ac_cv_prog_cc_c99=$ac_arg
4032 rm -f core conftest.err conftest.$ac_objext
4033 test "x$ac_cv_prog_cc_c99" != "xno" && break
4034 done
4035 rm -f conftest.$ac_ext
4036 CC=$ac_save_CC
4039 # AC_CACHE_VAL
4040 case "x$ac_cv_prog_cc_c99" in
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4043 $as_echo "none needed" >&6; } ;;
4044 xno)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4046 $as_echo "unsupported" >&6; } ;;
4048 CC="$CC $ac_cv_prog_cc_c99"
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4050 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4051 esac
4052 if test "x$ac_cv_prog_cc_c99" != xno; then :
4053 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4056 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4057 if ${ac_cv_prog_cc_c89+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 ac_cv_prog_cc_c89=no
4061 ac_save_CC=$CC
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #include <stdarg.h>
4065 #include <stdio.h>
4066 struct stat;
4067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4068 struct buf { int x; };
4069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4070 static char *e (p, i)
4071 char **p;
4072 int i;
4074 return p[i];
4076 static char *f (char * (*g) (char **, int), char **p, ...)
4078 char *s;
4079 va_list v;
4080 va_start (v,p);
4081 s = g (p, va_arg (v,int));
4082 va_end (v);
4083 return s;
4086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4087 function prototypes and stuff, but not '\xHH' hex character constants.
4088 These don't provoke an error unfortunately, instead are silently treated
4089 as 'x'. The following induces an error, until -std is added to get
4090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4091 array size at least. It's necessary to write '\x00'==0 to get something
4092 that's true only with -std. */
4093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4095 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4096 inside strings and character constants. */
4097 #define FOO(x) 'x'
4098 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4100 int test (int i, double x);
4101 struct s1 {int (*f) (int a);};
4102 struct s2 {int (*f) (double a);};
4103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4104 int argc;
4105 char **argv;
4107 main ()
4109 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4111 return 0;
4113 _ACEOF
4114 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4117 CC="$ac_save_CC $ac_arg"
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_prog_cc_c89=$ac_arg
4121 rm -f core conftest.err conftest.$ac_objext
4122 test "x$ac_cv_prog_cc_c89" != "xno" && break
4123 done
4124 rm -f conftest.$ac_ext
4125 CC=$ac_save_CC
4128 # AC_CACHE_VAL
4129 case "x$ac_cv_prog_cc_c89" in
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4132 $as_echo "none needed" >&6; } ;;
4133 xno)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4135 $as_echo "unsupported" >&6; } ;;
4137 CC="$CC $ac_cv_prog_cc_c89"
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4139 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4140 esac
4141 if test "x$ac_cv_prog_cc_c89" != xno; then :
4142 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4143 else
4144 ac_cv_prog_cc_stdc=no
4149 esac
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4151 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4152 if ${ac_cv_prog_cc_stdc+:} false; then :
4153 $as_echo_n "(cached) " >&6
4156 case $ac_cv_prog_cc_stdc in #(
4157 no) :
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4159 $as_echo "unsupported" >&6; } ;; #(
4160 '') :
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4162 $as_echo "none needed" >&6; } ;; #(
4163 *) :
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4165 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4166 esac
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4174 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4175 # On Suns, sometimes $CPP names a directory.
4176 if test -n "$CPP" && test -d "$CPP"; then
4177 CPP=
4179 if test -z "$CPP"; then
4180 if ${ac_cv_prog_CPP+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 # Double quotes because CPP needs to be expanded
4184 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4186 ac_preproc_ok=false
4187 for ac_c_preproc_warn_flag in '' yes
4189 # Use a header file that comes with gcc, so configuring glibc
4190 # with a fresh cross-compiler works.
4191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4192 # <limits.h> exists even on freestanding compilers.
4193 # On the NeXT, cc -E runs the code through the compiler's parser,
4194 # not just through cpp. "Syntax error" is here to catch this case.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #ifdef __STDC__
4198 # include <limits.h>
4199 #else
4200 # include <assert.h>
4201 #endif
4202 Syntax error
4203 _ACEOF
4204 if ac_fn_c_try_cpp "$LINENO"; then :
4206 else
4207 # Broken: fails on valid input.
4208 continue
4210 rm -f conftest.err conftest.i conftest.$ac_ext
4212 # OK, works on sane cases. Now check whether nonexistent headers
4213 # can be detected and how.
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4217 _ACEOF
4218 if ac_fn_c_try_cpp "$LINENO"; then :
4219 # Broken: success on invalid input.
4220 continue
4221 else
4222 # Passes both tests.
4223 ac_preproc_ok=:
4224 break
4226 rm -f conftest.err conftest.i conftest.$ac_ext
4228 done
4229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4230 rm -f conftest.i conftest.err conftest.$ac_ext
4231 if $ac_preproc_ok; then :
4232 break
4235 done
4236 ac_cv_prog_CPP=$CPP
4239 CPP=$ac_cv_prog_CPP
4240 else
4241 ac_cv_prog_CPP=$CPP
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4244 $as_echo "$CPP" >&6; }
4245 ac_preproc_ok=false
4246 for ac_c_preproc_warn_flag in '' yes
4248 # Use a header file that comes with gcc, so configuring glibc
4249 # with a fresh cross-compiler works.
4250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4251 # <limits.h> exists even on freestanding compilers.
4252 # On the NeXT, cc -E runs the code through the compiler's parser,
4253 # not just through cpp. "Syntax error" is here to catch this case.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #ifdef __STDC__
4257 # include <limits.h>
4258 #else
4259 # include <assert.h>
4260 #endif
4261 Syntax error
4262 _ACEOF
4263 if ac_fn_c_try_cpp "$LINENO"; then :
4265 else
4266 # Broken: fails on valid input.
4267 continue
4269 rm -f conftest.err conftest.i conftest.$ac_ext
4271 # OK, works on sane cases. Now check whether nonexistent headers
4272 # can be detected and how.
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #include <ac_nonexistent.h>
4276 _ACEOF
4277 if ac_fn_c_try_cpp "$LINENO"; then :
4278 # Broken: success on invalid input.
4279 continue
4280 else
4281 # Passes both tests.
4282 ac_preproc_ok=:
4283 break
4285 rm -f conftest.err conftest.i conftest.$ac_ext
4287 done
4288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4289 rm -f conftest.i conftest.err conftest.$ac_ext
4290 if $ac_preproc_ok; then :
4292 else
4293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4295 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4296 See \`config.log' for more details" "$LINENO" 5; }
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 # Check for a compatible awk
4307 for ac_prog in gawk nawk
4309 # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_AWK+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test -n "$AWK"; then
4317 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_AWK="$ac_prog"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4330 done
4331 done
4332 IFS=$as_save_IFS
4336 AWK=$ac_cv_prog_AWK
4337 if test -n "$AWK"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4339 $as_echo "$AWK" >&6; }
4340 else
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4346 test -n "$AWK" && break
4347 done
4349 if test "$AWK" = ""; then
4350 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4352 # Extract the first word of "mmake", so it can be a program name with args.
4353 set dummy mmake; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_prog_MMAKE+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 if test -n "$MMAKE"; then
4360 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_MMAKE="mmake "
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4375 IFS=$as_save_IFS
4379 MMAKE=$ac_cv_prog_MMAKE
4380 if test -n "$MMAKE"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4382 $as_echo "$MMAKE" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4390 # Perform some default variable assignments. Note all of these will be
4391 # Regenerated from the script, so there is no need to cache them.
4393 aros_host_cpp="$CPP"
4394 aros_host_cc="$CC"
4395 aros_host_cxx="$CXX"
4396 if test "$GCC" = "yes"; then
4397 aros_gcc_ld=`$CC -print-prog-name=ld`
4398 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4399 set dummy `basename $aros_gcc_ld`; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_path_aros_host_ld+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 case $aros_host_ld in
4406 [\\/]* | ?:[\\/]*)
4407 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in `dirname $aros_gcc_ld`
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4426 esac
4428 aros_host_ld=$ac_cv_path_aros_host_ld
4429 if test -n "$aros_host_ld"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4431 $as_echo "$aros_host_ld" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4439 if test "$aros_host_ld" = ""; then
4440 # Extract the first word of "ld", so it can be a program name with args.
4441 set dummy ld; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if ${ac_cv_path_aros_host_ld+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 case $aros_host_ld in
4448 [\\/]* | ?:[\\/]*)
4449 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4468 esac
4470 aros_host_ld=$ac_cv_path_aros_host_ld
4471 if test -n "$aros_host_ld"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4473 $as_echo "$aros_host_ld" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4481 if test "$aros_host_ld" = ""; then
4482 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4484 aros_host_make="make"
4485 aros_host_cflags="$CFLAGS"
4486 aros_host_cxxflags="$CXXFLAGS"
4487 aros_host_ldflags="$LDFLAGS"
4488 aros_host_debug="-g -O0"
4489 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4490 aros_host_mkargs="--no-print-directory"
4491 aros_host_exe_suffix="$EXEEXT"
4492 aros_host_lib_suffix=""
4494 # Ignore all compliance, AROS ROMs = 0
4495 # KickStart v1.0 = 30
4496 # KickStart v1.3 = 34
4497 # KickStart v2.0 = 37
4498 # KickStart v3.0 = 39
4499 # KickStart v3.1 = 40
4500 # AmigaOS v3.5 = 44
4501 aros_amigaos_compliance=0
4503 for ac_prog in aclocal aclocal19 aclocal-1.9
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -n "$aros_host_aclocal"; then
4513 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_aros_host_aclocal="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4528 IFS=$as_save_IFS
4532 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4533 if test -n "$aros_host_aclocal"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4535 $as_echo "$aros_host_aclocal" >&6; }
4536 else
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$aros_host_aclocal" && break
4543 done
4545 for ac_prog in autoconf autoconf259 autoconf253
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548 set dummy $ac_prog; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -n "$aros_host_autoconf"; then
4555 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_aros_host_autoconf="$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4568 done
4569 done
4570 IFS=$as_save_IFS
4574 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4575 if test -n "$aros_host_autoconf"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4577 $as_echo "$aros_host_autoconf" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$aros_host_autoconf" && break
4585 done
4587 for ac_prog in autoheader autoheader259 autoheader253
4589 # Extract the first word of "$ac_prog", so it can be a program name with args.
4590 set dummy $ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$aros_host_autoheader"; then
4597 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_aros_host_autoheader="$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4617 if test -n "$aros_host_autoheader"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4619 $as_echo "$aros_host_autoheader" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4626 test -n "$aros_host_autoheader" && break
4627 done
4629 for ac_prog in automake automake19 automake-1.9
4631 # Extract the first word of "$ac_prog", so it can be a program name with args.
4632 set dummy $ac_prog; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_aros_host_automake+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$aros_host_automake"; then
4639 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_aros_host_automake="$ac_prog"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4652 done
4653 done
4654 IFS=$as_save_IFS
4658 aros_host_automake=$ac_cv_prog_aros_host_automake
4659 if test -n "$aros_host_automake"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4661 $as_echo "$aros_host_automake" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4668 test -n "$aros_host_automake" && break
4669 done
4672 if test "$aros_host_aclocal" = ""; then
4673 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4675 if test "$aros_host_automake" = ""; then
4676 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4679 case "$aros_host_cc" in
4680 *clang*)
4681 aros_host_cc_pipe=""
4683 *gcc*)
4684 aros_host_cc_pipe="-pipe"
4686 icc)
4687 aros_host_cc_pipe=""
4690 aros_host_cc_pipe=""
4692 esac
4694 aros_kernel_cc_includes=""
4695 aros_target_cc_includes=""
4696 host_cc_elf=yes
4698 # ----------------------------------------------------------------------------------------
4699 # Host-specific defaults
4701 # This is the main host configuration section. It is where the host
4702 # can change the values of any variables it needs to change. We do
4703 # not look at anything that compiles to the target yet, we'll get
4704 # to that later.
4706 case "$host_os" in
4707 aros*)
4708 aros_host_arch="aros"
4709 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4710 case "$host_cpu" in
4711 *i?86*)
4712 aros_host_cpu="i386"
4714 *x86_64*)
4715 aros_host_cpu="x86_64"
4717 *powerpc*)
4718 aros_host_cpu="ppc"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4722 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4723 aros_host_cpu="$host_cpu"
4725 esac
4728 linux*)
4729 aros_host_arch="linux"
4730 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4731 android_build_os="linux-x86"
4732 android_tool="android"
4733 default_android_sdk="/opt/android-sdk-linux_x86"
4734 case "$host_cpu" in
4735 *i?86*)
4736 aros_host_cpu="i386"
4738 *x86_64*)
4739 aros_host_cpu="x86_64"
4741 *m68k*)
4742 aros_host_cpu="m68k"
4744 *powerpc*)
4745 aros_host_cpu="ppc"
4747 *arm*)
4748 aros_host_cpu="arm"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4752 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4753 aros_host_cpu="$host_cpu"
4755 esac
4758 freebsd*)
4759 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4760 aros_host_make="gmake"
4761 aros_host_arch="freebsd"
4762 aros_host_cpu="i386"
4764 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4766 case $host_os in
4767 freebsd[234]*)
4768 aros_object_format="elf_i386"
4772 aros_object_format="elf_i386_fbsd"
4774 esac
4778 darwin*)
4779 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4780 aros_host_arch="darwin"
4781 host_cc_elf=no
4782 if [ -z ${SED+x} ]; then SED="gsed"; fi
4783 android_build_os="darwin-x86"
4784 android_tool="android"
4785 default_android_sdk="/android-sdk-mac_x86"
4786 case "$host_cpu" in
4787 *i?86*)
4788 aros_host_cpu="i386"
4790 *x86_64*)
4791 aros_host_cpu="x86_64"
4793 *powerpc*)
4794 aros_host_cpu="ppc"
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4798 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4799 aros_host_cpu="$host_cpu"
4801 esac
4803 aros_host_ldflags="$aros_host_ldflags -liconv"
4807 dragonfly*)
4808 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4809 aros_host_make="gmake"
4810 aros_host_arch="dragonfly"
4811 case $host_cpu in
4812 *i?86*)
4813 aros_host_cpu="i386"
4815 *amd64*)
4816 aros_host_cpu="x86_64"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4820 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4821 aros_host_cpu="$host_cpu"
4823 esac
4826 netbsd*)
4827 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4828 aros_host_make="gmake"
4829 aros_host_arch="netbsd"
4830 case "$host_cpu" in
4831 *i?86*)
4832 aros_host_cpu="i386"
4834 *m68k*)
4835 aros_host_cpu="m68k"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4839 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4840 aros_host_cpu="$host_cpu"
4842 esac
4843 aros_host_lib_suffix=".0.0"
4846 openbsd*)
4847 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4848 aros_host_make="gmake"
4849 aros_host_arch="openbsd"
4850 case "$host_cpu" in
4851 *i?86*)
4852 aros_host_cpu="i386"
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4856 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4857 aros_host_cpu="$host_cpu"
4859 esac
4862 solaris*)
4863 aros_host_arch="solaris"
4864 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4865 case "$host_cpu" in
4866 *i?86*)
4867 aros_host_cpu="i386"
4869 *sparc*)
4870 aros_host_cpu="sparc"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4874 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4875 aros_host_cpu="$host_cpu"
4877 esac
4880 morphos*)
4881 aros_host_arch="morphos"
4882 aros_host_cpu="ppc"
4883 host_cc_elf=no
4886 amiga*)
4887 aros_host_arch="amiga"
4888 host_cc_elf=no
4889 SORT="/gg/bin/sort"
4890 TEST="/gg/bin/test"
4891 UNIQ="/gg/bin/uniq"
4892 FOR="for"
4893 TOUCH="/gg/bin/touch"
4894 case "$host_cpu" in
4895 *m68k*)
4896 aros_host_cpu="m68k"
4898 *powerpc*)
4899 aros_host_cpu="ppc"
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4903 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4904 aros_host_cpu="$host_cpu"
4906 esac
4909 cygwin*)
4910 aros_host_arch="cygwin"
4911 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4912 host_cc_elf=no
4913 android_build_os="windows"
4914 android_tool="android.bat"
4915 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4917 case "$host_cpu" in
4918 *i?86*)
4919 aros_host_cpu="i386"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4923 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4924 aros_host_cpu="$host_cpu"
4926 esac
4929 mingw32*)
4930 aros_host_arch="mingw32"
4931 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4932 host_cc_elf=no
4933 android_build_os="windows"
4934 android_tool="android.bat"
4935 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4937 case "$host_cpu" in
4938 *i?86*)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4941 $as_echo_n "checking for Windows native gcc target... " >&6; }
4942 host_cpu=`gcc -dumpmachine`
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4944 $as_echo "$host_cpu" >&6; }
4947 esac
4949 case "$host_cpu" in
4950 *i?86*)
4951 aros_host_cpu="i386"
4954 mingw32*)
4955 aros_host_cpu="i386"
4958 *x86_64*)
4959 aros_host_cpu="x86_64"
4960 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4965 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4966 aros_host_cpu="$host_cpu"
4968 esac
4971 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4973 esac
4975 # Extract the first word of "ar", so it can be a program name with args.
4976 set dummy ar; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_aros_host_ar+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$aros_host_ar"; then
4983 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_aros_host_ar="ar cr"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5002 aros_host_ar=$ac_cv_prog_aros_host_ar
5003 if test -n "$aros_host_ar"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
5005 $as_echo "$aros_host_ar" >&6; }
5006 else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5012 if test "$aros_host_ar" = ""; then
5013 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5015 # Extract the first word of "ranlib", so it can be a program name with args.
5016 set dummy ranlib; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$aros_host_ranlib"; then
5023 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_aros_host_ranlib="ranlib "
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5036 done
5037 done
5038 IFS=$as_save_IFS
5042 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5043 if test -n "$aros_host_ranlib"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5045 $as_echo "$aros_host_ranlib" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 if test "$aros_host_ranlib" = ""; then
5053 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5055 # Extract the first word of "strip", so it can be a program name with args.
5056 set dummy strip; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_aros_host_strip+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$aros_host_strip"; then
5063 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_aros_host_strip="strip "
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5082 aros_host_strip=$ac_cv_prog_aros_host_strip
5083 if test -n "$aros_host_strip"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5085 $as_echo "$aros_host_strip" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 if test "$aros_host_strip" = ""; then
5093 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5096 # Extract the first word of "rm", so it can be a program name with args.
5097 set dummy rm; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_RM+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$RM"; then
5104 ac_cv_prog_RM="$RM" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_RM="rm -rf"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5123 RM=$ac_cv_prog_RM
5124 if test -n "$RM"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5126 $as_echo "$RM" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 if test "$RM" = ""; then
5134 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5136 # Extract the first word of "cp", so it can be a program name with args.
5137 set dummy cp; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_prog_CP+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$CP"; then
5144 ac_cv_prog_CP="$CP" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_CP="cp "
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5157 done
5158 done
5159 IFS=$as_save_IFS
5163 CP=$ac_cv_prog_CP
5164 if test -n "$CP"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5166 $as_echo "$CP" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5173 if test "$CP" = ""; then
5174 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5176 # Extract the first word of "mv", so it can be a program name with args.
5177 set dummy mv; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_MV+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$MV"; then
5184 ac_cv_prog_MV="$MV" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_MV="mv "
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5203 MV=$ac_cv_prog_MV
5204 if test -n "$MV"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5206 $as_echo "$MV" >&6; }
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5213 if test "$MV" = ""; then
5214 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5216 # Extract the first word of "echo", so it can be a program name with args.
5217 set dummy echo; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_ECHO+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -n "$ECHO"; then
5224 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_ECHO="echo "
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5237 done
5238 done
5239 IFS=$as_save_IFS
5243 ECHO=$ac_cv_prog_ECHO
5244 if test -n "$ECHO"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5246 $as_echo "$ECHO" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5253 if test "$ECHO" = ""; then
5254 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5256 # Extract the first word of "mkdir", so it can be a program name with args.
5257 set dummy mkdir; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_MKDIR+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$MKDIR"; then
5264 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_MKDIR="mkdir -p"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 MKDIR=$ac_cv_prog_MKDIR
5284 if test -n "$MKDIR"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5286 $as_echo "$MKDIR" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5293 if test "$MKDIR" = ""; then
5294 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5296 # Extract the first word of "touch", so it can be a program name with args.
5297 set dummy touch; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_TOUCH+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$TOUCH"; then
5304 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_TOUCH="touch "
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5317 done
5318 done
5319 IFS=$as_save_IFS
5323 TOUCH=$ac_cv_prog_TOUCH
5324 if test -n "$TOUCH"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5326 $as_echo "$TOUCH" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5333 if test "$TOUCH" = ""; then
5334 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5336 # Extract the first word of "sort", so it can be a program name with args.
5337 set dummy sort; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_prog_SORT+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 if test -n "$SORT"; then
5344 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_SORT="sort "
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5357 done
5358 done
5359 IFS=$as_save_IFS
5363 SORT=$ac_cv_prog_SORT
5364 if test -n "$SORT"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5366 $as_echo "$SORT" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5373 if test "$SORT" = ""; then
5374 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5376 # Extract the first word of "uniq", so it can be a program name with args.
5377 set dummy uniq; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_UNIQ+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -n "$UNIQ"; then
5384 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_UNIQ="uniq "
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5397 done
5398 done
5399 IFS=$as_save_IFS
5403 UNIQ=$ac_cv_prog_UNIQ
5404 if test -n "$UNIQ"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5406 $as_echo "$UNIQ" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5413 if test "$UNIQ" = ""; then
5414 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5416 # Extract the first word of "true", so it can be a program name with args.
5417 set dummy true; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_NOP+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$NOP"; then
5424 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_NOP="true "
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5437 done
5438 done
5439 IFS=$as_save_IFS
5443 NOP=$ac_cv_prog_NOP
5444 if test -n "$NOP"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5446 $as_echo "$NOP" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5453 if test "$NOP" = ""; then
5454 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5456 # Extract the first word of "cat", so it can be a program name with args.
5457 set dummy cat; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_CAT+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$CAT"; then
5464 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_CAT="cat "
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5477 done
5478 done
5479 IFS=$as_save_IFS
5483 CAT=$ac_cv_prog_CAT
5484 if test -n "$CAT"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5486 $as_echo "$CAT" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5493 if test "$CAT" = ""; then
5494 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5496 # Extract the first word of "bison", so it can be a program name with args.
5497 set dummy bison; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_prog_BISON+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$BISON"; then
5504 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_BISON="bison "
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5517 done
5518 done
5519 IFS=$as_save_IFS
5523 BISON=$ac_cv_prog_BISON
5524 if test -n "$BISON"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5526 $as_echo "$BISON" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5533 if test "$BISON" = ""; then
5534 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5536 # Extract the first word of "flex", so it can be a program name with args.
5537 set dummy flex; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_prog_FLEX+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -n "$FLEX"; then
5544 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_FLEX="flex "
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5557 done
5558 done
5559 IFS=$as_save_IFS
5563 FLEX=$ac_cv_prog_FLEX
5564 if test -n "$FLEX"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5566 $as_echo "$FLEX" >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 if test "$FLEX" = ""; then
5574 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5576 # Extract the first word of "pngtopnm", so it can be a program name with args.
5577 set dummy pngtopnm; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 if test -n "$PNGTOPNM"; then
5584 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_PNGTOPNM="pngtopnm "
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5597 done
5598 done
5599 IFS=$as_save_IFS
5603 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5604 if test -n "$PNGTOPNM"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5606 $as_echo "$PNGTOPNM" >&6; }
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5613 if test "$PNGTOPNM" = ""; then
5614 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5616 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5617 set dummy ppmtoilbm; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$PPMTOILBM"; then
5624 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5637 done
5638 done
5639 IFS=$as_save_IFS
5643 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5644 if test -n "$PPMTOILBM"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5646 $as_echo "$PPMTOILBM" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5653 if test "$PPMTOILBM" = ""; then
5654 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5656 # Extract the first word of "sed", so it can be a program name with args.
5657 set dummy sed; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_SED+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$SED"; then
5664 ac_cv_prog_SED="$SED" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_SED="sed "
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5677 done
5678 done
5679 IFS=$as_save_IFS
5683 SED=$ac_cv_prog_SED
5684 if test -n "$SED"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5686 $as_echo "$SED" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5693 if test "$SED" = ""; then
5694 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5696 # Extract the first word of "chmod", so it can be a program name with args.
5697 set dummy chmod; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_CHMOD+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$CHMOD"; then
5704 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_CHMOD="chmod "
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5717 done
5718 done
5719 IFS=$as_save_IFS
5723 CHMOD=$ac_cv_prog_CHMOD
5724 if test -n "$CHMOD"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5726 $as_echo "$CHMOD" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5733 if test "$CHMOD" = ""; then
5734 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5736 # Extract the first word of "patch", so it can be a program name with args.
5737 set dummy patch; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_PATCH+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if test -n "$PATCH"; then
5744 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_PATCH="patch "
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5757 done
5758 done
5759 IFS=$as_save_IFS
5763 PATCH=$ac_cv_prog_PATCH
5764 if test -n "$PATCH"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5766 $as_echo "$PATCH" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5773 if test "$PATCH" = ""; then
5774 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5783 if test -n "$PYTHON"; then
5784 # If the user set $PYTHON, use it and don't search something else.
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5786 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5787 prog="import sys
5788 # split strings by '.' and convert to numeric. Append some zeros
5789 # because we need at least 4 digits for the hex conversion.
5790 # map returns an iterator in Python 3.0 and a list in 2.x
5791 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5792 minverhex = 0
5793 # xrange is not present in Python 3.0 and range returns an iterator
5794 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5795 sys.exit(sys.hexversion < minverhex)"
5796 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5797 ($PYTHON -c "$prog") >&5 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; then :
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802 $as_echo "yes" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5806 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5808 am_display_PYTHON=$PYTHON
5809 else
5810 # Otherwise, try each interpreter until we find one that satisfies
5811 # VERSION.
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5813 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5814 if ${am_cv_pathless_PYTHON+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5818 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
5819 test "$am_cv_pathless_PYTHON" = none && break
5820 prog="import sys
5821 # split strings by '.' and convert to numeric. Append some zeros
5822 # because we need at least 4 digits for the hex conversion.
5823 # map returns an iterator in Python 3.0 and a list in 2.x
5824 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5825 minverhex = 0
5826 # xrange is not present in Python 3.0 and range returns an iterator
5827 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5828 sys.exit(sys.hexversion < minverhex)"
5829 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5830 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; then :
5834 break
5836 done
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5839 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5840 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5841 if test "$am_cv_pathless_PYTHON" = none; then
5842 PYTHON=:
5843 else
5844 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5845 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_path_PYTHON+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 case $PYTHON in
5852 [\\/]* | ?:[\\/]*)
5853 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5867 done
5868 done
5869 IFS=$as_save_IFS
5872 esac
5874 PYTHON=$ac_cv_path_PYTHON
5875 if test -n "$PYTHON"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5877 $as_echo "$PYTHON" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5885 am_display_PYTHON=$am_cv_pathless_PYTHON
5889 if test "$PYTHON" = :; then
5890 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5891 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5895 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5896 if ${am_cv_python_version+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5902 $as_echo "$am_cv_python_version" >&6; }
5903 PYTHON_VERSION=$am_cv_python_version
5907 PYTHON_PREFIX='${prefix}'
5909 PYTHON_EXEC_PREFIX='${exec_prefix}'
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5914 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5915 if ${am_cv_python_platform+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5921 $as_echo "$am_cv_python_platform" >&6; }
5922 PYTHON_PLATFORM=$am_cv_python_platform
5925 # Just factor out some code duplication.
5926 am_python_setup_sysconfig="\
5927 import sys
5928 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5929 # with python 3.x. See automake bug#10227.
5930 try:
5931 import sysconfig
5932 except ImportError:
5933 can_use_sysconfig = 0
5934 else:
5935 can_use_sysconfig = 1
5936 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5937 # <https://github.com/pypa/virtualenv/issues/118>
5938 try:
5939 from platform import python_implementation
5940 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5941 can_use_sysconfig = 0
5942 except ImportError:
5943 pass"
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5947 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5948 if ${am_cv_python_pythondir+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test "x$prefix" = xNONE
5952 then
5953 am_py_prefix=$ac_default_prefix
5954 else
5955 am_py_prefix=$prefix
5957 am_cv_python_pythondir=`$PYTHON -c "
5958 $am_python_setup_sysconfig
5959 if can_use_sysconfig:
5960 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5961 else:
5962 from distutils import sysconfig
5963 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5964 sys.stdout.write(sitedir)"`
5965 case $am_cv_python_pythondir in
5966 $am_py_prefix*)
5967 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5968 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5971 case $am_py_prefix in
5972 /usr|/System*) ;;
5974 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5976 esac
5978 esac
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5982 $as_echo "$am_cv_python_pythondir" >&6; }
5983 pythondir=$am_cv_python_pythondir
5987 pkgpythondir=\${pythondir}/$PACKAGE
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5991 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5992 if ${am_cv_python_pyexecdir+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 if test "x$exec_prefix" = xNONE
5996 then
5997 am_py_exec_prefix=$am_py_prefix
5998 else
5999 am_py_exec_prefix=$exec_prefix
6001 am_cv_python_pyexecdir=`$PYTHON -c "
6002 $am_python_setup_sysconfig
6003 if can_use_sysconfig:
6004 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6005 else:
6006 from distutils import sysconfig
6007 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6008 sys.stdout.write(sitedir)"`
6009 case $am_cv_python_pyexecdir in
6010 $am_py_exec_prefix*)
6011 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6012 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6015 case $am_py_exec_prefix in
6016 /usr|/System*) ;;
6018 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6020 esac
6022 esac
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6026 $as_echo "$am_cv_python_pyexecdir" >&6; }
6027 pyexecdir=$am_cv_python_pyexecdir
6031 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6041 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6042 if ${ac_cv_lib_png_png_read_png+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 ac_check_lib_save_LIBS=$LIBS
6046 LIBS="-lpng $LIBS"
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6050 /* Override any GCC internal prototype to avoid an error.
6051 Use char because int might match the return type of a GCC
6052 builtin and then its argument prototype would still apply. */
6053 #ifdef __cplusplus
6054 extern "C"
6055 #endif
6056 char png_read_png ();
6058 main ()
6060 return png_read_png ();
6062 return 0;
6064 _ACEOF
6065 if ac_fn_c_try_link "$LINENO"; then :
6066 ac_cv_lib_png_png_read_png=yes
6067 else
6068 ac_cv_lib_png_png_read_png=no
6070 rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072 LIBS=$ac_check_lib_save_LIBS
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6075 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6076 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6077 cat >>confdefs.h <<_ACEOF
6078 #define HAVE_LIBPNG 1
6079 _ACEOF
6081 LIBS="-lpng $LIBS"
6085 if test "$ac_cv_lib_png_png_read_png" = ""; then
6086 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6089 FOR=for
6091 IF=if
6093 TEST=test
6095 CMP=cmp
6099 # Check for some includes for the X11 HIDD and the kernel
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6103 if ${ac_cv_path_GREP+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -z "$GREP"; then
6107 ac_path_GREP_found=false
6108 # Loop through the user's path and test for each of PROGNAME-LIST
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_prog in grep ggrep; do
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6117 as_fn_executable_p "$ac_path_GREP" || continue
6118 # Check for GNU ac_path_GREP and select it if it is found.
6119 # Check for GNU $ac_path_GREP
6120 case `"$ac_path_GREP" --version 2>&1` in
6121 *GNU*)
6122 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6124 ac_count=0
6125 $as_echo_n 0123456789 >"conftest.in"
6126 while :
6128 cat "conftest.in" "conftest.in" >"conftest.tmp"
6129 mv "conftest.tmp" "conftest.in"
6130 cp "conftest.in" "conftest.nl"
6131 $as_echo 'GREP' >> "conftest.nl"
6132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6134 as_fn_arith $ac_count + 1 && ac_count=$as_val
6135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6136 # Best one so far, save it but keep looking for a better one
6137 ac_cv_path_GREP="$ac_path_GREP"
6138 ac_path_GREP_max=$ac_count
6140 # 10*(2^10) chars as input seems more than enough
6141 test $ac_count -gt 10 && break
6142 done
6143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6144 esac
6146 $ac_path_GREP_found && break 3
6147 done
6148 done
6149 done
6150 IFS=$as_save_IFS
6151 if test -z "$ac_cv_path_GREP"; then
6152 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6154 else
6155 ac_cv_path_GREP=$GREP
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6160 $as_echo "$ac_cv_path_GREP" >&6; }
6161 GREP="$ac_cv_path_GREP"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6165 $as_echo_n "checking for egrep... " >&6; }
6166 if ${ac_cv_path_EGREP+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6170 then ac_cv_path_EGREP="$GREP -E"
6171 else
6172 if test -z "$EGREP"; then
6173 ac_path_EGREP_found=false
6174 # Loop through the user's path and test for each of PROGNAME-LIST
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_prog in egrep; do
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6183 as_fn_executable_p "$ac_path_EGREP" || continue
6184 # Check for GNU ac_path_EGREP and select it if it is found.
6185 # Check for GNU $ac_path_EGREP
6186 case `"$ac_path_EGREP" --version 2>&1` in
6187 *GNU*)
6188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6190 ac_count=0
6191 $as_echo_n 0123456789 >"conftest.in"
6192 while :
6194 cat "conftest.in" "conftest.in" >"conftest.tmp"
6195 mv "conftest.tmp" "conftest.in"
6196 cp "conftest.in" "conftest.nl"
6197 $as_echo 'EGREP' >> "conftest.nl"
6198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6200 as_fn_arith $ac_count + 1 && ac_count=$as_val
6201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6202 # Best one so far, save it but keep looking for a better one
6203 ac_cv_path_EGREP="$ac_path_EGREP"
6204 ac_path_EGREP_max=$ac_count
6206 # 10*(2^10) chars as input seems more than enough
6207 test $ac_count -gt 10 && break
6208 done
6209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6210 esac
6212 $ac_path_EGREP_found && break 3
6213 done
6214 done
6215 done
6216 IFS=$as_save_IFS
6217 if test -z "$ac_cv_path_EGREP"; then
6218 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6220 else
6221 ac_cv_path_EGREP=$EGREP
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6227 $as_echo "$ac_cv_path_EGREP" >&6; }
6228 EGREP="$ac_cv_path_EGREP"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6232 $as_echo_n "checking for ANSI C header files... " >&6; }
6233 if ${ac_cv_header_stdc+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 #include <stdlib.h>
6239 #include <stdarg.h>
6240 #include <string.h>
6241 #include <float.h>
6244 main ()
6248 return 0;
6250 _ACEOF
6251 if ac_fn_c_try_compile "$LINENO"; then :
6252 ac_cv_header_stdc=yes
6253 else
6254 ac_cv_header_stdc=no
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 if test $ac_cv_header_stdc = yes; then
6259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <string.h>
6264 _ACEOF
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "memchr" >/dev/null 2>&1; then :
6268 else
6269 ac_cv_header_stdc=no
6271 rm -f conftest*
6275 if test $ac_cv_header_stdc = yes; then
6276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 #include <stdlib.h>
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then :
6285 else
6286 ac_cv_header_stdc=no
6288 rm -f conftest*
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then :
6296 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 #include <ctype.h>
6300 #include <stdlib.h>
6301 #if ((' ' & 0x0FF) == 0x020)
6302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6304 #else
6305 # define ISLOWER(c) \
6306 (('a' <= (c) && (c) <= 'i') \
6307 || ('j' <= (c) && (c) <= 'r') \
6308 || ('s' <= (c) && (c) <= 'z'))
6309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6310 #endif
6312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6314 main ()
6316 int i;
6317 for (i = 0; i < 256; i++)
6318 if (XOR (islower (i), ISLOWER (i))
6319 || toupper (i) != TOUPPER (i))
6320 return 2;
6321 return 0;
6323 _ACEOF
6324 if ac_fn_c_try_run "$LINENO"; then :
6326 else
6327 ac_cv_header_stdc=no
6329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6330 conftest.$ac_objext conftest.beam conftest.$ac_ext
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6336 $as_echo "$ac_cv_header_stdc" >&6; }
6337 if test $ac_cv_header_stdc = yes; then
6339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6345 inttypes.h stdint.h unistd.h
6346 do :
6347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6351 cat >>confdefs.h <<_ACEOF
6352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6353 _ACEOF
6357 done
6360 for ac_header in sys/ipc.h sys/shm.h \
6361 sys/mmap.h sys/mman.h sysexits.h \
6362 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6364 do :
6365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6368 cat >>confdefs.h <<_ACEOF
6369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6370 _ACEOF
6374 done
6377 for ac_header in sys/mount.h
6378 do :
6379 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6381 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6382 cat >>confdefs.h <<_ACEOF
6383 #define HAVE_SYS_MOUNT_H 1
6384 _ACEOF
6388 done
6391 ac_header_dirent=no
6392 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6393 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6395 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6396 if eval \${$as_ac_Header+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 #include <sys/types.h>
6402 #include <$ac_hdr>
6405 main ()
6407 if ((DIR *) 0)
6408 return 0;
6410 return 0;
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 eval "$as_ac_Header=yes"
6415 else
6416 eval "$as_ac_Header=no"
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 eval ac_res=\$$as_ac_Header
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6422 $as_echo "$ac_res" >&6; }
6423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6424 cat >>confdefs.h <<_ACEOF
6425 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6426 _ACEOF
6428 ac_header_dirent=$ac_hdr; break
6431 done
6432 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6433 if test $ac_header_dirent = dirent.h; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6435 $as_echo_n "checking for library containing opendir... " >&6; }
6436 if ${ac_cv_search_opendir+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 ac_func_search_save_LIBS=$LIBS
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6443 /* Override any GCC internal prototype to avoid an error.
6444 Use char because int might match the return type of a GCC
6445 builtin and then its argument prototype would still apply. */
6446 #ifdef __cplusplus
6447 extern "C"
6448 #endif
6449 char opendir ();
6451 main ()
6453 return opendir ();
6455 return 0;
6457 _ACEOF
6458 for ac_lib in '' dir; do
6459 if test -z "$ac_lib"; then
6460 ac_res="none required"
6461 else
6462 ac_res=-l$ac_lib
6463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6465 if ac_fn_c_try_link "$LINENO"; then :
6466 ac_cv_search_opendir=$ac_res
6468 rm -f core conftest.err conftest.$ac_objext \
6469 conftest$ac_exeext
6470 if ${ac_cv_search_opendir+:} false; then :
6471 break
6473 done
6474 if ${ac_cv_search_opendir+:} false; then :
6476 else
6477 ac_cv_search_opendir=no
6479 rm conftest.$ac_ext
6480 LIBS=$ac_func_search_save_LIBS
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6483 $as_echo "$ac_cv_search_opendir" >&6; }
6484 ac_res=$ac_cv_search_opendir
6485 if test "$ac_res" != no; then :
6486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6492 $as_echo_n "checking for library containing opendir... " >&6; }
6493 if ${ac_cv_search_opendir+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 ac_func_search_save_LIBS=$LIBS
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6500 /* Override any GCC internal prototype to avoid an error.
6501 Use char because int might match the return type of a GCC
6502 builtin and then its argument prototype would still apply. */
6503 #ifdef __cplusplus
6504 extern "C"
6505 #endif
6506 char opendir ();
6508 main ()
6510 return opendir ();
6512 return 0;
6514 _ACEOF
6515 for ac_lib in '' x; do
6516 if test -z "$ac_lib"; then
6517 ac_res="none required"
6518 else
6519 ac_res=-l$ac_lib
6520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6522 if ac_fn_c_try_link "$LINENO"; then :
6523 ac_cv_search_opendir=$ac_res
6525 rm -f core conftest.err conftest.$ac_objext \
6526 conftest$ac_exeext
6527 if ${ac_cv_search_opendir+:} false; then :
6528 break
6530 done
6531 if ${ac_cv_search_opendir+:} false; then :
6533 else
6534 ac_cv_search_opendir=no
6536 rm conftest.$ac_ext
6537 LIBS=$ac_func_search_save_LIBS
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6540 $as_echo "$ac_cv_search_opendir" >&6; }
6541 ac_res=$ac_cv_search_opendir
6542 if test "$ac_res" != no; then :
6543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6550 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6551 if ${ac_cv_header_stat_broken+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 #include <sys/types.h>
6557 #include <sys/stat.h>
6559 #if defined S_ISBLK && defined S_IFDIR
6560 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6561 #endif
6563 #if defined S_ISBLK && defined S_IFCHR
6564 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6565 #endif
6567 #if defined S_ISLNK && defined S_IFREG
6568 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6569 #endif
6571 #if defined S_ISSOCK && defined S_IFREG
6572 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6573 #endif
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 ac_cv_header_stat_broken=no
6578 else
6579 ac_cv_header_stat_broken=yes
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6584 $as_echo "$ac_cv_header_stat_broken" >&6; }
6585 if test $ac_cv_header_stat_broken = yes; then
6587 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6592 $as_echo_n "checking for ANSI C header files... " >&6; }
6593 if ${ac_cv_header_stdc+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #include <stdlib.h>
6599 #include <stdarg.h>
6600 #include <string.h>
6601 #include <float.h>
6604 main ()
6608 return 0;
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"; then :
6612 ac_cv_header_stdc=yes
6613 else
6614 ac_cv_header_stdc=no
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 if test $ac_cv_header_stdc = yes; then
6619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 #include <string.h>
6624 _ACEOF
6625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6626 $EGREP "memchr" >/dev/null 2>&1; then :
6628 else
6629 ac_cv_header_stdc=no
6631 rm -f conftest*
6635 if test $ac_cv_header_stdc = yes; then
6636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 #include <stdlib.h>
6641 _ACEOF
6642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6643 $EGREP "free" >/dev/null 2>&1; then :
6645 else
6646 ac_cv_header_stdc=no
6648 rm -f conftest*
6652 if test $ac_cv_header_stdc = yes; then
6653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6654 if test "$cross_compiling" = yes; then :
6656 else
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 #include <ctype.h>
6660 #include <stdlib.h>
6661 #if ((' ' & 0x0FF) == 0x020)
6662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6664 #else
6665 # define ISLOWER(c) \
6666 (('a' <= (c) && (c) <= 'i') \
6667 || ('j' <= (c) && (c) <= 'r') \
6668 || ('s' <= (c) && (c) <= 'z'))
6669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6670 #endif
6672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6674 main ()
6676 int i;
6677 for (i = 0; i < 256; i++)
6678 if (XOR (islower (i), ISLOWER (i))
6679 || toupper (i) != TOUPPER (i))
6680 return 2;
6681 return 0;
6683 _ACEOF
6684 if ac_fn_c_try_run "$LINENO"; then :
6686 else
6687 ac_cv_header_stdc=no
6689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6690 conftest.$ac_objext conftest.beam conftest.$ac_ext
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6696 $as_echo "$ac_cv_header_stdc" >&6; }
6697 if test $ac_cv_header_stdc = yes; then
6699 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6704 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6705 if ${ac_cv_header_sys_wait_h+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 #include <sys/types.h>
6711 #include <sys/wait.h>
6712 #ifndef WEXITSTATUS
6713 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6714 #endif
6715 #ifndef WIFEXITED
6716 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6717 #endif
6720 main ()
6722 int s;
6723 wait (&s);
6724 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6726 return 0;
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"; then :
6730 ac_cv_header_sys_wait_h=yes
6731 else
6732 ac_cv_header_sys_wait_h=no
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6737 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6738 if test $ac_cv_header_sys_wait_h = yes; then
6740 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6745 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6746 if ${ac_cv_header_time+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <sys/types.h>
6752 #include <sys/time.h>
6753 #include <time.h>
6756 main ()
6758 if ((struct tm *) 0)
6759 return 0;
6761 return 0;
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 ac_cv_header_time=yes
6766 else
6767 ac_cv_header_time=no
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6772 $as_echo "$ac_cv_header_time" >&6; }
6773 if test $ac_cv_header_time = yes; then
6775 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6779 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6780 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6784 _ACEOF
6787 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6792 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6793 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6797 _ACEOF
6800 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6802 else
6803 case " $LIBOBJS " in
6804 *" fileblocks.$ac_objext "* ) ;;
6805 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6807 esac
6812 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6813 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6815 cat >>confdefs.h <<_ACEOF
6816 #define HAVE_STRUCT_STAT_ST_RDEV 1
6817 _ACEOF
6820 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6826 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6827 if ${ac_cv_struct_tm+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 #include <sys/types.h>
6833 #include <time.h>
6836 main ()
6838 struct tm tm;
6839 int *p = &tm.tm_sec;
6840 return !p;
6842 return 0;
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846 ac_cv_struct_tm=time.h
6847 else
6848 ac_cv_struct_tm=sys/time.h
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6853 $as_echo "$ac_cv_struct_tm" >&6; }
6854 if test $ac_cv_struct_tm = sys/time.h; then
6856 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6860 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6861 #include <$ac_cv_struct_tm>
6864 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6866 cat >>confdefs.h <<_ACEOF
6867 #define HAVE_STRUCT_TM_TM_ZONE 1
6868 _ACEOF
6873 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6875 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6877 else
6878 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6880 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6881 ac_have_decl=1
6882 else
6883 ac_have_decl=0
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL_TZNAME $ac_have_decl
6888 _ACEOF
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6891 $as_echo_n "checking for tzname... " >&6; }
6892 if ${ac_cv_var_tzname+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 #include <time.h>
6898 #if !HAVE_DECL_TZNAME
6899 extern char *tzname[];
6900 #endif
6903 main ()
6905 return tzname[0][0];
6907 return 0;
6909 _ACEOF
6910 if ac_fn_c_try_link "$LINENO"; then :
6911 ac_cv_var_tzname=yes
6912 else
6913 ac_cv_var_tzname=no
6915 rm -f core conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6919 $as_echo "$ac_cv_var_tzname" >&6; }
6920 if test $ac_cv_var_tzname = yes; then
6922 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6927 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6928 if test "x$ac_cv_type_off_t" = xyes; then :
6930 else
6932 cat >>confdefs.h <<_ACEOF
6933 #define off_t long int
6934 _ACEOF
6938 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6939 if test "x$ac_cv_type_pid_t" = xyes; then :
6941 else
6943 cat >>confdefs.h <<_ACEOF
6944 #define pid_t int
6945 _ACEOF
6949 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6950 if test "x$ac_cv_type_size_t" = xyes; then :
6952 else
6954 cat >>confdefs.h <<_ACEOF
6955 #define size_t unsigned int
6956 _ACEOF
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6961 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6962 if ${ac_cv_type_uid_t+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6967 #include <sys/types.h>
6969 _ACEOF
6970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971 $EGREP "uid_t" >/dev/null 2>&1; then :
6972 ac_cv_type_uid_t=yes
6973 else
6974 ac_cv_type_uid_t=no
6976 rm -f conftest*
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6980 $as_echo "$ac_cv_type_uid_t" >&6; }
6981 if test $ac_cv_type_uid_t = no; then
6983 $as_echo "#define uid_t int" >>confdefs.h
6986 $as_echo "#define gid_t int" >>confdefs.h
6991 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6992 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6994 cat >>confdefs.h <<_ACEOF
6995 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6996 _ACEOF
7002 # Look for some functions
7003 for ac_func in getpagesize kqueue statfs statvfs \
7004 clone kse_create rfork_thread thr_create sa_register \
7005 getcontext makecontext setcontext sigaltstack swapcontext
7006 do :
7007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7010 cat >>confdefs.h <<_ACEOF
7011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7012 _ACEOF
7015 done
7021 for ac_header in $ac_header_list
7022 do :
7023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7027 cat >>confdefs.h <<_ACEOF
7028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7029 _ACEOF
7033 done
7042 for ac_func in getpagesize
7043 do :
7044 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7045 if test "x$ac_cv_func_getpagesize" = xyes; then :
7046 cat >>confdefs.h <<_ACEOF
7047 #define HAVE_GETPAGESIZE 1
7048 _ACEOF
7051 done
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7054 $as_echo_n "checking for working mmap... " >&6; }
7055 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 if test "$cross_compiling" = yes; then :
7059 ac_cv_func_mmap_fixed_mapped=no
7060 else
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 /* malloc might have been renamed as rpl_malloc. */
7065 #undef malloc
7067 /* Thanks to Mike Haertel and Jim Avera for this test.
7068 Here is a matrix of mmap possibilities:
7069 mmap private not fixed
7070 mmap private fixed at somewhere currently unmapped
7071 mmap private fixed at somewhere already mapped
7072 mmap shared not fixed
7073 mmap shared fixed at somewhere currently unmapped
7074 mmap shared fixed at somewhere already mapped
7075 For private mappings, we should verify that changes cannot be read()
7076 back from the file, nor mmap's back from the file at a different
7077 address. (There have been systems where private was not correctly
7078 implemented like the infamous i386 svr4.0, and systems where the
7079 VM page cache was not coherent with the file system buffer cache
7080 like early versions of FreeBSD and possibly contemporary NetBSD.)
7081 For shared mappings, we should conversely verify that changes get
7082 propagated back to all the places they're supposed to be.
7084 Grep wants private fixed already mapped.
7085 The main things grep needs to know about mmap are:
7086 * does it exist and is it safe to write into the mmap'd area
7087 * how to use it (BSD variants) */
7089 #include <fcntl.h>
7090 #include <sys/mman.h>
7092 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7093 char *malloc ();
7094 #endif
7096 /* This mess was copied from the GNU getpagesize.h. */
7097 #ifndef HAVE_GETPAGESIZE
7098 # ifdef _SC_PAGESIZE
7099 # define getpagesize() sysconf(_SC_PAGESIZE)
7100 # else /* no _SC_PAGESIZE */
7101 # ifdef HAVE_SYS_PARAM_H
7102 # include <sys/param.h>
7103 # ifdef EXEC_PAGESIZE
7104 # define getpagesize() EXEC_PAGESIZE
7105 # else /* no EXEC_PAGESIZE */
7106 # ifdef NBPG
7107 # define getpagesize() NBPG * CLSIZE
7108 # ifndef CLSIZE
7109 # define CLSIZE 1
7110 # endif /* no CLSIZE */
7111 # else /* no NBPG */
7112 # ifdef NBPC
7113 # define getpagesize() NBPC
7114 # else /* no NBPC */
7115 # ifdef PAGESIZE
7116 # define getpagesize() PAGESIZE
7117 # endif /* PAGESIZE */
7118 # endif /* no NBPC */
7119 # endif /* no NBPG */
7120 # endif /* no EXEC_PAGESIZE */
7121 # else /* no HAVE_SYS_PARAM_H */
7122 # define getpagesize() 8192 /* punt totally */
7123 # endif /* no HAVE_SYS_PARAM_H */
7124 # endif /* no _SC_PAGESIZE */
7126 #endif /* no HAVE_GETPAGESIZE */
7129 main ()
7131 char *data, *data2, *data3;
7132 const char *cdata2;
7133 int i, pagesize;
7134 int fd, fd2;
7136 pagesize = getpagesize ();
7138 /* First, make a file with some known garbage in it. */
7139 data = (char *) malloc (pagesize);
7140 if (!data)
7141 return 1;
7142 for (i = 0; i < pagesize; ++i)
7143 *(data + i) = rand ();
7144 umask (0);
7145 fd = creat ("conftest.mmap", 0600);
7146 if (fd < 0)
7147 return 2;
7148 if (write (fd, data, pagesize) != pagesize)
7149 return 3;
7150 close (fd);
7152 /* Next, check that the tail of a page is zero-filled. File must have
7153 non-zero length, otherwise we risk SIGBUS for entire page. */
7154 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7155 if (fd2 < 0)
7156 return 4;
7157 cdata2 = "";
7158 if (write (fd2, cdata2, 1) != 1)
7159 return 5;
7160 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7161 if (data2 == MAP_FAILED)
7162 return 6;
7163 for (i = 0; i < pagesize; ++i)
7164 if (*(data2 + i))
7165 return 7;
7166 close (fd2);
7167 if (munmap (data2, pagesize))
7168 return 8;
7170 /* Next, try to mmap the file at a fixed address which already has
7171 something else allocated at it. If we can, also make sure that
7172 we see the same garbage. */
7173 fd = open ("conftest.mmap", O_RDWR);
7174 if (fd < 0)
7175 return 9;
7176 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7177 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7178 return 10;
7179 for (i = 0; i < pagesize; ++i)
7180 if (*(data + i) != *(data2 + i))
7181 return 11;
7183 /* Finally, make sure that changes to the mapped area do not
7184 percolate back to the file as seen by read(). (This is a bug on
7185 some variants of i386 svr4.0.) */
7186 for (i = 0; i < pagesize; ++i)
7187 *(data2 + i) = *(data2 + i) + 1;
7188 data3 = (char *) malloc (pagesize);
7189 if (!data3)
7190 return 12;
7191 if (read (fd, data3, pagesize) != pagesize)
7192 return 13;
7193 for (i = 0; i < pagesize; ++i)
7194 if (*(data + i) != *(data3 + i))
7195 return 14;
7196 close (fd);
7197 return 0;
7199 _ACEOF
7200 if ac_fn_c_try_run "$LINENO"; then :
7201 ac_cv_func_mmap_fixed_mapped=yes
7202 else
7203 ac_cv_func_mmap_fixed_mapped=no
7205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7206 conftest.$ac_objext conftest.beam conftest.$ac_ext
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7211 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7212 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7214 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7217 rm -f conftest.mmap conftest.txt
7222 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7223 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7224 aros_config_ldflags=""
7226 aros_shared_default=yes
7228 aros_shared_cflags="-fPIC"
7229 aros_shared_aflags=""
7230 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7231 aros_kernel_ldflags="-Wl,-rpath,./lib"
7233 aros_kernel_ar_flags="cr"
7234 aros_target_ar_flags="cr"
7235 aros_target_nm_flags="-C -ul"
7236 aros_target_strip_flags="--strip-unneeded -R.comment"
7238 aros_compiler_libs=
7239 aros_arch_libs=
7241 aros_target_genmap="-Wl,-Map -Xlinker"
7243 # Native flavour stuff
7244 aros_serial_debug="0"
7246 # Palm native flavour stuff
7247 aros_palm_debug_hack="0"
7249 # Unix flavour stuff
7250 aros_nesting_supervisor="0"
7252 # Collect-aros stuff: "-ius" to ignore undefined symbols
7253 ignore_undefined_symbols=""
7255 # Check for X11 by default
7256 need_x11="auto"
7258 #-----------------------------------------------------------------------------
7261 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7262 # it switched on by default, and we use the host compiler, so it compiles AROS
7263 # code with this enabled resulting in link failures as we don't have support
7264 # for it.
7266 # We use two methods to disable it. For the host compiler (used to compile
7267 # some hosted modules), we test to see if the compiler supports stack
7268 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7269 # work on all platforms.
7271 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7272 # (this is done unconditionally, as it should have no effect on compilers
7273 # without the stack protection feature). This may be specific to the way that
7274 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7275 # strong enough to disable it in a generic way though, so we'll live with it
7276 # until another vendor ships GCC with it enabled in a different way, and deal
7277 # with it then.
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7281 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7282 save_cflags="$CFLAGS"
7283 CFLAGS="$CFLAGS -fno-stack-protector"
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7288 main ()
7292 return 0;
7294 _ACEOF
7295 if ac_fn_c_try_compile "$LINENO"; then :
7296 use_no_stack_protector="yes"
7297 else
7298 use_no_stack_protector="no"
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7302 $as_echo "$use_no_stack_protector" >&6; }
7303 if test "x-$use_no_stack_protector" = "x-yes" ; then
7304 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7306 CFLAGS="$save_cflags"
7308 #-----------------------------------------------------------------------------
7310 # Disable pointer-signedness warnings if the compiler recognises the option
7311 # (this only works for the host compiler at the moment)
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7314 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7315 save_cflags="$CFLAGS"
7316 CFLAGS="$CFLAGS -Wno-pointer-sign"
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7321 main ()
7325 return 0;
7327 _ACEOF
7328 if ac_fn_c_try_compile "$LINENO"; then :
7329 use_no_sign_warning="yes"
7330 else
7331 use_no_sign_warning="no"
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7335 $as_echo "$use_no_sign_warning" >&6; }
7336 if test "x-$use_no_sign_warning" = "x-yes" ; then
7337 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7339 CFLAGS="$save_cflags"
7341 #-----------------------------------------------------------------------------
7343 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7346 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7347 save_cflags="$CFLAGS"
7348 CFLAGS="$CFLAGS -fgnu89-inline"
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7353 main ()
7357 return 0;
7359 _ACEOF
7360 if ac_fn_c_try_compile "$LINENO"; then :
7361 use_gnu89_inline="yes"
7362 else
7363 use_gnu89_inline="no"
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7367 $as_echo "$use_gnu89_inline" >&6; }
7368 if test "x-$use_gnu89_inline" = "x-yes" ; then
7369 gnu89_inline="-fgnu89-inline"
7371 CFLAGS="$save_cflags"
7373 #-----------------------------------------------------------------------------
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7376 $as_echo_n "checking for type of build... " >&6; }
7377 # Check whether --enable-build_type was given.
7378 if test "${enable_build_type+set}" = set; then :
7379 enableval=$enable_build_type; build_type=$enableval
7380 else
7381 build_type="personal"
7385 if test "$build_type" = "nightly"; then
7386 build_type_string="NIGHTLY"
7387 elif test "$build_type" = "snapshot"; then
7388 build_type_string="SNAPSHOT"
7389 elif test "$build_type" = "milestone"; then
7390 build_type_string="MILESTONE"
7391 elif test "$build_type" = "release"; then
7392 build_type_string="RELEASE"
7393 else
7394 build_type_string="PERSONAL"
7395 build_type="personal"
7398 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7401 $as_echo "$build_type" >&6; }
7403 #-----------------------------------------------------------------------------
7404 all_debug_types="messages stack modules mungwall symbols"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7407 $as_echo_n "checking which debug types to enable... " >&6; }
7408 # Check whether --enable-debug was given.
7409 if test "${enable_debug+set}" = set; then :
7410 enableval=$enable_debug; debug="$enableval"
7411 else
7412 debug=""
7416 if test "$debug" = "" -o "$debug" = "no"; then
7417 debug="none"
7418 elif test "$debug" = "yes"; then
7419 debug="all"
7422 if test "$debug" = "all" ; then
7423 debug="messages stack modules symbols"
7424 for d in $all_debug_types; do
7425 export aros_${d}_debug="1"
7426 done
7427 else
7428 for d in $all_debug_types; do
7429 export aros_${d}_debug="0"
7430 done
7433 if test "$debug" != "none"; then
7434 debug=`echo $debug | sed s/,/\ /g`
7435 for d in $debug; do
7436 found="0"
7437 for d2 in $all_debug_types; do
7438 if test "$d2" = "$d"; then
7439 found="1"
7440 break
7442 done
7443 if test "$found" = "0"; then
7444 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7446 export aros_${d}_debug="1"
7447 done
7448 aros_debug="yes"
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7451 $as_echo "$debug" >&6; }
7453 if test "$aros_messages_debug" = "1"; then
7454 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7455 else
7456 aros_messages_debug=""
7458 if test "$aros_symbols_debug" = "1"; then
7459 aros_symbols_debug="-g"
7460 else
7461 aros_symbols_debug=""
7464 # These are the flags to pass when compiling debugged programs
7465 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7466 aros_debug_aflags=""
7467 aros_debug_ldflags="$aros_symbols_debug"
7469 #-----------------------------------------------------------------------------
7470 # Checking for distcc and ccache.
7472 # Always apply the transforms in this particular order. Basically you should
7473 # always run 'ccache distcc compiler' in that order for the best performance.
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7476 $as_echo_n "checking whether to enable distcc... " >&6; }
7477 # Check whether --enable-distcc was given.
7478 if test "${enable_distcc+set}" = set; then :
7479 enableval=$enable_distcc; distcc="$enableval"
7480 else
7481 distcc="no"
7484 if test "$distcc" != "" -a "$distcc" != "no"; then
7485 # AC_CHECK_PROG will print out the result in this case
7486 # Extract the first word of "distcc", so it can be a program name with args.
7487 set dummy distcc; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if ${ac_cv_path_DISTCC+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 case $DISTCC in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7509 done
7510 done
7511 IFS=$as_save_IFS
7513 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7515 esac
7517 DISTCC=$ac_cv_path_DISTCC
7518 if test -n "$DISTCC"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7520 $as_echo "$DISTCC" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7527 else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7533 $as_echo_n "checking whether to enable ccache... " >&6; }
7534 # Check whether --enable-ccache was given.
7535 if test "${enable_ccache+set}" = set; then :
7536 enableval=$enable_ccache; ccache="$enableval"
7537 else
7538 ccache="no"
7541 if test "$ccache" != "" -a "$ccache" != "no"; then
7542 # AC_CHECK_PROG will print out the result in this case
7543 # Extract the first word of "ccache", so it can be a program name with args.
7544 set dummy ccache; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_CCACHE+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 if test -n "$CCACHE"; then
7551 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_CCACHE="ccache"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7564 done
7565 done
7566 IFS=$as_save_IFS
7570 CCACHE=$ac_cv_prog_CCACHE
7571 if test -n "$CCACHE"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7573 $as_echo "$CCACHE" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7585 #-----------------------------------------------------------------------------
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7587 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7589 # Check whether --with-kernel-gcc-version was given.
7590 if test "${with_kernel_gcc_version+set}" = set; then :
7591 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7592 else
7593 kernel_tool_version=""
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7597 $as_echo "$kernel_tool_version" >&6; }
7599 #-----------------------------------------------------------------------------
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7601 $as_echo_n "checking what optimization flags to use... " >&6; }
7603 # Check whether --with-optimization was given.
7604 if test "${with_optimization+set}" = set; then :
7605 withval=$with_optimization; optimization="$withval"
7606 else
7607 optimization="unknown"
7610 if test "$optimization" = "unknown"; then
7611 if test "$debug" != "none"; then
7612 optimization="-O0"
7613 else
7614 optimization="-O2"
7617 aros_optimization_cflags="$optimization"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7619 $as_echo "$optimization" >&6; }
7621 #-----------------------------------------------------------------------------
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7623 $as_echo_n "checking what paranoia flags to use... " >&6; }
7625 # Check whether --with-paranoia was given.
7626 if test "${with_paranoia+set}" = set; then :
7627 withval=$with_paranoia; paranoia_flags="$withval"
7628 else
7629 paranoia_flags="default"
7632 if test "$paranoia_flags" = "default"; then
7633 paranoia_flags=""
7634 else if test "$paranoia_flags" = "yes"; then
7635 paranoia_flags="-Wall -Werror"
7636 fi fi
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7638 $as_echo "$paranoia_flags" >&6; }
7639 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7641 #-----------------------------------------------------------------------------
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7643 $as_echo_n "checking what target variant to enable... " >&6; }
7644 # Check whether --enable-target_variant was given.
7645 if test "${enable_target_variant+set}" = set; then :
7646 enableval=$enable_target_variant; target_variant=$enableval
7647 else
7648 target_variant=""
7651 if test "$target_variant" = ""; then
7652 aros_target_variant=""
7653 aros_target_suffix=""
7654 enableval="none"
7655 else
7656 aros_target_variant="$target_variant"
7657 aros_target_suffix="-$target_variant"
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7660 $as_echo "$enableval" >&6; }
7662 #-----------------------------------------------------------------------------
7663 # Target-specific defaults. You can override then on a per-target basis.
7665 # Bootloader name. Currently used by PC target.
7666 target_bootloader="none"
7667 ENABLE_EXECSMP=
7669 #-----------------------------------------------------------------------------
7670 # Additional options for some specific targets
7672 case "$aros_target_variant" in
7673 ios)
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7675 $as_echo_n "checking XCode path... " >&6; }
7677 # Check whether --with-xcode was given.
7678 if test "${with_xcode+set}" = set; then :
7679 withval=$with_xcode; aros_xcode_path="$withval"
7680 else
7681 aros_xcode_path="/Developer"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7685 $as_echo "$aros_xcode_path" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7688 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7690 # Check whether --with-sdk-version was given.
7691 if test "${with_sdk_version+set}" = set; then :
7692 withval=$with_sdk_version; aros_sdk_version="$withval"
7693 else
7694 aros_sdk_version="4.1"
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7698 $as_echo "$aros_sdk_version" >&6; }
7702 "android")
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7704 $as_echo_n "checking Android SDK path... " >&6; }
7706 # Check whether --with-sdk was given.
7707 if test "${with_sdk+set}" = set; then :
7708 withval=$with_sdk; aros_android_sdk="$withval"
7709 else
7710 aros_android_sdk=$default_android_sdk
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7714 $as_echo "$aros_android_sdk" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7717 $as_echo_n "checking Android NDK path... " >&6; }
7719 # Check whether --with-ndk was given.
7720 if test "${with_ndk+set}" = set; then :
7721 withval=$with_ndk; aros_android_ndk="$withval"
7722 else
7723 aros_android_ndk="none"
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7727 $as_echo "$aros_android_ndk" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7730 $as_echo_n "checking what Android SDK version to use... " >&6; }
7732 # Check whether --with-sdk-version was given.
7733 if test "${with_sdk_version+set}" = set; then :
7734 withval=$with_sdk_version; aros_sdk_version="$withval"
7735 else
7736 aros_sdk_version="12"
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7740 $as_echo "$aros_sdk_version" >&6; }
7742 aros_android_level=android-$aros_sdk_version
7743 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7744 echo "Platform $aros_android_level is not installed in your SDK"
7745 echo "Use --with-sdk-version=<API level number> to select another platform version"
7746 echo "You can check what plaform versions are installed in your SDK"
7747 echo "by examining contents of $aros_android_sdk/platforms directory"
7748 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7751 export PATH="$aros_android_sdk/tools:$PATH"
7752 # Extract the first word of "$android_tool", so it can be a program name with args.
7753 set dummy $android_tool; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_path_android_tool+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 case $android_tool in
7760 [\\/]* | ?:[\\/]*)
7761 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7775 done
7776 done
7777 IFS=$as_save_IFS
7780 esac
7782 android_tool=$ac_cv_path_android_tool
7783 if test -n "$android_tool"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7785 $as_echo "$android_tool" >&6; }
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7792 if test "$android_tool" = ""; then
7793 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7796 if test "$aros_android_ndk" != "none"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7798 $as_echo_n "checking what Android NDK version to use... " >&6; }
7800 # Check whether --with-ndk-version was given.
7801 if test "${with_ndk_version+set}" = set; then :
7802 withval=$with_ndk_version; aros_ndk_version="$withval"
7803 else
7804 aros_ndk_version="9"
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7808 $as_echo "$aros_ndk_version" >&6; }
7811 # Extract the first word of "ant", so it can be a program name with args.
7812 set dummy ant; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_path_ant+:} false; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 case $ant in
7819 [\\/]* | ?:[\\/]*)
7820 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7836 IFS=$as_save_IFS
7839 esac
7841 ant=$ac_cv_path_ant
7842 if test -n "$ant"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7844 $as_echo "$ant" >&6; }
7845 else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 if test "$ant" = ""; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7853 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7857 $as_echo_n "checking Build debug or release apk... " >&6; }
7859 # Check whether --with-apk-version was given.
7860 if test "${with_apk_version+set}" = set; then :
7861 withval=$with_apk_version; aros_android_antapk=$withval
7862 else
7863 aros_android_antapk=release
7866 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7867 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7870 $as_echo "$aros_android_antapk" >&6; }
7872 if test "$host_os" = "mingw32"; then
7873 android_tool="cmd //c $android_tool"
7876 need_dlopen="no"
7879 esac
7881 #-----------------------------------------------------------------------------
7882 # External toolchains
7883 kernel_tool_prefix="none"
7884 aros_tool_prefix="none"
7885 elf_tool_prefix="${target_cpu}-elf-"
7887 # This is the target configuration switch.
7888 case "$target_os" in
7889 linux*)
7890 aros_target_arch="linux"
7891 aros_target_family="unix"
7892 case "$target_cpu" in
7893 *m68k*)
7894 aros_target_cpu="m68k"
7895 aros_object_format="m68kelf"
7896 aros_flavour="emulcompat"
7897 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7898 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7899 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7900 gcc_target_cpu="mc68000"
7902 *i?86*)
7903 aros_target_cpu="i386"
7904 aros_object_format="elf_i386"
7905 aros_flavour="emulation"
7906 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7907 aros_kernel_ldflags="-Wl,-melf_i386"
7908 aros_nominal_depth=8
7909 gcc_target_cpu="i386"
7910 pci_hidd_target="hidd-pci-linux"
7911 android_tool_dir_prefix="x86"
7912 android_tool_prefix="i686-android-linux"
7913 android_ndk_arch="x86"
7915 *x86_64*)
7916 aros_target_cpu="x86_64"
7917 aros_object_format="elf_x86_64"
7918 aros_flavour="emulation"
7919 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7920 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7921 aros_nominal_depth=8
7922 pci_hidd_target="hidd-pci-linux"
7924 *powerpc*)
7925 aros_target_cpu="ppc"
7926 aros_object_format="elf32ppc"
7927 aros_flavour="emulation"
7928 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7929 aros_nominal_depth=8
7930 gcc_target_cpu="ppc"
7932 # TODO
7933 # Same as powerpc, but I need this for the nightly build to work again.
7934 # Actually, the nightly should be made working with powerpc target.
7935 # That just was too much work for the moment, another week or two.
7936 *ppc*)
7937 aros_target_cpu="ppc"
7938 aros_object_format="elf32ppc"
7939 aros_flavour="emulation"
7940 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7941 aros_nominal_depth=8
7942 gcc_target_cpu="ppc"
7944 *armhf*)
7945 aros_target_cpu="arm"
7946 target_cpu="arm"
7947 aros_object_format="armelf_aros"
7948 aros_flavour="emulation"
7949 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7950 gcc_target_cpu="arm"
7951 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7952 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7953 aros_arch_libs="-laeabi"
7954 gcc_default_float_abi="hard"
7955 android_tool_dir_prefix="arm-linux-androideabi"
7956 android_tool_prefix="arm-linux-androideabi"
7957 android_ndk_arch="arm"
7958 kernel_tool_prefix="arm-linux-gnueabihf-"
7960 *arm*)
7961 aros_target_cpu="arm"
7962 aros_object_format="armelf_aros"
7963 aros_flavour="emulation"
7964 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7965 gcc_target_cpu="arm"
7966 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7967 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7968 aros_arch_libs="-laeabi"
7969 android_tool_dir_prefix="arm-linux-androideabi"
7970 android_tool_prefix="arm-linux-androideabi"
7971 android_ndk_arch="arm"
7972 kernel_tool_prefix="arm-linux-gnueabi-"
7975 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7977 esac
7978 case "$aros_target_variant" in
7979 android)
7981 if test "$android_ndk_arch" = ""; then
7982 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7985 aros_nominal_width=320
7986 aros_nominal_height=480
7987 if test "$aros_android_ndk" = "none"; then
7988 aros_kernel_cflags="-mandroid"
7989 aros_kernel_ldflags="-mandroid"
7990 CFLAGS="-mandroid"
7991 else
7992 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7993 kernel_tool_version=""
7994 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7995 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7996 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7997 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7998 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8000 need_x11=no
8001 unixgfx_hidd_target=kernel-hidd-androidgfx
8002 # Disable implicit PIC mode
8003 aros_target_cflags="$aros_target_cflags -fno-pic"
8004 kernel_tool_prefix="$android_tool_prefix-"
8006 esac
8010 aros_target_arch="pc"
8011 aros_shared_default="no"
8012 target_bootloader="grub2"
8013 case "$target_cpu" in
8014 *i?86*)
8015 aros_target_cpu="i386"
8018 if test "$aros_object_format" = "" ; then
8019 aros_object_format="elf_i386"
8021 aros_flavour="standalone"
8022 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8023 aros_kernel_ldflags="-Wl,-melf_i386"
8024 aros_nominal_width=640
8025 aros_nominal_height=480
8026 gcc_target_cpu="i386"
8028 *x86_64*)
8029 aros_target_cpu="x86_64"
8030 aros_serial_debug=1
8031 if test "$aros_object_format" = "" ; then
8032 aros_object_format="elf_x86_64"
8034 aros_flavour="standalone"
8035 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8036 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8037 aros_kernel_ldflags=""
8038 aros_nominal_width=640
8039 aros_nominal_height=480
8040 case "$aros_target_variant" in
8041 smp)
8042 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8044 esac
8047 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8049 esac
8052 prep)
8053 aros_target_arch="prep"
8054 aros_shared_default="no"
8055 aros_target_cpu="ppc"
8056 aros_object_format="elf32ppc"
8057 aros_flavour="ppcnative"
8058 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8059 aros_kernel_ldflags=""
8060 aros_nominal_width=640
8061 aros_nominal_height=480
8062 gcc_target_cpu="ppc"
8065 freebsd*)
8066 aros_target_arch="freebsd"
8067 aros_target_family="unix"
8068 aros_target_cpu="i386"
8069 aros_flavour="emulation"
8070 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8071 gcc_target_cpu="i386"
8073 aros_target_strip_flags="-x"
8076 darwin*)
8077 aros_target_arch="darwin"
8078 aros_target_family="unix"
8079 aros_flavour="emulation"
8080 case "$target_cpu" in
8081 *i?86*)
8082 aros_ios_platform="iPhoneSimulator"
8083 aros_target_cpu="i386"
8084 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8085 aros_kernel_ldflags=""
8086 aros_macosx_version="10.4"
8087 aros_nominal_depth=8
8088 gcc_target_cpu="i386"
8089 aros_object_format="elf_i386"
8090 aros_kernel_ar_flags="-cr"
8091 aros_target_strip_flags="-x"
8092 kernel_tool_flags="-m32"
8094 *x86_64*)
8095 aros_target_cpu="x86_64"
8096 aros_object_format="elf_x86_64"
8097 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8098 aros_macosx_version="10.6"
8099 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8100 aros_kernel_cflags="-m64"
8101 aros_kernel_ldflags="-m64"
8102 aros_target_cflags="-mcmodel=large"
8103 aros_nominal_depth=8
8104 aros_kernel_ar="ar"
8105 aros_kernel_ar_flags="-cr"
8106 aros_kernel_ld="ld"
8107 aros_kernel_as="as"
8108 aros_kernel_ranlib="ranlib"
8109 aros_kernel_nm="nm"
8110 aros_kernel_strip="strip"
8111 kernel_tool_prefix="i686-apple-darwin10-"
8113 *ppc*)
8114 aros_target_cpu="ppc"
8115 aros_object_format="elf32ppc"
8116 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8117 aros_kernel_ldflags=""
8118 aros_macosx_version="10.0"
8119 aros_nominal_depth=8
8120 gcc_target_cpu="ppc"
8121 aros_kernel_ar="ar"
8122 aros_kernel_ar_flags="-cr"
8123 aros_kernel_ld="ld -arch ppc"
8124 aros_kernel_as="as -arch ppc"
8125 aros_kernel_ranlib="ranlib -arch ppc"
8126 aros_kernel_nm="nm -arch ppc"
8127 aros_kernel_strip="strip -arch ppc"
8128 kernel_tool_prefix="powerpc-apple-darwin10-"
8130 *arm*)
8131 aros_ios_platform="iPhoneOS"
8132 aros_target_cpu="arm"
8133 aros_object_format="armelf_aros"
8134 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8135 aros_arch_libs="-laeabi"
8136 aros_nominal_depth=8
8137 gcc_target_cpu="arm"
8138 aros_kernel_ar="ar"
8139 aros_kernel_ar_flags="-cr"
8140 aros_kernel_ld="ld -arch arm"
8141 aros_kernel_ranlib="ranlib -arch arm"
8142 kernel_tool_prefix="arm-apple-darwin10-"
8143 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8146 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8148 esac
8149 case "$aros_target_variant" in
8150 ios)
8151 aros_ios_version="3.0"
8152 aros_nominal_width=320
8153 aros_nominal_height=480
8154 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8155 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8156 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8157 need_x11=no
8158 # This is here because it may depend on iOS or SDK version
8159 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8160 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8161 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8164 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8165 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8167 esac
8170 dragonfly*)
8171 aros_target_arch="dragonfly"
8172 aros_target_family="unix"
8173 aros_flavour="emulation"
8174 case "$target_cpu" in
8175 *i?86*)
8176 aros_target_cpu="i386"
8177 aros_object_format="elf_i386"
8178 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8180 *x86_64*)
8181 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8182 aros_target_cpu="x86_64"
8183 aros_object_format="elf_x86_64"
8184 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8187 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8189 esac
8192 netbsd*)
8193 aros_target_arch="netbsd"
8194 aros_target_family="unix"
8195 case "$target_cpu" in
8196 *m68k*)
8197 aros_target_cpu="m68k"
8198 aros_object_format="m68kelf"
8199 aros_flavour="emulcompat"
8200 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8201 gcc_target_cpu="mc68000"
8203 *i?86*)
8204 aros_target_cpu="i386"
8205 aros_object_format="elf_i386"
8206 aros_flavour="emulation"
8207 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8208 aros_nominal_depth=8
8209 gcc_target_cpu="i386"
8212 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8214 esac
8215 aros_target_genmap="-Wl,-M -Xlinker >"
8216 aros_flavour="emulation"
8217 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8220 openbsd*)
8221 aros_target_arch="openbsd"
8222 aros_target_family="unix"
8223 case "$target_cpu" in
8224 *i?86*)
8225 aros_target_cpu="i386"
8226 aros_object_format="elf_i386"
8227 aros_flavour="emulation"
8228 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8229 gcc_target_cpu="i386"
8232 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8234 esac
8235 aros_target_genmap="-Wl,-M -Xlinker >"
8236 aros_target_nm_flags="-u"
8237 aros_flavour="emulation"
8240 solaris*)
8241 aros_target_arch="solaris"
8242 aros_target_family="unix"
8243 case "$target_cpu" in
8244 *i?86*)
8245 aros_target_cpu="i386"
8246 aros_object_format="elf_i386"
8247 aros_flavour="emulation"
8248 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8249 aros_nominal_depth=8
8250 gcc_target_cpu="i386"
8252 *sparc*)
8253 aros_target_cpu="sparc"
8254 aros_object_format="elf_sparc"
8255 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8256 gcc_target_cpu="sparc"
8259 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8261 esac
8262 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8263 aros_flavour="emulation"
8266 morphos*)
8267 aros_target_arch="morphos"
8268 aros_shared_default="no"
8269 aros_target_cpu="ppc"
8270 aros_object_format="elf_ppc"
8271 aros_flavour="nativecompat"
8272 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8273 gcc_target_cpu="ppc"
8276 sam440)
8277 aros_target_arch="sam440"
8278 aros_shared_default="no"
8279 aros_target_cpu="ppc"
8280 aros_object_format="elf32ppc"
8281 aros_flavour="ppcnative"
8282 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8283 aros_kernel_ldflags=""
8284 aros_nominal_width=1024
8285 aros_nominal_height=768
8286 aros_nominal_depth=24
8287 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8288 gcc_target_cpu="powerpc"
8291 efika)
8292 aros_target_arch="efika"
8293 aros_shared_default="no"
8294 aros_target_cpu="arm"
8295 aros_object_format="armelf_aros"
8296 aros_flavour="standalone"
8297 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8298 aros_kernel_ldflags=""
8299 aros_nominal_width=1024
8300 aros_nominal_height=600
8301 aros_arch_libs="-laeabi"
8302 gcc_default_cpu="armv7-a"
8303 gcc_default_fpu="vfpv3"
8304 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8305 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8306 aros_optimization_cflags="$aros_optimization_cflags -Os"
8307 case "$target_cpu" in
8308 *armhf*)
8309 gcc_default_float_abi="hard"
8310 target_cpu=arm
8311 aros_target_cpu=arm
8313 *arm*)
8314 gcc_default_float_abi="softfp"
8317 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8319 esac
8322 chrp)
8323 aros_target_arch="chrp"
8324 aros_shared_default="no"
8325 aros_target_cpu="ppc"
8326 aros_object_format="elf32ppc"
8327 aros_flavour="ppcnative"
8328 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8329 aros_kernel_ldflags=""
8330 aros_nominal_width=640
8331 aros_nominal_height=480
8332 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8333 gcc_target_cpu="powerpc"
8334 case "$aros_target_variant" in
8335 efika)
8336 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8338 esac
8341 r*pi)
8342 aros_flavour="standalone"
8343 aros_target_arch="raspi"
8344 aros_target_cpu="arm"
8345 aros_object_format="armelf_aros"
8346 aros_shared_default="no"
8347 aros_arch_libs="-laeabi"
8349 gcc_default_cpu="armv6zk"
8350 gcc_default_cpu_tune="arm1176jzf-s"
8352 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8353 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8354 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8355 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8356 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8357 case "$aros_target_variant" in
8358 smp)
8359 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8361 esac
8364 sun4i)
8365 aros_flavour="standalone"
8366 aros_target_arch="sun4i"
8367 aros_target_cpu="arm"
8368 aros_object_format="armelf_aros"
8369 aros_shared_default="no"
8370 aros_arch_libs="-laeabi"
8372 gcc_default_cpu="armv7-a"
8373 gcc_default_fpu="neon"
8374 gcc_default_cpu_tune="cortex-a8"
8375 gcc_default_float_abi="hard"
8377 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8378 aros_optimization_cflags=""
8379 aros_config_cflags="$aros_config_cflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8380 aros_config_aflags="$aros_config_aflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8383 amiga*)
8384 aros_target_arch="amiga"
8385 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8386 aros_shared_default="no"
8388 case "$target_cpu" in
8389 *m68k*)
8390 # Check whether --enable-amigaos_compliance was given.
8391 if test "${enable_amigaos_compliance+set}" = set; then :
8392 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8395 aros_enable_mmu=no
8396 aros_target_cpu="m68k"
8397 aros_object_format="m68kelf"
8398 aros_flavour="standcompat"
8399 gcc_target_cpu="m68000"
8400 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8401 aros_optimization_cflags="$aros_optimization_cflags -Os"
8402 aros_config_aflags="$aros_config_aflags"
8403 aros_target_strip_flags="-R.comment --strip-debug"
8404 aros_nominal_width=640
8405 aros_nominal_height=256
8406 aros_nominal_depth=2
8408 *ppc*)
8409 aros_cpu="ppc"
8410 aros_flavour="native"
8411 gcc_target_cpu="ppc"
8414 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8416 esac
8419 mingw*)
8420 aros_target_arch="mingw32"
8421 aros_shared_default="no"
8422 aros_flavour="emulation"
8423 aros_shared_cflags=""
8424 need_crosstools="yes"
8425 need_dlopen="no"
8426 rescomp="windres"
8427 case "$target_cpu" in
8428 *i?86*)
8429 aros_target_cpu="i386"
8430 aros_object_format="elf_i386"
8431 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8432 aros_nominal_depth=8
8433 gcc_target_cpu="i386"
8435 kernel_tool_prefix="i386-mingw32-"
8437 *x86_64*)
8438 aros_target_cpu="x86_64"
8439 aros_object_format="elf_x86_64"
8440 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8441 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8442 aros_nominal_depth=8
8443 kernel_tool_prefix="x86_64-w64-mingw32-"
8445 *arm*)
8446 aros_target_cpu="arm"
8447 aros_object_format="armelf_aros"
8448 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8449 aros_arch_libs="-laeabi"
8450 aros_nominal_depth=8
8451 gcc_target_cpu="arm"
8452 gcc_default_float_abi="soft"
8453 kernel_tool_prefix="arm-mingw32ce-"
8454 aros_nominal_width=160
8455 aros_nominal_height=160
8458 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8460 esac
8461 if test $host_os = "cygwin"; then
8462 aros_kernel_cflags="-mno-cygwin"
8465 pp*)
8466 aros_target_arch="pp"
8467 aros_shared_default="no"
8468 case "$target_cpu" in
8469 *m68k*)
8470 aros_target_cpu="m68k"
8471 aros_object_format="m68kelf"
8472 aros_flavour="palmnative"
8473 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8474 aros_nominal_width=160
8475 aros_nominal_height=160
8476 aros_nominal_depth=1
8477 aros_target_ar_flags="cru"
8478 aros_compiler_libs="-lgcc1"
8479 aros_shared_default=no
8480 aros_shared_cflags="-fpic"
8481 aros_shared_aflags=""
8482 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8483 aros_kernel_ldflags="-Wl,-rpath,./lib"
8484 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8485 aros_debug_aflags=""
8486 aros_debug_ldflags="$aros_symbols_debug"
8487 aros_mungwall_debug="0"
8488 aros_modules_debug="0"
8489 gcc_target_cpu="mc68000"
8490 ignore_undefined_symbols="-ius"
8493 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8495 esac
8498 mac*)
8499 aros_target_arch="mac"
8500 aros_shared_default="no"
8501 case "$target_cpu" in
8502 *m68k*)
8503 aros_target_cpu="m68k"
8504 aros_object_format="m68kelf"
8505 aros_flavour="mac68knative"
8506 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8507 aros_nominal_width=512
8508 aros_nominal_height=384
8509 aros_nominal_depth=8
8510 aros_target_ar_flags="cru"
8511 aros_compiler_libs="-lgcc1"
8512 aros_shared_default=no
8513 aros_shared_cflags="-fpic"
8514 aros_shared_aflags=""
8515 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8516 aros_kernel_ldflags="-Wl,-rpath,./lib"
8517 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8518 aros_debug_aflags=""
8519 aros_debug_ldflags="$aros_symbols_debug"
8520 aros_mungwall_debug="0"
8521 aros_modules_debug="0"
8522 gcc_target_cpu="mc68000"
8523 ignore_undefined_symbols="-ius"
8526 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8528 esac
8532 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8534 esac
8536 #-----------------------------------------------------------------------------
8537 crosstools_guess="yes"
8538 aros_target_toolchain="no"
8539 aros_config_sysroot=""
8540 aros_kernel_sysroot=""
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8543 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8545 # Check whether --with-kernel-toolchain-prefix was given.
8546 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8547 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8551 $as_echo "$kernel_tool_prefix" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8554 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8556 # Check whether --with-elf-toolchain-prefix was given.
8557 if test "${with_elf_toolchain_prefix+set}" = set; then :
8558 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8559 crosstools_guess="no"
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8563 $as_echo "$elf_tool_prefix" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8566 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8568 # Check whether --with-aros-toolchain was given.
8569 if test "${with_aros_toolchain+set}" = set; then :
8570 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8571 crosstools_guess="no"
8574 if test "$aros_tool_prefix" = "yes" ; then
8575 aros_tool_prefix=$aros_target_cpu-aros-
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8578 $as_echo "$aros_tool_prefix" >&6; }
8580 #-----------------------------------------------------------------------------
8581 # Checking if we should build crosstools..
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8583 $as_echo_n "checking whether to build crosstools... " >&6; }
8584 # Check whether --enable-crosstools was given.
8585 if test "${enable_crosstools+set}" = set; then :
8586 enableval=$enable_crosstools; crosstools="$enableval"
8587 else
8588 crosstools="$crosstools_guess"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8592 $as_echo "$crosstools" >&6; }
8594 if test "${crosstools}" = "yes"; then
8595 if test "${crosstools_guess}" = "no"; then
8596 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8600 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8601 aros_target_toolchain="yes"
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8605 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8607 # Check whether --with-aros-toolchain-install was given.
8608 if test "${with_aros_toolchain_install+set}" = set; then :
8609 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8612 if test "x$aros_toolchain_install" = "x"; then
8613 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8614 else
8615 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8616 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8617 if test "$crosstools_guess" = "no" ; then
8618 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8620 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8621 aros_kernel_sysroot = $aros_config_sysroot
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8626 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8628 #-----------------------------------------------------------------------------
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8630 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8632 # Check whether --with-binutils-version was given.
8633 if test "${with_binutils_version+set}" = set; then :
8634 withval=$with_binutils_version; use_binutils_version="$withval"
8635 else
8636 use_binutils_version=""
8639 if test "$use_binutils_version" = ""; then
8640 target_binutils_version="$default_binutils_version"
8641 else
8642 target_binutils_version="$use_binutils_version"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8645 $as_echo "$target_binutils_version" >&6; }
8648 # Helper to identify gcc version
8651 #-----------------------------------------------------------------------------
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8653 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8655 # Check whether --with-gcc-version was given.
8656 if test "${with_gcc_version+set}" = set; then :
8657 withval=$with_gcc_version; use_gcc_version="$withval"
8658 else
8659 use_gcc_version=""
8662 if test "$use_gcc_version" = ""; then
8663 if test "${crosstools}" = "no"; then
8664 if test "x$aros_toolchain_install" != "x"; then
8666 target_gcc_version=""
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8668 $as_echo_n "checking gcc version... " >&6; }
8669 if ${ax_cv_gcc_version+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8673 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8674 if test "x$ax_cv_gcc_version" = "x"; then :
8676 ax_cv_gcc_version=""
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8682 $as_echo "$ax_cv_gcc_version" >&6; }
8683 target_gcc_version=$ax_cv_gcc_version
8688 if test "$use_gcc_version" = ""; then
8689 target_gcc_version="$default_gcc_version"
8691 else
8692 target_gcc_version="$use_gcc_version"
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8695 $as_echo "$target_gcc_version" >&6; }
8697 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8698 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8699 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8701 gcc_fix_bitfields="false"
8702 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8703 gcc_fix_bitfields="true"
8704 else
8705 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8706 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8707 gcc_fix_bitfields="true"
8712 if test "$gcc_fix_bitfields" = "true" ; then
8713 case "$aros_target_cpu" in
8714 *x86_64*)
8715 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8716 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8718 i386)
8719 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8720 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8722 esac
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8726 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8727 # Check whether --enable-objc was given.
8728 if test "${enable_objc+set}" = set; then :
8729 enableval=$enable_objc; objc="$enableval"
8730 else
8731 objc="no"
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8735 $as_echo "$objc" >&6; }
8736 if test "x$objc" = "xyes"; then
8737 objc_target="$objc"
8738 else
8739 objc_target="no-objc"
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8743 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8744 # Check whether --enable-java was given.
8745 if test "${enable_java+set}" = set; then :
8746 enableval=$enable_java; java="$enableval"
8747 else
8748 java="no"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8752 $as_echo "$java" >&6; }
8753 if test "x$java" != "xno"; then
8754 java_target="$java"
8755 else
8756 java_target="no-java"
8759 spec_obj_format="-m $aros_object_format"
8760 # Now process extra architecture-specific options.
8761 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8762 # as well as floating-point ABI.
8763 case "$aros_target_cpu" in
8764 *x86_64*)
8765 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8767 arm*)
8768 if test "$gcc_default_cpu" = ""; then
8769 gcc_default_cpu="armv6"
8771 if test "$gcc_default_fpu" = ""; then
8772 gcc_default_fpu="vfp"
8774 if test "$gcc_default_float_abi" = ""; then
8775 if test "$target_cpu" = "armhf"; then
8776 gcc_default_float_abi="hard"
8777 else
8778 gcc_default_float_abi="softfp"
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8783 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8785 # Check whether --with-cpu was given.
8786 if test "${with_cpu+set}" = set; then :
8787 withval=$with_cpu; aros_gcc_cpu="$withval"
8788 else
8789 aros_gcc_cpu=$gcc_default_cpu
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8793 $as_echo "$aros_gcc_cpu" >&6; }
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8796 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8798 # Check whether --with-fpu was given.
8799 if test "${with_fpu+set}" = set; then :
8800 withval=$with_fpu; aros_gcc_fpu="$withval"
8801 else
8802 aros_gcc_fpu=$gcc_default_fpu
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8806 $as_echo "$aros_gcc_fpu" >&6; }
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8809 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8811 # Check whether --with-float was given.
8812 if test "${with_float+set}" = set; then :
8813 withval=$with_float; aros_gcc_float_abi="$withval"
8814 else
8815 aros_gcc_float_abi=$gcc_default_float_abi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8819 $as_echo "$aros_gcc_float_abi" >&6; }
8821 aros_isa_flags="-marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8822 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8823 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8825 i386)
8826 aros_isa_flags="-m32 -march=i486"
8827 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8828 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8830 esac
8832 # Some architectures may need custom ELF specs.
8833 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8834 elf_specs_in=config/${aros_object_format}-specs.in
8835 else
8836 elf_specs_in=config/elf-specs.in
8839 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8840 # Since we override specs, we may need to put these defines there
8841 if test "$gcc_target_cpu" != ""; then
8842 gcc_target_cpu="-D__${gcc_target_cpu}__"
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8846 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8848 # Check whether --with-portssources was given.
8849 if test "${with_portssources+set}" = set; then :
8850 withval=$with_portssources; with_portssrcdir=$withval
8851 else
8852 with_portssrcdir="default"
8855 if test "$with_portssrcdir" = "default"; then
8856 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8857 else
8858 AROS_PORTSSRCDIR="$with_portssrcdir"
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8861 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8864 $as_echo_n "checking which bootloader to use... " >&6; }
8866 # Check whether --with-bootloader was given.
8867 if test "${with_bootloader+set}" = set; then :
8868 withval=$with_bootloader; target_bootloader=$withval
8869 else
8870 target_bootloader=$target_bootloader
8873 if test "$target_bootloader" = "none"; then
8874 aros_target_bootloader=""
8875 else
8876 aros_target_bootloader="$target_bootloader"
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8879 $as_echo "$target_bootloader" >&6; }
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8882 $as_echo_n "checking which icon-set to use... " >&6; }
8884 # Check whether --with-iconset was given.
8885 if test "${with_iconset+set}" = set; then :
8886 withval=$with_iconset; target_iconset=$withval
8887 else
8888 target_iconset="default"
8891 if test "$target_iconset" = "default"; then
8892 aros_target_iconset="Gorilla"
8893 target_iconset="default (Gorilla)"
8894 else
8895 aros_target_iconset="$target_iconset"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8898 $as_echo "$target_iconset" >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8901 $as_echo_n "checking which GUI Theme to use... " >&6; }
8903 # Check whether --with-theme was given.
8904 if test "${with_theme+set}" = set; then :
8905 withval=$with_theme; target_guitheme=$withval
8906 else
8907 target_guitheme="default"
8910 if test "$target_guitheme" = "default"; then
8911 aros_target_guitheme="Ice"
8912 else
8913 aros_target_guitheme="$target_guitheme"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8916 $as_echo "$aros_target_guitheme" >&6; }
8918 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8919 # for target code)
8920 cross_compiling=no
8922 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8923 cross_compiling=yes
8926 if test "$aros_host_cpu" == "x86_64" ; then
8927 if test "$aros_target_cpu" == "i386" ; then
8928 cross_compiling=no
8932 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8933 if test "$aros_host_arch" != "$aros_target_arch" ; then
8934 cross_compiling=yes
8936 else
8937 if test "$host_cc_elf" = "no" ; then
8938 cross_compiling=yes
8942 if test "$cross_compiling" = "no" ; then
8943 kernel_tool_prefix=""
8944 if test "$host_cc_elf" = "yes" ; then
8945 elf_tool_prefix=""
8949 if test "$kernel_tool_version" != ""; then
8950 kernel_tool_version="-$kernel_tool_version"
8953 #######################################################################
8954 ## Compute what toolchains to use, and their paths ##
8955 #######################################################################
8957 # This takes, as input:
8958 # crosstools {yes,no}
8959 # kernel_tool_version {"",[version]}
8960 # target_tool_version {"",[version]}
8961 # kernel_tool_prefix {none,[some-arch-os-]}
8962 # target_tool_prefix ${aros_target_cpu}-aros-
8963 # aros_tool_prefix ${aros_target_cpu}-aros-
8965 # The output is
8966 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8967 # Where the 'kernel' binaries are located
8968 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8969 # Where the 'target' binaries are located
8970 # (not the symlink farm - that is aros_target_*!)
8972 # The rules are:
8973 # if crosstools then
8974 # if kernel_tools_prefix = "no-kernel-prefix-"
8975 # aros_kernel_* = crosstools cc paths
8976 # aros_kernel_cc = elf cc wrapper around crosstools cc
8977 # else
8978 # VALIDATE(${kernel_tools_prefix}*)
8979 # aros_kernel_* = ${kernel_tools_prefix}*
8980 # if ${kernel_tools_prefix}cc is an AROS gcc
8981 # aros_kernel_cc = ${kernel_tools_prefix}cc
8982 # else
8983 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8984 # fi
8985 # fi
8987 # orig_target_* = aros built crosstools
8988 # orig_target_cc = elf cc wrapper around crosstools cc
8989 # else
8990 # VALIDATE(${kernel_tools_prefix}*)
8992 # orig_target_* = aros_kernel_*
8993 # if aros_kernel_cc is an AROS gcc
8994 # orig_target_cc = aros_kernel_cc
8995 # else
8996 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8997 # fi
8998 # fi
9000 target_tool_prefix="${aros_target_cpu}-aros-"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9003 $as_echo_n "checking which kernel tools... " >&6; }
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9005 $as_echo "$kernel_tool_prefix" >&6; };
9007 if test "$kernel_tool_prefix" = "none" ; then
9008 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9009 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9011 else
9012 # Kernel tools required - find them
9013 # Note that 'normally', aros_kernel_* overrides will be
9014 # empty, unless specified in the per-arch sections above.
9015 if test "x$aros_kernel_cpp" = "x"; then
9016 aros_kernel_cpp=${kernel_tool_prefix}cpp
9019 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9020 if test "$cross_compiling" = "yes" ; then
9021 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9022 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024 $as_echo_n "checking for $ac_word... " >&6; }
9025 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 case $aros_kernel_cpp in
9029 [\\/]* | ?:[\\/]*)
9030 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 for as_dir in $PATH
9036 IFS=$as_save_IFS
9037 test -z "$as_dir" && as_dir=.
9038 for ac_exec_ext in '' $ac_executable_extensions; do
9039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9040 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9042 break 2
9044 done
9045 done
9046 IFS=$as_save_IFS
9049 esac
9051 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9052 if test -n "$aros_kernel_cpp"; then
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9054 $as_echo "$aros_kernel_cpp" >&6; }
9055 else
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 $as_echo "no" >&6; }
9061 else
9062 if test "$GCC" = "yes"; then
9063 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9064 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9065 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 case $aros_kernel_cpp in
9072 [\\/]* | ?:[\\/]*)
9073 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in `dirname $aros_gcc_cpp`
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9087 done
9088 done
9089 IFS=$as_save_IFS
9092 esac
9094 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9095 if test -n "$aros_kernel_cpp"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9097 $as_echo "$aros_kernel_cpp" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9105 if test "$aros_kernel_cpp" = ""; then
9106 # Extract the first word of "cpp", so it can be a program name with args.
9107 set dummy cpp; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 case $aros_kernel_cpp in
9114 [\\/]* | ?:[\\/]*)
9115 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9129 done
9130 done
9131 IFS=$as_save_IFS
9134 esac
9136 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9137 if test -n "$aros_kernel_cpp"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9139 $as_echo "$aros_kernel_cpp" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9148 else
9149 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9150 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 $as_echo_n "checking for $ac_word... " >&6; }
9153 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 case $aros_kernel_cpp in
9157 [\\/]* | ?:[\\/]*)
9158 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9168 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 break 2
9172 done
9173 done
9174 IFS=$as_save_IFS
9177 esac
9179 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9180 if test -n "$aros_kernel_cpp"; then
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9182 $as_echo "$aros_kernel_cpp" >&6; }
9183 else
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185 $as_echo "no" >&6; }
9191 if test "$aros_kernel_cpp" = ""; then
9192 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9194 if test "x$aros_kernel_cc" = "x"; then
9195 aros_kernel_cc=${kernel_tool_prefix}gcc
9198 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9199 if test "$cross_compiling" = "yes" ; then
9200 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9201 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 case $aros_kernel_cc in
9208 [\\/]* | ?:[\\/]*)
9209 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 for as_dir in $PATH
9215 IFS=$as_save_IFS
9216 test -z "$as_dir" && as_dir=.
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9219 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9221 break 2
9223 done
9224 done
9225 IFS=$as_save_IFS
9228 esac
9230 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9231 if test -n "$aros_kernel_cc"; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9233 $as_echo "$aros_kernel_cc" >&6; }
9234 else
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9240 else
9241 if test "$GCC" = "yes"; then
9242 aros_gcc_cc=`$CC -print-prog-name=cc`
9243 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9244 set dummy `basename $aros_gcc_cc`; ac_word=$2
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 $as_echo_n "checking for $ac_word... " >&6; }
9247 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 case $aros_kernel_cc in
9251 [\\/]* | ?:[\\/]*)
9252 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in `dirname $aros_gcc_cc`
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9262 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9266 done
9267 done
9268 IFS=$as_save_IFS
9271 esac
9273 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9274 if test -n "$aros_kernel_cc"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9276 $as_echo "$aros_kernel_cc" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9284 if test "$aros_kernel_cc" = ""; then
9285 # Extract the first word of "cc", so it can be a program name with args.
9286 set dummy cc; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 case $aros_kernel_cc in
9293 [\\/]* | ?:[\\/]*)
9294 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9304 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9308 done
9309 done
9310 IFS=$as_save_IFS
9313 esac
9315 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9316 if test -n "$aros_kernel_cc"; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9318 $as_echo "$aros_kernel_cc" >&6; }
9319 else
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9327 else
9328 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9329 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331 $as_echo_n "checking for $ac_word... " >&6; }
9332 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 case $aros_kernel_cc in
9336 [\\/]* | ?:[\\/]*)
9337 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9343 IFS=$as_save_IFS
9344 test -z "$as_dir" && as_dir=.
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349 break 2
9351 done
9352 done
9353 IFS=$as_save_IFS
9356 esac
9358 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9359 if test -n "$aros_kernel_cc"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9361 $as_echo "$aros_kernel_cc" >&6; }
9362 else
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 $as_echo "no" >&6; }
9370 if test "$aros_kernel_cc" = ""; then
9371 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9373 if test "x$aros_kernel_cxx" = "x"; then
9374 aros_kernel_cxx=${kernel_tool_prefix}g++
9377 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9378 if test "$cross_compiling" = "yes" ; then
9379 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9380 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382 $as_echo_n "checking for $ac_word... " >&6; }
9383 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 case $aros_kernel_cxx in
9387 [\\/]* | ?:[\\/]*)
9388 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 break 2
9402 done
9403 done
9404 IFS=$as_save_IFS
9407 esac
9409 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9410 if test -n "$aros_kernel_cxx"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9412 $as_echo "$aros_kernel_cxx" >&6; }
9413 else
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9419 else
9420 if test "$GCC" = "yes"; then
9421 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9422 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9423 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 case $aros_kernel_cxx in
9430 [\\/]* | ?:[\\/]*)
9431 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435 for as_dir in `dirname $aros_gcc_cxx`
9437 IFS=$as_save_IFS
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9441 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 break 2
9445 done
9446 done
9447 IFS=$as_save_IFS
9450 esac
9452 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9453 if test -n "$aros_kernel_cxx"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9455 $as_echo "$aros_kernel_cxx" >&6; }
9456 else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9463 if test "$aros_kernel_cxx" = ""; then
9464 # Extract the first word of "cxx", so it can be a program name with args.
9465 set dummy cxx; ac_word=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 case $aros_kernel_cxx in
9472 [\\/]* | ?:[\\/]*)
9473 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in $PATH
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9483 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9487 done
9488 done
9489 IFS=$as_save_IFS
9492 esac
9494 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9495 if test -n "$aros_kernel_cxx"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9497 $as_echo "$aros_kernel_cxx" >&6; }
9498 else
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9506 else
9507 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9508 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 case $aros_kernel_cxx in
9515 [\\/]* | ?:[\\/]*)
9516 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $PATH
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9526 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9530 done
9531 done
9532 IFS=$as_save_IFS
9535 esac
9537 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9538 if test -n "$aros_kernel_cxx"; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9540 $as_echo "$aros_kernel_cxx" >&6; }
9541 else
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543 $as_echo "no" >&6; }
9549 # If it's set, make sure it's really there
9550 if test "x$aros_kernel_cxx" != "x" ; then
9551 if test "$aros_kernel_cxx" = ""; then
9552 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9556 if test "$aros_kernel_ld" = ""; then
9557 if test "$cross_compiling" = "yes" ; then
9558 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9559 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 case $aros_kernel_ld in
9566 [\\/]* | ?:[\\/]*)
9567 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571 for as_dir in $PATH
9573 IFS=$as_save_IFS
9574 test -z "$as_dir" && as_dir=.
9575 for ac_exec_ext in '' $ac_executable_extensions; do
9576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9577 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9579 break 2
9581 done
9582 done
9583 IFS=$as_save_IFS
9586 esac
9588 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9589 if test -n "$aros_kernel_ld"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9591 $as_echo "$aros_kernel_ld" >&6; }
9592 else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9598 else
9599 if test "$GCC" = "yes"; then
9600 aros_gcc_ld=`$CC -print-prog-name=ld`
9601 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9602 set dummy `basename $aros_gcc_ld`; ac_word=$2
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604 $as_echo_n "checking for $ac_word... " >&6; }
9605 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 case $aros_kernel_ld in
9609 [\\/]* | ?:[\\/]*)
9610 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614 for as_dir in `dirname $aros_gcc_ld`
9616 IFS=$as_save_IFS
9617 test -z "$as_dir" && as_dir=.
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9620 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9622 break 2
9624 done
9625 done
9626 IFS=$as_save_IFS
9629 esac
9631 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9632 if test -n "$aros_kernel_ld"; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9634 $as_echo "$aros_kernel_ld" >&6; }
9635 else
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9642 if test "$aros_kernel_ld" = ""; then
9643 # Extract the first word of "ld", so it can be a program name with args.
9644 set dummy ld; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 case $aros_kernel_ld in
9651 [\\/]* | ?:[\\/]*)
9652 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 for as_dir in $PATH
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
9660 for ac_exec_ext in '' $ac_executable_extensions; do
9661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9662 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 break 2
9666 done
9667 done
9668 IFS=$as_save_IFS
9671 esac
9673 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9674 if test -n "$aros_kernel_ld"; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9676 $as_echo "$aros_kernel_ld" >&6; }
9677 else
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9685 else
9686 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9687 set dummy $aros_kernel_ld; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 case $aros_kernel_ld in
9694 [\\/]* | ?:[\\/]*)
9695 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 for as_dir in $PATH
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9705 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 break 2
9709 done
9710 done
9711 IFS=$as_save_IFS
9714 esac
9716 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9717 if test -n "$aros_kernel_ld"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9719 $as_echo "$aros_kernel_ld" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9728 if test "$aros_kernel_ld" = ""; then
9729 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9732 if test "$aros_kernel_as" = ""; then
9733 if test "$cross_compiling" = "yes" ; then
9734 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9735 set dummy ${kernel_tool_prefix}as; ac_word=$2
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if ${ac_cv_path_aros_kernel_as+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 case $aros_kernel_as in
9742 [\\/]* | ?:[\\/]*)
9743 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in $PATH
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9753 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 break 2
9757 done
9758 done
9759 IFS=$as_save_IFS
9762 esac
9764 aros_kernel_as=$ac_cv_path_aros_kernel_as
9765 if test -n "$aros_kernel_as"; then
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9767 $as_echo "$aros_kernel_as" >&6; }
9768 else
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9770 $as_echo "no" >&6; }
9774 else
9775 if test "$GCC" = "yes"; then
9776 aros_gcc_as=`$CC -print-prog-name=as`
9777 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9778 set dummy `basename $aros_gcc_as`; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if ${ac_cv_path_aros_kernel_as+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 case $aros_kernel_as in
9785 [\\/]* | ?:[\\/]*)
9786 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in `dirname $aros_gcc_as`
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9796 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9800 done
9801 done
9802 IFS=$as_save_IFS
9805 esac
9807 aros_kernel_as=$ac_cv_path_aros_kernel_as
9808 if test -n "$aros_kernel_as"; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9810 $as_echo "$aros_kernel_as" >&6; }
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9818 if test "$aros_kernel_as" = ""; then
9819 # Extract the first word of "as", so it can be a program name with args.
9820 set dummy as; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if ${ac_cv_path_aros_kernel_as+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 case $aros_kernel_as in
9827 [\\/]* | ?:[\\/]*)
9828 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9838 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 break 2
9842 done
9843 done
9844 IFS=$as_save_IFS
9847 esac
9849 aros_kernel_as=$ac_cv_path_aros_kernel_as
9850 if test -n "$aros_kernel_as"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9852 $as_echo "$aros_kernel_as" >&6; }
9853 else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9861 else
9862 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9863 set dummy $aros_kernel_as; ac_word=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if ${ac_cv_path_aros_kernel_as+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 case $aros_kernel_as in
9870 [\\/]* | ?:[\\/]*)
9871 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 for as_dir in $PATH
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9885 done
9886 done
9887 IFS=$as_save_IFS
9890 esac
9892 aros_kernel_as=$ac_cv_path_aros_kernel_as
9893 if test -n "$aros_kernel_as"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9895 $as_echo "$aros_kernel_as" >&6; }
9896 else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9904 if test "$aros_kernel_as" = ""; then
9905 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9908 if test "$aros_kernel_ar" = ""; then
9909 if test "$cross_compiling" = "yes" ; then
9910 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9911 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 $as_echo_n "checking for $ac_word... " >&6; }
9914 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9915 $as_echo_n "(cached) " >&6
9916 else
9917 case $aros_kernel_ar in
9918 [\\/]* | ?:[\\/]*)
9919 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9933 done
9934 done
9935 IFS=$as_save_IFS
9938 esac
9940 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9941 if test -n "$aros_kernel_ar"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9943 $as_echo "$aros_kernel_ar" >&6; }
9944 else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9950 else
9951 if test "$GCC" = "yes"; then
9952 aros_gcc_ar=`$CC -print-prog-name=ar`
9953 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9954 set dummy `basename $aros_gcc_ar`; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 case $aros_kernel_ar in
9961 [\\/]* | ?:[\\/]*)
9962 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in `dirname $aros_gcc_ar`
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9972 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9976 done
9977 done
9978 IFS=$as_save_IFS
9981 esac
9983 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9984 if test -n "$aros_kernel_ar"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9986 $as_echo "$aros_kernel_ar" >&6; }
9987 else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9994 if test "$aros_kernel_ar" = ""; then
9995 # Extract the first word of "ar", so it can be a program name with args.
9996 set dummy ar; ac_word=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 case $aros_kernel_ar in
10003 [\\/]* | ?:[\\/]*)
10004 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10014 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 break 2
10018 done
10019 done
10020 IFS=$as_save_IFS
10023 esac
10025 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10026 if test -n "$aros_kernel_ar"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10028 $as_echo "$aros_kernel_ar" >&6; }
10029 else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031 $as_echo "no" >&6; }
10037 else
10038 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10039 set dummy $aros_kernel_ar; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 case $aros_kernel_ar in
10046 [\\/]* | ?:[\\/]*)
10047 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10057 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10061 done
10062 done
10063 IFS=$as_save_IFS
10066 esac
10068 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10069 if test -n "$aros_kernel_ar"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10071 $as_echo "$aros_kernel_ar" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10080 if test "$aros_kernel_ar" = ""; then
10081 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10084 if test "$aros_kernel_ranlib" = ""; then
10085 if test "$cross_compiling" = "yes" ; then
10086 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10087 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 case $aros_kernel_ranlib in
10094 [\\/]* | ?:[\\/]*)
10095 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10105 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10109 done
10110 done
10111 IFS=$as_save_IFS
10114 esac
10116 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10117 if test -n "$aros_kernel_ranlib"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10119 $as_echo "$aros_kernel_ranlib" >&6; }
10120 else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }
10126 else
10127 if test "$GCC" = "yes"; then
10128 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10129 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10130 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 case $aros_kernel_ranlib in
10137 [\\/]* | ?:[\\/]*)
10138 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in `dirname $aros_gcc_ranlib`
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10152 done
10153 done
10154 IFS=$as_save_IFS
10157 esac
10159 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10160 if test -n "$aros_kernel_ranlib"; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10162 $as_echo "$aros_kernel_ranlib" >&6; }
10163 else
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; }
10170 if test "$aros_kernel_ranlib" = ""; then
10171 # Extract the first word of "ranlib", so it can be a program name with args.
10172 set dummy ranlib; ac_word=$2
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 $as_echo_n "checking for $ac_word... " >&6; }
10175 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 case $aros_kernel_ranlib in
10179 [\\/]* | ?:[\\/]*)
10180 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10194 done
10195 done
10196 IFS=$as_save_IFS
10199 esac
10201 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10202 if test -n "$aros_kernel_ranlib"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10204 $as_echo "$aros_kernel_ranlib" >&6; }
10205 else
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10213 else
10214 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10215 set dummy $aros_kernel_ranlib; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 case $aros_kernel_ranlib in
10222 [\\/]* | ?:[\\/]*)
10223 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10237 done
10238 done
10239 IFS=$as_save_IFS
10242 esac
10244 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10245 if test -n "$aros_kernel_ranlib"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10247 $as_echo "$aros_kernel_ranlib" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10256 if test "$aros_kernel_ranlib" = ""; then
10257 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10260 if test "$aros_kernel_nm" = ""; then
10261 if test "$cross_compiling" = "yes" ; then
10262 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10263 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265 $as_echo_n "checking for $ac_word... " >&6; }
10266 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10267 $as_echo_n "(cached) " >&6
10268 else
10269 case $aros_kernel_nm in
10270 [\\/]* | ?:[\\/]*)
10271 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10285 done
10286 done
10287 IFS=$as_save_IFS
10290 esac
10292 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10293 if test -n "$aros_kernel_nm"; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10295 $as_echo "$aros_kernel_nm" >&6; }
10296 else
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10302 else
10303 if test "$GCC" = "yes"; then
10304 aros_gcc_nm=`$CC -print-prog-name=nm`
10305 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10306 set dummy `basename $aros_gcc_nm`; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 case $aros_kernel_nm in
10313 [\\/]* | ?:[\\/]*)
10314 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in `dirname $aros_gcc_nm`
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10333 esac
10335 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10336 if test -n "$aros_kernel_nm"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10338 $as_echo "$aros_kernel_nm" >&6; }
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10346 if test "$aros_kernel_nm" = ""; then
10347 # Extract the first word of "nm", so it can be a program name with args.
10348 set dummy nm; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 case $aros_kernel_nm in
10355 [\\/]* | ?:[\\/]*)
10356 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360 for as_dir in $PATH
10362 IFS=$as_save_IFS
10363 test -z "$as_dir" && as_dir=.
10364 for ac_exec_ext in '' $ac_executable_extensions; do
10365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10366 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 break 2
10370 done
10371 done
10372 IFS=$as_save_IFS
10375 esac
10377 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10378 if test -n "$aros_kernel_nm"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10380 $as_echo "$aros_kernel_nm" >&6; }
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10389 else
10390 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10391 set dummy $aros_kernel_nm; ac_word=$2
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10393 $as_echo_n "checking for $ac_word... " >&6; }
10394 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10395 $as_echo_n "(cached) " >&6
10396 else
10397 case $aros_kernel_nm in
10398 [\\/]* | ?:[\\/]*)
10399 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10413 done
10414 done
10415 IFS=$as_save_IFS
10418 esac
10420 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10421 if test -n "$aros_kernel_nm"; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10423 $as_echo "$aros_kernel_nm" >&6; }
10424 else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 $as_echo "no" >&6; }
10432 if test "$aros_kernel_nm" = ""; then
10433 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10436 if test "$aros_kernel_strip" = ""; then
10437 if test "$cross_compiling" = "yes" ; then
10438 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10439 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 case $aros_kernel_strip in
10446 [\\/]* | ?:[\\/]*)
10447 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10453 IFS=$as_save_IFS
10454 test -z "$as_dir" && as_dir=.
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10457 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459 break 2
10461 done
10462 done
10463 IFS=$as_save_IFS
10466 esac
10468 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10469 if test -n "$aros_kernel_strip"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10471 $as_echo "$aros_kernel_strip" >&6; }
10472 else
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10478 else
10479 if test "$GCC" = "yes"; then
10480 aros_gcc_strip=`$CC -print-prog-name=strip`
10481 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10482 set dummy `basename $aros_gcc_strip`; ac_word=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 $as_echo_n "checking for $ac_word... " >&6; }
10485 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 case $aros_kernel_strip in
10489 [\\/]* | ?:[\\/]*)
10490 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in `dirname $aros_gcc_strip`
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 break 2
10504 done
10505 done
10506 IFS=$as_save_IFS
10509 esac
10511 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10512 if test -n "$aros_kernel_strip"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10514 $as_echo "$aros_kernel_strip" >&6; }
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10522 if test "$aros_kernel_strip" = ""; then
10523 # Extract the first word of "strip", so it can be a program name with args.
10524 set dummy strip; ac_word=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526 $as_echo_n "checking for $ac_word... " >&6; }
10527 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 case $aros_kernel_strip in
10531 [\\/]* | ?:[\\/]*)
10532 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10546 done
10547 done
10548 IFS=$as_save_IFS
10551 esac
10553 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10554 if test -n "$aros_kernel_strip"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10556 $as_echo "$aros_kernel_strip" >&6; }
10557 else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10565 else
10566 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10567 set dummy $aros_kernel_strip; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 case $aros_kernel_strip in
10574 [\\/]* | ?:[\\/]*)
10575 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10585 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10589 done
10590 done
10591 IFS=$as_save_IFS
10594 esac
10596 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10597 if test -n "$aros_kernel_strip"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10599 $as_echo "$aros_kernel_strip" >&6; }
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10608 if test "$aros_kernel_strip" = ""; then
10609 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10612 # Objcopy and objdump are not required for the kernel
10613 # toolchain on many architectures.
10614 # So we'll look for them, but not make them strictly required.
10616 if test "$aros_kernel_objcopy" = ""; then
10617 if test "$cross_compiling" = "yes" ; then
10618 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10619 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10621 $as_echo_n "checking for $ac_word... " >&6; }
10622 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 case $aros_kernel_objcopy in
10626 [\\/]* | ?:[\\/]*)
10627 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631 for as_dir in $PATH
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10641 done
10642 done
10643 IFS=$as_save_IFS
10646 esac
10648 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10649 if test -n "$aros_kernel_objcopy"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10651 $as_echo "$aros_kernel_objcopy" >&6; }
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10658 else
10659 if test "$GCC" = "yes"; then
10660 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10661 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10662 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 case $aros_kernel_objcopy in
10669 [\\/]* | ?:[\\/]*)
10670 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in `dirname $aros_gcc_objcopy`
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10680 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10684 done
10685 done
10686 IFS=$as_save_IFS
10689 esac
10691 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10692 if test -n "$aros_kernel_objcopy"; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10694 $as_echo "$aros_kernel_objcopy" >&6; }
10695 else
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; }
10702 if test "$aros_kernel_objcopy" = ""; then
10703 # Extract the first word of "objcopy", so it can be a program name with args.
10704 set dummy objcopy; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 case $aros_kernel_objcopy in
10711 [\\/]* | ?:[\\/]*)
10712 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in $PATH
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10722 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 break 2
10726 done
10727 done
10728 IFS=$as_save_IFS
10731 esac
10733 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10734 if test -n "$aros_kernel_objcopy"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10736 $as_echo "$aros_kernel_objcopy" >&6; }
10737 else
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10745 else
10746 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10747 set dummy $aros_kernel_objcopy; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 case $aros_kernel_objcopy in
10754 [\\/]* | ?:[\\/]*)
10755 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10769 done
10770 done
10771 IFS=$as_save_IFS
10774 esac
10776 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10777 if test -n "$aros_kernel_objcopy"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10779 $as_echo "$aros_kernel_objcopy" >&6; }
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10789 if test "$aros_kernel_objdump" = ""; then
10790 if test "$cross_compiling" = "yes" ; then
10791 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10792 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794 $as_echo_n "checking for $ac_word... " >&6; }
10795 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 case $aros_kernel_objdump in
10799 [\\/]* | ?:[\\/]*)
10800 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10810 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 break 2
10814 done
10815 done
10816 IFS=$as_save_IFS
10819 esac
10821 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10822 if test -n "$aros_kernel_objdump"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10824 $as_echo "$aros_kernel_objdump" >&6; }
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; }
10831 else
10832 if test "$GCC" = "yes"; then
10833 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10834 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10835 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837 $as_echo_n "checking for $ac_word... " >&6; }
10838 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 case $aros_kernel_objdump in
10842 [\\/]* | ?:[\\/]*)
10843 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847 for as_dir in `dirname $aros_gcc_objdump`
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10853 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10857 done
10858 done
10859 IFS=$as_save_IFS
10862 esac
10864 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10865 if test -n "$aros_kernel_objdump"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10867 $as_echo "$aros_kernel_objdump" >&6; }
10868 else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870 $as_echo "no" >&6; }
10875 if test "$aros_kernel_objdump" = ""; then
10876 # Extract the first word of "objdump", so it can be a program name with args.
10877 set dummy objdump; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 case $aros_kernel_objdump in
10884 [\\/]* | ?:[\\/]*)
10885 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10899 done
10900 done
10901 IFS=$as_save_IFS
10904 esac
10906 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10907 if test -n "$aros_kernel_objdump"; then
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10909 $as_echo "$aros_kernel_objdump" >&6; }
10910 else
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912 $as_echo "no" >&6; }
10918 else
10919 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10920 set dummy $aros_kernel_objdump; ac_word=$2
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922 $as_echo_n "checking for $ac_word... " >&6; }
10923 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 case $aros_kernel_objdump in
10927 [\\/]* | ?:[\\/]*)
10928 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10938 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10942 done
10943 done
10944 IFS=$as_save_IFS
10947 esac
10949 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10950 if test -n "$aros_kernel_objdump"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10952 $as_echo "$aros_kernel_objdump" >&6; }
10953 else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10961 if test "x${crosstools}" != "xyes" ; then
10962 if test "$aros_kernel_objcopy" = ""; then
10963 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10965 if test "$aros_kernel_objdump" = ""; then
10966 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10972 $as_echo_n "checking which target tools to use... " >&6; }
10973 if test "$aros_target_toolchain" = "yes"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10975 $as_echo "$target_tool_prefix" >&6; }
10976 # We are building AROS crosstools
10977 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10978 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10979 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10980 orig_target_cpp="${tmp_tool_prefix}cpp"
10981 orig_target_ld="${tmp_tool_prefix}ld"
10982 orig_target_as="${tmp_tool_prefix}as"
10983 orig_target_ar="${tmp_tool_prefix}ar"
10984 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10985 orig_target_nm="${tmp_tool_prefix}nm"
10986 orig_target_strip="${tmp_tool_prefix}strip"
10987 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10988 orig_target_objdump="${tmp_tool_prefix}objdump"
10989 else
10990 # Determine whether AROS or ELF tools should be used
10991 if test "$aros_tool_prefix" = "none"; then
10992 aros_tool_prefix="${elf_tool_prefix}"
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10996 $as_echo "$aros_tool_prefix" >&6; }
10997 # We are *not* building AROS crosstools - use the AROS or ELF tools
10999 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
11000 if test "$cross_compiling" = "yes" ; then
11001 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11002 set dummy ${target_tool_prefix}cpp; ac_word=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 $as_echo_n "checking for $ac_word... " >&6; }
11005 if ${ac_cv_path_orig_target_cpp+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 case $orig_target_cpp in
11009 [\\/]* | ?:[\\/]*)
11010 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11024 done
11025 done
11026 IFS=$as_save_IFS
11029 esac
11031 orig_target_cpp=$ac_cv_path_orig_target_cpp
11032 if test -n "$orig_target_cpp"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11034 $as_echo "$orig_target_cpp" >&6; }
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11041 else
11042 if test "$GCC" = "yes"; then
11043 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11044 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11045 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 $as_echo_n "checking for $ac_word... " >&6; }
11048 if ${ac_cv_path_orig_target_cpp+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 case $orig_target_cpp in
11052 [\\/]* | ?:[\\/]*)
11053 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in `dirname $aros_gcc_cpp`
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11063 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11067 done
11068 done
11069 IFS=$as_save_IFS
11072 esac
11074 orig_target_cpp=$ac_cv_path_orig_target_cpp
11075 if test -n "$orig_target_cpp"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11077 $as_echo "$orig_target_cpp" >&6; }
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11085 if test "$orig_target_cpp" = ""; then
11086 # Extract the first word of "cpp", so it can be a program name with args.
11087 set dummy cpp; ac_word=$2
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089 $as_echo_n "checking for $ac_word... " >&6; }
11090 if ${ac_cv_path_orig_target_cpp+:} false; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 case $orig_target_cpp in
11094 [\\/]* | ?:[\\/]*)
11095 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $PATH
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11109 done
11110 done
11111 IFS=$as_save_IFS
11114 esac
11116 orig_target_cpp=$ac_cv_path_orig_target_cpp
11117 if test -n "$orig_target_cpp"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11119 $as_echo "$orig_target_cpp" >&6; }
11120 else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11128 else
11129 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11130 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if ${ac_cv_path_orig_target_cpp+:} false; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 case $orig_target_cpp in
11137 [\\/]* | ?:[\\/]*)
11138 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11152 done
11153 done
11154 IFS=$as_save_IFS
11157 esac
11159 orig_target_cpp=$ac_cv_path_orig_target_cpp
11160 if test -n "$orig_target_cpp"; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11162 $as_echo "$orig_target_cpp" >&6; }
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11171 if test "$orig_target_cpp" = ""; then
11172 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11175 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11176 if test "$cross_compiling" = "yes" ; then
11177 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11178 set dummy ${target_tool_prefix}gcc; ac_word=$2
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180 $as_echo_n "checking for $ac_word... " >&6; }
11181 if ${ac_cv_path_orig_target_cc+:} false; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 case $orig_target_cc in
11185 [\\/]* | ?:[\\/]*)
11186 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11200 done
11201 done
11202 IFS=$as_save_IFS
11205 esac
11207 orig_target_cc=$ac_cv_path_orig_target_cc
11208 if test -n "$orig_target_cc"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11210 $as_echo "$orig_target_cc" >&6; }
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11217 else
11218 if test "$GCC" = "yes"; then
11219 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11220 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11221 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223 $as_echo_n "checking for $ac_word... " >&6; }
11224 if ${ac_cv_path_orig_target_cc+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 case $orig_target_cc in
11228 [\\/]* | ?:[\\/]*)
11229 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in `dirname $aros_gcc_gcc`
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11243 done
11244 done
11245 IFS=$as_save_IFS
11248 esac
11250 orig_target_cc=$ac_cv_path_orig_target_cc
11251 if test -n "$orig_target_cc"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11253 $as_echo "$orig_target_cc" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11261 if test "$orig_target_cc" = ""; then
11262 # Extract the first word of "gcc", so it can be a program name with args.
11263 set dummy gcc; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_path_orig_target_cc+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 case $orig_target_cc in
11270 [\\/]* | ?:[\\/]*)
11271 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11285 done
11286 done
11287 IFS=$as_save_IFS
11290 esac
11292 orig_target_cc=$ac_cv_path_orig_target_cc
11293 if test -n "$orig_target_cc"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11295 $as_echo "$orig_target_cc" >&6; }
11296 else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11304 else
11305 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11306 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 $as_echo_n "checking for $ac_word... " >&6; }
11309 if ${ac_cv_path_orig_target_cc+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 case $orig_target_cc in
11313 [\\/]* | ?:[\\/]*)
11314 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318 for as_dir in $PATH
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 break 2
11328 done
11329 done
11330 IFS=$as_save_IFS
11333 esac
11335 orig_target_cc=$ac_cv_path_orig_target_cc
11336 if test -n "$orig_target_cc"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11338 $as_echo "$orig_target_cc" >&6; }
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11347 if test "$orig_target_cc" = ""; then
11348 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11351 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11352 if test "$cross_compiling" = "yes" ; then
11353 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11354 set dummy ${target_tool_prefix}g++; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if ${ac_cv_path_orig_target_cxx+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 case $orig_target_cxx in
11361 [\\/]* | ?:[\\/]*)
11362 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $PATH
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 break 2
11376 done
11377 done
11378 IFS=$as_save_IFS
11381 esac
11383 orig_target_cxx=$ac_cv_path_orig_target_cxx
11384 if test -n "$orig_target_cxx"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11386 $as_echo "$orig_target_cxx" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11393 else
11394 if test "$GCC" = "yes"; then
11395 aros_gcc_g++=`$CC -print-prog-name=g++`
11396 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11397 set dummy `basename $aros_gcc_g++`; ac_word=$2
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11399 $as_echo_n "checking for $ac_word... " >&6; }
11400 if ${ac_cv_path_orig_target_cxx+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 case $orig_target_cxx in
11404 [\\/]* | ?:[\\/]*)
11405 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in `dirname $aros_gcc_g++`
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11415 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11419 done
11420 done
11421 IFS=$as_save_IFS
11424 esac
11426 orig_target_cxx=$ac_cv_path_orig_target_cxx
11427 if test -n "$orig_target_cxx"; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11429 $as_echo "$orig_target_cxx" >&6; }
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11437 if test "$orig_target_cxx" = ""; then
11438 # Extract the first word of "g++", so it can be a program name with args.
11439 set dummy g++; ac_word=$2
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441 $as_echo_n "checking for $ac_word... " >&6; }
11442 if ${ac_cv_path_orig_target_cxx+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 case $orig_target_cxx in
11446 [\\/]* | ?:[\\/]*)
11447 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11453 IFS=$as_save_IFS
11454 test -z "$as_dir" && as_dir=.
11455 for ac_exec_ext in '' $ac_executable_extensions; do
11456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11457 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11459 break 2
11461 done
11462 done
11463 IFS=$as_save_IFS
11466 esac
11468 orig_target_cxx=$ac_cv_path_orig_target_cxx
11469 if test -n "$orig_target_cxx"; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11471 $as_echo "$orig_target_cxx" >&6; }
11472 else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11480 else
11481 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11482 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if ${ac_cv_path_orig_target_cxx+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 case $orig_target_cxx in
11489 [\\/]* | ?:[\\/]*)
11490 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11500 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11504 done
11505 done
11506 IFS=$as_save_IFS
11509 esac
11511 orig_target_cxx=$ac_cv_path_orig_target_cxx
11512 if test -n "$orig_target_cxx"; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11514 $as_echo "$orig_target_cxx" >&6; }
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 $as_echo "no" >&6; }
11523 if test "$orig_target_cxx" = ""; then
11524 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11527 if test "${aros_tool_prefix}ld" = ""; then
11528 if test "$cross_compiling" = "yes" ; then
11529 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11530 set dummy ${target_tool_prefix}gcc; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if ${ac_cv_path_orig_target_ld+:} false; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 case $orig_target_ld in
11537 [\\/]* | ?:[\\/]*)
11538 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11544 IFS=$as_save_IFS
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11548 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550 break 2
11552 done
11553 done
11554 IFS=$as_save_IFS
11557 esac
11559 orig_target_ld=$ac_cv_path_orig_target_ld
11560 if test -n "$orig_target_ld"; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11562 $as_echo "$orig_target_ld" >&6; }
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11569 else
11570 if test "$GCC" = "yes"; then
11571 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11572 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11573 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_path_orig_target_ld+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 case $orig_target_ld in
11580 [\\/]* | ?:[\\/]*)
11581 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in `dirname $aros_gcc_gcc`
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11591 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 break 2
11595 done
11596 done
11597 IFS=$as_save_IFS
11600 esac
11602 orig_target_ld=$ac_cv_path_orig_target_ld
11603 if test -n "$orig_target_ld"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11605 $as_echo "$orig_target_ld" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11613 if test "$orig_target_ld" = ""; then
11614 # Extract the first word of "gcc", so it can be a program name with args.
11615 set dummy gcc; ac_word=$2
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if ${ac_cv_path_orig_target_ld+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 case $orig_target_ld in
11622 [\\/]* | ?:[\\/]*)
11623 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11633 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 break 2
11637 done
11638 done
11639 IFS=$as_save_IFS
11642 esac
11644 orig_target_ld=$ac_cv_path_orig_target_ld
11645 if test -n "$orig_target_ld"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11647 $as_echo "$orig_target_ld" >&6; }
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11656 else
11657 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11658 set dummy ${aros_tool_prefix}ld; ac_word=$2
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660 $as_echo_n "checking for $ac_word... " >&6; }
11661 if ${ac_cv_path_orig_target_ld+:} false; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 case $orig_target_ld in
11665 [\\/]* | ?:[\\/]*)
11666 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670 for as_dir in $PATH
11672 IFS=$as_save_IFS
11673 test -z "$as_dir" && as_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11676 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11678 break 2
11680 done
11681 done
11682 IFS=$as_save_IFS
11685 esac
11687 orig_target_ld=$ac_cv_path_orig_target_ld
11688 if test -n "$orig_target_ld"; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11690 $as_echo "$orig_target_ld" >&6; }
11691 else
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693 $as_echo "no" >&6; }
11699 if test "$orig_target_ld" = ""; then
11700 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11703 if test "${aros_tool_prefix}as" = ""; then
11704 if test "$cross_compiling" = "yes" ; then
11705 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11706 set dummy ${target_tool_prefix}as; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if ${ac_cv_path_orig_target_as+:} false; then :
11710 $as_echo_n "(cached) " >&6
11711 else
11712 case $orig_target_as in
11713 [\\/]* | ?:[\\/]*)
11714 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11720 IFS=$as_save_IFS
11721 test -z "$as_dir" && as_dir=.
11722 for ac_exec_ext in '' $ac_executable_extensions; do
11723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11724 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 break 2
11728 done
11729 done
11730 IFS=$as_save_IFS
11733 esac
11735 orig_target_as=$ac_cv_path_orig_target_as
11736 if test -n "$orig_target_as"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11738 $as_echo "$orig_target_as" >&6; }
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11745 else
11746 if test "$GCC" = "yes"; then
11747 aros_gcc_as=`$CC -print-prog-name=as`
11748 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11749 set dummy `basename $aros_gcc_as`; ac_word=$2
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if ${ac_cv_path_orig_target_as+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 case $orig_target_as in
11756 [\\/]* | ?:[\\/]*)
11757 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in `dirname $aros_gcc_as`
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11767 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11769 break 2
11771 done
11772 done
11773 IFS=$as_save_IFS
11776 esac
11778 orig_target_as=$ac_cv_path_orig_target_as
11779 if test -n "$orig_target_as"; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11781 $as_echo "$orig_target_as" >&6; }
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11789 if test "$orig_target_as" = ""; then
11790 # Extract the first word of "as", so it can be a program name with args.
11791 set dummy as; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if ${ac_cv_path_orig_target_as+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 case $orig_target_as in
11798 [\\/]* | ?:[\\/]*)
11799 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11805 IFS=$as_save_IFS
11806 test -z "$as_dir" && as_dir=.
11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11809 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 break 2
11813 done
11814 done
11815 IFS=$as_save_IFS
11818 esac
11820 orig_target_as=$ac_cv_path_orig_target_as
11821 if test -n "$orig_target_as"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11823 $as_echo "$orig_target_as" >&6; }
11824 else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11832 else
11833 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11834 set dummy ${aros_tool_prefix}as; ac_word=$2
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11836 $as_echo_n "checking for $ac_word... " >&6; }
11837 if ${ac_cv_path_orig_target_as+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 case $orig_target_as in
11841 [\\/]* | ?:[\\/]*)
11842 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11848 IFS=$as_save_IFS
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 break 2
11856 done
11857 done
11858 IFS=$as_save_IFS
11861 esac
11863 orig_target_as=$ac_cv_path_orig_target_as
11864 if test -n "$orig_target_as"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11866 $as_echo "$orig_target_as" >&6; }
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11875 if test "$orig_target_as" = ""; then
11876 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11879 if test "${aros_tool_prefix}ar" = ""; then
11880 if test "$cross_compiling" = "yes" ; then
11881 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11882 set dummy ${target_tool_prefix}ar; ac_word=$2
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884 $as_echo_n "checking for $ac_word... " >&6; }
11885 if ${ac_cv_path_orig_target_ar+:} false; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 case $orig_target_ar in
11889 [\\/]* | ?:[\\/]*)
11890 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894 for as_dir in $PATH
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11902 break 2
11904 done
11905 done
11906 IFS=$as_save_IFS
11909 esac
11911 orig_target_ar=$ac_cv_path_orig_target_ar
11912 if test -n "$orig_target_ar"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11914 $as_echo "$orig_target_ar" >&6; }
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11921 else
11922 if test "$GCC" = "yes"; then
11923 aros_gcc_ar=`$CC -print-prog-name=ar`
11924 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11925 set dummy `basename $aros_gcc_ar`; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927 $as_echo_n "checking for $ac_word... " >&6; }
11928 if ${ac_cv_path_orig_target_ar+:} false; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 case $orig_target_ar in
11932 [\\/]* | ?:[\\/]*)
11933 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in `dirname $aros_gcc_ar`
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11947 done
11948 done
11949 IFS=$as_save_IFS
11952 esac
11954 orig_target_ar=$ac_cv_path_orig_target_ar
11955 if test -n "$orig_target_ar"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11957 $as_echo "$orig_target_ar" >&6; }
11958 else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11965 if test "$orig_target_ar" = ""; then
11966 # Extract the first word of "ar", so it can be a program name with args.
11967 set dummy ar; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if ${ac_cv_path_orig_target_ar+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 case $orig_target_ar in
11974 [\\/]* | ?:[\\/]*)
11975 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11979 for as_dir in $PATH
11981 IFS=$as_save_IFS
11982 test -z "$as_dir" && as_dir=.
11983 for ac_exec_ext in '' $ac_executable_extensions; do
11984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11985 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11987 break 2
11989 done
11990 done
11991 IFS=$as_save_IFS
11994 esac
11996 orig_target_ar=$ac_cv_path_orig_target_ar
11997 if test -n "$orig_target_ar"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11999 $as_echo "$orig_target_ar" >&6; }
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12008 else
12009 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
12010 set dummy ${aros_tool_prefix}ar; ac_word=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if ${ac_cv_path_orig_target_ar+:} false; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 case $orig_target_ar in
12017 [\\/]* | ?:[\\/]*)
12018 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022 for as_dir in $PATH
12024 IFS=$as_save_IFS
12025 test -z "$as_dir" && as_dir=.
12026 for ac_exec_ext in '' $ac_executable_extensions; do
12027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030 break 2
12032 done
12033 done
12034 IFS=$as_save_IFS
12037 esac
12039 orig_target_ar=$ac_cv_path_orig_target_ar
12040 if test -n "$orig_target_ar"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12042 $as_echo "$orig_target_ar" >&6; }
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12051 if test "$orig_target_ar" = ""; then
12052 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12055 if test "${aros_tool_prefix}ranlib" = ""; then
12056 if test "$cross_compiling" = "yes" ; then
12057 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12058 set dummy ${target_tool_prefix}ar; ac_word=$2
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060 $as_echo_n "checking for $ac_word... " >&6; }
12061 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 case $orig_target_ranlib in
12065 [\\/]* | ?:[\\/]*)
12066 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12072 IFS=$as_save_IFS
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12076 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 break 2
12080 done
12081 done
12082 IFS=$as_save_IFS
12085 esac
12087 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12088 if test -n "$orig_target_ranlib"; then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12090 $as_echo "$orig_target_ranlib" >&6; }
12091 else
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093 $as_echo "no" >&6; }
12097 else
12098 if test "$GCC" = "yes"; then
12099 aros_gcc_ar=`$CC -print-prog-name=ar`
12100 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12101 set dummy `basename $aros_gcc_ar`; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 case $orig_target_ranlib in
12108 [\\/]* | ?:[\\/]*)
12109 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in `dirname $aros_gcc_ar`
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12123 done
12124 done
12125 IFS=$as_save_IFS
12128 esac
12130 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12131 if test -n "$orig_target_ranlib"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12133 $as_echo "$orig_target_ranlib" >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12141 if test "$orig_target_ranlib" = ""; then
12142 # Extract the first word of "ar", so it can be a program name with args.
12143 set dummy ar; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 case $orig_target_ranlib in
12150 [\\/]* | ?:[\\/]*)
12151 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 break 2
12165 done
12166 done
12167 IFS=$as_save_IFS
12170 esac
12172 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12173 if test -n "$orig_target_ranlib"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12175 $as_echo "$orig_target_ranlib" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12184 else
12185 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12186 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 case $orig_target_ranlib in
12193 [\\/]* | ?:[\\/]*)
12194 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12204 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 break 2
12208 done
12209 done
12210 IFS=$as_save_IFS
12213 esac
12215 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12216 if test -n "$orig_target_ranlib"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12218 $as_echo "$orig_target_ranlib" >&6; }
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221 $as_echo "no" >&6; }
12227 if test "$orig_target_ranlib" = ""; then
12228 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12231 if test "${aros_tool_prefix}nm" = ""; then
12232 if test "$cross_compiling" = "yes" ; then
12233 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12234 set dummy ${target_tool_prefix}nm; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if ${ac_cv_path_orig_target_nm+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 case $orig_target_nm in
12241 [\\/]* | ?:[\\/]*)
12242 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12256 done
12257 done
12258 IFS=$as_save_IFS
12261 esac
12263 orig_target_nm=$ac_cv_path_orig_target_nm
12264 if test -n "$orig_target_nm"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12266 $as_echo "$orig_target_nm" >&6; }
12267 else
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12273 else
12274 if test "$GCC" = "yes"; then
12275 aros_gcc_nm=`$CC -print-prog-name=nm`
12276 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12277 set dummy `basename $aros_gcc_nm`; ac_word=$2
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279 $as_echo_n "checking for $ac_word... " >&6; }
12280 if ${ac_cv_path_orig_target_nm+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 case $orig_target_nm in
12284 [\\/]* | ?:[\\/]*)
12285 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in `dirname $aros_gcc_nm`
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 break 2
12299 done
12300 done
12301 IFS=$as_save_IFS
12304 esac
12306 orig_target_nm=$ac_cv_path_orig_target_nm
12307 if test -n "$orig_target_nm"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12309 $as_echo "$orig_target_nm" >&6; }
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12317 if test "$orig_target_nm" = ""; then
12318 # Extract the first word of "nm", so it can be a program name with args.
12319 set dummy nm; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if ${ac_cv_path_orig_target_nm+:} false; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 case $orig_target_nm in
12326 [\\/]* | ?:[\\/]*)
12327 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12333 IFS=$as_save_IFS
12334 test -z "$as_dir" && as_dir=.
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12337 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339 break 2
12341 done
12342 done
12343 IFS=$as_save_IFS
12346 esac
12348 orig_target_nm=$ac_cv_path_orig_target_nm
12349 if test -n "$orig_target_nm"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12351 $as_echo "$orig_target_nm" >&6; }
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12360 else
12361 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12362 set dummy ${aros_tool_prefix}nm; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if ${ac_cv_path_orig_target_nm+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 case $orig_target_nm in
12369 [\\/]* | ?:[\\/]*)
12370 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12380 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12384 done
12385 done
12386 IFS=$as_save_IFS
12389 esac
12391 orig_target_nm=$ac_cv_path_orig_target_nm
12392 if test -n "$orig_target_nm"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12394 $as_echo "$orig_target_nm" >&6; }
12395 else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12403 if test "$orig_target_nm" = ""; then
12404 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12407 if test "${aros_tool_prefix}strip" = ""; then
12408 if test "$cross_compiling" = "yes" ; then
12409 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12410 set dummy ${target_tool_prefix}strip; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if ${ac_cv_path_orig_target_strip+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 case $orig_target_strip in
12417 [\\/]* | ?:[\\/]*)
12418 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12428 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 break 2
12432 done
12433 done
12434 IFS=$as_save_IFS
12437 esac
12439 orig_target_strip=$ac_cv_path_orig_target_strip
12440 if test -n "$orig_target_strip"; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12442 $as_echo "$orig_target_strip" >&6; }
12443 else
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12449 else
12450 if test "$GCC" = "yes"; then
12451 aros_gcc_strip=`$CC -print-prog-name=strip`
12452 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12453 set dummy `basename $aros_gcc_strip`; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if ${ac_cv_path_orig_target_strip+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 case $orig_target_strip in
12460 [\\/]* | ?:[\\/]*)
12461 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in `dirname $aros_gcc_strip`
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12471 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12475 done
12476 done
12477 IFS=$as_save_IFS
12480 esac
12482 orig_target_strip=$ac_cv_path_orig_target_strip
12483 if test -n "$orig_target_strip"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12485 $as_echo "$orig_target_strip" >&6; }
12486 else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12493 if test "$orig_target_strip" = ""; then
12494 # Extract the first word of "strip", so it can be a program name with args.
12495 set dummy strip; ac_word=$2
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497 $as_echo_n "checking for $ac_word... " >&6; }
12498 if ${ac_cv_path_orig_target_strip+:} false; then :
12499 $as_echo_n "(cached) " >&6
12500 else
12501 case $orig_target_strip in
12502 [\\/]* | ?:[\\/]*)
12503 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507 for as_dir in $PATH
12509 IFS=$as_save_IFS
12510 test -z "$as_dir" && as_dir=.
12511 for ac_exec_ext in '' $ac_executable_extensions; do
12512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12513 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515 break 2
12517 done
12518 done
12519 IFS=$as_save_IFS
12522 esac
12524 orig_target_strip=$ac_cv_path_orig_target_strip
12525 if test -n "$orig_target_strip"; then
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12527 $as_echo "$orig_target_strip" >&6; }
12528 else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530 $as_echo "no" >&6; }
12536 else
12537 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12538 set dummy ${aros_tool_prefix}strip; ac_word=$2
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 $as_echo_n "checking for $ac_word... " >&6; }
12541 if ${ac_cv_path_orig_target_strip+:} false; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 case $orig_target_strip in
12545 [\\/]* | ?:[\\/]*)
12546 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12552 IFS=$as_save_IFS
12553 test -z "$as_dir" && as_dir=.
12554 for ac_exec_ext in '' $ac_executable_extensions; do
12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12556 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558 break 2
12560 done
12561 done
12562 IFS=$as_save_IFS
12565 esac
12567 orig_target_strip=$ac_cv_path_orig_target_strip
12568 if test -n "$orig_target_strip"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12570 $as_echo "$orig_target_strip" >&6; }
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12579 if test "$orig_target_strip" = ""; then
12580 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12583 if test "${aros_tool_prefix}objcopy" = ""; then
12584 if test "$cross_compiling" = "yes" ; then
12585 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12586 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 case $orig_target_objcopy in
12593 [\\/]* | ?:[\\/]*)
12594 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12608 done
12609 done
12610 IFS=$as_save_IFS
12613 esac
12615 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12616 if test -n "$orig_target_objcopy"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12618 $as_echo "$orig_target_objcopy" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12625 else
12626 if test "$GCC" = "yes"; then
12627 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12628 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12629 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631 $as_echo_n "checking for $ac_word... " >&6; }
12632 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12635 case $orig_target_objcopy in
12636 [\\/]* | ?:[\\/]*)
12637 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in `dirname $aros_gcc_objcopy`
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12647 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 break 2
12651 done
12652 done
12653 IFS=$as_save_IFS
12656 esac
12658 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12659 if test -n "$orig_target_objcopy"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12661 $as_echo "$orig_target_objcopy" >&6; }
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12669 if test "$orig_target_objcopy" = ""; then
12670 # Extract the first word of "objcopy", so it can be a program name with args.
12671 set dummy objcopy; ac_word=$2
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673 $as_echo_n "checking for $ac_word... " >&6; }
12674 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 case $orig_target_objcopy in
12678 [\\/]* | ?:[\\/]*)
12679 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in $PATH
12685 IFS=$as_save_IFS
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12689 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 break 2
12693 done
12694 done
12695 IFS=$as_save_IFS
12698 esac
12700 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12701 if test -n "$orig_target_objcopy"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12703 $as_echo "$orig_target_objcopy" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12712 else
12713 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12714 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 case $orig_target_objcopy in
12721 [\\/]* | ?:[\\/]*)
12722 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12732 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12736 done
12737 done
12738 IFS=$as_save_IFS
12741 esac
12743 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12744 if test -n "$orig_target_objcopy"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12746 $as_echo "$orig_target_objcopy" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12755 if test "$orig_target_objcopy" = ""; then
12756 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12759 if test "${aros_tool_prefix}objdump" = ""; then
12760 if test "$cross_compiling" = "yes" ; then
12761 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12762 set dummy ${target_tool_prefix}objdump; ac_word=$2
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764 $as_echo_n "checking for $ac_word... " >&6; }
12765 if ${ac_cv_path_orig_target_objdump+:} false; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 case $orig_target_objdump in
12769 [\\/]* | ?:[\\/]*)
12770 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774 for as_dir in $PATH
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12780 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12784 done
12785 done
12786 IFS=$as_save_IFS
12789 esac
12791 orig_target_objdump=$ac_cv_path_orig_target_objdump
12792 if test -n "$orig_target_objdump"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12794 $as_echo "$orig_target_objdump" >&6; }
12795 else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12801 else
12802 if test "$GCC" = "yes"; then
12803 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12804 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12805 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807 $as_echo_n "checking for $ac_word... " >&6; }
12808 if ${ac_cv_path_orig_target_objdump+:} false; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 case $orig_target_objdump in
12812 [\\/]* | ?:[\\/]*)
12813 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in `dirname $aros_gcc_objdump`
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12823 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825 break 2
12827 done
12828 done
12829 IFS=$as_save_IFS
12832 esac
12834 orig_target_objdump=$ac_cv_path_orig_target_objdump
12835 if test -n "$orig_target_objdump"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12837 $as_echo "$orig_target_objdump" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12845 if test "$orig_target_objdump" = ""; then
12846 # Extract the first word of "objdump", so it can be a program name with args.
12847 set dummy objdump; ac_word=$2
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12849 $as_echo_n "checking for $ac_word... " >&6; }
12850 if ${ac_cv_path_orig_target_objdump+:} false; then :
12851 $as_echo_n "(cached) " >&6
12852 else
12853 case $orig_target_objdump in
12854 [\\/]* | ?:[\\/]*)
12855 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12861 IFS=$as_save_IFS
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12865 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867 break 2
12869 done
12870 done
12871 IFS=$as_save_IFS
12874 esac
12876 orig_target_objdump=$ac_cv_path_orig_target_objdump
12877 if test -n "$orig_target_objdump"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12879 $as_echo "$orig_target_objdump" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12888 else
12889 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12890 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892 $as_echo_n "checking for $ac_word... " >&6; }
12893 if ${ac_cv_path_orig_target_objdump+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 case $orig_target_objdump in
12897 [\\/]* | ?:[\\/]*)
12898 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12908 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12912 done
12913 done
12914 IFS=$as_save_IFS
12917 esac
12919 orig_target_objdump=$ac_cv_path_orig_target_objdump
12920 if test -n "$orig_target_objdump"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12922 $as_echo "$orig_target_objdump" >&6; }
12923 else
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12931 if test "$orig_target_objdump" = ""; then
12932 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12936 if test "$kernel_tool_prefix" = "none" ; then
12937 # No kernel tools specified
12938 # Assume target tools == kernel tools with ELF wrapper
12939 aros_kernel_cc=$orig_target_cc
12940 aros_kernel_cxx=$orig_target_cxx
12941 aros_kernel_cpp=$orig_target_cpp
12942 aros_kernel_ld=$orig_target_ld
12943 aros_kernel_as=$orig_target_as
12944 aros_kernel_ar=$orig_target_ar
12945 aros_kernel_ranlib=$orig_target_ranlib
12946 aros_kernel_nm=$orig_target_nm
12947 aros_kernel_strip=$orig_target_strip
12948 aros_kernel_objcopy=$orig_target_objcopy
12949 aros_kernel_objdump=$orig_target_objdump
12950 use_kernel_cc_wrapper=yes
12953 # At this point, all aros_kernel_* and aros_target_*
12954 # tools should be set up correctly
12956 CC="$aros_kernel_cc $kernel_tool_flags"
12957 CPP="$aros_kernel_cpp"
12959 #-----------------------------------------------------------------------------
12961 # Disable pointer-signedness warnings if the compiler recognises the option
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12964 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12965 save_cflags="$CFLAGS"
12966 if test "$crosstools" != "yes" ; then
12967 CFLAGS="$CFLAGS -Wno-pointer-sign"
12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12972 main ()
12976 return 0;
12978 _ACEOF
12979 if ac_fn_c_try_compile "$LINENO"; then :
12980 use_no_sign_warning="yes"
12981 else
12982 use_no_sign_warning="no"
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985 else
12986 # we do know it is supported for the smallest version of gcc we are going to build
12987 # we assume it's also supported by later versions
12988 use_no_sign_warning=yes
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12991 $as_echo "$use_no_sign_warning" >&6; }
12992 if test "x-$use_no_sign_warning" = "x-yes" ; then
12993 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12995 CFLAGS="$save_cflags"
12997 #-----------------------------------------------------------------------------
12999 # Find all the tools we need to compile. This could be cross-compiling
13000 # though! If that is the case we use the GNU form of the target and
13001 # simply add this to the front of the binary name. This is rather simple,
13002 # but it should work under most circumstances.
13004 # The default tools are to use the same as the host, but only if the
13005 # host and target CPU are the same. With GCC this is normally enough.
13008 aros_cc_pre=""
13009 aros_shared_ld="$aros_host_ld"
13011 aros_target_mkdep="$aros_host_mkdep"
13013 # The default tools executables to be linked to.
13014 if test "$rescomp" != ""; then
13015 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13016 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018 $as_echo_n "checking for $ac_word... " >&6; }
13019 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 case $aros_kernel_rescomp in
13023 [\\/]* | ?:[\\/]*)
13024 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13030 IFS=$as_save_IFS
13031 test -z "$as_dir" && as_dir=.
13032 for ac_exec_ext in '' $ac_executable_extensions; do
13033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13034 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13036 break 2
13038 done
13039 done
13040 IFS=$as_save_IFS
13043 esac
13045 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13046 if test -n "$aros_kernel_rescomp"; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13048 $as_echo "$aros_kernel_rescomp" >&6; }
13049 else
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051 $as_echo "no" >&6; }
13055 if test "$aros_kernel_rescomp" = ""; then
13056 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13060 # Set up the sources for the symlink farm
13061 if test "$crosstools" = "yes"; then
13062 crosstools_target=tools-crosstools
13065 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13066 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13068 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13069 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13070 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13071 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13072 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13073 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13074 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13076 # aros_cc_pre is a variable that is added to the front of the compiler name
13077 # in the generated aros-gcc shell script. We need this to enable the cache
13078 # to work across cleaned builds. Also, support DISTCC using the correct
13079 # environment variable.
13082 if test "x${DISTCC}" != "x" ; then
13083 if test "x${CCACHE}" != "x" ; then
13084 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13085 else
13086 aros_cc_pre="${DISTCC} "
13088 else
13089 if test "x${CCACHE}" != "x" ; then
13090 aros_cc_pre="${CCACHE} "
13094 aros_target_nostdinc_cflags=-nostdinc
13096 aros_target_nostartup_ldflags=-nostartfiles
13098 aros_target_nix_ldflags=-nix
13100 aros_target_detach_ldflags=-detach
13102 aros_target_nostdlib_ldflags=-nostdlib
13105 # Target tools
13106 if test "$aros_target_toolchain" != "yes"; then
13107 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13108 if test "$GCC" = "yes"; then
13109 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13111 else
13112 # We do not know which gcc version we are going to build and what we need to know
13113 # here is different for different versions so this will be set later during the
13114 # build of crosstools.
13115 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13116 aros_target_cc_path=@aros_target_cc_path@
13118 aros_target_cpp="${prefix}cpp"
13119 aros_target_cc="${prefix}gcc"
13120 aros_target_cxx="${prefix}g++"
13121 aros_target_as="${prefix}as"
13122 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13123 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13124 aros_target_objcopy="${prefix}objcopy"
13125 aros_target_objdump="${prefix}objdump"
13126 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13127 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13128 aros_target_strip="${prefix}strip"
13129 aros_plain_nm="${prefix}nm"
13130 aros_plain_ar="${prefix}ar"
13132 # Check whether --enable-includes was given.
13133 if test "${enable_includes+set}" = set; then :
13134 enableval=$enable_includes; aros_target_incl=$enable_includes
13135 else
13136 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13140 if test "$aros_kernel_includes" = ""; then
13141 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13142 aros_kernel_includes="-isystem $aros_target_incl"
13146 if test "$aros_kernel_includes" != "" ; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13148 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13149 if test "$aros_kernel_cc_includes" = "" ; then
13150 # Try to guess where the directory is.
13151 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13152 if test -d $aros_kernel_cc_includes; then
13153 # Check if there is also an include-fixed directory and add it
13154 # to kernel compiler's include path as it may contain some of
13155 # the headers we need.
13156 if test -d "$aros_kernel_cc_includes"-fixed; then
13157 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13159 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13160 case ${host_cpu} in
13161 i[3456]86)
13162 host_cpu_glibc=i386
13165 host_cpu_glibc=${host_cpu}
13167 esac
13168 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13169 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13171 else
13172 # The directory doesn't exist, we need to do some more work.
13173 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13175 # These are the headers we're looking for.
13176 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13177 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13178 zutil.h stdint.h"
13180 dirs=
13181 for h in $headers; do
13182 # Which other headers are needed by each of the above?
13183 deps=$(echo "#include <$h>" | \
13184 $aros_kernel_cc -E -M - 2>/dev/null | \
13185 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13187 # Copy all the needed headers to a directory beneath gendir.
13188 for d in $deps; do
13189 h=$(basename $d)
13190 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13191 sed -n "s,^.*/include\(/.*\),\1,p")
13192 ! test -d $dir && mkdir -p $dir
13193 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13194 done
13195 done
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13199 $as_echo "$aros_kernel_cc_includes" >&6; }
13200 # Adding -nostdinc to kernel includes as they are always used together.
13201 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13204 if test "$crosstools" != "yes"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13206 $as_echo_n "checking for the target compiler's include path... " >&6; }
13207 if test "$aros_target_cc_includes" = "" ; then
13208 #try to guess where the directory is
13209 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13210 if ! test -d $aros_target_cc_includes; then
13211 #the directory doesn't exist, we need to do some more work
13212 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13214 #these are the headers we're looking for
13215 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13216 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13217 zutil.h"
13219 dirs=
13220 for h in $headers; do
13221 #which other headers each of the above headers needs?
13222 deps=$(echo "#include <$h>" | \
13223 $orig_target_cc -E -M - 2>/dev/null | \
13224 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13226 #copy all the needed headers to a directory beneath gendir
13227 for d in $deps; do
13228 h=$(basename $d)
13229 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13230 sed -n "s,^.*/include\(/.*\),\1,p")
13231 ! test -d $dir && mkdir -p $dir
13232 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13233 done
13234 done
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13238 $as_echo "$aros_target_cc_includes" >&6; }
13239 else
13240 # We do not know which gcc version we are going to build and what we need to know
13241 # here is different for different versions so this will be set later during the
13242 # build of crosstools.
13243 aros_target_cc_includes=@aros_target_cc_includes@
13247 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13248 # On GCC >= 4.0 -iquote should be used
13251 save_cc="$CC"
13252 save_cflags="$CFLAGS"
13253 CFLAGS="-iquote."
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13255 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13256 if test "x-$crosstools" != "x-yes"; then
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13261 main ()
13265 return 0;
13267 _ACEOF
13268 if ac_fn_c_try_compile "$LINENO"; then :
13269 has_iquote="yes"
13270 else
13271 has_iquote="no"
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 else
13275 # we do know it is supported for the smallest version of gcc we are going to build
13276 # we assume it's also supported by later versions
13277 has_iquote=yes
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13280 $as_echo "$has_iquote" >&6; }
13281 if test "x-$has_iquote" = "x-yes" ; then
13282 host_cflags_iquote=-iquote
13283 host_cflags_iquote_end=
13284 else
13285 host_cflags_iquote=-I
13286 host_cflags_iquote_end=-I-
13288 kernel_cflags_iquote=$host_cflags_iquote
13289 kernel_cflags_iquote_end=$host_cflags_iquote_end
13290 if test "x-$cross_compiling" = "x-yes"; then
13291 CC="$aros_kernel_cc"
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13293 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&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 use_no_stack_protector="yes"
13308 else
13309 use_no_stack_protector="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 use_no_stack_protector=yes
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13318 $as_echo "$use_no_stack_protector" >&6; }
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13320 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13321 if test "x-$crosstools" != "x-yes"; then
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13326 main ()
13330 return 0;
13332 _ACEOF
13333 if ac_fn_c_try_compile "$LINENO"; then :
13334 has_iquote="yes"
13335 else
13336 has_iquote="no"
13338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339 else
13340 # we do know it is supported for the smallest version of gcc we are going to build
13341 # we assume it's also supported by later versions
13342 has_iquote=yes
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13345 $as_echo "$has_iquote" >&6; }
13346 if test "x-$has_iquote" = "x-yes" ; then
13347 kernel_cflags_iquote=-iquote
13348 kernel_cflags_iquote_end=
13349 else
13350 kernel_cflags_iquote=-I
13351 kernel_cflags_iquote_end=-I-
13354 aros_cflags_iquote=$kernel_cflags_iquote
13355 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13356 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13357 CC="$orig_target_cc"
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13359 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13360 if test "x-$crosstools" != "x-yes"; then
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13365 main ()
13369 return 0;
13371 _ACEOF
13372 if ac_fn_c_try_compile "$LINENO"; then :
13373 has_iquote="yes"
13374 else
13375 has_iquote="no"
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 else
13379 # we do know it is supported for the smallest version of gcc we are going to build
13380 # we assume it's also supported by later versions
13381 has_iquote=yes
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13384 $as_echo "$has_iquote" >&6; }
13385 if test "x-$has_iquote" = "x-yes" ; then
13386 aros_cflags_iquote=-iquote
13387 aros_cflags_iquote_end=
13388 else
13389 aros_cflags_iquote=-I
13390 aros_cflags_iquote_end=-I-
13393 if test "x-$use_no_stack_protector" = "x-yes" ; then
13394 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13398 #-----------------------------------------------------------------------------
13400 # Check if the target compiler supports some options used for delinting:
13401 # -Wunused-but-set-variable
13402 # -Warray-bounds
13403 # -Wenum-compare
13404 # -Wstrict-overflow
13405 # -Wformat-security
13407 if test "x-$crosstools" != "x-yes"; then
13408 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13409 CC="$orig_target_cc"
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13412 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13413 CFLAGS=-Wunused-but-set-variable
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13418 main ()
13422 return 0;
13424 _ACEOF
13425 if ac_fn_c_try_compile "$LINENO"; then :
13426 aros_unused_but_set_variable="yes"
13427 else
13428 aros_unused_but_set_variable="no"
13430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13432 $as_echo "$aros_unused_but_set_variable" >&6; }
13433 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13434 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13438 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13439 CFLAGS=-Warray-bounds
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13444 main ()
13448 return 0;
13450 _ACEOF
13451 if ac_fn_c_try_compile "$LINENO"; then :
13452 aros_array_bounds="yes"
13453 else
13454 aros_array_bounds="no"
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13458 $as_echo "$aros_array_bounds" >&6; }
13459 if test "x-$aros_array_bounds" = "x-yes" ; then
13460 aros_cflags_array_bounds=-Wno-array-bounds
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13464 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13465 CFLAGS=-Wenum-compare
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13470 main ()
13474 return 0;
13476 _ACEOF
13477 if ac_fn_c_try_compile "$LINENO"; then :
13478 aros_enum_compare="yes"
13479 else
13480 aros_enum_compare="no"
13482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13484 $as_echo "$aros_enum_compare" >&6; }
13485 if test "x-$aros_enum_compare" = "x-yes" ; then
13486 aros_cflags_enum_compare=-Wno-enum-compare
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13490 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13491 CFLAGS=-Wstrict-overflow
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13496 main ()
13500 return 0;
13502 _ACEOF
13503 if ac_fn_c_try_compile "$LINENO"; then :
13504 aros_strict_overflow="yes"
13505 else
13506 aros_strict_overflow="no"
13508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13510 $as_echo "$aros_strict_overflow" >&6; }
13511 if test "x-$aros_strict_overflow" = "x-yes" ; then
13512 aros_cflags_strict_overflow=-Wno-strict-overflow
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13516 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13517 CFLAGS=-Wformat-security
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13522 main ()
13526 return 0;
13528 _ACEOF
13529 if ac_fn_c_try_compile "$LINENO"; then :
13530 aros_format_security="yes"
13531 else
13532 aros_format_security="no"
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13536 $as_echo "$aros_format_security" >&6; }
13537 if test "x-$aros_format_security" = "x-yes" ; then
13538 aros_cflags_format_security=-Wno-format-security
13540 else
13541 # We do not know which gcc version we are going to build and what we need to know
13542 # here is different for different versions so this will be set later during the
13543 # build of crosstools.
13544 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13545 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13546 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13547 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13548 aros_cflags_format_security=@aros_cflags_format_security@
13551 #-----------------------------------------------------------------------------
13553 # Check if we can explicitly choose older version of symbol hashing
13555 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13556 CC="$aros_kernel_cc"
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13558 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13563 main ()
13567 return 0;
13569 _ACEOF
13570 if ac_fn_c_try_link "$LINENO"; then :
13571 use_hash_style="yes"
13572 else
13573 use_hash_style="no"
13575 rm -f core conftest.err conftest.$ac_objext \
13576 conftest$ac_exeext conftest.$ac_ext
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13578 $as_echo "$use_hash_style" >&6; }
13579 if test "x-$use_hash_style" = "x-yes" ; then
13580 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13582 CC="$save_cc"
13583 CFLAGS="$save_cflags"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13594 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13596 # Check whether --with-resolution was given.
13597 if test "${with_resolution+set}" = set; then :
13598 withval=$with_resolution; resolution=$withval
13599 else
13600 resolution=none
13603 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13604 if test "$resolution" = "yes" ; then
13605 resolution="none"
13607 if test "$resolution" = "no" ; then
13608 resolution="none"
13610 if test "$resolution" != "none" ; then
13611 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13612 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13613 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13616 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13617 aros_cv_nominal_width=$aros_nominal_width
13618 aros_cv_nominal_height=$aros_nominal_height
13619 aros_cv_nominal_depth=$aros_nominal_depth
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13622 $as_echo_n "checking if serial debug is enabled... " >&6; }
13624 # Check whether --with-serial-debug was given.
13625 if test "${with_serial_debug+set}" = set; then :
13626 withval=$with_serial_debug; serial_debug=$withval
13627 else
13628 serial_debug=none
13631 if test "$aros_serial_debug" = 0 ; then
13632 serial_debug_forced=""
13633 if test "$serial_debug" = "yes" ; then
13634 serial_debug="1"
13636 if test "$serial_debug" = "no" ; then
13637 serial_debug="none"
13639 else
13640 serial_debug_forced="(forced)"
13641 serial_debug=$aros_serial_debug
13643 if test "$serial_debug" != "none" ; then
13644 aros_serial_debug=$serial_debug
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13646 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13653 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13654 # Check whether --enable-palm_debug_hack was given.
13655 if test "${enable_palm_debug_hack+set}" = set; then :
13656 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13657 else
13658 palm_debug_hack="no"
13661 if test "$palm_debug_hack" = "yes" ; then
13662 aros_palm_debug_hack="1"
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13665 $as_echo "$palm_debug_hack" >&6; }
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13668 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13669 # Check whether --enable-usb30_code was given.
13670 if test "${enable_usb30_code+set}" = set; then :
13671 enableval=$enable_usb30_code; usb30_code="yes"
13672 else
13673 usb30_code="no"
13676 if test "$usb30_code" = "yes" ; then
13677 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13678 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13681 $as_echo "$usb30_code" >&6; }
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13684 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13685 # Check whether --enable-nesting_supervisor was given.
13686 if test "${enable_nesting_supervisor+set}" = set; then :
13687 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13688 else
13689 nesting_supervisor="no"
13692 if test "$nesting_supervisor" = "yes" ; then
13693 aros_nesting_supervisor="1"
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13696 $as_echo "$nesting_supervisor" >&6; }
13698 if test "$aros_enable_mmu" = "" ; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13700 $as_echo_n "checking if MMU support is enabled... " >&6; }
13701 # Check whether --enable-mmu was given.
13702 if test "${enable_mmu+set}" = set; then :
13703 enableval=$enable_mmu; aros_enable_mmu=$enableval
13704 else
13705 aros_enable_mmu="yes"
13708 if test "$aros_enable_mmu" = "" ; then
13709 aros_enable_mmu="yes"
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13712 $as_echo "$aros_enable_mmu" >&6; }
13714 if test "$aros_enable_mmu" = "no" ; then
13715 aros_enable_mmu="0"
13716 else
13717 aros_enable_mmu="1"
13721 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13723 if test "x-$need_dlopen" != "x-no" ; then
13724 save_libs="$LIBS"
13725 LIBS=""
13726 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13727 if test "x$ac_cv_func_dlopen" = xyes; then :
13728 have_dl="yes"
13729 else
13730 have_dl="no"
13733 if test "x-$have_dl" = "x-no" ; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13735 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13736 if ${ac_cv_lib_dl_dlopen+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 ac_check_lib_save_LIBS=$LIBS
13740 LIBS="-ldl $LIBS"
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
13747 #ifdef __cplusplus
13748 extern "C"
13749 #endif
13750 char dlopen ();
13752 main ()
13754 return dlopen ();
13756 return 0;
13758 _ACEOF
13759 if ac_fn_c_try_link "$LINENO"; then :
13760 ac_cv_lib_dl_dlopen=yes
13761 else
13762 ac_cv_lib_dl_dlopen=no
13764 rm -f core conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13766 LIBS=$ac_check_lib_save_LIBS
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13769 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13770 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13771 have_dl="yes"
13772 aros_host_ldflags="$aros_host_ldflags -ldl"
13773 else
13774 have_dl="no"
13778 if test "x-$have_dl" = "x-no" ; then
13779 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13781 LIBS="$save_libs"
13785 # Check whether --enable-x11_hidd was given.
13786 if test "${enable_x11_hidd+set}" = set; then :
13787 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13788 else
13789 x11_hidd="$need_x11"
13792 case "x-$x11_hidd" in
13793 x-yes|x-no|x-auto) ;;
13794 *) x11_hidd="$need_x11" ;;
13795 esac
13797 ENABLE_X11=0
13799 if test "x-$x11_hidd" != "x-no" ; then
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13802 $as_echo_n "checking for X... " >&6; }
13805 # Check whether --with-x was given.
13806 if test "${with_x+set}" = set; then :
13807 withval=$with_x;
13810 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13811 if test "x$with_x" = xno; then
13812 # The user explicitly disabled X.
13813 have_x=disabled
13814 else
13815 case $x_includes,$x_libraries in #(
13816 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13817 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13818 $as_echo_n "(cached) " >&6
13819 else
13820 # One or both of the vars are not set, and there is no cached value.
13821 ac_x_includes=no ac_x_libraries=no
13822 rm -f -r conftest.dir
13823 if mkdir conftest.dir; then
13824 cd conftest.dir
13825 cat >Imakefile <<'_ACEOF'
13826 incroot:
13827 @echo incroot='${INCROOT}'
13828 usrlibdir:
13829 @echo usrlibdir='${USRLIBDIR}'
13830 libdir:
13831 @echo libdir='${LIBDIR}'
13832 _ACEOF
13833 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13835 for ac_var in incroot usrlibdir libdir; do
13836 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13837 done
13838 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13839 for ac_extension in a so sl dylib la dll; do
13840 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13841 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13842 ac_im_usrlibdir=$ac_im_libdir; break
13844 done
13845 # Screen out bogus values from the imake configuration. They are
13846 # bogus both because they are the default anyway, and because
13847 # using them would break gcc on systems where it needs fixed includes.
13848 case $ac_im_incroot in
13849 /usr/include) ac_x_includes= ;;
13850 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13851 esac
13852 case $ac_im_usrlibdir in
13853 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13854 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13855 esac
13857 cd ..
13858 rm -f -r conftest.dir
13861 # Standard set of common directories for X headers.
13862 # Check X11 before X11Rn because it is often a symlink to the current release.
13863 ac_x_header_dirs='
13864 /usr/X11/include
13865 /usr/X11R7/include
13866 /usr/X11R6/include
13867 /usr/X11R5/include
13868 /usr/X11R4/include
13870 /usr/include/X11
13871 /usr/include/X11R7
13872 /usr/include/X11R6
13873 /usr/include/X11R5
13874 /usr/include/X11R4
13876 /usr/local/X11/include
13877 /usr/local/X11R7/include
13878 /usr/local/X11R6/include
13879 /usr/local/X11R5/include
13880 /usr/local/X11R4/include
13882 /usr/local/include/X11
13883 /usr/local/include/X11R7
13884 /usr/local/include/X11R6
13885 /usr/local/include/X11R5
13886 /usr/local/include/X11R4
13888 /usr/X386/include
13889 /usr/x386/include
13890 /usr/XFree86/include/X11
13892 /usr/include
13893 /usr/local/include
13894 /usr/unsupported/include
13895 /usr/athena/include
13896 /usr/local/x11r5/include
13897 /usr/lpp/Xamples/include
13899 /usr/openwin/include
13900 /usr/openwin/share/include'
13902 if test "$ac_x_includes" = no; then
13903 # Guess where to find include files, by looking for Xlib.h.
13904 # First, try using that file with no special directory specified.
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 #include <X11/Xlib.h>
13908 _ACEOF
13909 if ac_fn_c_try_cpp "$LINENO"; then :
13910 # We can compile using X headers with no special include directory.
13911 ac_x_includes=
13912 else
13913 for ac_dir in $ac_x_header_dirs; do
13914 if test -r "$ac_dir/X11/Xlib.h"; then
13915 ac_x_includes=$ac_dir
13916 break
13918 done
13920 rm -f conftest.err conftest.i conftest.$ac_ext
13921 fi # $ac_x_includes = no
13923 if test "$ac_x_libraries" = no; then
13924 # Check for the libraries.
13925 # See if we find them without any special options.
13926 # Don't add to $LIBS permanently.
13927 ac_save_LIBS=$LIBS
13928 LIBS="-lX11 $LIBS"
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 #include <X11/Xlib.h>
13933 main ()
13935 XrmInitialize ()
13937 return 0;
13939 _ACEOF
13940 if ac_fn_c_try_link "$LINENO"; then :
13941 LIBS=$ac_save_LIBS
13942 # We can link X programs with no special library path.
13943 ac_x_libraries=
13944 else
13945 LIBS=$ac_save_LIBS
13946 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13948 # Don't even attempt the hair of trying to link an X program!
13949 for ac_extension in a so sl dylib la dll; do
13950 if test -r "$ac_dir/libX11.$ac_extension"; then
13951 ac_x_libraries=$ac_dir
13952 break 2
13954 done
13955 done
13957 rm -f core conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
13959 fi # $ac_x_libraries = no
13961 case $ac_x_includes,$ac_x_libraries in #(
13962 no,* | *,no | *\'*)
13963 # Didn't find X, or a directory has "'" in its name.
13964 ac_cv_have_x="have_x=no";; #(
13966 # Record where we found X for the cache.
13967 ac_cv_have_x="have_x=yes\
13968 ac_x_includes='$ac_x_includes'\
13969 ac_x_libraries='$ac_x_libraries'"
13970 esac
13972 ;; #(
13973 *) have_x=yes;;
13974 esac
13975 eval "$ac_cv_have_x"
13976 fi # $with_x != no
13978 if test "$have_x" != yes; then
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13980 $as_echo "$have_x" >&6; }
13981 no_x=yes
13982 else
13983 # If each of the values was on the command line, it overrides each guess.
13984 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13985 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13986 # Update the cache value to reflect the command line values.
13987 ac_cv_have_x="have_x=yes\
13988 ac_x_includes='$x_includes'\
13989 ac_x_libraries='$x_libraries'"
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13991 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13995 x_cflags=
13996 for path in $x_libraries
13998 x_cflags="$x_cflags -L$path"
13999 done
14001 for path in $x_includes
14003 x_cflags="$x_cflags -I$path"
14004 done
14006 if test "x-$no_x" = "x-yes" ; then
14008 if test "x-$x11_hidd" != "x-auto" ; then
14009 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14012 else
14013 unixgfx_hidd_target=kernel-x11gfx
14014 ENABLE_X11=1
14016 # Check whether --enable-x11_shm was given.
14017 if test "${enable_x11_shm+set}" = set; then :
14018 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14019 else
14020 x11_hidd_shm="auto"
14023 case "x-$x11_hidd_shm" in
14024 x-yes|x-no|x-auto) ;;
14025 *) x11_hidd_shm="auto" ;;
14026 esac
14028 have_xshm=no
14030 if test "x-$x11_hidd_shm" != "x-no" ; then
14032 for ac_header in sys/ipc.h
14033 do :
14034 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14035 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14036 cat >>confdefs.h <<_ACEOF
14037 #define HAVE_SYS_IPC_H 1
14038 _ACEOF
14042 done
14044 for ac_header in sys/shm.h
14045 do :
14046 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14047 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14048 cat >>confdefs.h <<_ACEOF
14049 #define HAVE_SYS_SHM_H 1
14050 _ACEOF
14054 done
14057 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14059 save_cflags="$CFLAGS"
14060 CFLAGS="$CFLAGS $x_cflags"
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14062 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14063 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 ac_check_lib_save_LIBS=$LIBS
14067 LIBS="-lXext $LIBS"
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14071 /* Override any GCC internal prototype to avoid an error.
14072 Use char because int might match the return type of a GCC
14073 builtin and then its argument prototype would still apply. */
14074 #ifdef __cplusplus
14075 extern "C"
14076 #endif
14077 char XShmQueryExtension ();
14079 main ()
14081 return XShmQueryExtension ();
14083 return 0;
14085 _ACEOF
14086 if ac_fn_c_try_link "$LINENO"; then :
14087 ac_cv_lib_Xext_XShmQueryExtension=yes
14088 else
14089 ac_cv_lib_Xext_XShmQueryExtension=no
14091 rm -f core conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
14093 LIBS=$ac_check_lib_save_LIBS
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14096 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14097 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14098 have_xshm=yes
14101 CFLAGS="$save_cflags"
14105 if test "x-$have_xshm" = "x-yes" ; then
14106 DO_XSHM_SUPPORT="1"
14107 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14108 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14109 else
14110 DO_XSHM_SUPPORT="0"
14114 # Check whether --enable-x11_vidmode was given.
14115 if test "${enable_x11_vidmode+set}" = set; then :
14116 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14117 else
14118 x11_hidd_vidmode="auto"
14121 case "x-$x11_hidd_vidmode" in
14122 x-yes|x-no|x-auto) ;;
14123 *) x11_hidd_vidmode="auto" ;;
14124 esac
14126 have_vidmode=no
14128 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14130 save_cflags="$CFLAGS"
14131 CFLAGS="$CFLAGS $x_cflags"
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14133 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14134 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14135 $as_echo_n "(cached) " >&6
14136 else
14137 ac_check_lib_save_LIBS=$LIBS
14138 LIBS="-lXxf86vm $LIBS"
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14142 /* Override any GCC internal prototype to avoid an error.
14143 Use char because int might match the return type of a GCC
14144 builtin and then its argument prototype would still apply. */
14145 #ifdef __cplusplus
14146 extern "C"
14147 #endif
14148 char XF86VidModeQueryExtension ();
14150 main ()
14152 return XF86VidModeQueryExtension ();
14154 return 0;
14156 _ACEOF
14157 if ac_fn_c_try_link "$LINENO"; then :
14158 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14159 else
14160 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14162 rm -f core conftest.err conftest.$ac_objext \
14163 conftest$ac_exeext conftest.$ac_ext
14164 LIBS=$ac_check_lib_save_LIBS
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14167 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14168 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14169 have_vidmode=yes
14172 CFLAGS="$save_cflags"
14175 if test "x-$have_vidmode" = "x-yes" ; then
14176 DO_VIDMODE_SUPPORT="1"
14177 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14178 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14179 else
14180 DO_VIDMODE_SUPPORT="0"
14184 aros_host_x11_includes=$x_includes
14185 aros_host_x11_libdirs=$x_libraries
14189 # Check whether --enable-sdl_hidd was given.
14190 if test "${enable_sdl_hidd+set}" = set; then :
14191 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14192 else
14193 sdl_hidd="auto"
14196 case "x-$sdl_hidd" in
14197 x-yes|x-no|x-auto) ;;
14198 *) sdl_hidd="auto" ;;
14199 esac
14201 if test "x-$sdl_hidd" != "x-no" ; then
14204 # Check whether --with-sdl-prefix was given.
14205 if test "${with_sdl_prefix+set}" = set; then :
14206 withval=$with_sdl_prefix; sdl_prefix="$withval"
14207 else
14208 sdl_prefix=""
14212 # Check whether --with-sdl-exec-prefix was given.
14213 if test "${with_sdl_exec_prefix+set}" = set; then :
14214 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14215 else
14216 sdl_exec_prefix=""
14219 # Check whether --enable-sdltest was given.
14220 if test "${enable_sdltest+set}" = set; then :
14221 enableval=$enable_sdltest;
14222 else
14223 enable_sdltest=yes
14227 if test x$sdl_exec_prefix != x ; then
14228 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14229 if test x${SDL_CONFIG+set} != xset ; then
14230 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14233 if test x$sdl_prefix != x ; then
14234 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14235 if test x${SDL_CONFIG+set} != xset ; then
14236 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14240 as_save_PATH="$PATH"
14241 if test "x$prefix" != xNONE; then
14242 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14244 # Extract the first word of "sdl-config", so it can be a program name with args.
14245 set dummy sdl-config; ac_word=$2
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14247 $as_echo_n "checking for $ac_word... " >&6; }
14248 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 case $SDL_CONFIG in
14252 [\\/]* | ?:[\\/]*)
14253 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14259 IFS=$as_save_IFS
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14263 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 break 2
14267 done
14268 done
14269 IFS=$as_save_IFS
14271 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14273 esac
14275 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14276 if test -n "$SDL_CONFIG"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14278 $as_echo "$SDL_CONFIG" >&6; }
14279 else
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 $as_echo "no" >&6; }
14285 PATH="$as_save_PATH"
14286 min_sdl_version=1.2.10
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14288 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14289 no_sdl=""
14290 if test "$SDL_CONFIG" = "no" ; then
14291 no_sdl=yes
14292 else
14293 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14294 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14296 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14297 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14298 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14299 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14300 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14301 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14302 if test "x$enable_sdltest" = "xyes" ; then
14303 ac_save_CFLAGS="$CFLAGS"
14304 ac_save_CXXFLAGS="$CXXFLAGS"
14305 ac_save_LIBS="$LIBS"
14306 CFLAGS="$CFLAGS $SDL_CFLAGS"
14307 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14308 LIBS="$LIBS $SDL_LIBS"
14309 rm -f conf.sdltest
14310 if test "$cross_compiling" = yes; then :
14311 echo $ac_n "cross compiling; assumed OK... $ac_c"
14312 else
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14316 #include <stdio.h>
14317 #include <stdlib.h>
14318 #include <string.h>
14319 #include "SDL.h"
14321 char*
14322 my_strdup (char *str)
14324 char *new_str;
14326 if (str)
14328 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14329 strcpy (new_str, str);
14331 else
14332 new_str = NULL;
14334 return new_str;
14337 int main (int argc, char *argv[])
14339 int major, minor, micro;
14340 char *tmp_version;
14342 /* This hangs on some systems (?)
14343 system ("touch conf.sdltest");
14345 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14347 /* HP/UX 9 (%@#!) writes to sscanf strings */
14348 tmp_version = my_strdup("$min_sdl_version");
14349 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14350 printf("%s, bad version string\n", "$min_sdl_version");
14351 exit(1);
14354 if (($sdl_major_version > major) ||
14355 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14356 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14358 return 0;
14360 else
14362 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14363 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14364 printf("*** best to upgrade to the required version.\n");
14365 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14366 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14367 printf("*** config.cache before re-running configure\n");
14368 return 1;
14373 _ACEOF
14374 if ac_fn_c_try_run "$LINENO"; then :
14376 else
14377 no_sdl=yes
14379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14380 conftest.$ac_objext conftest.beam conftest.$ac_ext
14383 CFLAGS="$ac_save_CFLAGS"
14384 CXXFLAGS="$ac_save_CXXFLAGS"
14385 LIBS="$ac_save_LIBS"
14388 if test "x$no_sdl" = x ; then
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14390 $as_echo "yes" >&6; }
14391 have_sdl="yes"
14392 else
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 $as_echo "no" >&6; }
14395 if test "$SDL_CONFIG" = "no" ; then
14396 echo "*** The sdl-config script installed by SDL could not be found"
14397 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14398 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14399 echo "*** full path to sdl-config."
14400 else
14401 if test -f conf.sdltest ; then
14403 else
14404 echo "*** Could not run SDL test program, checking why..."
14405 CFLAGS="$CFLAGS $SDL_CFLAGS"
14406 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14407 LIBS="$LIBS $SDL_LIBS"
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14411 #include <stdio.h>
14412 #include "SDL.h"
14414 int main(int argc, char *argv[])
14415 { return 0; }
14416 #undef main
14417 #define main K_and_R_C_main
14420 main ()
14422 return 0;
14424 return 0;
14426 _ACEOF
14427 if ac_fn_c_try_link "$LINENO"; then :
14428 echo "*** The test program compiled, but did not run. This usually means"
14429 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14430 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14431 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14432 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14433 echo "*** is required on your system"
14434 echo "***"
14435 echo "*** If you have an old version installed, it is best to remove it, although"
14436 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14437 else
14438 echo "*** The test program failed to compile or link. See the file config.log for the"
14439 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14440 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14441 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14443 rm -f core conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext conftest.$ac_ext
14445 CFLAGS="$ac_save_CFLAGS"
14446 CXXFLAGS="$ac_save_CXXFLAGS"
14447 LIBS="$ac_save_LIBS"
14450 SDL_CFLAGS=""
14451 SDL_LIBS=""
14452 have_sdl="no"
14456 rm -f conf.sdltest
14459 if test "x-$have_sdl" != "x-yes" ; then
14461 if test "x-$sdl_hidd" != "x-auto" ; then
14462 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14465 else
14466 sdl_hidd_target=kernel-hidd-sdl
14467 aros_host_sdl_cflags=SDL_CFLAGS
14468 aros_host_sdl_libs=SDL_LIBS
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14476 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14477 # Check whether --enable-dbus was given.
14478 if test "${enable_dbus+set}" = set; then :
14479 enableval=$enable_dbus; dbus="yes"
14480 else
14481 dbus="no"
14484 if test "$dbus" = "yes" ; then
14485 ENABLE_DBUS=1
14486 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14487 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14488 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14489 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14490 else
14491 ENABLE_DBUS=0
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14494 $as_echo "$dbus" >&6; }
14496 if test "$use_kernel_cc_wrapper" = "yes" ; then
14497 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14501 # Generic
14513 # Compatability with other Amiga-like operation systems
14516 # Host related
14544 # Target Related
14614 # Delinting target compiler flags
14621 # Graphics Related
14637 # Native version related
14641 # Palm native version related
14644 # Unix/Hosted version related
14647 # MMU related
14650 # Apple iOS related
14655 # ARM default GCC target related
14661 # Android related
14666 # DBUS related
14673 #X11 related
14676 # Debug related
14682 # Collect-aros stuff: "-ius" to ignore undefined symbols
14685 # C compiler related
14690 #ObjC compiler related
14693 #Java related
14696 # USB3.0 code
14699 case "$aros_flavour" in
14700 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14701 aros_flavour="emulation" ;;
14702 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14703 aros_flavour="emulation" ;;
14704 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14705 aros_flavour="standalone";;
14706 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14707 aros_flavour="standalone";;
14708 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14709 aros_flavour="native" ;;
14710 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14711 aros_flavour="native" ;;
14712 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14713 aros_flavour="linklib" ;;
14714 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14715 aros_flavour="palmnative" ;;
14716 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14717 aros_flavour="mac68knative" ;;
14718 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14719 aros_flavour="ppcnative" ;;
14720 esac
14722 if test ! -d ${aros_inc_dir} ; then
14723 ${MKDIR} ${aros_inc_dir}
14725 if test ! -d ${aros_geninc_dir} ; then
14726 ${MKDIR} ${aros_geninc_dir}
14728 if test ! -d ${aros_hostcfg_dir} ; then
14729 ${MKDIR} ${aros_hostcfg_dir}
14731 if test ! -d ${aros_targetcfg_dir} ; then
14732 ${MKDIR} ${aros_targetcfg_dir}
14734 if test ! -d ${aros_tools_dir} ; then
14735 ${MKDIR} ${aros_tools_dir}
14737 if test ! -d ${aros_scripts_dir} ; then
14738 ${MKDIR} ${aros_scripts_dir}
14741 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14744 # Generic build tools (metamake, etc)
14745 ac_config_commands="$ac_config_commands genmf-executable-support"
14747 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"
14750 # Binutils
14751 ac_config_commands="$ac_config_commands binutils-support"
14753 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14756 # Bare Elf support script and spec
14757 if test "${use_kernel_cc_wrapper}" = "yes"; then
14758 ac_config_commands="$ac_config_commands elf-compiler-support"
14760 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"
14764 # Host compiler support scripts and spec
14765 if test "${aros_target_toolchain}" = "no"; then
14766 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14768 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"
14772 # Android support
14773 if test "$aros_target_variant" == "android"; then
14774 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14778 # cmake helper
14779 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14782 cat >confcache <<\_ACEOF
14783 # This file is a shell script that caches the results of configure
14784 # tests run on this system so they can be shared between configure
14785 # scripts and configure runs, see configure's option --config-cache.
14786 # It is not useful on other systems. If it contains results you don't
14787 # want to keep, you may remove or edit it.
14789 # config.status only pays attention to the cache file if you give it
14790 # the --recheck option to rerun configure.
14792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14794 # following values.
14796 _ACEOF
14798 # The following way of writing the cache mishandles newlines in values,
14799 # but we know of no workaround that is simple, portable, and efficient.
14800 # So, we kill variables containing newlines.
14801 # Ultrix sh set writes to stderr and can't be redirected directly,
14802 # and sets the high bit in the cache file unless we assign to the vars.
14804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14805 eval ac_val=\$$ac_var
14806 case $ac_val in #(
14807 *${as_nl}*)
14808 case $ac_var in #(
14809 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14811 esac
14812 case $ac_var in #(
14813 _ | IFS | as_nl) ;; #(
14814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14815 *) { eval $ac_var=; unset $ac_var;} ;;
14816 esac ;;
14817 esac
14818 done
14820 (set) 2>&1 |
14821 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14822 *${as_nl}ac_space=\ *)
14823 # `set' does not quote correctly, so add quotes: double-quote
14824 # substitution turns \\\\ into \\, and sed turns \\ into \.
14825 sed -n \
14826 "s/'/'\\\\''/g;
14827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14828 ;; #(
14830 # `set' quotes correctly as required by POSIX, so do not add quotes.
14831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14833 esac |
14834 sort
14836 sed '
14837 /^ac_cv_env_/b end
14838 t clear
14839 :clear
14840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14841 t end
14842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14843 :end' >>confcache
14844 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14845 if test -w "$cache_file"; then
14846 if test "x$cache_file" != "x/dev/null"; then
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14848 $as_echo "$as_me: updating cache $cache_file" >&6;}
14849 if test ! -f "$cache_file" || test -h "$cache_file"; then
14850 cat confcache >"$cache_file"
14851 else
14852 case $cache_file in #(
14853 */* | ?:*)
14854 mv -f confcache "$cache_file"$$ &&
14855 mv -f "$cache_file"$$ "$cache_file" ;; #(
14857 mv -f confcache "$cache_file" ;;
14858 esac
14861 else
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14863 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14866 rm -f confcache
14868 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14869 # Let make expand exec_prefix.
14870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14872 DEFS=-DHAVE_CONFIG_H
14874 ac_libobjs=
14875 ac_ltlibobjs=
14877 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14878 # 1. Remove the extension, and $U if already installed.
14879 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14880 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14882 # will be set to the directory where LIBOBJS objects are built.
14883 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14884 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14885 done
14886 LIBOBJS=$ac_libobjs
14888 LTLIBOBJS=$ac_ltlibobjs
14892 : "${CONFIG_STATUS=./config.status}"
14893 ac_write_fail=0
14894 ac_clean_files_save=$ac_clean_files
14895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14898 as_write_fail=0
14899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14900 #! $SHELL
14901 # Generated by $as_me.
14902 # Run this file to recreate the current configuration.
14903 # Compiler output produced by configure, useful for debugging
14904 # configure, is in config.log if it exists.
14906 debug=false
14907 ac_cs_recheck=false
14908 ac_cs_silent=false
14910 SHELL=\${CONFIG_SHELL-$SHELL}
14911 export SHELL
14912 _ASEOF
14913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14914 ## -------------------- ##
14915 ## M4sh Initialization. ##
14916 ## -------------------- ##
14918 # Be more Bourne compatible
14919 DUALCASE=1; export DUALCASE # for MKS sh
14920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14921 emulate sh
14922 NULLCMD=:
14923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14924 # is contrary to our usage. Disable this feature.
14925 alias -g '${1+"$@"}'='"$@"'
14926 setopt NO_GLOB_SUBST
14927 else
14928 case `(set -o) 2>/dev/null` in #(
14929 *posix*) :
14930 set -o posix ;; #(
14931 *) :
14933 esac
14937 as_nl='
14939 export as_nl
14940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14941 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14944 # Prefer a ksh shell builtin over an external printf program on Solaris,
14945 # but without wasting forks for bash or zsh.
14946 if test -z "$BASH_VERSION$ZSH_VERSION" \
14947 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14948 as_echo='print -r --'
14949 as_echo_n='print -rn --'
14950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14951 as_echo='printf %s\n'
14952 as_echo_n='printf %s'
14953 else
14954 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14955 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14956 as_echo_n='/usr/ucb/echo -n'
14957 else
14958 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14959 as_echo_n_body='eval
14960 arg=$1;
14961 case $arg in #(
14962 *"$as_nl"*)
14963 expr "X$arg" : "X\\(.*\\)$as_nl";
14964 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14965 esac;
14966 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14968 export as_echo_n_body
14969 as_echo_n='sh -c $as_echo_n_body as_echo'
14971 export as_echo_body
14972 as_echo='sh -c $as_echo_body as_echo'
14975 # The user is always right.
14976 if test "${PATH_SEPARATOR+set}" != set; then
14977 PATH_SEPARATOR=:
14978 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14979 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14980 PATH_SEPARATOR=';'
14985 # IFS
14986 # We need space, tab and new line, in precisely that order. Quoting is
14987 # there to prevent editors from complaining about space-tab.
14988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14989 # splitting by setting IFS to empty value.)
14990 IFS=" "" $as_nl"
14992 # Find who we are. Look in the path if we contain no directory separator.
14993 as_myself=
14994 case $0 in #((
14995 *[\\/]* ) as_myself=$0 ;;
14996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14997 for as_dir in $PATH
14999 IFS=$as_save_IFS
15000 test -z "$as_dir" && as_dir=.
15001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15002 done
15003 IFS=$as_save_IFS
15006 esac
15007 # We did not find ourselves, most probably we were run as `sh COMMAND'
15008 # in which case we are not to be found in the path.
15009 if test "x$as_myself" = x; then
15010 as_myself=$0
15012 if test ! -f "$as_myself"; then
15013 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15014 exit 1
15017 # Unset variables that we do not need and which cause bugs (e.g. in
15018 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15019 # suppresses any "Segmentation fault" message there. '((' could
15020 # trigger a bug in pdksh 5.2.14.
15021 for as_var in BASH_ENV ENV MAIL MAILPATH
15022 do eval test x\${$as_var+set} = xset \
15023 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15024 done
15025 PS1='$ '
15026 PS2='> '
15027 PS4='+ '
15029 # NLS nuisances.
15030 LC_ALL=C
15031 export LC_ALL
15032 LANGUAGE=C
15033 export LANGUAGE
15035 # CDPATH.
15036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15039 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15040 # ----------------------------------------
15041 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15042 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15043 # script with STATUS, using 1 if that was 0.
15044 as_fn_error ()
15046 as_status=$1; test $as_status -eq 0 && as_status=1
15047 if test "$4"; then
15048 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15049 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15051 $as_echo "$as_me: error: $2" >&2
15052 as_fn_exit $as_status
15053 } # as_fn_error
15056 # as_fn_set_status STATUS
15057 # -----------------------
15058 # Set $? to STATUS, without forking.
15059 as_fn_set_status ()
15061 return $1
15062 } # as_fn_set_status
15064 # as_fn_exit STATUS
15065 # -----------------
15066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15067 as_fn_exit ()
15069 set +e
15070 as_fn_set_status $1
15071 exit $1
15072 } # as_fn_exit
15074 # as_fn_unset VAR
15075 # ---------------
15076 # Portably unset VAR.
15077 as_fn_unset ()
15079 { eval $1=; unset $1;}
15081 as_unset=as_fn_unset
15082 # as_fn_append VAR VALUE
15083 # ----------------------
15084 # Append the text in VALUE to the end of the definition contained in VAR. Take
15085 # advantage of any shell optimizations that allow amortized linear growth over
15086 # repeated appends, instead of the typical quadratic growth present in naive
15087 # implementations.
15088 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15089 eval 'as_fn_append ()
15091 eval $1+=\$2
15093 else
15094 as_fn_append ()
15096 eval $1=\$$1\$2
15098 fi # as_fn_append
15100 # as_fn_arith ARG...
15101 # ------------------
15102 # Perform arithmetic evaluation on the ARGs, and store the result in the
15103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15104 # must be portable across $(()) and expr.
15105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15106 eval 'as_fn_arith ()
15108 as_val=$(( $* ))
15110 else
15111 as_fn_arith ()
15113 as_val=`expr "$@" || test $? -eq 1`
15115 fi # as_fn_arith
15118 if expr a : '\(a\)' >/dev/null 2>&1 &&
15119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15120 as_expr=expr
15121 else
15122 as_expr=false
15125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15126 as_basename=basename
15127 else
15128 as_basename=false
15131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15132 as_dirname=dirname
15133 else
15134 as_dirname=false
15137 as_me=`$as_basename -- "$0" ||
15138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15139 X"$0" : 'X\(//\)$' \| \
15140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15141 $as_echo X/"$0" |
15142 sed '/^.*\/\([^/][^/]*\)\/*$/{
15143 s//\1/
15146 /^X\/\(\/\/\)$/{
15147 s//\1/
15150 /^X\/\(\/\).*/{
15151 s//\1/
15154 s/.*/./; q'`
15156 # Avoid depending upon Character Ranges.
15157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15160 as_cr_digits='0123456789'
15161 as_cr_alnum=$as_cr_Letters$as_cr_digits
15163 ECHO_C= ECHO_N= ECHO_T=
15164 case `echo -n x` in #(((((
15165 -n*)
15166 case `echo 'xy\c'` in
15167 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15168 xy) ECHO_C='\c';;
15169 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15170 ECHO_T=' ';;
15171 esac;;
15173 ECHO_N='-n';;
15174 esac
15176 rm -f conf$$ conf$$.exe conf$$.file
15177 if test -d conf$$.dir; then
15178 rm -f conf$$.dir/conf$$.file
15179 else
15180 rm -f conf$$.dir
15181 mkdir conf$$.dir 2>/dev/null
15183 if (echo >conf$$.file) 2>/dev/null; then
15184 if ln -s conf$$.file conf$$ 2>/dev/null; then
15185 as_ln_s='ln -s'
15186 # ... but there are two gotchas:
15187 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15188 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15189 # In both cases, we have to default to `cp -pR'.
15190 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15191 as_ln_s='cp -pR'
15192 elif ln conf$$.file conf$$ 2>/dev/null; then
15193 as_ln_s=ln
15194 else
15195 as_ln_s='cp -pR'
15197 else
15198 as_ln_s='cp -pR'
15200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15201 rmdir conf$$.dir 2>/dev/null
15204 # as_fn_mkdir_p
15205 # -------------
15206 # Create "$as_dir" as a directory, including parents if necessary.
15207 as_fn_mkdir_p ()
15210 case $as_dir in #(
15211 -*) as_dir=./$as_dir;;
15212 esac
15213 test -d "$as_dir" || eval $as_mkdir_p || {
15214 as_dirs=
15215 while :; do
15216 case $as_dir in #(
15217 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15218 *) as_qdir=$as_dir;;
15219 esac
15220 as_dirs="'$as_qdir' $as_dirs"
15221 as_dir=`$as_dirname -- "$as_dir" ||
15222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15223 X"$as_dir" : 'X\(//\)[^/]' \| \
15224 X"$as_dir" : 'X\(//\)$' \| \
15225 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15226 $as_echo X"$as_dir" |
15227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15228 s//\1/
15231 /^X\(\/\/\)[^/].*/{
15232 s//\1/
15235 /^X\(\/\/\)$/{
15236 s//\1/
15239 /^X\(\/\).*/{
15240 s//\1/
15243 s/.*/./; q'`
15244 test -d "$as_dir" && break
15245 done
15246 test -z "$as_dirs" || eval "mkdir $as_dirs"
15247 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15250 } # as_fn_mkdir_p
15251 if mkdir -p . 2>/dev/null; then
15252 as_mkdir_p='mkdir -p "$as_dir"'
15253 else
15254 test -d ./-p && rmdir ./-p
15255 as_mkdir_p=false
15259 # as_fn_executable_p FILE
15260 # -----------------------
15261 # Test if FILE is an executable regular file.
15262 as_fn_executable_p ()
15264 test -f "$1" && test -x "$1"
15265 } # as_fn_executable_p
15266 as_test_x='test -x'
15267 as_executable_p=as_fn_executable_p
15269 # Sed expression to map a string onto a valid CPP name.
15270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15272 # Sed expression to map a string onto a valid variable name.
15273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15276 exec 6>&1
15277 ## ----------------------------------- ##
15278 ## Main body of $CONFIG_STATUS script. ##
15279 ## ----------------------------------- ##
15280 _ASEOF
15281 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15284 # Save the log message, to keep $0 and so on meaningful, and to
15285 # report actual input values of CONFIG_FILES etc. instead of their
15286 # values after options handling.
15287 ac_log="
15288 This file was extended by $as_me, which was
15289 generated by GNU Autoconf 2.69. Invocation command line was
15291 CONFIG_FILES = $CONFIG_FILES
15292 CONFIG_HEADERS = $CONFIG_HEADERS
15293 CONFIG_LINKS = $CONFIG_LINKS
15294 CONFIG_COMMANDS = $CONFIG_COMMANDS
15295 $ $0 $@
15297 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15300 _ACEOF
15302 case $ac_config_files in *"
15303 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15304 esac
15306 case $ac_config_headers in *"
15307 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15308 esac
15311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15312 # Files that config.status was made for.
15313 config_files="$ac_config_files"
15314 config_headers="$ac_config_headers"
15315 config_commands="$ac_config_commands"
15317 _ACEOF
15319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15320 ac_cs_usage="\
15321 \`$as_me' instantiates files and other configuration actions
15322 from templates according to the current configuration. Unless the files
15323 and actions are specified as TAGs, all are instantiated by default.
15325 Usage: $0 [OPTION]... [TAG]...
15327 -h, --help print this help, then exit
15328 -V, --version print version number and configuration settings, then exit
15329 --config print configuration, then exit
15330 -q, --quiet, --silent
15331 do not print progress messages
15332 -d, --debug don't remove temporary files
15333 --recheck update $as_me by reconfiguring in the same conditions
15334 --file=FILE[:TEMPLATE]
15335 instantiate the configuration file FILE
15336 --header=FILE[:TEMPLATE]
15337 instantiate the configuration header FILE
15339 Configuration files:
15340 $config_files
15342 Configuration headers:
15343 $config_headers
15345 Configuration commands:
15346 $config_commands
15348 Report bugs to the package provider."
15350 _ACEOF
15351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15352 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15353 ac_cs_version="\\
15354 config.status
15355 configured by $0, generated by GNU Autoconf 2.69,
15356 with options \\"\$ac_cs_config\\"
15358 Copyright (C) 2012 Free Software Foundation, Inc.
15359 This config.status script is free software; the Free Software Foundation
15360 gives unlimited permission to copy, distribute and modify it."
15362 ac_pwd='$ac_pwd'
15363 srcdir='$srcdir'
15364 test -n "\$AWK" || AWK=awk
15365 _ACEOF
15367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368 # The default lists apply if the user does not specify any file.
15369 ac_need_defaults=:
15370 while test $# != 0
15372 case $1 in
15373 --*=?*)
15374 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15375 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15376 ac_shift=:
15378 --*=)
15379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15380 ac_optarg=
15381 ac_shift=:
15384 ac_option=$1
15385 ac_optarg=$2
15386 ac_shift=shift
15388 esac
15390 case $ac_option in
15391 # Handling of the options.
15392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15393 ac_cs_recheck=: ;;
15394 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15395 $as_echo "$ac_cs_version"; exit ;;
15396 --config | --confi | --conf | --con | --co | --c )
15397 $as_echo "$ac_cs_config"; exit ;;
15398 --debug | --debu | --deb | --de | --d | -d )
15399 debug=: ;;
15400 --file | --fil | --fi | --f )
15401 $ac_shift
15402 case $ac_optarg in
15403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15404 '') as_fn_error $? "missing file argument" ;;
15405 esac
15406 as_fn_append CONFIG_FILES " '$ac_optarg'"
15407 ac_need_defaults=false;;
15408 --header | --heade | --head | --hea )
15409 $ac_shift
15410 case $ac_optarg in
15411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15412 esac
15413 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15414 ac_need_defaults=false;;
15415 --he | --h)
15416 # Conflict between --help and --header
15417 as_fn_error $? "ambiguous option: \`$1'
15418 Try \`$0 --help' for more information.";;
15419 --help | --hel | -h )
15420 $as_echo "$ac_cs_usage"; exit ;;
15421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15423 ac_cs_silent=: ;;
15425 # This is an error.
15426 -*) as_fn_error $? "unrecognized option: \`$1'
15427 Try \`$0 --help' for more information." ;;
15429 *) as_fn_append ac_config_targets " $1"
15430 ac_need_defaults=false ;;
15432 esac
15433 shift
15434 done
15436 ac_configure_extra_args=
15438 if $ac_cs_silent; then
15439 exec 6>/dev/null
15440 ac_configure_extra_args="$ac_configure_extra_args --silent"
15443 _ACEOF
15444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15445 if \$ac_cs_recheck; then
15446 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15447 shift
15448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15449 CONFIG_SHELL='$SHELL'
15450 export CONFIG_SHELL
15451 exec "\$@"
15454 _ACEOF
15455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15456 exec 5>>config.log
15458 echo
15459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15460 ## Running $as_me. ##
15461 _ASBOX
15462 $as_echo "$ac_log"
15463 } >&5
15465 _ACEOF
15466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15468 # INIT-COMMANDS
15470 aros_tools_dir=${aros_tools_dir}
15473 aros_host_exe_suffix=${aros_host_exe_suffix}
15474 aros_tools_dir=${aros_tools_dir}
15475 aros_target_cpu=${aros_target_cpu}
15476 aros_target_arch=${aros_target_arch}
15477 aros_target_suffix=${aros_target_suffix}
15478 orig_target_nm=${orig_target_nm}
15479 orig_target_as=${orig_target_as}
15480 orig_target_ar=${orig_target_ar}
15481 orig_target_ranlib=${orig_target_ranlib}
15482 orig_target_objdump=${orig_target_objdump}
15483 orig_target_objcopy=${orig_target_objcopy}
15484 orig_target_strip=${orig_target_strip}
15485 aros_kernel_ld=${aros_kernel_ld}
15489 aros_host_exe_suffix=${aros_host_exe_suffix}
15490 aros_tools_dir=${aros_tools_dir}
15491 aros_target_cpu=${aros_target_cpu}
15492 aros_target_arch=${aros_target_arch}
15493 aros_target_suffix=${aros_target_suffix}
15494 aros_kernel_ld=${aros_kernel_ld}
15498 aros_host_exe_suffix=${aros_host_exe_suffix}
15499 aros_tools_dir=${aros_tools_dir}
15500 aros_target_cpu=${aros_target_cpu}
15501 aros_target_arch=${aros_target_arch}
15502 aros_target_suffix=${aros_target_suffix}
15506 _ACEOF
15508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15510 # Handling of arguments.
15511 for ac_config_target in $ac_config_targets
15513 case $ac_config_target in
15514 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15515 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15516 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15517 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15518 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15519 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15520 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15521 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15522 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15523 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15524 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15525 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15526 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15527 "${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" ;;
15528 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15529 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15530 "${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" ;;
15531 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15532 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15533 "${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" ;;
15534 "${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" ;;
15535 "${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" ;;
15536 "${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" ;;
15537 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15539 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15540 esac
15541 done
15544 # If the user did not use the arguments to specify the items to instantiate,
15545 # then the envvar interface is used. Set only those that are not.
15546 # We use the long form for the default assignment because of an extremely
15547 # bizarre bug on SunOS 4.1.3.
15548 if $ac_need_defaults; then
15549 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15550 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15551 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15554 # Have a temporary directory for convenience. Make it in the build tree
15555 # simply because there is no reason against having it here, and in addition,
15556 # creating and moving files from /tmp can sometimes cause problems.
15557 # Hook for its removal unless debugging.
15558 # Note that there is a small window in which the directory will not be cleaned:
15559 # after its creation but before its name has been assigned to `$tmp'.
15560 $debug ||
15562 tmp= ac_tmp=
15563 trap 'exit_status=$?
15564 : "${ac_tmp:=$tmp}"
15565 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15567 trap 'as_fn_exit 1' 1 2 13 15
15569 # Create a (secure) tmp directory for tmp files.
15572 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15573 test -d "$tmp"
15574 } ||
15576 tmp=./conf$$-$RANDOM
15577 (umask 077 && mkdir "$tmp")
15578 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15579 ac_tmp=$tmp
15581 # Set up the scripts for CONFIG_FILES section.
15582 # No need to generate them if there are no CONFIG_FILES.
15583 # This happens for instance with `./config.status config.h'.
15584 if test -n "$CONFIG_FILES"; then
15587 ac_cr=`echo X | tr X '\015'`
15588 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15589 # But we know of no other shell where ac_cr would be empty at this
15590 # point, so we can use a bashism as a fallback.
15591 if test "x$ac_cr" = x; then
15592 eval ac_cr=\$\'\\r\'
15594 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15595 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15596 ac_cs_awk_cr='\\r'
15597 else
15598 ac_cs_awk_cr=$ac_cr
15601 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15602 _ACEOF
15606 echo "cat >conf$$subs.awk <<_ACEOF" &&
15607 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15608 echo "_ACEOF"
15609 } >conf$$subs.sh ||
15610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15611 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15612 ac_delim='%!_!# '
15613 for ac_last_try in false false false false false :; do
15614 . ./conf$$subs.sh ||
15615 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15617 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15618 if test $ac_delim_n = $ac_delim_num; then
15619 break
15620 elif $ac_last_try; then
15621 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15622 else
15623 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15625 done
15626 rm -f conf$$subs.sh
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15630 _ACEOF
15631 sed -n '
15633 s/^/S["/; s/!.*/"]=/
15636 s/^[^!]*!//
15637 :repl
15638 t repl
15639 s/'"$ac_delim"'$//
15640 t delim
15643 s/\(.\{148\}\)..*/\1/
15644 t more1
15645 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15648 b repl
15649 :more1
15650 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15653 s/.\{148\}//
15654 t nl
15655 :delim
15657 s/\(.\{148\}\)..*/\1/
15658 t more2
15659 s/["\\]/\\&/g; s/^/"/; s/$/"/
15662 :more2
15663 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15666 s/.\{148\}//
15667 t delim
15668 ' <conf$$subs.awk | sed '
15669 /^[^""]/{
15671 s/\n//
15673 ' >>$CONFIG_STATUS || ac_write_fail=1
15674 rm -f conf$$subs.awk
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 _ACAWK
15677 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15678 for (key in S) S_is_set[key] = 1
15679 FS = "\a"
15683 line = $ 0
15684 nfields = split(line, field, "@")
15685 substed = 0
15686 len = length(field[1])
15687 for (i = 2; i < nfields; i++) {
15688 key = field[i]
15689 keylen = length(key)
15690 if (S_is_set[key]) {
15691 value = S[key]
15692 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15693 len += length(value) + length(field[++i])
15694 substed = 1
15695 } else
15696 len += 1 + keylen
15699 print line
15702 _ACAWK
15703 _ACEOF
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15706 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15707 else
15709 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15710 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15711 _ACEOF
15713 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15714 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15715 # trailing colons and then remove the whole line if VPATH becomes empty
15716 # (actually we leave an empty line to preserve line numbers).
15717 if test "x$srcdir" = x.; then
15718 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15720 s///
15721 s/^/:/
15722 s/[ ]*$/:/
15723 s/:\$(srcdir):/:/g
15724 s/:\${srcdir}:/:/g
15725 s/:@srcdir@:/:/g
15726 s/^:*//
15727 s/:*$//
15729 s/\(=[ ]*\).*/\1/
15731 s/\n//
15732 s/^[^=]*=[ ]*$//
15736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15737 fi # test -n "$CONFIG_FILES"
15739 # Set up the scripts for CONFIG_HEADERS section.
15740 # No need to generate them if there are no CONFIG_HEADERS.
15741 # This happens for instance with `./config.status Makefile'.
15742 if test -n "$CONFIG_HEADERS"; then
15743 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15744 BEGIN {
15745 _ACEOF
15747 # Transform confdefs.h into an awk script `defines.awk', embedded as
15748 # here-document in config.status, that substitutes the proper values into
15749 # config.h.in to produce config.h.
15751 # Create a delimiter string that does not exist in confdefs.h, to ease
15752 # handling of long lines.
15753 ac_delim='%!_!# '
15754 for ac_last_try in false false :; do
15755 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15756 if test -z "$ac_tt"; then
15757 break
15758 elif $ac_last_try; then
15759 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15760 else
15761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15763 done
15765 # For the awk script, D is an array of macro values keyed by name,
15766 # likewise P contains macro parameters if any. Preserve backslash
15767 # newline sequences.
15769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15770 sed -n '
15771 s/.\{148\}/&'"$ac_delim"'/g
15772 t rset
15773 :rset
15774 s/^[ ]*#[ ]*define[ ][ ]*/ /
15775 t def
15777 :def
15778 s/\\$//
15779 t bsnl
15780 s/["\\]/\\&/g
15781 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15782 D["\1"]=" \3"/p
15783 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15785 :bsnl
15786 s/["\\]/\\&/g
15787 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15788 D["\1"]=" \3\\\\\\n"\\/p
15789 t cont
15790 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15791 t cont
15793 :cont
15795 s/.\{148\}/&'"$ac_delim"'/g
15796 t clear
15797 :clear
15798 s/\\$//
15799 t bsnlc
15800 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15802 :bsnlc
15803 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15804 b cont
15805 ' <confdefs.h | sed '
15806 s/'"$ac_delim"'/"\\\
15807 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15810 for (key in D) D_is_set[key] = 1
15811 FS = "\a"
15813 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15814 line = \$ 0
15815 split(line, arg, " ")
15816 if (arg[1] == "#") {
15817 defundef = arg[2]
15818 mac1 = arg[3]
15819 } else {
15820 defundef = substr(arg[1], 2)
15821 mac1 = arg[2]
15823 split(mac1, mac2, "(") #)
15824 macro = mac2[1]
15825 prefix = substr(line, 1, index(line, defundef) - 1)
15826 if (D_is_set[macro]) {
15827 # Preserve the white space surrounding the "#".
15828 print prefix "define", macro P[macro] D[macro]
15829 next
15830 } else {
15831 # Replace #undef with comments. This is necessary, for example,
15832 # in the case of _POSIX_SOURCE, which is predefined and required
15833 # on some systems where configure will not decide to define it.
15834 if (defundef == "undef") {
15835 print "/*", prefix defundef, macro, "*/"
15836 next
15840 { print }
15841 _ACAWK
15842 _ACEOF
15843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15844 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15845 fi # test -n "$CONFIG_HEADERS"
15848 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15849 shift
15850 for ac_tag
15852 case $ac_tag in
15853 :[FHLC]) ac_mode=$ac_tag; continue;;
15854 esac
15855 case $ac_mode$ac_tag in
15856 :[FHL]*:*);;
15857 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15858 :[FH]-) ac_tag=-:-;;
15859 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15860 esac
15861 ac_save_IFS=$IFS
15862 IFS=:
15863 set x $ac_tag
15864 IFS=$ac_save_IFS
15865 shift
15866 ac_file=$1
15867 shift
15869 case $ac_mode in
15870 :L) ac_source=$1;;
15871 :[FH])
15872 ac_file_inputs=
15873 for ac_f
15875 case $ac_f in
15876 -) ac_f="$ac_tmp/stdin";;
15877 *) # Look for the file first in the build tree, then in the source tree
15878 # (if the path is not absolute). The absolute path cannot be DOS-style,
15879 # because $ac_f cannot contain `:'.
15880 test -f "$ac_f" ||
15881 case $ac_f in
15882 [\\/$]*) false;;
15883 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15884 esac ||
15885 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15886 esac
15887 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15888 as_fn_append ac_file_inputs " '$ac_f'"
15889 done
15891 # Let's still pretend it is `configure' which instantiates (i.e., don't
15892 # use $as_me), people would be surprised to read:
15893 # /* config.h. Generated by config.status. */
15894 configure_input='Generated from '`
15895 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15896 `' by configure.'
15897 if test x"$ac_file" != x-; then
15898 configure_input="$ac_file. $configure_input"
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15900 $as_echo "$as_me: creating $ac_file" >&6;}
15902 # Neutralize special characters interpreted by sed in replacement strings.
15903 case $configure_input in #(
15904 *\&* | *\|* | *\\* )
15905 ac_sed_conf_input=`$as_echo "$configure_input" |
15906 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15907 *) ac_sed_conf_input=$configure_input;;
15908 esac
15910 case $ac_tag in
15911 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15913 esac
15915 esac
15917 ac_dir=`$as_dirname -- "$ac_file" ||
15918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15919 X"$ac_file" : 'X\(//\)[^/]' \| \
15920 X"$ac_file" : 'X\(//\)$' \| \
15921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15922 $as_echo X"$ac_file" |
15923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15924 s//\1/
15927 /^X\(\/\/\)[^/].*/{
15928 s//\1/
15931 /^X\(\/\/\)$/{
15932 s//\1/
15935 /^X\(\/\).*/{
15936 s//\1/
15939 s/.*/./; q'`
15940 as_dir="$ac_dir"; as_fn_mkdir_p
15941 ac_builddir=.
15943 case "$ac_dir" in
15944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15946 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15947 # A ".." for each directory in $ac_dir_suffix.
15948 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15949 case $ac_top_builddir_sub in
15950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15952 esac ;;
15953 esac
15954 ac_abs_top_builddir=$ac_pwd
15955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15956 # for backward compatibility:
15957 ac_top_builddir=$ac_top_build_prefix
15959 case $srcdir in
15960 .) # We are building in place.
15961 ac_srcdir=.
15962 ac_top_srcdir=$ac_top_builddir_sub
15963 ac_abs_top_srcdir=$ac_pwd ;;
15964 [\\/]* | ?:[\\/]* ) # Absolute name.
15965 ac_srcdir=$srcdir$ac_dir_suffix;
15966 ac_top_srcdir=$srcdir
15967 ac_abs_top_srcdir=$srcdir ;;
15968 *) # Relative name.
15969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15970 ac_top_srcdir=$ac_top_build_prefix$srcdir
15971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15972 esac
15973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15976 case $ac_mode in
15979 # CONFIG_FILE
15982 _ACEOF
15984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15985 # If the template does not know about datarootdir, expand it.
15986 # FIXME: This hack should be removed a few years after 2.60.
15987 ac_datarootdir_hack=; ac_datarootdir_seen=
15988 ac_sed_dataroot='
15989 /datarootdir/ {
15993 /@datadir@/p
15994 /@docdir@/p
15995 /@infodir@/p
15996 /@localedir@/p
15997 /@mandir@/p'
15998 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15999 *datarootdir*) ac_datarootdir_seen=yes;;
16000 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16002 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16003 _ACEOF
16004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16005 ac_datarootdir_hack='
16006 s&@datadir@&$datadir&g
16007 s&@docdir@&$docdir&g
16008 s&@infodir@&$infodir&g
16009 s&@localedir@&$localedir&g
16010 s&@mandir@&$mandir&g
16011 s&\\\${datarootdir}&$datarootdir&g' ;;
16012 esac
16013 _ACEOF
16015 # Neutralize VPATH when `$srcdir' = `.'.
16016 # Shell code in configure.ac might set extrasub.
16017 # FIXME: do we really want to maintain this feature?
16018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16019 ac_sed_extra="$ac_vpsub
16020 $extrasub
16021 _ACEOF
16022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16025 s|@configure_input@|$ac_sed_conf_input|;t t
16026 s&@top_builddir@&$ac_top_builddir_sub&;t t
16027 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16028 s&@srcdir@&$ac_srcdir&;t t
16029 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16030 s&@top_srcdir@&$ac_top_srcdir&;t t
16031 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16032 s&@builddir@&$ac_builddir&;t t
16033 s&@abs_builddir@&$ac_abs_builddir&;t t
16034 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16035 $ac_datarootdir_hack
16037 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16038 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16041 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16043 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16045 which seems to be undefined. Please make sure it is defined" >&5
16046 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16047 which seems to be undefined. Please make sure it is defined" >&2;}
16049 rm -f "$ac_tmp/stdin"
16050 case $ac_file in
16051 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16052 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16053 esac \
16054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16058 # CONFIG_HEADER
16060 if test x"$ac_file" != x-; then
16062 $as_echo "/* $configure_input */" \
16063 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16064 } >"$ac_tmp/config.h" \
16065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16066 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16068 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16069 else
16070 rm -f "$ac_file"
16071 mv "$ac_tmp/config.h" "$ac_file" \
16072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16074 else
16075 $as_echo "/* $configure_input */" \
16076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16077 || as_fn_error $? "could not create -" "$LINENO" 5
16081 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16082 $as_echo "$as_me: executing $ac_file commands" >&6;}
16084 esac
16087 case $ac_file$ac_mode in
16088 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16089 "binutils-support":C)
16090 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16091 mkdir -p $prefix
16092 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16094 chmod a+x ${prefix2}-ld
16096 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16097 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16098 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16099 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16100 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16101 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16102 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16104 "elf-compiler-support":C)
16105 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16106 mkdir -p $prefix
16107 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16109 chmod a+x ${prefix2}-gcc
16111 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16113 "host-compiler-wrapper-support":C)
16114 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16115 mkdir -p $prefix
16116 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16118 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16121 esac
16122 done # for ac_tag
16125 as_fn_exit 0
16126 _ACEOF
16127 ac_clean_files=$ac_clean_files_save
16129 test $ac_write_fail = 0 ||
16130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16133 # configure is writing to config.log, and then calls config.status.
16134 # config.status does its own redirection, appending to config.log.
16135 # Unfortunately, on DOS this fails, as config.log is still kept open
16136 # by configure, so config.status won't be able to write to it; its
16137 # output is simply discarded. So we exec the FD to /dev/null,
16138 # effectively closing config.log, so it can be properly (re)opened and
16139 # appended to by config.status. When coming back to configure, we
16140 # need to make the FD available again.
16141 if test "$no_create" != yes; then
16142 ac_cs_success=:
16143 ac_config_status_args=
16144 test "$silent" = yes &&
16145 ac_config_status_args="$ac_config_status_args --quiet"
16146 exec 5>/dev/null
16147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16148 exec 5>>config.log
16149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16150 # would make configure fail if this is the last instruction.
16151 $ac_cs_success || as_fn_exit 1
16153 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16155 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16160 #XXX compatability...
16161 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16163 if test -n "$aros_shared_cflags" ; then
16164 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16165 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg