Don't print the bus number in ata_InitBus() debug messages: with the
[AROS.git] / configure
blob0598ae7fa5fb42704b977c3f3a2881999163e7a0
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 objc_target
626 gcc_target_cpu
627 ignore_undefined_symbols
628 aros_modules_debug
629 aros_stack_debug
630 aros_mungwall_debug
631 aros_debug
632 ENABLE_X11
633 KERNEL_DBUS_INCLUDES
634 KERNEL_DBUS_KOBJ
635 DBUS_LIBFLAGS
636 DBUS_CFLAGS
637 ENABLE_DBUS
638 aros_android_antapk
639 aros_android_level
640 gcc_default_float_abi
641 gcc_default_fpu
642 gcc_default_cpu_tune
643 gcc_default_cpu
644 aros_ios_sdk
645 aros_ios_version
646 aros_ios_platform
647 aros_enable_mmu
648 aros_nesting_supervisor
649 aros_palm_debug_hack
650 aros_serial_debug
651 aros_host_sdl_libs
652 aros_host_sdl_cflags
653 aros_host_x11_libdirs
654 aros_host_x11_includes
655 DO_VIDMODE_SUPPORT
656 DO_XSHM_SUPPORT
657 aros_default_wbdepth
658 aros_default_wbheight
659 aros_default_wbwidth
660 oss_library_target
661 pci_hidd_target
662 sdl_hidd_target
663 unixgfx_hidd_target
664 aros_cflags_format_security
665 aros_cflags_strict_overflow
666 aros_cflags_enum_compare
667 aros_cflags_array_bounds
668 aros_cflags_unused_but_set_variable
669 crosstools_cxx_target
670 crosstools_target
671 aros_target_strip_flags
672 aros_target_genmap
673 aros_debug_ldflags
674 aros_debug_aflags
675 aros_debug_cflags
676 aros_target_cflags
677 aros_kernel_ldflags
678 aros_kernel_objcflags
679 aros_kernel_includes
680 aros_kernel_cflags
681 aros_shared_ldflags
682 aros_shared_aflags
683 aros_shared_cflags
684 aros_config_ldflags
685 aros_config_aflags
686 aros_config_cflags
687 aros_arch_libs
688 aros_compiler_libs
689 spec_obj_format
690 aros_object_format
691 aros_shared_ld
692 aros_shared_default
693 aros_target_nm
694 aros_target_strip
695 aros_target_objcopy
696 aros_target_objdump
697 aros_target_cc_path
698 aros_target_cc_includes
699 aros_target_ld
700 aros_target_as
701 aros_target_cpp
702 aros_target_cxx
703 aros_target_cc
704 aros_plain_ar
705 aros_plain_nm
706 aros_target_ranlib
707 aros_target_ar
708 aros_target_suffix
709 aros_target_variant
710 aros_target_cpu
711 aros_target_family
712 aros_target_arch
713 aros_target_bootloader
714 aros_target_iconset
715 aros_target_guitheme
716 aros_tools_dir
717 aros_host_lib_suffix
718 aros_host_exe_suffix
719 aros_host_mkargs
720 aros_host_mkdep
721 aros_host_debug
722 aros_host_ldflags
723 gnu89_inline
724 aros_host_cxxflags
725 aros_host_cflags
726 aros_host_make
727 aros_host_cxx
728 aros_host_cc
729 aros_host_cpp
730 aros_host_cpu
731 aros_host_arch
732 aros_cc_pre
733 aros_amigaos_compliance
734 AROS_PORTSSRCDIR
735 AROS_CROSSTOOLSDIR
736 SRCDIR
737 AROS_BUILDDIR_UNIX
738 AROS_BUILDDIR
739 aros_target_toolchain
740 aros_flavour_uc
741 aros_flavour
742 aros_cpu
743 aros_arch
744 SDL_LIBS
745 SDL_CFLAGS
746 SDL_CONFIG
747 XMKMF
748 aros_cflags_iquote_end
749 aros_cflags_iquote
750 kernel_cflags_iquote_end
751 kernel_cflags_iquote
752 host_cflags_iquote_end
753 host_cflags_iquote
754 aros_target_nostdlib_ldflags
755 aros_target_detach_ldflags
756 aros_target_nix_ldflags
757 aros_target_nostartup_ldflags
758 aros_target_nostdinc_cflags
759 aros_kernel_rescomp
760 orig_target_objdump
761 orig_target_objcopy
762 orig_target_strip
763 orig_target_nm
764 orig_target_ranlib
765 orig_target_ar
766 orig_target_as
767 orig_target_ld
768 orig_target_cxx
769 orig_target_cc
770 orig_target_cpp
771 aros_kernel_objdump
772 aros_kernel_objcopy
773 aros_kernel_strip
774 aros_kernel_nm
775 aros_kernel_ranlib
776 aros_kernel_ar
777 aros_kernel_as
778 aros_kernel_ld
779 aros_kernel_cxx
780 aros_kernel_cc
781 aros_kernel_cpp
782 target_gcc_version
784 android_tool
785 CCACHE
786 DISTCC
787 LIBOBJS
788 EGREP
789 GREP
791 TEST
794 pkgpyexecdir
795 pyexecdir
796 pkgpythondir
797 pythondir
798 PYTHON_PLATFORM
799 PYTHON_EXEC_PREFIX
800 PYTHON_PREFIX
801 PYTHON_VERSION
802 PYTHON
803 PATCH
804 CHMOD
806 PPMTOILBM
807 PNGTOPNM
808 FLEX
809 BISON
812 UNIQ
813 SORT
814 TOUCH
815 MKDIR
816 ECHO
820 aros_host_strip
821 aros_host_ranlib
822 aros_host_ar
823 aros_host_automake
824 aros_host_autoheader
825 aros_host_autoconf
826 aros_host_aclocal
827 aros_host_ld
828 MMAKE
831 ac_ct_CC
832 CFLAGS
834 OBJEXT
835 EXEEXT
836 ac_ct_CXX
837 CPPFLAGS
838 LDFLAGS
839 CXXFLAGS
841 host_os
842 host_vendor
843 host_cpu
844 host
845 build_os
846 build_vendor
847 build_cpu
848 build
849 target_alias
850 host_alias
851 build_alias
852 LIBS
853 ECHO_T
854 ECHO_N
855 ECHO_C
856 DEFS
857 mandir
858 localedir
859 libdir
860 psdir
861 pdfdir
862 dvidir
863 htmldir
864 infodir
865 docdir
866 oldincludedir
867 includedir
868 localstatedir
869 sharedstatedir
870 sysconfdir
871 datadir
872 datarootdir
873 libexecdir
874 sbindir
875 bindir
876 program_transform_name
877 prefix
878 exec_prefix
879 PACKAGE_URL
880 PACKAGE_BUGREPORT
881 PACKAGE_STRING
882 PACKAGE_VERSION
883 PACKAGE_TARNAME
884 PACKAGE_NAME
885 PATH_SEPARATOR
886 SHELL'
887 ac_subst_files=''
888 ac_user_opts='
889 enable_option_checking
890 enable_build_type
891 enable_debug
892 enable_distcc
893 enable_ccache
894 with_kernel_gcc_version
895 with_optimization
896 with_paranoia
897 enable_target_variant
898 with_xcode
899 with_sdk_version
900 with_sdk
901 with_ndk
902 with_ndk_version
903 with_apk_version
904 enable_amigaos_compliance
905 with_kernel_toolchain_prefix
906 with_elf_toolchain_prefix
907 with_aros_toolchain
908 enable_crosstools
909 with_aros_toolchain_install
910 with_use_gcc_version
911 enable_objc
912 with_cpu
913 with_fpu
914 with_float
915 with_portssources
916 with_bootloader
917 with_iconset
918 with_theme
919 enable_includes
920 with_resolution
921 with_serial_debug
922 enable_palm_debug_hack
923 enable_usb30_code
924 enable_nesting_supervisor
925 enable_mmu
926 enable_x11_hidd
927 with_x
928 enable_x11_shm
929 enable_x11_vidmode
930 enable_sdl_hidd
931 with_sdl_prefix
932 with_sdl_exec_prefix
933 enable_sdltest
934 enable_dbus
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
940 CXXFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
946 CFLAGS
948 PYTHON
949 XMKMF'
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1011 case $ac_option in
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *=) ac_optarg= ;;
1014 *) ac_optarg=yes ;;
1015 esac
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1021 ac_dashdash=yes ;;
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error $? "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error $? "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1335 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1357 esac
1358 done
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error $? "missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 elif test "x$build_alias" != "x$host_alias"; then
1406 cross_compiling=yes
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413 test "$silent" = yes && exec 6>/dev/null
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error $? "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error $? "pwd does not report name of working directory"
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1442 /^X\(\/\/\)$/{
1443 s//\1/
1446 /^X\(\/\).*/{
1447 s//\1/
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1455 else
1456 ac_srcdir_defaulted=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1465 pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
1490 \`configure' configures this package to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1499 Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking ...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543 _ACEOF
1545 cat <<\_ACEOF
1547 X features:
1548 --x-includes=DIR X include files are in DIR
1549 --x-libraries=DIR X library files are in DIR
1551 System types:
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 _ACEOF
1557 if test -n "$ac_init_help"; then
1559 cat <<\_ACEOF
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-build-type=TYPE
1566 Select the build type. Available types are:
1567 personal, nightly, snapshot, milestone, release. Do
1568 NOT use this option unless you know what you are
1569 doing! (default=personal)
1570 --enable-debug=list Enable different types of debug. Commas or
1571 whitespaces can be used to separate the items in the
1572 list. Available types of debug are: all, none,
1573 messages, stack, mungwall, modules, symbols. If no
1574 list is provided then "all" is assumed.
1575 (default=none)
1576 --enable-distcc Use distcc as a front end to the compiler
1577 (default=no).
1578 --enable-ccache Use ccache as a front end to the compiler
1579 (default=no).
1580 --enable-target-variant=NAME
1581 Enable a specific target variant(default=none)
1582 --enable-amigaos-compliance=VERSION
1583 Enforce userspace AmigaOS compliance to a specific
1584 KickStart version (default=none).
1585 --disable-crosstools Do not build cross-compiler toolchain
1586 --disable-objc Build without Objectve-C support
1587 --enable-includes=dir Alternative system include directory
1588 --enable-palm-debug-hack
1589 Enable palm debug output hack in palm native
1590 (default=no)
1591 --enable-usb30-code Enable usb3.0 code (default=no)
1592 --enable-nesting-supervisor
1593 Enable nesting supervisor support in unix
1594 (default=no)
1595 --disable-mmu Disable MMU support (default=enabled)
1596 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1597 --enable-x11-shm use X11 shared memory (default=auto)
1598 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1599 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1600 --disable-sdltest Do not try to compile and run a test SDL program
1601 --enable-dbus Enable DBUS support via dbus.library (default=no)
1603 Optional Packages:
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-kernel-gcc-version=VERSION
1607 Use gcc-VERSION for building bootstrap
1608 --with-optimization=FLAGS
1609 Use optimization flags FLAGS (default=-O2).
1610 --with-paranoia=FLAGS CC flags to enable paranoia
1611 --with-xcode=PATH Specify XCode path for iOS targets
1612 (default=/Developer).
1613 --with-sdk-version=VERSION
1614 Use iOS SDK version VERSION (default=4.1).
1615 --with-sdk=PATH Specify Android SDK path
1616 (default=$default_android_sdk).
1617 --with-ndk=PATH Specify Android NDK path (default=none).
1618 --with-sdk-version=LEVEL
1619 Use Android SDK for API LEVEL (default=12).
1620 --with-ndk-version=LEVEL
1621 Use Android NDK for API LEVEL (default=9).
1622 --with-apk-version=(release|debug)
1623 Which version of AROSBootstrap.apk to compile.
1624 Release version needs key for signing, debug version
1625 will only run in emulator. (default=release)
1626 --with-kernel-toolchain-prefix=...
1627 Specify crosscompile toolchain prefix for kernel
1628 objects
1629 --with-elf-toolchain-prefix=...
1630 Specify crosscompile toolchain prefix to wrap for
1631 AROS objects
1632 --with-aros-toolchain=PREFIX
1633 Specify prebuilt AROS toolchain
1634 --with-aros-toolchain-install=DIR
1635 Where to install or search for cross tools binaries
1636 --with-gcc-version=VERSION
1637 Use gcc-VERSION for building AROS
1638 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1639 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1640 --with-float=<spec> Specify floating point ABI
1641 (default=$gcc_default_float_abi).
1642 --with-portssources=DIR Where to download sourcecode for external ports
1643 --with-bootloader=NAME Use a specific bootloader
1644 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1645 --with-theme=NAME Use a specific GUI Theme
1646 --with-resolution=XRESxYRESxDEPTH
1647 Default resolution of the initial WorkbenchScreen
1648 --with-serial-debug Enable serial debug output in native (default=no)
1649 --with-x use the X Window System
1650 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1651 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1653 Some influential environment variables:
1654 CXX C++ compiler command
1655 CXXFLAGS C++ compiler flags
1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1657 nonstandard directory <lib dir>
1658 LIBS libraries to pass to the linker, e.g. -l<library>
1659 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1660 you have headers in a nonstandard directory <include dir>
1661 CC C compiler command
1662 CFLAGS C compiler flags
1663 CPP C preprocessor
1664 PYTHON the Python interpreter
1665 XMKMF Path to xmkmf, Makefile generator for X Window System
1667 Use these variables to override the choices made by `configure' or to help
1668 it to find libraries and programs with nonstandard names/locations.
1670 Report bugs to the package provider.
1671 _ACEOF
1672 ac_status=$?
1675 if test "$ac_init_help" = "recursive"; then
1676 # If there are subdirs, report their specific --help.
1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1678 test -d "$ac_dir" ||
1679 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680 continue
1681 ac_builddir=.
1683 case "$ac_dir" in
1684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1687 # A ".." for each directory in $ac_dir_suffix.
1688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1689 case $ac_top_builddir_sub in
1690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692 esac ;;
1693 esac
1694 ac_abs_top_builddir=$ac_pwd
1695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1696 # for backward compatibility:
1697 ac_top_builddir=$ac_top_build_prefix
1699 case $srcdir in
1700 .) # We are building in place.
1701 ac_srcdir=.
1702 ac_top_srcdir=$ac_top_builddir_sub
1703 ac_abs_top_srcdir=$ac_pwd ;;
1704 [\\/]* | ?:[\\/]* ) # Absolute name.
1705 ac_srcdir=$srcdir$ac_dir_suffix;
1706 ac_top_srcdir=$srcdir
1707 ac_abs_top_srcdir=$srcdir ;;
1708 *) # Relative name.
1709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710 ac_top_srcdir=$ac_top_build_prefix$srcdir
1711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1712 esac
1713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1715 cd "$ac_dir" || { ac_status=$?; continue; }
1716 # Check for guested configure.
1717 if test -f "$ac_srcdir/configure.gnu"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720 elif test -f "$ac_srcdir/configure"; then
1721 echo &&
1722 $SHELL "$ac_srcdir/configure" --help=recursive
1723 else
1724 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1725 fi || ac_status=$?
1726 cd "$ac_pwd" || { ac_status=$?; break; }
1727 done
1730 test -n "$ac_init_help" && exit $ac_status
1731 if $ac_init_version; then
1732 cat <<\_ACEOF
1733 configure
1734 generated by GNU Autoconf 2.69
1736 Copyright (C) 2012 Free Software Foundation, Inc.
1737 This configure script is free software; the Free Software Foundation
1738 gives unlimited permission to copy, distribute and modify it.
1739 _ACEOF
1740 exit
1743 ## ------------------------ ##
1744 ## Autoconf initialization. ##
1745 ## ------------------------ ##
1747 # ac_fn_cxx_try_compile LINENO
1748 # ----------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_cxx_try_compile ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 ac_retval=1
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_cxx_try_compile
1785 # ac_fn_c_try_compile LINENO
1786 # --------------------------
1787 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_compile ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext
1792 if { { ac_try="$ac_compile"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_compile") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest.$ac_objext; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1816 ac_retval=1
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_compile
1823 # ac_fn_c_try_cpp LINENO
1824 # ----------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_c_try_cpp ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_cpp conftest.$ac_ext"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } > conftest.i && {
1845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 ac_retval=1
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_cpp
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_link ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=1
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_link
1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909 # the include files in INCLUDES and setting the cache variable VAR
1910 # accordingly.
1911 ac_fn_c_check_header_mongrel ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if eval \${$3+:} false; then :
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 else
1924 # Is the header compilable?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926 $as_echo_n "checking $2 usability... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_header_compiler=yes
1934 else
1935 ac_header_compiler=no
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939 $as_echo "$ac_header_compiler" >&6; }
1941 # Is the header present?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943 $as_echo_n "checking $2 presence... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_cpp "$LINENO"; then :
1949 ac_header_preproc=yes
1950 else
1951 ac_header_preproc=no
1953 rm -f conftest.err conftest.i conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955 $as_echo "$ac_header_preproc" >&6; }
1957 # So? What about this header?
1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 yes:no: )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 no:yes:* )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1969 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1973 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 esac
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1982 else
1983 eval "$3=\$ac_header_compiler"
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 } # ac_fn_c_check_header_mongrel
1993 # ac_fn_c_try_run LINENO
1994 # ----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1996 # that executables *can* be run.
1997 ac_fn_c_try_run ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>&5
2008 ac_status=$?
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2011 { { case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_try") 2>&5
2018 ac_status=$?
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; }; }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: program exited with status $ac_status" >&5
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_retval=$ac_status
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2033 } # ac_fn_c_try_run
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2050 #include <$2>
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_header_compile
2066 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2067 # ----------------------------------------------------
2068 # Tries to find if the field MEMBER exists in type AGGR, after including
2069 # INCLUDES, setting cache variable VAR accordingly.
2070 ac_fn_c_check_member ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2074 $as_echo_n "checking for $2.$3... " >&6; }
2075 if eval \${$4+:} false; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 static $2 ac_aggr;
2085 if (ac_aggr.$3)
2086 return 0;
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 eval "$4=yes"
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 main ()
2100 static $2 ac_aggr;
2101 if (sizeof ac_aggr.$3)
2102 return 0;
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$4=yes"
2109 else
2110 eval "$4=no"
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 eval ac_res=\$$4
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_member
2123 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2124 # ---------------------------------------------
2125 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2126 # accordingly.
2127 ac_fn_c_check_decl ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 as_decl_name=`echo $2|sed 's/ *(.*//'`
2131 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2133 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2134 if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2136 else
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2141 main ()
2143 #ifndef $as_decl_name
2144 #ifdef __cplusplus
2145 (void) $as_decl_use;
2146 #else
2147 (void) $as_decl_name;
2148 #endif
2149 #endif
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 eval "$3=yes"
2157 else
2158 eval "$3=no"
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_check_decl
2169 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2170 # -------------------------------------------
2171 # Tests whether TYPE exists after having included INCLUDES, setting cache
2172 # variable VAR accordingly.
2173 ac_fn_c_check_type ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if eval \${$3+:} false; then :
2179 $as_echo_n "(cached) " >&6
2180 else
2181 eval "$3=no"
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2186 main ()
2188 if (sizeof ($2))
2189 return 0;
2191 return 0;
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2199 main ()
2201 if (sizeof (($2)))
2202 return 0;
2204 return 0;
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2209 else
2210 eval "$3=yes"
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 eval ac_res=\$$3
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 } # ac_fn_c_check_type
2223 # ac_fn_c_check_func LINENO FUNC VAR
2224 # ----------------------------------
2225 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2226 ac_fn_c_check_func ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if eval \${$3+:} false; then :
2232 $as_echo_n "(cached) " >&6
2233 else
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2236 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2238 #define $2 innocuous_$2
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char $2 (); below.
2242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2243 <limits.h> exists even on freestanding compilers. */
2245 #ifdef __STDC__
2246 # include <limits.h>
2247 #else
2248 # include <assert.h>
2249 #endif
2251 #undef $2
2253 /* Override any GCC internal prototype to avoid an error.
2254 Use char because int might match the return type of a GCC
2255 builtin and then its argument prototype would still apply. */
2256 #ifdef __cplusplus
2257 extern "C"
2258 #endif
2259 char $2 ();
2260 /* The GNU C library defines this for functions which it implements
2261 to always fail with ENOSYS. Some functions are actually named
2262 something starting with __ and the normal name is an alias. */
2263 #if defined __stub_$2 || defined __stub___$2
2264 choke me
2265 #endif
2268 main ()
2270 return $2 ();
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_link "$LINENO"; then :
2276 eval "$3=yes"
2277 else
2278 eval "$3=no"
2280 rm -f core conftest.err conftest.$ac_objext \
2281 conftest$ac_exeext conftest.$ac_ext
2283 eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288 } # ac_fn_c_check_func
2289 cat >config.log <<_ACEOF
2290 This file contains any messages produced by compilers while
2291 running configure, to aid debugging if configure makes a mistake.
2293 It was created by $as_me, which was
2294 generated by GNU Autoconf 2.69. Invocation command line was
2296 $ $0 $@
2298 _ACEOF
2299 exec 5>>config.log
2301 cat <<_ASUNAME
2302 ## --------- ##
2303 ## Platform. ##
2304 ## --------- ##
2306 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2307 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2308 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2309 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2310 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2312 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2313 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2315 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2316 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2317 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2318 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2319 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2320 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2321 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2323 _ASUNAME
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 $as_echo "PATH: $as_dir"
2331 done
2332 IFS=$as_save_IFS
2334 } >&5
2336 cat >&5 <<_ACEOF
2339 ## ----------- ##
2340 ## Core tests. ##
2341 ## ----------- ##
2343 _ACEOF
2346 # Keep a trace of the command line.
2347 # Strip out --no-create and --no-recursion so they do not pile up.
2348 # Strip out --silent because we don't want to record it for future runs.
2349 # Also quote any args containing shell meta-characters.
2350 # Make two passes to allow for proper duplicate-argument suppression.
2351 ac_configure_args=
2352 ac_configure_args0=
2353 ac_configure_args1=
2354 ac_must_keep_next=false
2355 for ac_pass in 1 2
2357 for ac_arg
2359 case $ac_arg in
2360 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2362 | -silent | --silent | --silen | --sile | --sil)
2363 continue ;;
2364 *\'*)
2365 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2366 esac
2367 case $ac_pass in
2368 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2370 as_fn_append ac_configure_args1 " '$ac_arg'"
2371 if test $ac_must_keep_next = true; then
2372 ac_must_keep_next=false # Got value, back to normal.
2373 else
2374 case $ac_arg in
2375 *=* | --config-cache | -C | -disable-* | --disable-* \
2376 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2377 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2378 | -with-* | --with-* | -without-* | --without-* | --x)
2379 case "$ac_configure_args0 " in
2380 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2381 esac
2383 -* ) ac_must_keep_next=true ;;
2384 esac
2386 as_fn_append ac_configure_args " '$ac_arg'"
2388 esac
2389 done
2390 done
2391 { ac_configure_args0=; unset ac_configure_args0;}
2392 { ac_configure_args1=; unset ac_configure_args1;}
2394 # When interrupted or exit'd, cleanup temporary files, and complete
2395 # config.log. We remove comments because anyway the quotes in there
2396 # would cause problems or look ugly.
2397 # WARNING: Use '\'' to represent an apostrophe within the trap.
2398 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2399 trap 'exit_status=$?
2400 # Save into config.log some information that might help in debugging.
2402 echo
2404 $as_echo "## ---------------- ##
2405 ## Cache variables. ##
2406 ## ---------------- ##"
2407 echo
2408 # The following way of writing the cache mishandles newlines in values,
2410 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2411 eval ac_val=\$$ac_var
2412 case $ac_val in #(
2413 *${as_nl}*)
2414 case $ac_var in #(
2415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2417 esac
2418 case $ac_var in #(
2419 _ | IFS | as_nl) ;; #(
2420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2421 *) { eval $ac_var=; unset $ac_var;} ;;
2422 esac ;;
2423 esac
2424 done
2425 (set) 2>&1 |
2426 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2427 *${as_nl}ac_space=\ *)
2428 sed -n \
2429 "s/'\''/'\''\\\\'\'''\''/g;
2430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2431 ;; #(
2433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2435 esac |
2436 sort
2438 echo
2440 $as_echo "## ----------------- ##
2441 ## Output variables. ##
2442 ## ----------------- ##"
2443 echo
2444 for ac_var in $ac_subst_vars
2446 eval ac_val=\$$ac_var
2447 case $ac_val in
2448 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2449 esac
2450 $as_echo "$ac_var='\''$ac_val'\''"
2451 done | sort
2452 echo
2454 if test -n "$ac_subst_files"; then
2455 $as_echo "## ------------------- ##
2456 ## File substitutions. ##
2457 ## ------------------- ##"
2458 echo
2459 for ac_var in $ac_subst_files
2461 eval ac_val=\$$ac_var
2462 case $ac_val in
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464 esac
2465 $as_echo "$ac_var='\''$ac_val'\''"
2466 done | sort
2467 echo
2470 if test -s confdefs.h; then
2471 $as_echo "## ----------- ##
2472 ## confdefs.h. ##
2473 ## ----------- ##"
2474 echo
2475 cat confdefs.h
2476 echo
2478 test "$ac_signal" != 0 &&
2479 $as_echo "$as_me: caught signal $ac_signal"
2480 $as_echo "$as_me: exit $exit_status"
2481 } >&5
2482 rm -f core *.core core.conftest.* &&
2483 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2484 exit $exit_status
2486 for ac_signal in 1 2 13 15; do
2487 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2488 done
2489 ac_signal=0
2491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2492 rm -f -r conftest* confdefs.h
2494 $as_echo "/* confdefs.h */" > confdefs.h
2496 # Predefined preprocessor variables.
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_NAME "$PACKAGE_NAME"
2500 _ACEOF
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2504 _ACEOF
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2508 _ACEOF
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_STRING "$PACKAGE_STRING"
2512 _ACEOF
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2516 _ACEOF
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_URL "$PACKAGE_URL"
2520 _ACEOF
2523 # Let the site file select an alternate cache file if it wants to.
2524 # Prefer an explicitly selected file to automatically selected ones.
2525 ac_site_file1=NONE
2526 ac_site_file2=NONE
2527 if test -n "$CONFIG_SITE"; then
2528 # We do not want a PATH search for config.site.
2529 case $CONFIG_SITE in #((
2530 -*) ac_site_file1=./$CONFIG_SITE;;
2531 */*) ac_site_file1=$CONFIG_SITE;;
2532 *) ac_site_file1=./$CONFIG_SITE;;
2533 esac
2534 elif test "x$prefix" != xNONE; then
2535 ac_site_file1=$prefix/share/config.site
2536 ac_site_file2=$prefix/etc/config.site
2537 else
2538 ac_site_file1=$ac_default_prefix/share/config.site
2539 ac_site_file2=$ac_default_prefix/etc/config.site
2541 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2543 test "x$ac_site_file" = xNONE && continue
2544 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2546 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2547 sed 's/^/| /' "$ac_site_file" >&5
2548 . "$ac_site_file" \
2549 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 as_fn_error $? "failed to load site script $ac_site_file
2552 See \`config.log' for more details" "$LINENO" 5; }
2554 done
2556 if test -r "$cache_file"; then
2557 # Some versions of bash will fail to source /dev/null (special files
2558 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2559 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2561 $as_echo "$as_me: loading cache $cache_file" >&6;}
2562 case $cache_file in
2563 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2564 *) . "./$cache_file";;
2565 esac
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2569 $as_echo "$as_me: creating cache $cache_file" >&6;}
2570 >$cache_file
2573 as_fn_append ac_header_list " stdlib.h"
2574 as_fn_append ac_header_list " unistd.h"
2575 as_fn_append ac_header_list " sys/param.h"
2576 # Check that the precious variables saved in the cache have kept the same
2577 # value.
2578 ac_cache_corrupted=false
2579 for ac_var in $ac_precious_vars; do
2580 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2581 eval ac_new_set=\$ac_env_${ac_var}_set
2582 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2583 eval ac_new_val=\$ac_env_${ac_var}_value
2584 case $ac_old_set,$ac_new_set in
2585 set,)
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2587 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2588 ac_cache_corrupted=: ;;
2589 ,set)
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2591 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2592 ac_cache_corrupted=: ;;
2593 ,);;
2595 if test "x$ac_old_val" != "x$ac_new_val"; then
2596 # differences in whitespace do not lead to failure.
2597 ac_old_val_w=`echo x $ac_old_val`
2598 ac_new_val_w=`echo x $ac_new_val`
2599 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2601 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2602 ac_cache_corrupted=:
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2605 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2606 eval $ac_var=\$ac_old_val
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2609 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2611 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2612 fi;;
2613 esac
2614 # Pass precious variables to config.status.
2615 if test "$ac_new_set" = set; then
2616 case $ac_new_val in
2617 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2618 *) ac_arg=$ac_var=$ac_new_val ;;
2619 esac
2620 case " $ac_configure_args " in
2621 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2622 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2623 esac
2625 done
2626 if $ac_cache_corrupted; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2630 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2631 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2633 ## -------------------- ##
2634 ## Main body of script. ##
2635 ## -------------------- ##
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645 ac_aux_dir=
2646 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2647 if test -f "$ac_dir/install-sh"; then
2648 ac_aux_dir=$ac_dir
2649 ac_install_sh="$ac_aux_dir/install-sh -c"
2650 break
2651 elif test -f "$ac_dir/install.sh"; then
2652 ac_aux_dir=$ac_dir
2653 ac_install_sh="$ac_aux_dir/install.sh -c"
2654 break
2655 elif test -f "$ac_dir/shtool"; then
2656 ac_aux_dir=$ac_dir
2657 ac_install_sh="$ac_aux_dir/shtool install -c"
2658 break
2660 done
2661 if test -z "$ac_aux_dir"; then
2662 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2665 # These three variables are undocumented and unsupported,
2666 # and are intended to be withdrawn in a future Autoconf release.
2667 # They can cause serious problems if a builder's source tree is in a directory
2668 # whose full name contains unusual characters.
2669 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2670 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2671 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2675 # Check what host we are running on.
2676 # If a target is not suggested, we use this one.
2677 # Note that what we call a target, Autoconf calls a host.
2678 # Make sure we can run config.sub.
2679 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2680 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2683 $as_echo_n "checking build system type... " >&6; }
2684 if ${ac_cv_build+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 ac_build_alias=$build_alias
2688 test "x$ac_build_alias" = x &&
2689 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2690 test "x$ac_build_alias" = x &&
2691 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2693 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2697 $as_echo "$ac_cv_build" >&6; }
2698 case $ac_cv_build in
2699 *-*-*) ;;
2700 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2701 esac
2702 build=$ac_cv_build
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_build
2705 shift
2706 build_cpu=$1
2707 build_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 build_os=$*
2712 IFS=$ac_save_IFS
2713 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2717 $as_echo_n "checking host system type... " >&6; }
2718 if ${ac_cv_host+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test "x$host_alias" = x; then
2722 ac_cv_host=$ac_cv_build
2723 else
2724 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2725 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2730 $as_echo "$ac_cv_host" >&6; }
2731 case $ac_cv_host in
2732 *-*-*) ;;
2733 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2734 esac
2735 host=$ac_cv_host
2736 ac_save_IFS=$IFS; IFS='-'
2737 set x $ac_cv_host
2738 shift
2739 host_cpu=$1
2740 host_vendor=$2
2741 shift; shift
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2744 host_os=$*
2745 IFS=$ac_save_IFS
2746 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2750 # The AROS target is slightly different to the normal GNU style
2751 # format. We don't have the middle part, and we reverse the order
2752 # of the $(CPU) and $(OS) bits.
2754 # Don't strip the version of the target yet, it might be
2755 # useful on some systems.
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2758 $as_echo_n "checking for AROS style target... " >&6; }
2760 if test "$target" = "NONE" ; then
2761 target=$host_os-$host_cpu
2762 else
2763 if test "$target" = "" ; then
2764 target=$host_os-$host_cpu
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2768 $as_echo "$target" >&6; }
2770 if test "$host_os" = "mingw32" ; then
2771 PWDCMD="pwd -W"
2774 # Don't know where else to put this...
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2776 $as_echo_n "checking building AROS in... " >&6; }
2777 AROS_BUILDDIR=`${PWDCMD-pwd}`
2778 AROS_BUILDDIR_UNIX=${PWD}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2780 $as_echo "$AROS_BUILDDIR" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2783 $as_echo_n "checking AROS source in... " >&6; }
2784 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2785 SRCDIR=${srcpwd}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2787 $as_echo "$SRCDIR" >&6; }
2789 # Parse the target field into something useful.
2791 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2792 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2795 # Some debug output, to be removed again.
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2797 $as_echo_n "checking for target system (debug output)... " >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2799 $as_echo "$target_os" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2801 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2803 $as_echo "$target_cpu" >&6; }
2805 aros_default_wbwidth=800
2806 aros_default_wbheight=600
2807 aros_default_wbdepth=4
2810 # The first step is to find the host binaries.
2811 # Check for a compiler.
2812 # Due to a bug in autoconf check for c++ compiler first.
2813 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2814 ac_ext=cpp
2815 ac_cpp='$CXXCPP $CPPFLAGS'
2816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2819 if test -z "$CXX"; then
2820 if test -n "$CCC"; then
2821 CXX=$CCC
2822 else
2823 if test -n "$ac_tool_prefix"; then
2824 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if ${ac_cv_prog_CXX+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test -n "$CXX"; then
2834 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2849 IFS=$as_save_IFS
2853 CXX=$ac_cv_prog_CXX
2854 if test -n "$CXX"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2856 $as_echo "$CXX" >&6; }
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2863 test -n "$CXX" && break
2864 done
2866 if test -z "$CXX"; then
2867 ac_ct_CXX=$CXX
2868 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy $ac_prog; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$ac_ct_CXX"; then
2878 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_ac_ct_CXX="$ac_prog"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2891 done
2892 done
2893 IFS=$as_save_IFS
2897 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2898 if test -n "$ac_ct_CXX"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2900 $as_echo "$ac_ct_CXX" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2907 test -n "$ac_ct_CXX" && break
2908 done
2910 if test "x$ac_ct_CXX" = x; then
2911 CXX="g++"
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2918 esac
2919 CXX=$ac_ct_CXX
2925 # Provide some information about the compiler.
2926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2927 set X $ac_compile
2928 ac_compiler=$2
2929 for ac_option in --version -v -V -qversion; do
2930 { { ac_try="$ac_compiler $ac_option >&5"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 $as_echo "$ac_try_echo"; } >&5
2937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2938 ac_status=$?
2939 if test -s conftest.err; then
2940 sed '10a\
2941 ... rest of stderr output deleted ...
2942 10q' conftest.err >conftest.er1
2943 cat conftest.er1 >&5
2945 rm -f conftest.er1 conftest.err
2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }
2948 done
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2954 main ()
2958 return 0;
2960 _ACEOF
2961 ac_clean_files_save=$ac_clean_files
2962 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2963 # Try to create an executable without -o first, disregard a.out.
2964 # It will help us diagnose broken compilers, and finding out an intuition
2965 # of exeext.
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2967 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2968 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2970 # The possible output files:
2971 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2973 ac_rmfiles=
2974 for ac_file in $ac_files
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2979 esac
2980 done
2981 rm -f $ac_rmfiles
2983 if { { ac_try="$ac_link_default"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2989 $as_echo "$ac_try_echo"; } >&5
2990 (eval "$ac_link_default") 2>&5
2991 ac_status=$?
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }; then :
2994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2995 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2996 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2997 # so that the user can short-circuit this test for compilers unknown to
2998 # Autoconf.
2999 for ac_file in $ac_files ''
3001 test -f "$ac_file" || continue
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3005 [ab].out )
3006 # We found the default executable, but exeext='' is most
3007 # certainly right.
3008 break;;
3009 *.* )
3010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3011 then :; else
3012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3014 # We set ac_cv_exeext here because the later test for it is not
3015 # safe: cross compilers may not add the suffix if given an `-o'
3016 # argument, so we may need to know it at that point already.
3017 # Even if this section looks crufty: it has the advantage of
3018 # actually working.
3019 break;;
3021 break;;
3022 esac
3023 done
3024 test "$ac_cv_exeext" = no && ac_cv_exeext=
3026 else
3027 ac_file=''
3029 if test -z "$ac_file"; then :
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 $as_echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037 as_fn_error 77 "C++ compiler cannot create executables
3038 See \`config.log' for more details" "$LINENO" 5; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3041 $as_echo "yes" >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3044 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3046 $as_echo "$ac_file" >&6; }
3047 ac_exeext=$ac_cv_exeext
3049 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3050 ac_clean_files=$ac_clean_files_save
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3052 $as_echo_n "checking for suffix of executables... " >&6; }
3053 if { { ac_try="$ac_link"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 $as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_link") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }; then :
3064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3065 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3066 # work properly (i.e., refer to `conftest.exe'), while it won't with
3067 # `rm'.
3068 for ac_file in conftest.exe conftest conftest.*; do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 break;;
3074 * ) break;;
3075 esac
3076 done
3077 else
3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3081 See \`config.log' for more details" "$LINENO" 5; }
3083 rm -f conftest conftest$ac_cv_exeext
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3085 $as_echo "$ac_cv_exeext" >&6; }
3087 rm -f conftest.$ac_ext
3088 EXEEXT=$ac_cv_exeext
3089 ac_exeext=$EXEEXT
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3092 #include <stdio.h>
3094 main ()
3096 FILE *f = fopen ("conftest.out", "w");
3097 return ferror (f) || fclose (f) != 0;
3100 return 0;
3102 _ACEOF
3103 ac_clean_files="$ac_clean_files conftest.out"
3104 # Check that the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3107 $as_echo_n "checking whether we are cross compiling... " >&6; }
3108 if test "$cross_compiling" != yes; then
3109 { { ac_try="$ac_link"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_link") 2>&5
3117 ac_status=$?
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }
3120 if { ac_try='./conftest$ac_cv_exeext'
3121 { { case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_try") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; }; then
3131 cross_compiling=no
3132 else
3133 if test "$cross_compiling" = maybe; then
3134 cross_compiling=yes
3135 else
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "cannot run C++ compiled programs.
3139 If you meant to cross compile, use \`--host'.
3140 See \`config.log' for more details" "$LINENO" 5; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3145 $as_echo "$cross_compiling" >&6; }
3147 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3148 ac_clean_files=$ac_clean_files_save
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3150 $as_echo_n "checking for suffix of object files... " >&6; }
3151 if ${ac_cv_objext+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3158 main ()
3162 return 0;
3164 _ACEOF
3165 rm -f conftest.o conftest.obj
3166 if { { ac_try="$ac_compile"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_compile") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; then :
3177 for ac_file in conftest.o conftest.obj conftest.*; do
3178 test -f "$ac_file" || continue;
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3182 break;;
3183 esac
3184 done
3185 else
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "cannot compute suffix of object files: cannot compile
3192 See \`config.log' for more details" "$LINENO" 5; }
3194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3197 $as_echo "$ac_cv_objext" >&6; }
3198 OBJEXT=$ac_cv_objext
3199 ac_objext=$OBJEXT
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3201 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3202 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3209 main ()
3211 #ifndef __GNUC__
3212 choke me
3213 #endif
3216 return 0;
3218 _ACEOF
3219 if ac_fn_cxx_try_compile "$LINENO"; then :
3220 ac_compiler_gnu=yes
3221 else
3222 ac_compiler_gnu=no
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3229 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3230 if test $ac_compiler_gnu = yes; then
3231 GXX=yes
3232 else
3233 GXX=
3235 ac_test_CXXFLAGS=${CXXFLAGS+set}
3236 ac_save_CXXFLAGS=$CXXFLAGS
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3238 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3239 if ${ac_cv_prog_cxx_g+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3243 ac_cxx_werror_flag=yes
3244 ac_cv_prog_cxx_g=no
3245 CXXFLAGS="-g"
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3250 main ()
3254 return 0;
3256 _ACEOF
3257 if ac_fn_cxx_try_compile "$LINENO"; then :
3258 ac_cv_prog_cxx_g=yes
3259 else
3260 CXXFLAGS=""
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3265 main ()
3269 return 0;
3271 _ACEOF
3272 if ac_fn_cxx_try_compile "$LINENO"; then :
3274 else
3275 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3276 CXXFLAGS="-g"
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 :
3289 ac_cv_prog_cxx_g=yes
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3299 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3300 if test "$ac_test_CXXFLAGS" = set; then
3301 CXXFLAGS=$ac_save_CXXFLAGS
3302 elif test $ac_cv_prog_cxx_g = yes; then
3303 if test "$GXX" = yes; then
3304 CXXFLAGS="-g -O2"
3305 else
3306 CXXFLAGS="-g"
3308 else
3309 if test "$GXX" = yes; then
3310 CXXFLAGS="-O2"
3311 else
3312 CXXFLAGS=
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_CC"; then
3366 ac_ct_CC=$CC
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_ac_ct_CC="gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3414 else
3415 CC="$ac_cv_prog_CC"
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3441 done
3442 done
3443 IFS=$as_save_IFS
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470 ac_prog_rejected=no
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479 ac_prog_rejected=yes
3480 continue
3482 ac_cv_prog_CC="cc"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3486 done
3487 done
3488 IFS=$as_save_IFS
3490 if test $ac_prog_rejected = yes; then
3491 # We found a bogon in the path, so make sure we never use it.
3492 set dummy $ac_cv_prog_CC
3493 shift
3494 if test $# != 0; then
3495 # We chose a different compiler from the bogus one.
3496 # However, it has the same basename, so the bogon will be chosen
3497 # first if we set CC to just the basename; use the full file name.
3498 shift
3499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog in cl.exe
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_CC+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3540 done
3541 done
3542 IFS=$as_save_IFS
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3556 test -n "$CC" && break
3557 done
3559 if test -z "$CC"; then
3560 ac_ct_CC=$CC
3561 for ac_prog in cl.exe
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 if test -n "$ac_ct_CC"; then
3571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 ac_cv_prog_ac_ct_CC="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3584 done
3585 done
3586 IFS=$as_save_IFS
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$ac_ct_CC" && break
3601 done
3603 if test "x$ac_ct_CC" = x; then
3604 CC=""
3605 else
3606 case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612 CC=$ac_ct_CC
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details" "$LINENO" 5; }
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 set X $ac_compile
3627 ac_compiler=$2
3628 for ac_option in --version -v -V -qversion; do
3629 { { ac_try="$ac_compiler $ac_option >&5"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637 ac_status=$?
3638 if test -s conftest.err; then
3639 sed '10a\
3640 ... rest of stderr output deleted ...
3641 10q' conftest.err >conftest.er1
3642 cat conftest.er1 >&5
3644 rm -f conftest.er1 conftest.err
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3647 done
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3650 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3651 if ${ac_cv_c_compiler_gnu+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3658 main ()
3660 #ifndef __GNUC__
3661 choke me
3662 #endif
3665 return 0;
3667 _ACEOF
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_compiler_gnu=yes
3670 else
3671 ac_compiler_gnu=no
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3678 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3679 if test $ac_compiler_gnu = yes; then
3680 GCC=yes
3681 else
3682 GCC=
3684 ac_test_CFLAGS=${CFLAGS+set}
3685 ac_save_CFLAGS=$CFLAGS
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3687 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3688 if ${ac_cv_prog_cc_g+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 ac_save_c_werror_flag=$ac_c_werror_flag
3692 ac_c_werror_flag=yes
3693 ac_cv_prog_cc_g=no
3694 CFLAGS="-g"
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3699 main ()
3703 return 0;
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_g=yes
3708 else
3709 CFLAGS=""
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3714 main ()
3718 return 0;
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3723 else
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3725 CFLAGS="-g"
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 :
3738 ac_cv_prog_cc_g=yes
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_c_werror_flag=$ac_save_c_werror_flag
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3748 $as_echo "$ac_cv_prog_cc_g" >&6; }
3749 if test "$ac_test_CFLAGS" = set; then
3750 CFLAGS=$ac_save_CFLAGS
3751 elif test $ac_cv_prog_cc_g = yes; then
3752 if test "$GCC" = yes; then
3753 CFLAGS="-g -O2"
3754 else
3755 CFLAGS="-g"
3757 else
3758 if test "$GCC" = yes; then
3759 CFLAGS="-O2"
3760 else
3761 CFLAGS=
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3765 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3766 if ${ac_cv_prog_cc_c89+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 ac_cv_prog_cc_c89=no
3770 ac_save_CC=$CC
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773 #include <stdarg.h>
3774 #include <stdio.h>
3775 struct stat;
3776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3777 struct buf { int x; };
3778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3779 static char *e (p, i)
3780 char **p;
3781 int i;
3783 return p[i];
3785 static char *f (char * (*g) (char **, int), char **p, ...)
3787 char *s;
3788 va_list v;
3789 va_start (v,p);
3790 s = g (p, va_arg (v,int));
3791 va_end (v);
3792 return s;
3795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3796 function prototypes and stuff, but not '\xHH' hex character constants.
3797 These don't provoke an error unfortunately, instead are silently treated
3798 as 'x'. The following induces an error, until -std is added to get
3799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3800 array size at least. It's necessary to write '\x00'==0 to get something
3801 that's true only with -std. */
3802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3805 inside strings and character constants. */
3806 #define FOO(x) 'x'
3807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3809 int test (int i, double x);
3810 struct s1 {int (*f) (int a);};
3811 struct s2 {int (*f) (double a);};
3812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3813 int argc;
3814 char **argv;
3816 main ()
3818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3820 return 0;
3822 _ACEOF
3823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3826 CC="$ac_save_CC $ac_arg"
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_cv_prog_cc_c89=$ac_arg
3830 rm -f core conftest.err conftest.$ac_objext
3831 test "x$ac_cv_prog_cc_c89" != "xno" && break
3832 done
3833 rm -f conftest.$ac_ext
3834 CC=$ac_save_CC
3837 # AC_CACHE_VAL
3838 case "x$ac_cv_prog_cc_c89" in
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3841 $as_echo "none needed" >&6; } ;;
3842 xno)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3844 $as_echo "unsupported" >&6; } ;;
3846 CC="$CC $ac_cv_prog_cc_c89"
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3849 esac
3850 if test "x$ac_cv_prog_cc_c89" != xno; then :
3854 ac_ext=c
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 case $ac_cv_prog_cc_stdc in #(
3861 no) :
3862 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3863 *) :
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3865 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3866 if ${ac_cv_prog_cc_c99+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 ac_cv_prog_cc_c99=no
3870 ac_save_CC=$CC
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #include <stdarg.h>
3874 #include <stdbool.h>
3875 #include <stdlib.h>
3876 #include <wchar.h>
3877 #include <stdio.h>
3879 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3880 #define debug(...) fprintf (stderr, __VA_ARGS__)
3881 #define showlist(...) puts (#__VA_ARGS__)
3882 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3883 static void
3884 test_varargs_macros (void)
3886 int x = 1234;
3887 int y = 5678;
3888 debug ("Flag");
3889 debug ("X = %d\n", x);
3890 showlist (The first, second, and third items.);
3891 report (x>y, "x is %d but y is %d", x, y);
3894 // Check long long types.
3895 #define BIG64 18446744073709551615ull
3896 #define BIG32 4294967295ul
3897 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3898 #if !BIG_OK
3899 your preprocessor is broken;
3900 #endif
3901 #if BIG_OK
3902 #else
3903 your preprocessor is broken;
3904 #endif
3905 static long long int bignum = -9223372036854775807LL;
3906 static unsigned long long int ubignum = BIG64;
3908 struct incomplete_array
3910 int datasize;
3911 double data[];
3914 struct named_init {
3915 int number;
3916 const wchar_t *name;
3917 double average;
3920 typedef const char *ccp;
3922 static inline int
3923 test_restrict (ccp restrict text)
3925 // See if C++-style comments work.
3926 // Iterate through items via the restricted pointer.
3927 // Also check for declarations in for loops.
3928 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3929 continue;
3930 return 0;
3933 // Check varargs and va_copy.
3934 static void
3935 test_varargs (const char *format, ...)
3937 va_list args;
3938 va_start (args, format);
3939 va_list args_copy;
3940 va_copy (args_copy, args);
3942 const char *str;
3943 int number;
3944 float fnumber;
3946 while (*format)
3948 switch (*format++)
3950 case 's': // string
3951 str = va_arg (args_copy, const char *);
3952 break;
3953 case 'd': // int
3954 number = va_arg (args_copy, int);
3955 break;
3956 case 'f': // float
3957 fnumber = va_arg (args_copy, double);
3958 break;
3959 default:
3960 break;
3963 va_end (args_copy);
3964 va_end (args);
3968 main ()
3971 // Check bool.
3972 _Bool success = false;
3974 // Check restrict.
3975 if (test_restrict ("String literal") == 0)
3976 success = true;
3977 char *restrict newvar = "Another string";
3979 // Check varargs.
3980 test_varargs ("s, d' f .", "string", 65, 34.234);
3981 test_varargs_macros ();
3983 // Check flexible array members.
3984 struct incomplete_array *ia =
3985 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3986 ia->datasize = 10;
3987 for (int i = 0; i < ia->datasize; ++i)
3988 ia->data[i] = i * 1.234;
3990 // Check named initializers.
3991 struct named_init ni = {
3992 .number = 34,
3993 .name = L"Test wide string",
3994 .average = 543.34343,
3997 ni.number = 58;
3999 int dynamic_array[ni.number];
4000 dynamic_array[ni.number - 1] = 543;
4002 // work around unused variable warnings
4003 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4004 || dynamic_array[ni.number - 1] != 543);
4007 return 0;
4009 _ACEOF
4010 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4012 CC="$ac_save_CC $ac_arg"
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_c99=$ac_arg
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c99" != "xno" && break
4018 done
4019 rm -f conftest.$ac_ext
4020 CC=$ac_save_CC
4023 # AC_CACHE_VAL
4024 case "x$ac_cv_prog_cc_c99" in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4028 xno)
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c99"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4034 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4035 esac
4036 if test "x$ac_cv_prog_cc_c99" != xno; then :
4037 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4038 else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4040 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4041 if ${ac_cv_prog_cc_c89+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 ac_cv_prog_cc_c89=no
4045 ac_save_CC=$CC
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #include <stdarg.h>
4049 #include <stdio.h>
4050 struct stat;
4051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4052 struct buf { int x; };
4053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4054 static char *e (p, i)
4055 char **p;
4056 int i;
4058 return p[i];
4060 static char *f (char * (*g) (char **, int), char **p, ...)
4062 char *s;
4063 va_list v;
4064 va_start (v,p);
4065 s = g (p, va_arg (v,int));
4066 va_end (v);
4067 return s;
4070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4071 function prototypes and stuff, but not '\xHH' hex character constants.
4072 These don't provoke an error unfortunately, instead are silently treated
4073 as 'x'. The following induces an error, until -std is added to get
4074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4075 array size at least. It's necessary to write '\x00'==0 to get something
4076 that's true only with -std. */
4077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4080 inside strings and character constants. */
4081 #define FOO(x) 'x'
4082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4084 int test (int i, double x);
4085 struct s1 {int (*f) (int a);};
4086 struct s2 {int (*f) (double a);};
4087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4088 int argc;
4089 char **argv;
4091 main ()
4093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4095 return 0;
4097 _ACEOF
4098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4101 CC="$ac_save_CC $ac_arg"
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_cv_prog_cc_c89=$ac_arg
4105 rm -f core conftest.err conftest.$ac_objext
4106 test "x$ac_cv_prog_cc_c89" != "xno" && break
4107 done
4108 rm -f conftest.$ac_ext
4109 CC=$ac_save_CC
4112 # AC_CACHE_VAL
4113 case "x$ac_cv_prog_cc_c89" in
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4116 $as_echo "none needed" >&6; } ;;
4117 xno)
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4119 $as_echo "unsupported" >&6; } ;;
4121 CC="$CC $ac_cv_prog_cc_c89"
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4123 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4124 esac
4125 if test "x$ac_cv_prog_cc_c89" != xno; then :
4126 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4127 else
4128 ac_cv_prog_cc_stdc=no
4133 esac
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4135 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4136 if ${ac_cv_prog_cc_stdc+:} false; then :
4137 $as_echo_n "(cached) " >&6
4140 case $ac_cv_prog_cc_stdc in #(
4141 no) :
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4143 $as_echo "unsupported" >&6; } ;; #(
4144 '') :
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4146 $as_echo "none needed" >&6; } ;; #(
4147 *) :
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4149 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4150 esac
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4158 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4159 # On Suns, sometimes $CPP names a directory.
4160 if test -n "$CPP" && test -d "$CPP"; then
4161 CPP=
4163 if test -z "$CPP"; then
4164 if ${ac_cv_prog_CPP+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 # Double quotes because CPP needs to be expanded
4168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4170 ac_preproc_ok=false
4171 for ac_c_preproc_warn_flag in '' yes
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181 #ifdef __STDC__
4182 # include <limits.h>
4183 #else
4184 # include <assert.h>
4185 #endif
4186 Syntax error
4187 _ACEOF
4188 if ac_fn_c_try_cpp "$LINENO"; then :
4190 else
4191 # Broken: fails on valid input.
4192 continue
4194 rm -f conftest.err conftest.i conftest.$ac_ext
4196 # OK, works on sane cases. Now check whether nonexistent headers
4197 # can be detected and how.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #include <ac_nonexistent.h>
4201 _ACEOF
4202 if ac_fn_c_try_cpp "$LINENO"; then :
4203 # Broken: success on invalid input.
4204 continue
4205 else
4206 # Passes both tests.
4207 ac_preproc_ok=:
4208 break
4210 rm -f conftest.err conftest.i conftest.$ac_ext
4212 done
4213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4214 rm -f conftest.i conftest.err conftest.$ac_ext
4215 if $ac_preproc_ok; then :
4216 break
4219 done
4220 ac_cv_prog_CPP=$CPP
4223 CPP=$ac_cv_prog_CPP
4224 else
4225 ac_cv_prog_CPP=$CPP
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4228 $as_echo "$CPP" >&6; }
4229 ac_preproc_ok=false
4230 for ac_c_preproc_warn_flag in '' yes
4232 # Use a header file that comes with gcc, so configuring glibc
4233 # with a fresh cross-compiler works.
4234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235 # <limits.h> exists even on freestanding compilers.
4236 # On the NeXT, cc -E runs the code through the compiler's parser,
4237 # not just through cpp. "Syntax error" is here to catch this case.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #ifdef __STDC__
4241 # include <limits.h>
4242 #else
4243 # include <assert.h>
4244 #endif
4245 Syntax error
4246 _ACEOF
4247 if ac_fn_c_try_cpp "$LINENO"; then :
4249 else
4250 # Broken: fails on valid input.
4251 continue
4253 rm -f conftest.err conftest.i conftest.$ac_ext
4255 # OK, works on sane cases. Now check whether nonexistent headers
4256 # can be detected and how.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #include <ac_nonexistent.h>
4260 _ACEOF
4261 if ac_fn_c_try_cpp "$LINENO"; then :
4262 # Broken: success on invalid input.
4263 continue
4264 else
4265 # Passes both tests.
4266 ac_preproc_ok=:
4267 break
4269 rm -f conftest.err conftest.i conftest.$ac_ext
4271 done
4272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273 rm -f conftest.i conftest.err conftest.$ac_ext
4274 if $ac_preproc_ok; then :
4276 else
4277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4280 See \`config.log' for more details" "$LINENO" 5; }
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 # Check for a compatible awk
4291 for ac_prog in gawk nawk
4293 # Extract the first word of "$ac_prog", so it can be a program name with args.
4294 set dummy $ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_prog_AWK+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -n "$AWK"; then
4301 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_AWK="$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4314 done
4315 done
4316 IFS=$as_save_IFS
4320 AWK=$ac_cv_prog_AWK
4321 if test -n "$AWK"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4323 $as_echo "$AWK" >&6; }
4324 else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4330 test -n "$AWK" && break
4331 done
4333 if test "$AWK" = ""; then
4334 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4336 # Extract the first word of "mmake", so it can be a program name with args.
4337 set dummy mmake; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if ${ac_cv_prog_MMAKE+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 if test -n "$MMAKE"; then
4344 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_MMAKE="mmake "
4354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4357 done
4358 done
4359 IFS=$as_save_IFS
4363 MMAKE=$ac_cv_prog_MMAKE
4364 if test -n "$MMAKE"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4366 $as_echo "$MMAKE" >&6; }
4367 else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4374 # Perform some default variable assignments. Note all of these will be
4375 # Regenerated from the script, so there is no need to cache them.
4377 aros_host_cpp="$CPP"
4378 aros_host_cc="$CC"
4379 aros_host_cxx="$CXX"
4380 if test "$GCC" = "yes"; then
4381 aros_gcc_ld=`$CC -print-prog-name=ld`
4382 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4383 set dummy `basename $aros_gcc_ld`; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_path_aros_host_ld+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 case $aros_host_ld in
4390 [\\/]* | ?:[\\/]*)
4391 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in `dirname $aros_gcc_ld`
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4405 done
4406 done
4407 IFS=$as_save_IFS
4410 esac
4412 aros_host_ld=$ac_cv_path_aros_host_ld
4413 if test -n "$aros_host_ld"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4415 $as_echo "$aros_host_ld" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4423 if test "$aros_host_ld" = ""; then
4424 # Extract the first word of "ld", so it can be a program name with args.
4425 set dummy ld; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if ${ac_cv_path_aros_host_ld+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 case $aros_host_ld in
4432 [\\/]* | ?:[\\/]*)
4433 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4447 done
4448 done
4449 IFS=$as_save_IFS
4452 esac
4454 aros_host_ld=$ac_cv_path_aros_host_ld
4455 if test -n "$aros_host_ld"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4457 $as_echo "$aros_host_ld" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4465 if test "$aros_host_ld" = ""; then
4466 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4468 aros_host_make="make"
4469 aros_host_cflags="$CFLAGS"
4470 aros_host_cxxflags="$CXXFLAGS"
4471 aros_host_ldflags="$LDFLAGS"
4472 aros_host_debug="-g -O0"
4473 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4474 aros_host_mkargs="--no-print-directory"
4475 aros_host_exe_suffix="$EXEEXT"
4476 aros_host_lib_suffix=""
4478 # Ignore all compliance, AROS ROMs = 0
4479 # KickStart v1.0 = 30
4480 # KickStart v1.3 = 34
4481 # KickStart v2.0 = 37
4482 # KickStart v3.0 = 39
4483 # KickStart v3.1 = 40
4484 # AmigaOS v3.5 = 44
4485 aros_amigaos_compliance=0
4487 for ac_prog in aclocal aclocal19 aclocal-1.9
4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492 $as_echo_n "checking for $ac_word... " >&6; }
4493 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 if test -n "$aros_host_aclocal"; then
4497 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_aros_host_aclocal="$ac_prog"
4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4510 done
4511 done
4512 IFS=$as_save_IFS
4516 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4517 if test -n "$aros_host_aclocal"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4519 $as_echo "$aros_host_aclocal" >&6; }
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4526 test -n "$aros_host_aclocal" && break
4527 done
4529 for ac_prog in autoconf autoconf259 autoconf253
4531 # Extract the first word of "$ac_prog", so it can be a program name with args.
4532 set dummy $ac_prog; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -n "$aros_host_autoconf"; then
4539 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4548 ac_cv_prog_aros_host_autoconf="$ac_prog"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4552 done
4553 done
4554 IFS=$as_save_IFS
4558 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4559 if test -n "$aros_host_autoconf"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4561 $as_echo "$aros_host_autoconf" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4568 test -n "$aros_host_autoconf" && break
4569 done
4571 for ac_prog in autoheader autoheader259 autoheader253
4573 # Extract the first word of "$ac_prog", so it can be a program name with args.
4574 set dummy $ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$aros_host_autoheader"; then
4581 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_aros_host_autoheader="$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4601 if test -n "$aros_host_autoheader"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4603 $as_echo "$aros_host_autoheader" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4610 test -n "$aros_host_autoheader" && break
4611 done
4613 for ac_prog in automake automake19 automake-1.9
4615 # Extract the first word of "$ac_prog", so it can be a program name with args.
4616 set dummy $ac_prog; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if ${ac_cv_prog_aros_host_automake+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -n "$aros_host_automake"; then
4623 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_prog_aros_host_automake="$ac_prog"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4636 done
4637 done
4638 IFS=$as_save_IFS
4642 aros_host_automake=$ac_cv_prog_aros_host_automake
4643 if test -n "$aros_host_automake"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4645 $as_echo "$aros_host_automake" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4652 test -n "$aros_host_automake" && break
4653 done
4656 if test "$aros_host_aclocal" = ""; then
4657 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4659 if test "$aros_host_automake" = ""; then
4660 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4663 case "$aros_host_cc" in
4664 *gcc*)
4665 aros_host_cc_pipe="-pipe"
4667 icc)
4668 aros_host_cc_pipe=""
4671 aros_host_cc_pipe=""
4673 esac
4675 aros_kernel_cc_includes=""
4676 aros_target_cc_includes=""
4677 host_cc_elf=yes
4679 # ----------------------------------------------------------------------------------------
4680 # Host-specific defaults
4682 # This is the main host configuration section. It is where the host
4683 # can change the values of any variables it needs to change. We do
4684 # not look at anything that compiles to the target yet, we'll get
4685 # to that later.
4687 case "$host_os" in
4688 aros*)
4689 aros_host_arch="aros"
4690 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4691 case "$host_cpu" in
4692 *i?86*)
4693 aros_host_cpu="i386"
4695 *x86_64*)
4696 aros_host_cpu="x86_64"
4698 *powerpc*)
4699 aros_host_cpu="ppc"
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4703 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4704 aros_host_cpu="$host_cpu"
4706 esac
4709 linux*)
4710 aros_host_arch="linux"
4711 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4712 android_build_os="linux-x86"
4713 android_tool="android"
4714 default_android_sdk="/opt/android-sdk-linux_x86"
4715 case "$host_cpu" in
4716 *i?86*)
4717 aros_host_cpu="i386"
4719 *x86_64*)
4720 aros_host_cpu="x86_64"
4722 *m68k*)
4723 aros_host_cpu="m68k"
4725 *powerpc*)
4726 aros_host_cpu="ppc"
4728 *arm*)
4729 aros_host_cpu="arm"
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4733 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4734 aros_host_cpu="$host_cpu"
4736 esac
4739 freebsd*)
4740 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4741 aros_host_make="gmake"
4742 aros_host_arch="freebsd"
4743 aros_host_cpu="i386"
4745 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4747 case $host_os in
4748 freebsd[234]*)
4749 aros_object_format="elf_i386"
4753 aros_object_format="elf_i386_fbsd"
4755 esac
4759 darwin*)
4760 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4761 aros_host_arch="darwin"
4762 host_cc_elf=no
4763 android_build_os="darwin-x86"
4764 android_tool="android"
4765 default_android_sdk="/android-sdk-mac_x86"
4766 case "$host_cpu" in
4767 *i?86*)
4768 aros_host_cpu="i386"
4770 *x86_64*)
4771 aros_host_cpu="x86_64"
4773 *powerpc*)
4774 aros_host_cpu="ppc"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4778 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4779 aros_host_cpu="$host_cpu"
4781 esac
4783 aros_host_ldflags="$aros_host_ldflags -liconv"
4787 dragonfly*)
4788 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4789 aros_host_make="gmake"
4790 aros_host_arch="dragonfly"
4791 case $host_cpu in
4792 *i?86*)
4793 aros_host_cpu="i386"
4795 *amd64*)
4796 aros_host_cpu="x86_64"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4800 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4801 aros_host_cpu="$host_cpu"
4803 esac
4806 netbsd*)
4807 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4808 aros_host_make="gmake"
4809 aros_host_arch="netbsd"
4810 case "$host_cpu" in
4811 *i?86*)
4812 aros_host_cpu="i386"
4814 *m68k*)
4815 aros_host_cpu="m68k"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4819 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4820 aros_host_cpu="$host_cpu"
4822 esac
4823 aros_host_lib_suffix=".0.0"
4826 openbsd*)
4827 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4828 aros_host_make="gmake"
4829 aros_host_arch="openbsd"
4830 case "$host_cpu" in
4831 *i?86*)
4832 aros_host_cpu="i386"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4836 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4837 aros_host_cpu="$host_cpu"
4839 esac
4842 solaris*)
4843 aros_host_arch="solaris"
4844 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4845 case "$host_cpu" in
4846 *i?86*)
4847 aros_host_cpu="i386"
4849 *sparc*)
4850 aros_host_cpu="sparc"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4854 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4855 aros_host_cpu="$host_cpu"
4857 esac
4860 morphos*)
4861 aros_host_arch="morphos"
4862 aros_host_cpu="ppc"
4863 host_cc_elf=no
4866 amiga*)
4867 aros_host_arch="amiga"
4868 host_cc_elf=no
4869 SORT="/gg/bin/sort"
4870 TEST="/gg/bin/test"
4871 UNIQ="/gg/bin/uniq"
4872 FOR="for"
4873 TOUCH="/gg/bin/touch"
4874 case "$host_cpu" in
4875 *m68k*)
4876 aros_host_cpu="m68k"
4878 *powerpc*)
4879 aros_host_cpu="ppc"
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4883 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4884 aros_host_cpu="$host_cpu"
4886 esac
4889 cygwin*)
4890 aros_host_arch="cygwin"
4891 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4892 host_cc_elf=no
4893 android_build_os="windows"
4894 android_tool="android.bat"
4895 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4897 case "$host_cpu" in
4898 *i?86*)
4899 aros_host_cpu="i386"
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 mingw32*)
4910 aros_host_arch="mingw32"
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="/c/android-sdk-windows-1.6_r1"
4917 case "$host_cpu" in
4918 *i?86*)
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4921 $as_echo_n "checking for Windows native gcc target... " >&6; }
4922 host_cpu=`gcc -dumpmachine`
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4924 $as_echo "$host_cpu" >&6; }
4927 esac
4929 case "$host_cpu" in
4930 *i?86*)
4931 aros_host_cpu="i386"
4934 mingw32*)
4935 aros_host_cpu="i386"
4938 *x86_64*)
4939 aros_host_cpu="x86_64"
4940 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4945 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4946 aros_host_cpu="$host_cpu"
4948 esac
4951 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4953 esac
4955 # Extract the first word of "ar", so it can be a program name with args.
4956 set dummy ar; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if ${ac_cv_prog_aros_host_ar+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 if test -n "$aros_host_ar"; then
4963 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_aros_host_ar="ar cr"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4976 done
4977 done
4978 IFS=$as_save_IFS
4982 aros_host_ar=$ac_cv_prog_aros_host_ar
4983 if test -n "$aros_host_ar"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4985 $as_echo "$aros_host_ar" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4992 if test "$aros_host_ar" = ""; then
4993 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4995 # Extract the first word of "ranlib", so it can be a program name with args.
4996 set dummy ranlib; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$aros_host_ranlib"; then
5003 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_prog_aros_host_ranlib="ranlib "
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5016 done
5017 done
5018 IFS=$as_save_IFS
5022 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5023 if test -n "$aros_host_ranlib"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5025 $as_echo "$aros_host_ranlib" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5032 if test "$aros_host_ranlib" = ""; then
5033 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5035 # Extract the first word of "strip", so it can be a program name with args.
5036 set dummy strip; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_prog_aros_host_strip+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 if test -n "$aros_host_strip"; then
5043 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_prog_aros_host_strip="strip "
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5056 done
5057 done
5058 IFS=$as_save_IFS
5062 aros_host_strip=$ac_cv_prog_aros_host_strip
5063 if test -n "$aros_host_strip"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5065 $as_echo "$aros_host_strip" >&6; }
5066 else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5072 if test "$aros_host_strip" = ""; then
5073 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5076 # Extract the first word of "rm", so it can be a program name with args.
5077 set dummy rm; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_RM+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -n "$RM"; then
5084 ac_cv_prog_RM="$RM" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_RM="rm -rf"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5097 done
5098 done
5099 IFS=$as_save_IFS
5103 RM=$ac_cv_prog_RM
5104 if test -n "$RM"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5106 $as_echo "$RM" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5113 if test "$RM" = ""; then
5114 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5116 # Extract the first word of "cp", so it can be a program name with args.
5117 set dummy cp; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if ${ac_cv_prog_CP+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$CP"; then
5124 ac_cv_prog_CP="$CP" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_CP="cp "
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5137 done
5138 done
5139 IFS=$as_save_IFS
5143 CP=$ac_cv_prog_CP
5144 if test -n "$CP"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5146 $as_echo "$CP" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5153 if test "$CP" = ""; then
5154 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5156 # Extract the first word of "mv", so it can be a program name with args.
5157 set dummy mv; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_MV+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$MV"; then
5164 ac_cv_prog_MV="$MV" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_MV="mv "
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5177 done
5178 done
5179 IFS=$as_save_IFS
5183 MV=$ac_cv_prog_MV
5184 if test -n "$MV"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5186 $as_echo "$MV" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 if test "$MV" = ""; then
5194 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5196 # Extract the first word of "echo", so it can be a program name with args.
5197 set dummy echo; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_prog_ECHO+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test -n "$ECHO"; then
5204 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_ECHO="echo "
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5217 done
5218 done
5219 IFS=$as_save_IFS
5223 ECHO=$ac_cv_prog_ECHO
5224 if test -n "$ECHO"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5226 $as_echo "$ECHO" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5233 if test "$ECHO" = ""; then
5234 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5236 # Extract the first word of "mkdir", so it can be a program name with args.
5237 set dummy mkdir; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_MKDIR+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 if test -n "$MKDIR"; then
5244 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_MKDIR="mkdir -p"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5263 MKDIR=$ac_cv_prog_MKDIR
5264 if test -n "$MKDIR"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5266 $as_echo "$MKDIR" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5273 if test "$MKDIR" = ""; then
5274 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5276 # Extract the first word of "touch", so it can be a program name with args.
5277 set dummy touch; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_TOUCH+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if test -n "$TOUCH"; then
5284 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_TOUCH="touch "
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5297 done
5298 done
5299 IFS=$as_save_IFS
5303 TOUCH=$ac_cv_prog_TOUCH
5304 if test -n "$TOUCH"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5306 $as_echo "$TOUCH" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5313 if test "$TOUCH" = ""; then
5314 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5316 # Extract the first word of "sort", so it can be a program name with args.
5317 set dummy sort; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_prog_SORT+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$SORT"; then
5324 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_SORT="sort "
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 SORT=$ac_cv_prog_SORT
5344 if test -n "$SORT"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5346 $as_echo "$SORT" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5353 if test "$SORT" = ""; then
5354 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5356 # Extract the first word of "uniq", so it can be a program name with args.
5357 set dummy uniq; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_UNIQ+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$UNIQ"; then
5364 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_UNIQ="uniq "
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5377 done
5378 done
5379 IFS=$as_save_IFS
5383 UNIQ=$ac_cv_prog_UNIQ
5384 if test -n "$UNIQ"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5386 $as_echo "$UNIQ" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5393 if test "$UNIQ" = ""; then
5394 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5396 # Extract the first word of "true", so it can be a program name with args.
5397 set dummy true; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_NOP+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 if test -n "$NOP"; then
5404 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_NOP="true "
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5417 done
5418 done
5419 IFS=$as_save_IFS
5423 NOP=$ac_cv_prog_NOP
5424 if test -n "$NOP"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5426 $as_echo "$NOP" >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5433 if test "$NOP" = ""; then
5434 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5436 # Extract the first word of "cat", so it can be a program name with args.
5437 set dummy cat; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_CAT+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if test -n "$CAT"; then
5444 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_CAT="cat "
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5457 done
5458 done
5459 IFS=$as_save_IFS
5463 CAT=$ac_cv_prog_CAT
5464 if test -n "$CAT"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5466 $as_echo "$CAT" >&6; }
5467 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5473 if test "$CAT" = ""; then
5474 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5476 # Extract the first word of "bison", so it can be a program name with args.
5477 set dummy bison; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_BISON+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if test -n "$BISON"; then
5484 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_BISON="bison "
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5497 done
5498 done
5499 IFS=$as_save_IFS
5503 BISON=$ac_cv_prog_BISON
5504 if test -n "$BISON"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5506 $as_echo "$BISON" >&6; }
5507 else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5513 if test "$BISON" = ""; then
5514 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5516 # Extract the first word of "flex", so it can be a program name with args.
5517 set dummy flex; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_FLEX+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -n "$FLEX"; then
5524 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_FLEX="flex "
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5537 done
5538 done
5539 IFS=$as_save_IFS
5543 FLEX=$ac_cv_prog_FLEX
5544 if test -n "$FLEX"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5546 $as_echo "$FLEX" >&6; }
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5553 if test "$FLEX" = ""; then
5554 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5556 # Extract the first word of "pngtopnm", so it can be a program name with args.
5557 set dummy pngtopnm; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if test -n "$PNGTOPNM"; then
5564 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_PNGTOPNM="pngtopnm "
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5577 done
5578 done
5579 IFS=$as_save_IFS
5583 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5584 if test -n "$PNGTOPNM"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5586 $as_echo "$PNGTOPNM" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5593 if test "$PNGTOPNM" = ""; then
5594 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5596 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5597 set dummy ppmtoilbm; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 if test -n "$PPMTOILBM"; then
5604 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5617 done
5618 done
5619 IFS=$as_save_IFS
5623 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5624 if test -n "$PPMTOILBM"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5626 $as_echo "$PPMTOILBM" >&6; }
5627 else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5633 if test "$PPMTOILBM" = ""; then
5634 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5636 # Extract the first word of "sed", so it can be a program name with args.
5637 set dummy sed; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_prog_SED+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$SED"; then
5644 ac_cv_prog_SED="$SED" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_SED="sed "
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5657 done
5658 done
5659 IFS=$as_save_IFS
5663 SED=$ac_cv_prog_SED
5664 if test -n "$SED"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5666 $as_echo "$SED" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5673 if test "$SED" = ""; then
5674 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5676 # Extract the first word of "chmod", so it can be a program name with args.
5677 set dummy chmod; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_CHMOD+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if test -n "$CHMOD"; then
5684 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_CHMOD="chmod "
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5699 IFS=$as_save_IFS
5703 CHMOD=$ac_cv_prog_CHMOD
5704 if test -n "$CHMOD"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5706 $as_echo "$CHMOD" >&6; }
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5713 if test "$CHMOD" = ""; then
5714 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5716 # Extract the first word of "patch", so it can be a program name with args.
5717 set dummy patch; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_PATCH+:} false; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if test -n "$PATCH"; then
5724 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_PATCH="patch "
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5737 done
5738 done
5739 IFS=$as_save_IFS
5743 PATCH=$ac_cv_prog_PATCH
5744 if test -n "$PATCH"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5746 $as_echo "$PATCH" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5753 if test "$PATCH" = ""; then
5754 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5763 if test -n "$PYTHON"; then
5764 # If the user set $PYTHON, use it and don't search something else.
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5766 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5767 prog="import sys
5768 # split strings by '.' and convert to numeric. Append some zeros
5769 # because we need at least 4 digits for the hex conversion.
5770 # map returns an iterator in Python 3.0 and a list in 2.x
5771 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5772 minverhex = 0
5773 # xrange is not present in Python 3.0 and range returns an iterator
5774 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5775 sys.exit(sys.hexversion < minverhex)"
5776 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5777 ($PYTHON -c "$prog") >&5 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; then :
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5782 $as_echo "yes" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5788 am_display_PYTHON=$PYTHON
5789 else
5790 # Otherwise, try each interpreter until we find one that satisfies
5791 # VERSION.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5793 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5794 if ${am_cv_pathless_PYTHON+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5798 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
5799 test "$am_cv_pathless_PYTHON" = none && break
5800 prog="import sys
5801 # split strings by '.' and convert to numeric. Append some zeros
5802 # because we need at least 4 digits for the hex conversion.
5803 # map returns an iterator in Python 3.0 and a list in 2.x
5804 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5805 minverhex = 0
5806 # xrange is not present in Python 3.0 and range returns an iterator
5807 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5808 sys.exit(sys.hexversion < minverhex)"
5809 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5810 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; then :
5814 break
5816 done
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5819 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5820 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5821 if test "$am_cv_pathless_PYTHON" = none; then
5822 PYTHON=:
5823 else
5824 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5825 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if ${ac_cv_path_PYTHON+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 case $PYTHON in
5832 [\\/]* | ?:[\\/]*)
5833 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5847 done
5848 done
5849 IFS=$as_save_IFS
5852 esac
5854 PYTHON=$ac_cv_path_PYTHON
5855 if test -n "$PYTHON"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5857 $as_echo "$PYTHON" >&6; }
5858 else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5865 am_display_PYTHON=$am_cv_pathless_PYTHON
5869 if test "$PYTHON" = :; then
5870 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5871 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5875 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5876 if ${am_cv_python_version+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5882 $as_echo "$am_cv_python_version" >&6; }
5883 PYTHON_VERSION=$am_cv_python_version
5887 PYTHON_PREFIX='${prefix}'
5889 PYTHON_EXEC_PREFIX='${exec_prefix}'
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5894 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5895 if ${am_cv_python_platform+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5901 $as_echo "$am_cv_python_platform" >&6; }
5902 PYTHON_PLATFORM=$am_cv_python_platform
5905 # Just factor out some code duplication.
5906 am_python_setup_sysconfig="\
5907 import sys
5908 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5909 # with python 3.x. See automake bug#10227.
5910 try:
5911 import sysconfig
5912 except ImportError:
5913 can_use_sysconfig = 0
5914 else:
5915 can_use_sysconfig = 1
5916 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5917 # <https://github.com/pypa/virtualenv/issues/118>
5918 try:
5919 from platform import python_implementation
5920 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5921 can_use_sysconfig = 0
5922 except ImportError:
5923 pass"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5927 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5928 if ${am_cv_python_pythondir+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test "x$prefix" = xNONE
5932 then
5933 am_py_prefix=$ac_default_prefix
5934 else
5935 am_py_prefix=$prefix
5937 am_cv_python_pythondir=`$PYTHON -c "
5938 $am_python_setup_sysconfig
5939 if can_use_sysconfig:
5940 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5941 else:
5942 from distutils import sysconfig
5943 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5944 sys.stdout.write(sitedir)"`
5945 case $am_cv_python_pythondir in
5946 $am_py_prefix*)
5947 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5948 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5951 case $am_py_prefix in
5952 /usr|/System*) ;;
5954 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5956 esac
5958 esac
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5962 $as_echo "$am_cv_python_pythondir" >&6; }
5963 pythondir=$am_cv_python_pythondir
5967 pkgpythondir=\${pythondir}/$PACKAGE
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5971 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5972 if ${am_cv_python_pyexecdir+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test "x$exec_prefix" = xNONE
5976 then
5977 am_py_exec_prefix=$am_py_prefix
5978 else
5979 am_py_exec_prefix=$exec_prefix
5981 am_cv_python_pyexecdir=`$PYTHON -c "
5982 $am_python_setup_sysconfig
5983 if can_use_sysconfig:
5984 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5985 else:
5986 from distutils import sysconfig
5987 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5988 sys.stdout.write(sitedir)"`
5989 case $am_cv_python_pyexecdir in
5990 $am_py_exec_prefix*)
5991 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5992 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5995 case $am_py_exec_prefix in
5996 /usr|/System*) ;;
5998 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6000 esac
6002 esac
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6006 $as_echo "$am_cv_python_pyexecdir" >&6; }
6007 pyexecdir=$am_cv_python_pyexecdir
6011 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6021 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6022 if ${ac_cv_lib_png_png_read_png+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 ac_check_lib_save_LIBS=$LIBS
6026 LIBS="-lpng $LIBS"
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6030 /* Override any GCC internal prototype to avoid an error.
6031 Use char because int might match the return type of a GCC
6032 builtin and then its argument prototype would still apply. */
6033 #ifdef __cplusplus
6034 extern "C"
6035 #endif
6036 char png_read_png ();
6038 main ()
6040 return png_read_png ();
6042 return 0;
6044 _ACEOF
6045 if ac_fn_c_try_link "$LINENO"; then :
6046 ac_cv_lib_png_png_read_png=yes
6047 else
6048 ac_cv_lib_png_png_read_png=no
6050 rm -f core conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6052 LIBS=$ac_check_lib_save_LIBS
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6055 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6056 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6057 cat >>confdefs.h <<_ACEOF
6058 #define HAVE_LIBPNG 1
6059 _ACEOF
6061 LIBS="-lpng $LIBS"
6065 if test "$ac_cv_lib_png_png_read_png" = ""; then
6066 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6069 FOR=for
6071 IF=if
6073 TEST=test
6075 CMP=cmp
6079 # Check for some includes for the X11 HIDD and the kernel
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6082 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6083 if ${ac_cv_path_GREP+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -z "$GREP"; then
6087 ac_path_GREP_found=false
6088 # Loop through the user's path and test for each of PROGNAME-LIST
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_prog in grep ggrep; do
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6097 as_fn_executable_p "$ac_path_GREP" || continue
6098 # Check for GNU ac_path_GREP and select it if it is found.
6099 # Check for GNU $ac_path_GREP
6100 case `"$ac_path_GREP" --version 2>&1` in
6101 *GNU*)
6102 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6104 ac_count=0
6105 $as_echo_n 0123456789 >"conftest.in"
6106 while :
6108 cat "conftest.in" "conftest.in" >"conftest.tmp"
6109 mv "conftest.tmp" "conftest.in"
6110 cp "conftest.in" "conftest.nl"
6111 $as_echo 'GREP' >> "conftest.nl"
6112 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6114 as_fn_arith $ac_count + 1 && ac_count=$as_val
6115 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6116 # Best one so far, save it but keep looking for a better one
6117 ac_cv_path_GREP="$ac_path_GREP"
6118 ac_path_GREP_max=$ac_count
6120 # 10*(2^10) chars as input seems more than enough
6121 test $ac_count -gt 10 && break
6122 done
6123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6124 esac
6126 $ac_path_GREP_found && break 3
6127 done
6128 done
6129 done
6130 IFS=$as_save_IFS
6131 if test -z "$ac_cv_path_GREP"; then
6132 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6134 else
6135 ac_cv_path_GREP=$GREP
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6140 $as_echo "$ac_cv_path_GREP" >&6; }
6141 GREP="$ac_cv_path_GREP"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6145 $as_echo_n "checking for egrep... " >&6; }
6146 if ${ac_cv_path_EGREP+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6150 then ac_cv_path_EGREP="$GREP -E"
6151 else
6152 if test -z "$EGREP"; then
6153 ac_path_EGREP_found=false
6154 # Loop through the user's path and test for each of PROGNAME-LIST
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_prog in egrep; do
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6163 as_fn_executable_p "$ac_path_EGREP" || continue
6164 # Check for GNU ac_path_EGREP and select it if it is found.
6165 # Check for GNU $ac_path_EGREP
6166 case `"$ac_path_EGREP" --version 2>&1` in
6167 *GNU*)
6168 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6170 ac_count=0
6171 $as_echo_n 0123456789 >"conftest.in"
6172 while :
6174 cat "conftest.in" "conftest.in" >"conftest.tmp"
6175 mv "conftest.tmp" "conftest.in"
6176 cp "conftest.in" "conftest.nl"
6177 $as_echo 'EGREP' >> "conftest.nl"
6178 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6180 as_fn_arith $ac_count + 1 && ac_count=$as_val
6181 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6182 # Best one so far, save it but keep looking for a better one
6183 ac_cv_path_EGREP="$ac_path_EGREP"
6184 ac_path_EGREP_max=$ac_count
6186 # 10*(2^10) chars as input seems more than enough
6187 test $ac_count -gt 10 && break
6188 done
6189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6190 esac
6192 $ac_path_EGREP_found && break 3
6193 done
6194 done
6195 done
6196 IFS=$as_save_IFS
6197 if test -z "$ac_cv_path_EGREP"; then
6198 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6200 else
6201 ac_cv_path_EGREP=$EGREP
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6207 $as_echo "$ac_cv_path_EGREP" >&6; }
6208 EGREP="$ac_cv_path_EGREP"
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6212 $as_echo_n "checking for ANSI C header files... " >&6; }
6213 if ${ac_cv_header_stdc+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218 #include <stdlib.h>
6219 #include <stdarg.h>
6220 #include <string.h>
6221 #include <float.h>
6224 main ()
6228 return 0;
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"; then :
6232 ac_cv_header_stdc=yes
6233 else
6234 ac_cv_header_stdc=no
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 if test $ac_cv_header_stdc = yes; then
6239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 #include <string.h>
6244 _ACEOF
6245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6246 $EGREP "memchr" >/dev/null 2>&1; then :
6248 else
6249 ac_cv_header_stdc=no
6251 rm -f conftest*
6255 if test $ac_cv_header_stdc = yes; then
6256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 #include <stdlib.h>
6261 _ACEOF
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "free" >/dev/null 2>&1; then :
6265 else
6266 ac_cv_header_stdc=no
6268 rm -f conftest*
6272 if test $ac_cv_header_stdc = yes; then
6273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6274 if test "$cross_compiling" = yes; then :
6276 else
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 #include <ctype.h>
6280 #include <stdlib.h>
6281 #if ((' ' & 0x0FF) == 0x020)
6282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6284 #else
6285 # define ISLOWER(c) \
6286 (('a' <= (c) && (c) <= 'i') \
6287 || ('j' <= (c) && (c) <= 'r') \
6288 || ('s' <= (c) && (c) <= 'z'))
6289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6290 #endif
6292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6294 main ()
6296 int i;
6297 for (i = 0; i < 256; i++)
6298 if (XOR (islower (i), ISLOWER (i))
6299 || toupper (i) != TOUPPER (i))
6300 return 2;
6301 return 0;
6303 _ACEOF
6304 if ac_fn_c_try_run "$LINENO"; then :
6306 else
6307 ac_cv_header_stdc=no
6309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6310 conftest.$ac_objext conftest.beam conftest.$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6316 $as_echo "$ac_cv_header_stdc" >&6; }
6317 if test $ac_cv_header_stdc = yes; then
6319 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6325 inttypes.h stdint.h unistd.h
6326 do :
6327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6328 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6331 cat >>confdefs.h <<_ACEOF
6332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6333 _ACEOF
6337 done
6340 for ac_header in sys/ipc.h sys/shm.h \
6341 sys/mmap.h sys/mman.h sysexits.h \
6342 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6344 do :
6345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6348 cat >>confdefs.h <<_ACEOF
6349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6350 _ACEOF
6354 done
6357 for ac_header in sys/mount.h
6358 do :
6359 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6361 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6362 cat >>confdefs.h <<_ACEOF
6363 #define HAVE_SYS_MOUNT_H 1
6364 _ACEOF
6368 done
6371 ac_header_dirent=no
6372 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6373 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6375 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6376 if eval \${$as_ac_Header+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6381 #include <sys/types.h>
6382 #include <$ac_hdr>
6385 main ()
6387 if ((DIR *) 0)
6388 return 0;
6390 return 0;
6392 _ACEOF
6393 if ac_fn_c_try_compile "$LINENO"; then :
6394 eval "$as_ac_Header=yes"
6395 else
6396 eval "$as_ac_Header=no"
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 eval ac_res=\$$as_ac_Header
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6402 $as_echo "$ac_res" >&6; }
6403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6404 cat >>confdefs.h <<_ACEOF
6405 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6406 _ACEOF
6408 ac_header_dirent=$ac_hdr; break
6411 done
6412 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6413 if test $ac_header_dirent = dirent.h; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6415 $as_echo_n "checking for library containing opendir... " >&6; }
6416 if ${ac_cv_search_opendir+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 ac_func_search_save_LIBS=$LIBS
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6423 /* Override any GCC internal prototype to avoid an error.
6424 Use char because int might match the return type of a GCC
6425 builtin and then its argument prototype would still apply. */
6426 #ifdef __cplusplus
6427 extern "C"
6428 #endif
6429 char opendir ();
6431 main ()
6433 return opendir ();
6435 return 0;
6437 _ACEOF
6438 for ac_lib in '' dir; do
6439 if test -z "$ac_lib"; then
6440 ac_res="none required"
6441 else
6442 ac_res=-l$ac_lib
6443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6445 if ac_fn_c_try_link "$LINENO"; then :
6446 ac_cv_search_opendir=$ac_res
6448 rm -f core conftest.err conftest.$ac_objext \
6449 conftest$ac_exeext
6450 if ${ac_cv_search_opendir+:} false; then :
6451 break
6453 done
6454 if ${ac_cv_search_opendir+:} false; then :
6456 else
6457 ac_cv_search_opendir=no
6459 rm conftest.$ac_ext
6460 LIBS=$ac_func_search_save_LIBS
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6463 $as_echo "$ac_cv_search_opendir" >&6; }
6464 ac_res=$ac_cv_search_opendir
6465 if test "$ac_res" != no; then :
6466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6472 $as_echo_n "checking for library containing opendir... " >&6; }
6473 if ${ac_cv_search_opendir+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 ac_func_search_save_LIBS=$LIBS
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6480 /* Override any GCC internal prototype to avoid an error.
6481 Use char because int might match the return type of a GCC
6482 builtin and then its argument prototype would still apply. */
6483 #ifdef __cplusplus
6484 extern "C"
6485 #endif
6486 char opendir ();
6488 main ()
6490 return opendir ();
6492 return 0;
6494 _ACEOF
6495 for ac_lib in '' x; do
6496 if test -z "$ac_lib"; then
6497 ac_res="none required"
6498 else
6499 ac_res=-l$ac_lib
6500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6502 if ac_fn_c_try_link "$LINENO"; then :
6503 ac_cv_search_opendir=$ac_res
6505 rm -f core conftest.err conftest.$ac_objext \
6506 conftest$ac_exeext
6507 if ${ac_cv_search_opendir+:} false; then :
6508 break
6510 done
6511 if ${ac_cv_search_opendir+:} false; then :
6513 else
6514 ac_cv_search_opendir=no
6516 rm conftest.$ac_ext
6517 LIBS=$ac_func_search_save_LIBS
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6520 $as_echo "$ac_cv_search_opendir" >&6; }
6521 ac_res=$ac_cv_search_opendir
6522 if test "$ac_res" != no; then :
6523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6530 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6531 if ${ac_cv_header_stat_broken+:} false; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <sys/types.h>
6537 #include <sys/stat.h>
6539 #if defined S_ISBLK && defined S_IFDIR
6540 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6541 #endif
6543 #if defined S_ISBLK && defined S_IFCHR
6544 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6545 #endif
6547 #if defined S_ISLNK && defined S_IFREG
6548 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6549 #endif
6551 #if defined S_ISSOCK && defined S_IFREG
6552 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6553 #endif
6555 _ACEOF
6556 if ac_fn_c_try_compile "$LINENO"; then :
6557 ac_cv_header_stat_broken=no
6558 else
6559 ac_cv_header_stat_broken=yes
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6564 $as_echo "$ac_cv_header_stat_broken" >&6; }
6565 if test $ac_cv_header_stat_broken = yes; then
6567 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6572 $as_echo_n "checking for ANSI C header files... " >&6; }
6573 if ${ac_cv_header_stdc+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 #include <stdlib.h>
6579 #include <stdarg.h>
6580 #include <string.h>
6581 #include <float.h>
6584 main ()
6588 return 0;
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 ac_cv_header_stdc=yes
6593 else
6594 ac_cv_header_stdc=no
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 if test $ac_cv_header_stdc = yes; then
6599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #include <string.h>
6604 _ACEOF
6605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606 $EGREP "memchr" >/dev/null 2>&1; then :
6608 else
6609 ac_cv_header_stdc=no
6611 rm -f conftest*
6615 if test $ac_cv_header_stdc = yes; then
6616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 #include <stdlib.h>
6621 _ACEOF
6622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6623 $EGREP "free" >/dev/null 2>&1; then :
6625 else
6626 ac_cv_header_stdc=no
6628 rm -f conftest*
6632 if test $ac_cv_header_stdc = yes; then
6633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6634 if test "$cross_compiling" = yes; then :
6636 else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 #include <ctype.h>
6640 #include <stdlib.h>
6641 #if ((' ' & 0x0FF) == 0x020)
6642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6644 #else
6645 # define ISLOWER(c) \
6646 (('a' <= (c) && (c) <= 'i') \
6647 || ('j' <= (c) && (c) <= 'r') \
6648 || ('s' <= (c) && (c) <= 'z'))
6649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6650 #endif
6652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6654 main ()
6656 int i;
6657 for (i = 0; i < 256; i++)
6658 if (XOR (islower (i), ISLOWER (i))
6659 || toupper (i) != TOUPPER (i))
6660 return 2;
6661 return 0;
6663 _ACEOF
6664 if ac_fn_c_try_run "$LINENO"; then :
6666 else
6667 ac_cv_header_stdc=no
6669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6670 conftest.$ac_objext conftest.beam conftest.$ac_ext
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6676 $as_echo "$ac_cv_header_stdc" >&6; }
6677 if test $ac_cv_header_stdc = yes; then
6679 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6684 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6685 if ${ac_cv_header_sys_wait_h+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6690 #include <sys/types.h>
6691 #include <sys/wait.h>
6692 #ifndef WEXITSTATUS
6693 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6694 #endif
6695 #ifndef WIFEXITED
6696 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6697 #endif
6700 main ()
6702 int s;
6703 wait (&s);
6704 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6706 return 0;
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"; then :
6710 ac_cv_header_sys_wait_h=yes
6711 else
6712 ac_cv_header_sys_wait_h=no
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6717 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6718 if test $ac_cv_header_sys_wait_h = yes; then
6720 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6725 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6726 if ${ac_cv_header_time+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731 #include <sys/types.h>
6732 #include <sys/time.h>
6733 #include <time.h>
6736 main ()
6738 if ((struct tm *) 0)
6739 return 0;
6741 return 0;
6743 _ACEOF
6744 if ac_fn_c_try_compile "$LINENO"; then :
6745 ac_cv_header_time=yes
6746 else
6747 ac_cv_header_time=no
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6752 $as_echo "$ac_cv_header_time" >&6; }
6753 if test $ac_cv_header_time = yes; then
6755 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6759 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6760 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6762 cat >>confdefs.h <<_ACEOF
6763 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6764 _ACEOF
6767 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6772 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6773 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6775 cat >>confdefs.h <<_ACEOF
6776 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6777 _ACEOF
6780 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6782 else
6783 case " $LIBOBJS " in
6784 *" fileblocks.$ac_objext "* ) ;;
6785 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6787 esac
6792 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6793 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_STRUCT_STAT_ST_RDEV 1
6797 _ACEOF
6800 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6806 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6807 if ${ac_cv_struct_tm+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6813 #include <time.h>
6816 main ()
6818 struct tm tm;
6819 int *p = &tm.tm_sec;
6820 return !p;
6822 return 0;
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 ac_cv_struct_tm=time.h
6827 else
6828 ac_cv_struct_tm=sys/time.h
6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6833 $as_echo "$ac_cv_struct_tm" >&6; }
6834 if test $ac_cv_struct_tm = sys/time.h; then
6836 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6840 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6841 #include <$ac_cv_struct_tm>
6844 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6846 cat >>confdefs.h <<_ACEOF
6847 #define HAVE_STRUCT_TM_TM_ZONE 1
6848 _ACEOF
6853 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6855 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6857 else
6858 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6860 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6861 ac_have_decl=1
6862 else
6863 ac_have_decl=0
6866 cat >>confdefs.h <<_ACEOF
6867 #define HAVE_DECL_TZNAME $ac_have_decl
6868 _ACEOF
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6871 $as_echo_n "checking for tzname... " >&6; }
6872 if ${ac_cv_var_tzname+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 #include <time.h>
6878 #if !HAVE_DECL_TZNAME
6879 extern char *tzname[];
6880 #endif
6883 main ()
6885 return tzname[0][0];
6887 return 0;
6889 _ACEOF
6890 if ac_fn_c_try_link "$LINENO"; then :
6891 ac_cv_var_tzname=yes
6892 else
6893 ac_cv_var_tzname=no
6895 rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext conftest.$ac_ext
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6899 $as_echo "$ac_cv_var_tzname" >&6; }
6900 if test $ac_cv_var_tzname = yes; then
6902 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6907 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6908 if test "x$ac_cv_type_off_t" = xyes; then :
6910 else
6912 cat >>confdefs.h <<_ACEOF
6913 #define off_t long int
6914 _ACEOF
6918 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6919 if test "x$ac_cv_type_pid_t" = xyes; then :
6921 else
6923 cat >>confdefs.h <<_ACEOF
6924 #define pid_t int
6925 _ACEOF
6929 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6930 if test "x$ac_cv_type_size_t" = xyes; then :
6932 else
6934 cat >>confdefs.h <<_ACEOF
6935 #define size_t unsigned int
6936 _ACEOF
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6941 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6942 if ${ac_cv_type_uid_t+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 #include <sys/types.h>
6949 _ACEOF
6950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6951 $EGREP "uid_t" >/dev/null 2>&1; then :
6952 ac_cv_type_uid_t=yes
6953 else
6954 ac_cv_type_uid_t=no
6956 rm -f conftest*
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6960 $as_echo "$ac_cv_type_uid_t" >&6; }
6961 if test $ac_cv_type_uid_t = no; then
6963 $as_echo "#define uid_t int" >>confdefs.h
6966 $as_echo "#define gid_t int" >>confdefs.h
6971 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6972 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6974 cat >>confdefs.h <<_ACEOF
6975 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6976 _ACEOF
6982 # Look for some functions
6983 for ac_func in getpagesize kqueue statfs statvfs \
6984 clone kse_create rfork_thread thr_create sa_register \
6985 getcontext makecontext setcontext sigaltstack swapcontext
6986 do :
6987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6989 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6990 cat >>confdefs.h <<_ACEOF
6991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6992 _ACEOF
6995 done
7001 for ac_header in $ac_header_list
7002 do :
7003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7004 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7007 cat >>confdefs.h <<_ACEOF
7008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7009 _ACEOF
7013 done
7022 for ac_func in getpagesize
7023 do :
7024 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7025 if test "x$ac_cv_func_getpagesize" = xyes; then :
7026 cat >>confdefs.h <<_ACEOF
7027 #define HAVE_GETPAGESIZE 1
7028 _ACEOF
7031 done
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7034 $as_echo_n "checking for working mmap... " >&6; }
7035 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test "$cross_compiling" = yes; then :
7039 ac_cv_func_mmap_fixed_mapped=no
7040 else
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 $ac_includes_default
7044 /* malloc might have been renamed as rpl_malloc. */
7045 #undef malloc
7047 /* Thanks to Mike Haertel and Jim Avera for this test.
7048 Here is a matrix of mmap possibilities:
7049 mmap private not fixed
7050 mmap private fixed at somewhere currently unmapped
7051 mmap private fixed at somewhere already mapped
7052 mmap shared not fixed
7053 mmap shared fixed at somewhere currently unmapped
7054 mmap shared fixed at somewhere already mapped
7055 For private mappings, we should verify that changes cannot be read()
7056 back from the file, nor mmap's back from the file at a different
7057 address. (There have been systems where private was not correctly
7058 implemented like the infamous i386 svr4.0, and systems where the
7059 VM page cache was not coherent with the file system buffer cache
7060 like early versions of FreeBSD and possibly contemporary NetBSD.)
7061 For shared mappings, we should conversely verify that changes get
7062 propagated back to all the places they're supposed to be.
7064 Grep wants private fixed already mapped.
7065 The main things grep needs to know about mmap are:
7066 * does it exist and is it safe to write into the mmap'd area
7067 * how to use it (BSD variants) */
7069 #include <fcntl.h>
7070 #include <sys/mman.h>
7072 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7073 char *malloc ();
7074 #endif
7076 /* This mess was copied from the GNU getpagesize.h. */
7077 #ifndef HAVE_GETPAGESIZE
7078 # ifdef _SC_PAGESIZE
7079 # define getpagesize() sysconf(_SC_PAGESIZE)
7080 # else /* no _SC_PAGESIZE */
7081 # ifdef HAVE_SYS_PARAM_H
7082 # include <sys/param.h>
7083 # ifdef EXEC_PAGESIZE
7084 # define getpagesize() EXEC_PAGESIZE
7085 # else /* no EXEC_PAGESIZE */
7086 # ifdef NBPG
7087 # define getpagesize() NBPG * CLSIZE
7088 # ifndef CLSIZE
7089 # define CLSIZE 1
7090 # endif /* no CLSIZE */
7091 # else /* no NBPG */
7092 # ifdef NBPC
7093 # define getpagesize() NBPC
7094 # else /* no NBPC */
7095 # ifdef PAGESIZE
7096 # define getpagesize() PAGESIZE
7097 # endif /* PAGESIZE */
7098 # endif /* no NBPC */
7099 # endif /* no NBPG */
7100 # endif /* no EXEC_PAGESIZE */
7101 # else /* no HAVE_SYS_PARAM_H */
7102 # define getpagesize() 8192 /* punt totally */
7103 # endif /* no HAVE_SYS_PARAM_H */
7104 # endif /* no _SC_PAGESIZE */
7106 #endif /* no HAVE_GETPAGESIZE */
7109 main ()
7111 char *data, *data2, *data3;
7112 const char *cdata2;
7113 int i, pagesize;
7114 int fd, fd2;
7116 pagesize = getpagesize ();
7118 /* First, make a file with some known garbage in it. */
7119 data = (char *) malloc (pagesize);
7120 if (!data)
7121 return 1;
7122 for (i = 0; i < pagesize; ++i)
7123 *(data + i) = rand ();
7124 umask (0);
7125 fd = creat ("conftest.mmap", 0600);
7126 if (fd < 0)
7127 return 2;
7128 if (write (fd, data, pagesize) != pagesize)
7129 return 3;
7130 close (fd);
7132 /* Next, check that the tail of a page is zero-filled. File must have
7133 non-zero length, otherwise we risk SIGBUS for entire page. */
7134 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7135 if (fd2 < 0)
7136 return 4;
7137 cdata2 = "";
7138 if (write (fd2, cdata2, 1) != 1)
7139 return 5;
7140 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7141 if (data2 == MAP_FAILED)
7142 return 6;
7143 for (i = 0; i < pagesize; ++i)
7144 if (*(data2 + i))
7145 return 7;
7146 close (fd2);
7147 if (munmap (data2, pagesize))
7148 return 8;
7150 /* Next, try to mmap the file at a fixed address which already has
7151 something else allocated at it. If we can, also make sure that
7152 we see the same garbage. */
7153 fd = open ("conftest.mmap", O_RDWR);
7154 if (fd < 0)
7155 return 9;
7156 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7157 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7158 return 10;
7159 for (i = 0; i < pagesize; ++i)
7160 if (*(data + i) != *(data2 + i))
7161 return 11;
7163 /* Finally, make sure that changes to the mapped area do not
7164 percolate back to the file as seen by read(). (This is a bug on
7165 some variants of i386 svr4.0.) */
7166 for (i = 0; i < pagesize; ++i)
7167 *(data2 + i) = *(data2 + i) + 1;
7168 data3 = (char *) malloc (pagesize);
7169 if (!data3)
7170 return 12;
7171 if (read (fd, data3, pagesize) != pagesize)
7172 return 13;
7173 for (i = 0; i < pagesize; ++i)
7174 if (*(data + i) != *(data3 + i))
7175 return 14;
7176 close (fd);
7177 return 0;
7179 _ACEOF
7180 if ac_fn_c_try_run "$LINENO"; then :
7181 ac_cv_func_mmap_fixed_mapped=yes
7182 else
7183 ac_cv_func_mmap_fixed_mapped=no
7185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7186 conftest.$ac_objext conftest.beam conftest.$ac_ext
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7191 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7192 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7194 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7197 rm -f conftest.mmap conftest.txt
7202 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7203 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7204 aros_config_ldflags=""
7206 aros_shared_default=yes
7208 aros_shared_cflags="-fPIC"
7209 aros_shared_aflags=""
7210 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7211 aros_kernel_ldflags="-Wl,-rpath,./lib"
7213 aros_kernel_ar_flags="cr"
7214 aros_target_ar_flags="cr"
7215 aros_target_nm_flags="-C -ul"
7216 aros_target_strip_flags="--strip-unneeded -R.comment"
7218 aros_compiler_libs=
7219 aros_arch_libs=
7221 aros_target_genmap="-Wl,-Map -Xlinker"
7223 # Native flavour stuff
7224 aros_serial_debug="0"
7226 # Palm native flavour stuff
7227 aros_palm_debug_hack="0"
7229 # Unix flavour stuff
7230 aros_nesting_supervisor="0"
7232 # Collect-aros stuff: "-ius" to ignore undefined symbols
7233 ignore_undefined_symbols=""
7235 # Check for X11 by default
7236 need_x11="auto"
7238 #-----------------------------------------------------------------------------
7241 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7242 # it switched on by default, and we use the host compiler, so it compiles AROS
7243 # code with this enabled resulting in link failures as we don't have support
7244 # for it.
7246 # We use two methods to disable it. For the host compiler (used to compile
7247 # some hosted modules), we test to see if the compiler supports stack
7248 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7249 # work on all platforms.
7251 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7252 # (this is done unconditionally, as it should have no effect on compilers
7253 # without the stack protection feature). This may be specific to the way that
7254 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7255 # strong enough to disable it in a generic way though, so we'll live with it
7256 # until another vendor ships GCC with it enabled in a different way, and deal
7257 # with it then.
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7261 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7262 save_cflags="$CFLAGS"
7263 CFLAGS="$CFLAGS -fno-stack-protector"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7268 main ()
7272 return 0;
7274 _ACEOF
7275 if ac_fn_c_try_compile "$LINENO"; then :
7276 use_no_stack_protector="yes"
7277 else
7278 use_no_stack_protector="no"
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7282 $as_echo "$use_no_stack_protector" >&6; }
7283 if test "x-$use_no_stack_protector" = "x-yes" ; then
7284 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7286 CFLAGS="$save_cflags"
7288 #-----------------------------------------------------------------------------
7290 # Disable pointer-signedness warnings if the compiler recognises the option
7291 # (this only works for the host compiler at the moment)
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7294 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7295 save_cflags="$CFLAGS"
7296 CFLAGS="$CFLAGS -Wno-pointer-sign"
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7301 main ()
7305 return 0;
7307 _ACEOF
7308 if ac_fn_c_try_compile "$LINENO"; then :
7309 use_no_sign_warning="yes"
7310 else
7311 use_no_sign_warning="no"
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7315 $as_echo "$use_no_sign_warning" >&6; }
7316 if test "x-$use_no_sign_warning" = "x-yes" ; then
7317 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7319 CFLAGS="$save_cflags"
7321 #-----------------------------------------------------------------------------
7323 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7326 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7327 save_cflags="$CFLAGS"
7328 CFLAGS="$CFLAGS -fgnu89-inline"
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7333 main ()
7337 return 0;
7339 _ACEOF
7340 if ac_fn_c_try_compile "$LINENO"; then :
7341 use_gnu89_inline="yes"
7342 else
7343 use_gnu89_inline="no"
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7347 $as_echo "$use_gnu89_inline" >&6; }
7348 if test "x-$use_gnu89_inline" = "x-yes" ; then
7349 gnu89_inline="-fgnu89-inline"
7351 CFLAGS="$save_cflags"
7353 #-----------------------------------------------------------------------------
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7356 $as_echo_n "checking for type of build... " >&6; }
7357 # Check whether --enable-build_type was given.
7358 if test "${enable_build_type+set}" = set; then :
7359 enableval=$enable_build_type; build_type=$enableval
7360 else
7361 build_type="personal"
7365 if test "$build_type" = "nightly"; then
7366 build_type_string="NIGHTLY"
7367 elif test "$build_type" = "snapshot"; then
7368 build_type_string="SNAPSHOT"
7369 elif test "$build_type" = "milestone"; then
7370 build_type_string="MILESTONE"
7371 elif test "$build_type" = "release"; then
7372 build_type_string="RELEASE"
7373 else
7374 build_type_string="PERSONAL"
7375 build_type="personal"
7378 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7381 $as_echo "$build_type" >&6; }
7383 #-----------------------------------------------------------------------------
7384 all_debug_types="messages stack modules mungwall symbols"
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7387 $as_echo_n "checking which debug types to enable... " >&6; }
7388 # Check whether --enable-debug was given.
7389 if test "${enable_debug+set}" = set; then :
7390 enableval=$enable_debug; debug="$enableval"
7391 else
7392 debug=""
7396 if test "$debug" = "" -o "$debug" = "no"; then
7397 debug="none"
7398 elif test "$debug" = "yes"; then
7399 debug="all"
7402 if test "$debug" = "all" ; then
7403 debug="messages stack modules symbols"
7404 for d in $all_debug_types; do
7405 export aros_${d}_debug="1"
7406 done
7407 else
7408 for d in $all_debug_types; do
7409 export aros_${d}_debug="0"
7410 done
7413 if test "$debug" != "none"; then
7414 debug=`echo $debug | sed s/,/\ /g`
7415 for d in $debug; do
7416 found="0"
7417 for d2 in $all_debug_types; do
7418 if test "$d2" = "$d"; then
7419 found="1"
7420 break
7422 done
7423 if test "$found" = "0"; then
7424 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7426 export aros_${d}_debug="1"
7427 done
7428 aros_debug="yes"
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7431 $as_echo "$debug" >&6; }
7433 if test "$aros_messages_debug" = "1"; then
7434 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7435 else
7436 aros_messages_debug=""
7438 if test "$aros_symbols_debug" = "1"; then
7439 aros_symbols_debug="-g"
7440 else
7441 aros_symbols_debug=""
7444 # These are the flags to pass when compiling debugged programs
7445 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7446 aros_debug_aflags=""
7447 aros_debug_ldflags="$aros_symbols_debug"
7449 #-----------------------------------------------------------------------------
7450 # Checking for distcc and ccache.
7452 # Always apply the transforms in this particular order. Basically you should
7453 # always run 'ccache distcc compiler' in that order for the best performance.
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7456 $as_echo_n "checking whether to enable distcc... " >&6; }
7457 # Check whether --enable-distcc was given.
7458 if test "${enable_distcc+set}" = set; then :
7459 enableval=$enable_distcc; distcc="$enableval"
7460 else
7461 distcc="no"
7464 if test "$distcc" != "" -a "$distcc" != "no"; then
7465 # AC_CHECK_PROG will print out the result in this case
7466 # Extract the first word of "distcc", so it can be a program name with args.
7467 set dummy distcc; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_path_DISTCC+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 case $DISTCC in
7474 [\\/]* | ?:[\\/]*)
7475 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7489 done
7490 done
7491 IFS=$as_save_IFS
7493 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7495 esac
7497 DISTCC=$ac_cv_path_DISTCC
7498 if test -n "$DISTCC"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7500 $as_echo "$DISTCC" >&6; }
7501 else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7513 $as_echo_n "checking whether to enable ccache... " >&6; }
7514 # Check whether --enable-ccache was given.
7515 if test "${enable_ccache+set}" = set; then :
7516 enableval=$enable_ccache; ccache="$enableval"
7517 else
7518 ccache="no"
7521 if test "$ccache" != "" -a "$ccache" != "no"; then
7522 # AC_CHECK_PROG will print out the result in this case
7523 # Extract the first word of "ccache", so it can be a program name with args.
7524 set dummy ccache; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_CCACHE+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 if test -n "$CCACHE"; then
7531 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7532 else
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540 ac_cv_prog_CCACHE="ccache"
7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 break 2
7544 done
7545 done
7546 IFS=$as_save_IFS
7550 CCACHE=$ac_cv_prog_CCACHE
7551 if test -n "$CCACHE"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7553 $as_echo "$CCACHE" >&6; }
7554 else
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7560 else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7565 #-----------------------------------------------------------------------------
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7567 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7569 # Check whether --with-kernel-gcc-version was given.
7570 if test "${with_kernel_gcc_version+set}" = set; then :
7571 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7572 else
7573 kernel_tool_version=""
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7577 $as_echo "$kernel_tool_version" >&6; }
7579 #-----------------------------------------------------------------------------
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7581 $as_echo_n "checking what optimization flags to use... " >&6; }
7583 # Check whether --with-optimization was given.
7584 if test "${with_optimization+set}" = set; then :
7585 withval=$with_optimization; optimization="$withval"
7586 else
7587 optimization="unknown"
7590 if test "$optimization" = "unknown"; then
7591 if test "$debug" != "none"; then
7592 optimization="-O0"
7593 else
7594 optimization="-O2"
7597 aros_config_cflags="$aros_config_cflags $optimization"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7599 $as_echo "$optimization" >&6; }
7601 #-----------------------------------------------------------------------------
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7603 $as_echo_n "checking what paranoia flags to use... " >&6; }
7605 # Check whether --with-paranoia was given.
7606 if test "${with_paranoia+set}" = set; then :
7607 withval=$with_paranoia; paranoia_flags="$withval"
7608 else
7609 paranoia_flags="default"
7612 if test "$paranoia_flags" = "default"; then
7613 paranoia_flags=""
7614 else if test "$paranoia_flags" = "yes"; then
7615 paranoia_flags="-Wall -Werror"
7616 fi fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7618 $as_echo "$paranoia_flags" >&6; }
7619 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7621 #-----------------------------------------------------------------------------
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7623 $as_echo_n "checking what target variant to enable... " >&6; }
7624 # Check whether --enable-target_variant was given.
7625 if test "${enable_target_variant+set}" = set; then :
7626 enableval=$enable_target_variant; target_variant=$enableval
7627 else
7628 target_variant=""
7631 if test "$target_variant" = ""; then
7632 aros_target_variant=""
7633 aros_target_suffix=""
7634 enableval="none"
7635 else
7636 aros_target_variant="$target_variant"
7637 aros_target_suffix="-$target_variant"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7640 $as_echo "$enableval" >&6; }
7642 #-----------------------------------------------------------------------------
7643 # Target-specific defaults. You can override then on a per-target basis.
7645 # Bootloader name. Currently used by PC target.
7646 target_bootloader="none"
7648 #-----------------------------------------------------------------------------
7649 # Additional options for some specific targets
7651 case "$aros_target_variant" in
7652 ios)
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7654 $as_echo_n "checking XCode path... " >&6; }
7656 # Check whether --with-xcode was given.
7657 if test "${with_xcode+set}" = set; then :
7658 withval=$with_xcode; aros_xcode_path="$withval"
7659 else
7660 aros_xcode_path="/Developer"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7664 $as_echo "$aros_xcode_path" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7667 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7669 # Check whether --with-sdk-version was given.
7670 if test "${with_sdk_version+set}" = set; then :
7671 withval=$with_sdk_version; aros_sdk_version="$withval"
7672 else
7673 aros_sdk_version="4.1"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7677 $as_echo "$aros_sdk_version" >&6; }
7681 "android")
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7683 $as_echo_n "checking Android SDK path... " >&6; }
7685 # Check whether --with-sdk was given.
7686 if test "${with_sdk+set}" = set; then :
7687 withval=$with_sdk; aros_android_sdk="$withval"
7688 else
7689 aros_android_sdk=$default_android_sdk
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7693 $as_echo "$aros_android_sdk" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7696 $as_echo_n "checking Android NDK path... " >&6; }
7698 # Check whether --with-ndk was given.
7699 if test "${with_ndk+set}" = set; then :
7700 withval=$with_ndk; aros_android_ndk="$withval"
7701 else
7702 aros_android_ndk="none"
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7706 $as_echo "$aros_android_ndk" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7709 $as_echo_n "checking what Android SDK version to use... " >&6; }
7711 # Check whether --with-sdk-version was given.
7712 if test "${with_sdk_version+set}" = set; then :
7713 withval=$with_sdk_version; aros_sdk_version="$withval"
7714 else
7715 aros_sdk_version="12"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7719 $as_echo "$aros_sdk_version" >&6; }
7721 if test "$aros_android_ndk" != "none"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7723 $as_echo_n "checking what Android NDK version to use... " >&6; }
7725 # Check whether --with-ndk-version was given.
7726 if test "${with_ndk_version+set}" = set; then :
7727 withval=$with_ndk_version; aros_ndk_version="$withval"
7728 else
7729 aros_ndk_version="9"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7733 $as_echo "$aros_ndk_version" >&6; }
7736 export PATH="$aros_android_sdk/tools:$PATH"
7737 # Extract the first word of "$android_tool", so it can be a program name with args.
7738 set dummy $android_tool; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_path_android_tool+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 case $android_tool in
7745 [\\/]* | ?:[\\/]*)
7746 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 break 2
7760 done
7761 done
7762 IFS=$as_save_IFS
7765 esac
7767 android_tool=$ac_cv_path_android_tool
7768 if test -n "$android_tool"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7770 $as_echo "$android_tool" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7777 if test "$android_tool" = ""; then
7778 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7781 aros_android_level=android-$aros_sdk_version
7782 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7783 echo "Platform $aros_android_level is not installed in your SDK"
7784 echo "Use --with-sdk-version=<API level number> to select another platform version"
7785 echo "You can check what plaform versions are installed in your SDK"
7786 echo "by examining contents of $aros_android_sdk/platforms directory"
7787 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7790 # Extract the first word of "ant", so it can be a program name with args.
7791 set dummy ant; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_path_ant+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 case $ant in
7798 [\\/]* | ?:[\\/]*)
7799 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7813 done
7814 done
7815 IFS=$as_save_IFS
7818 esac
7820 ant=$ac_cv_path_ant
7821 if test -n "$ant"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7823 $as_echo "$ant" >&6; }
7824 else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7830 if test "$ant" = ""; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7832 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7836 $as_echo_n "checking Build debug or release apk... " >&6; }
7838 # Check whether --with-apk-version was given.
7839 if test "${with_apk_version+set}" = set; then :
7840 withval=$with_apk_version; aros_android_antapk=$withval
7841 else
7842 aros_android_antapk=release
7845 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7846 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7849 $as_echo "$aros_android_antapk" >&6; }
7851 if test "$host_os" = "mingw32"; then
7852 android_tool="cmd //c $android_tool"
7856 esac
7858 #-----------------------------------------------------------------------------
7859 # External toolchains
7860 kernel_tool_prefix="none"
7861 aros_tool_prefix="none"
7862 elf_tool_prefix="${target_cpu}-elf-"
7864 # This is the target configuration switch.
7865 case "$target_os" in
7866 linux*)
7867 aros_target_arch="linux"
7868 aros_target_family="unix"
7869 case "$target_cpu" in
7870 *m68k*)
7871 aros_target_cpu="m68k"
7872 aros_object_format="m68kelf"
7873 aros_flavour="emulcompat"
7874 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7875 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7876 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7877 gcc_target_cpu="mc68000"
7879 *i?86*)
7880 aros_target_cpu="i386"
7881 aros_object_format="elf_i386"
7882 aros_flavour="emulation"
7883 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7884 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7885 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7886 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7887 aros_config_ldflags="-m32 -march=i486"
7888 aros_kernel_ldflags="-Wl,-melf_i386"
7889 aros_default_wbdepth=8
7890 gcc_target_cpu="i386"
7891 pci_hidd_target="hidd-pci-linux"
7892 android_tool_dir_prefix="x86"
7893 android_tool_prefix="i686-android-linux"
7894 android_ndk_arch="x86"
7896 *x86_64*)
7897 aros_target_cpu="x86_64"
7898 aros_object_format="elf_x86_64"
7899 aros_flavour="emulation"
7900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7901 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7902 aros_default_wbdepth=8
7903 pci_hidd_target="hidd-pci-linux"
7905 *powerpc*)
7906 aros_target_cpu="ppc"
7907 aros_object_format="elf32ppc"
7908 aros_flavour="emulation"
7909 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7910 aros_default_wbdepth=8
7911 gcc_target_cpu="ppc"
7913 # TODO
7914 # Same as powerpc, but I need this for the nightly build to work again.
7915 # Actually, the nightly should be made working with powerpc target.
7916 # That just was too much work for the moment, another week or two.
7917 *ppc*)
7918 aros_target_cpu="ppc"
7919 aros_object_format="elf32ppc"
7920 aros_flavour="emulation"
7921 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7922 aros_default_wbdepth=8
7923 gcc_target_cpu="ppc"
7925 *armhf*)
7926 aros_target_cpu="arm"
7927 target_cpu="arm"
7928 aros_object_format="armelf_aros"
7929 aros_flavour="emulation"
7930 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7931 gcc_target_cpu="arm"
7932 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7933 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7934 aros_arch_libs="-laeabi"
7935 gcc_default_float_abi="hard"
7936 android_tool_dir_prefix="arm-linux-androideabi"
7937 android_tool_prefix="arm-linux-androideabi"
7938 android_ndk_arch="arm"
7939 kernel_tool_prefix="arm-linux-gnueabihf-"
7941 *arm*)
7942 aros_target_cpu="arm"
7943 aros_object_format="armelf_aros"
7944 aros_flavour="emulation"
7945 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7946 gcc_target_cpu="arm"
7947 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7948 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7949 aros_arch_libs="-laeabi"
7950 android_tool_dir_prefix="arm-linux-androideabi"
7951 android_tool_prefix="arm-linux-androideabi"
7952 android_ndk_arch="arm"
7953 kernel_tool_prefix="arm-linux-gnueabi-"
7956 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7958 esac
7959 case "$aros_target_variant" in
7960 android)
7962 if test "$android_ndk_arch" = ""; then
7963 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7966 aros_default_wbwidth=320
7967 aros_default_wbheight=480
7968 if test "$aros_android_ndk" = "none"; then
7969 aros_kernel_cflags="-mandroid"
7970 aros_kernel_ldflags="-mandroid"
7971 CFLAGS="-mandroid"
7972 else
7973 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7974 kernel_tool_version=""
7975 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7976 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7977 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7978 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7979 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7981 need_x11=no
7982 unixgfx_hidd_target=kernel-hidd-androidgfx
7983 # Disable implicit PIC mode
7984 aros_target_cflags="$aros_target_cflags -fno-pic"
7985 kernel_tool_prefix="$android_tool_prefix-"
7987 esac
7991 aros_target_arch="pc"
7992 aros_shared_default="no"
7993 target_bootloader="grub2"
7994 case "$target_cpu" in
7995 *i?86*)
7996 aros_target_cpu="i386"
7999 if test "$aros_object_format" = "" ; then
8000 aros_object_format="elf_i386"
8002 aros_flavour="standalone"
8003 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8004 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8005 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8006 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8007 aros_config_ldflags="-m32 -march=i486"
8008 aros_kernel_ldflags="-Wl,-melf_i386"
8009 aros_default_wbwidth=640
8010 aros_default_wbheight=480
8011 gcc_target_cpu="i386"
8013 *x86_64*)
8014 aros_target_cpu="x86_64"
8015 aros_serial_debug=1
8016 if test "$aros_object_format" = "" ; then
8017 aros_object_format="elf_x86_64"
8019 aros_flavour="standalone"
8020 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8021 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8022 aros_kernel_ldflags=""
8023 aros_default_wbwidth=640
8024 aros_default_wbheight=480
8027 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8029 esac
8032 prep)
8033 aros_target_arch="prep"
8034 aros_shared_default="no"
8035 aros_target_cpu="ppc"
8036 aros_object_format="elf32ppc"
8037 aros_flavour="ppcnative"
8038 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8039 aros_kernel_ldflags=""
8040 aros_default_wbwidth=640
8041 aros_default_wbheight=480
8042 gcc_target_cpu="ppc"
8045 freebsd*)
8046 aros_target_arch="freebsd"
8047 aros_target_family="unix"
8048 aros_target_cpu="i386"
8049 aros_flavour="emulation"
8050 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8051 gcc_target_cpu="i386"
8053 aros_target_strip_flags="-x"
8056 darwin*)
8057 aros_target_arch="darwin"
8058 aros_target_family="unix"
8059 aros_flavour="emulation"
8060 case "$target_cpu" in
8061 *i?86*)
8062 aros_ios_platform="iPhoneSimulator"
8063 aros_target_cpu="i386"
8064 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8065 aros_kernel_ldflags=""
8066 aros_macosx_version="10.4"
8067 aros_default_wbdepth=8
8068 gcc_target_cpu="i386"
8069 aros_object_format="elf_i386"
8070 aros_kernel_ar_flags="-cr"
8071 aros_target_strip_flags="-x"
8072 kernel_tool_flags="-m32"
8074 *x86_64*)
8075 aros_target_cpu="x86_64"
8076 aros_object_format="elf_x86_64"
8077 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8078 aros_macosx_version="10.6"
8079 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8080 aros_kernel_cflags="-m64"
8081 aros_kernel_ldflags="-m64"
8082 aros_target_cflags="-mcmodel=large"
8083 aros_default_wbdepth=8
8084 aros_kernel_ar="ar"
8085 aros_kernel_ar_flags="-cr"
8086 aros_kernel_ld="ld"
8087 aros_kernel_as="as"
8088 aros_kernel_ranlib="ranlib"
8089 aros_kernel_nm="nm"
8090 aros_kernel_strip="strip"
8091 kernel_tool_prefix="i686-apple-darwin10-"
8093 *ppc*)
8094 aros_target_cpu="ppc"
8095 aros_object_format="elf32ppc"
8096 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8097 aros_kernel_ldflags=""
8098 aros_macosx_version="10.0"
8099 aros_default_wbdepth=8
8100 gcc_target_cpu="ppc"
8101 aros_kernel_ar="ar"
8102 aros_kernel_ar_flags="-cr"
8103 aros_kernel_ld="ld -arch ppc"
8104 aros_kernel_as="as -arch ppc"
8105 aros_kernel_ranlib="ranlib -arch ppc"
8106 aros_kernel_nm="nm -arch ppc"
8107 aros_kernel_strip="strip -arch ppc"
8108 kernel_tool_prefix="powerpc-apple-darwin10-"
8110 *arm*)
8111 aros_ios_platform="iPhoneOS"
8112 aros_target_cpu="arm"
8113 aros_object_format="armelf_aros"
8114 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8115 aros_arch_libs="-laeabi"
8116 aros_default_wbdepth=8
8117 gcc_target_cpu="arm"
8118 aros_kernel_ar="ar"
8119 aros_kernel_ar_flags="-cr"
8120 aros_kernel_ld="ld -arch arm"
8121 aros_kernel_ranlib="ranlib -arch arm"
8122 kernel_tool_prefix="arm-apple-darwin10-"
8123 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8126 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8128 esac
8129 case "$aros_target_variant" in
8130 ios)
8131 aros_ios_version="3.0"
8132 aros_default_wbwidth=320
8133 aros_default_wbheight=480
8134 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8135 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8136 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8137 need_x11=no
8138 # This is here because it may depend on iOS or SDK version
8139 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8140 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8141 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8144 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8145 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8147 esac
8150 dragonfly*)
8151 aros_target_arch="dragonfly"
8152 aros_target_family="unix"
8153 aros_flavour="emulation"
8154 case "$target_cpu" in
8155 *i?86*)
8156 aros_target_cpu="i386"
8157 aros_object_format="elf_i386"
8158 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8160 *x86_64*)
8161 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8162 aros_target_cpu="x86_64"
8163 aros_object_format="elf_x86_64"
8164 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8167 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8169 esac
8172 netbsd*)
8173 aros_target_arch="netbsd"
8174 aros_target_family="unix"
8175 case "$target_cpu" in
8176 *m68k*)
8177 aros_target_cpu="m68k"
8178 aros_object_format="m68kelf"
8179 aros_flavour="emulcompat"
8180 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8181 gcc_target_cpu="mc68000"
8183 *i?86*)
8184 aros_target_cpu="i386"
8185 aros_object_format="elf_i386"
8186 aros_flavour="emulation"
8187 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8188 aros_default_wbdepth=8
8189 gcc_target_cpu="i386"
8192 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8194 esac
8195 aros_target_genmap="-Wl,-M -Xlinker >"
8196 aros_flavour="emulation"
8197 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8200 openbsd*)
8201 aros_target_arch="openbsd"
8202 aros_target_family="unix"
8203 case "$target_cpu" in
8204 *i?86*)
8205 aros_target_cpu="i386"
8206 aros_object_format="elf_i386"
8207 aros_flavour="emulation"
8208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8209 gcc_target_cpu="i386"
8212 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8214 esac
8215 aros_target_genmap="-Wl,-M -Xlinker >"
8216 aros_target_nm_flags="-u"
8217 aros_flavour="emulation"
8220 solaris*)
8221 aros_target_arch="solaris"
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__Solaris__"
8229 aros_default_wbdepth=8
8230 gcc_target_cpu="i386"
8232 *sparc*)
8233 aros_target_cpu="sparc"
8234 aros_object_format="elf_sparc"
8235 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8236 gcc_target_cpu="sparc"
8239 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8241 esac
8242 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8243 aros_flavour="emulation"
8246 morphos*)
8247 aros_target_arch="morphos"
8248 aros_shared_default="no"
8249 aros_target_cpu="ppc"
8250 aros_object_format="elf_ppc"
8251 aros_flavour="nativecompat"
8252 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8253 gcc_target_cpu="ppc"
8256 sam440)
8257 aros_target_arch="sam440"
8258 aros_shared_default="no"
8259 aros_target_cpu="ppc"
8260 aros_object_format="elf32ppc"
8261 aros_flavour="ppcnative"
8262 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8263 aros_kernel_ldflags=""
8264 aros_default_wbwidth=1024
8265 aros_default_wbheight=768
8266 aros_default_wbdepth=24
8267 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8268 gcc_target_cpu="powerpc"
8271 efika)
8272 aros_target_arch="efika"
8273 aros_shared_default="no"
8274 aros_target_cpu="arm"
8275 aros_object_format="armelf_aros"
8276 aros_flavour="standalone"
8277 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8278 aros_kernel_ldflags=""
8279 aros_default_wbwidth=1024
8280 aros_default_wbheight=600
8281 aros_arch_libs="-laeabi"
8282 gcc_default_cpu="armv7-a"
8283 gcc_default_fpu="vfpv3"
8284 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8285 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8286 case "$target_cpu" in
8287 *armhf*)
8288 gcc_default_float_abi="hard"
8289 target_cpu=arm
8290 aros_target_cpu=arm
8292 *arm*)
8293 gcc_default_float_abi="softfp"
8296 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8298 esac
8301 chrp)
8302 aros_target_arch="chrp"
8303 aros_shared_default="no"
8304 aros_target_cpu="ppc"
8305 aros_object_format="elf32ppc"
8306 aros_flavour="ppcnative"
8307 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8308 aros_kernel_ldflags=""
8309 aros_default_wbwidth=640
8310 aros_default_wbheight=480
8311 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8312 gcc_target_cpu="powerpc"
8313 case "$aros_target_variant" in
8314 efika)
8315 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8317 esac
8320 r*pi)
8321 aros_flavour="standalone"
8322 aros_target_arch="raspi"
8323 aros_target_cpu="arm"
8324 aros_object_format="armelf_aros"
8325 aros_shared_default="no"
8326 aros_arch_libs="-laeabi"
8328 gcc_default_cpu="armv6"
8329 gcc_default_cpu_tune="arm1176jzf-s"
8330 case "$target_cpu" in
8331 *armhf*)
8332 gcc_default_float_abi="hard"
8334 *arm*)
8335 gcc_default_float_abi="softfp"
8338 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8340 esac
8342 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8343 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8344 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8345 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8346 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8349 amiga*)
8350 aros_target_arch="amiga"
8351 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8352 aros_shared_default="no"
8354 case "$target_cpu" in
8355 *m68k*)
8356 # Check whether --enable-amigaos_compliance was given.
8357 if test "${enable_amigaos_compliance+set}" = set; then :
8358 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8361 aros_enable_mmu=no
8362 aros_target_cpu="m68k"
8363 aros_object_format="m68kelf"
8364 aros_flavour="standcompat"
8365 gcc_target_cpu="m68000"
8366 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8367 aros_config_aflags="$aros_config_aflags"
8368 aros_target_strip_flags="-R.comment --strip-debug"
8369 aros_default_wbwidth=640
8370 aros_default_wbheight=256
8371 aros_default_wbdepth=2
8373 *ppc*)
8374 aros_cpu="ppc"
8375 aros_flavour="native"
8376 gcc_target_cpu="ppc"
8379 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8381 esac
8384 mingw*)
8385 aros_target_arch="mingw32"
8386 aros_shared_default="no"
8387 aros_flavour="emulation"
8388 aros_shared_cflags=""
8389 need_crosstools="yes"
8390 need_dlopen="no"
8391 rescomp="windres"
8392 case "$target_cpu" in
8393 *i?86*)
8394 aros_target_cpu="i386"
8395 aros_object_format="elf_i386"
8396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8397 aros_default_wbdepth=8
8398 gcc_target_cpu="i386"
8400 kernel_tool_prefix="i386-mingw32-"
8402 *x86_64*)
8403 aros_target_cpu="x86_64"
8404 aros_object_format="elf_x86_64"
8405 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8406 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8407 aros_default_wbdepth=8
8408 kernel_tool_prefix="x86_64-w64-mingw32-"
8410 *arm*)
8411 aros_target_cpu="arm"
8412 aros_object_format="armelf_aros"
8413 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8414 aros_arch_libs="-laeabi"
8415 aros_default_wbdepth=8
8416 gcc_target_cpu="arm"
8417 gcc_default_float_abi="soft"
8418 kernel_tool_prefix="arm-mingw32ce-"
8419 aros_default_wbwidth=160
8420 aros_default_wbheight=160
8423 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8425 esac
8426 if test $host_os = "cygwin"; then
8427 aros_kernel_cflags="-mno-cygwin"
8430 pp*)
8431 aros_target_arch="pp"
8432 aros_shared_default="no"
8433 case "$target_cpu" in
8434 *m68k*)
8435 aros_target_cpu="m68k"
8436 aros_object_format="m68kelf"
8437 aros_flavour="palmnative"
8438 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8439 aros_default_wbwidth=160
8440 aros_default_wbheight=160
8441 aros_default_wbdepth=1
8442 aros_target_ar_flags="cru"
8443 aros_compiler_libs="-lgcc1"
8444 aros_shared_default=no
8445 aros_shared_cflags="-fpic"
8446 aros_shared_aflags=""
8447 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8448 aros_kernel_ldflags="-Wl,-rpath,./lib"
8449 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8450 aros_debug_aflags=""
8451 aros_debug_ldflags="$aros_symbols_debug"
8452 aros_mungwall_debug="0"
8453 aros_modules_debug="0"
8454 gcc_target_cpu="mc68000"
8455 ignore_undefined_symbols="-ius"
8458 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8460 esac
8463 mac*)
8464 aros_target_arch="mac"
8465 aros_shared_default="no"
8466 case "$target_cpu" in
8467 *m68k*)
8468 aros_target_cpu="m68k"
8469 aros_object_format="m68kelf"
8470 aros_flavour="mac68knative"
8471 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8472 aros_default_wbwidth=512
8473 aros_default_wbheight=384
8474 aros_default_wbdepth=8
8475 aros_target_ar_flags="cru"
8476 aros_compiler_libs="-lgcc1"
8477 aros_shared_default=no
8478 aros_shared_cflags="-fpic"
8479 aros_shared_aflags=""
8480 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8481 aros_kernel_ldflags="-Wl,-rpath,./lib"
8482 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8483 aros_debug_aflags=""
8484 aros_debug_ldflags="$aros_symbols_debug"
8485 aros_mungwall_debug="0"
8486 aros_modules_debug="0"
8487 gcc_target_cpu="mc68000"
8488 ignore_undefined_symbols="-ius"
8491 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8493 esac
8497 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8499 esac
8501 #-----------------------------------------------------------------------------
8502 crosstools_guess=yes
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8505 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8507 # Check whether --with-kernel-toolchain-prefix was given.
8508 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8509 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8513 $as_echo "$kernel_tool_prefix" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8516 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8518 # Check whether --with-elf-toolchain-prefix was given.
8519 if test "${with_elf_toolchain_prefix+set}" = set; then :
8520 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8521 crosstools_guess=no
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8525 $as_echo "$elf_tool_prefix" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8528 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8530 # Check whether --with-aros-toolchain was given.
8531 if test "${with_aros_toolchain+set}" = set; then :
8532 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8533 crosstools_guess=no
8536 if test "$aros_tool_prefix" = "yes" ; then
8537 aros_tool_prefix=$aros_target_cpu-aros-
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8540 $as_echo "$aros_tool_prefix" >&6; }
8542 #-----------------------------------------------------------------------------
8543 # Checking if we should build crosstools..
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8545 $as_echo_n "checking whether to build crosstools... " >&6; }
8546 # Check whether --enable-crosstools was given.
8547 if test "${enable_crosstools+set}" = set; then :
8548 enableval=$enable_crosstools; crosstools="$enableval"
8549 else
8550 crosstools="$crosstools_guess"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8554 $as_echo "$crosstools" >&6; }
8556 if test "${crosstools}" = "yes"; then
8557 if test "${crosstools_guess}" = "no"; then
8558 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8563 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8565 # Check whether --with-aros-toolchain-install was given.
8566 if test "${with_aros_toolchain_install+set}" = set; then :
8567 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8570 if test "x$aros_toolchain_install" = "x"; then
8571 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8572 else
8573 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8574 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8577 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8579 # Helper to identify gcc version
8582 #-----------------------------------------------------------------------------
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8584 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8586 # Check whether --with-use_gcc_version was given.
8587 if test "${with_use_gcc_version+set}" = set; then :
8588 withval=$with_use_gcc_version; use_gcc_version="$withval"
8589 else
8590 use_gcc_version=""
8593 if test "$use_gcc_version" = ""; then
8594 if test "${crosstools}" = "no"; then
8595 if test "x$aros_toolchain_install" != "x"; then
8597 target_gcc_version=""
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8599 $as_echo_n "checking gcc version... " >&6; }
8600 if ${ax_cv_gcc_version+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8604 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8605 if test "x$ax_cv_gcc_version" = "x"; then :
8607 ax_cv_gcc_version=""
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8613 $as_echo "$ax_cv_gcc_version" >&6; }
8614 target_gcc_version=$ax_cv_gcc_version
8619 if test "$use_gcc_version" = ""; then
8620 target_gcc_version="4.6.4"
8622 else
8623 target_gcc_version="$use_gcc_version"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8626 $as_echo "$target_gcc_version" >&6; }
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Objective-C suppport" >&5
8629 $as_echo_n "checking whether to include Objective-C suppport... " >&6; }
8630 # Check whether --enable-objc was given.
8631 if test "${enable_objc+set}" = set; then :
8632 enableval=$enable_objc; objc="$enableval"
8633 else
8634 objc="yes"
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8638 $as_echo "$objc" >&6; }
8639 if test "x$objc" = "xyes"; then
8640 objc_target="objc"
8641 else
8642 objc_target="no-objc"
8645 spec_obj_format="-m $aros_object_format"
8646 # Now process extra architecture-specific options.
8647 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8648 # as well as floating-point ABI.
8649 case "$aros_target_cpu" in
8650 *x86_64*)
8651 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8653 arm)
8654 if test "$gcc_default_cpu" = ""; then
8655 gcc_default_cpu="armv6"
8657 if test "$gcc_default_fpu" = ""; then
8658 gcc_default_fpu="vfp"
8660 if test "$gcc_default_float_abi" = ""; then
8661 gcc_default_float_abi="softfp"
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8665 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8667 # Check whether --with-cpu was given.
8668 if test "${with_cpu+set}" = set; then :
8669 withval=$with_cpu; aros_gcc_cpu="$withval"
8670 else
8671 aros_gcc_cpu=$gcc_default_cpu
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8675 $as_echo "$aros_gcc_cpu" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8678 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8680 # Check whether --with-fpu was given.
8681 if test "${with_fpu+set}" = set; then :
8682 withval=$with_fpu; aros_gcc_fpu="$withval"
8683 else
8684 aros_gcc_fpu=$gcc_default_fpu
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8688 $as_echo "$aros_gcc_fpu" >&6; }
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8691 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8693 # Check whether --with-float was given.
8694 if test "${with_float+set}" = set; then :
8695 withval=$with_float; aros_gcc_float_abi="$withval"
8696 else
8697 aros_gcc_float_abi=$gcc_default_float_abi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8701 $as_echo "$aros_gcc_float_abi" >&6; }
8703 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8704 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8706 esac
8708 # Some architectures may need custom ELF specs.
8709 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8710 elf_specs_in=config/${aros_object_format}-specs.in
8711 else
8712 elf_specs_in=config/elf-specs.in
8715 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8716 # Since we override specs, we may need to put these defines there
8717 if test "$gcc_target_cpu" != ""; then
8718 gcc_target_cpu="-D__${gcc_target_cpu}__"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8722 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8724 # Check whether --with-portssources was given.
8725 if test "${with_portssources+set}" = set; then :
8726 withval=$with_portssources; with_portssrcdir=$withval
8727 else
8728 with_portssrcdir="default"
8731 if test "$with_portssrcdir" = "default"; then
8732 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8733 else
8734 AROS_PORTSSRCDIR="$with_portssrcdir"
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8737 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8740 $as_echo_n "checking which bootloader to use... " >&6; }
8742 # Check whether --with-bootloader was given.
8743 if test "${with_bootloader+set}" = set; then :
8744 withval=$with_bootloader; target_bootloader=$withval
8745 else
8746 target_bootloader=$target_bootloader
8749 if test "$target_bootloader" = "none"; then
8750 aros_target_bootloader=""
8751 else
8752 aros_target_bootloader="$target_bootloader"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8755 $as_echo "$target_bootloader" >&6; }
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8758 $as_echo_n "checking which icon-set to use... " >&6; }
8760 # Check whether --with-iconset was given.
8761 if test "${with_iconset+set}" = set; then :
8762 withval=$with_iconset; target_iconset=$withval
8763 else
8764 target_iconset="default"
8767 if test "$target_iconset" = "default"; then
8768 aros_target_iconset="Gorilla"
8769 target_iconset="default (Gorilla)"
8770 else
8771 aros_target_iconset="$target_iconset"
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8774 $as_echo "$target_iconset" >&6; }
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8777 $as_echo_n "checking which GUI Theme to use... " >&6; }
8779 # Check whether --with-theme was given.
8780 if test "${with_theme+set}" = set; then :
8781 withval=$with_theme; target_guitheme=$withval
8782 else
8783 target_guitheme="default"
8786 if test "$target_guitheme" = "default"; then
8787 aros_target_guitheme="Ice"
8788 else
8789 aros_target_guitheme="$target_guitheme"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8792 $as_echo "$aros_target_guitheme" >&6; }
8794 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8795 # for target code)
8796 cross_compiling=no
8798 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8799 cross_compiling=yes
8802 if test "$aros_host_cpu" == "x86_64" ; then
8803 if test "$aros_target_cpu" == "i386" ; then
8804 cross_compiling=no
8808 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8809 if test "$aros_host_arch" != "$aros_target_arch" ; then
8810 cross_compiling=yes
8812 else
8813 if test "$host_cc_elf" = "no" ; then
8814 cross_compiling=yes
8818 if test "$cross_compiling" = "no" ; then
8819 kernel_tool_prefix=""
8820 if test "$host_cc_elf" = "yes" ; then
8821 elf_tool_prefix=""
8825 if test "$kernel_tool_version" != ""; then
8826 kernel_tool_version="-$kernel_tool_version"
8828 if test "$use_gcc_version" != ""; then
8829 target_tool_version="-$target_gcc_version"
8832 #######################################################################
8833 ## Compute what toolchains to use, and their paths ##
8834 #######################################################################
8836 # This takes, as input:
8837 # crosstools {yes,no}
8838 # kernel_tool_version {"",[version]}
8839 # target_tool_version {"",[version]}
8840 # kernel_tool_prefix {none,[some-arch-os-]}
8841 # target_tool_prefix ${aros_target_cpu}-aros-
8842 # aros_tool_prefix ${aros_target_cpu}-aros-
8844 # The output is
8845 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8846 # Where the 'kernel' binaries are located
8847 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8848 # Where the 'target' binaries are located
8849 # (not the symlink farm - that is aros_target_*!)
8851 # The rules are:
8852 # if crosstools then
8853 # if kernel_tools_prefix = "no-kernel-prefix-"
8854 # aros_kernel_* = crosstools cc paths
8855 # aros_kernel_cc = elf cc wrapper around crosstools cc
8856 # else
8857 # VALIDATE(${kernel_tools_prefix}*)
8858 # aros_kernel_* = ${kernel_tools_prefix}*
8859 # if ${kernel_tools_prefix}cc is an AROS gcc
8860 # aros_kernel_cc = ${kernel_tools_prefix}cc
8861 # else
8862 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8863 # fi
8864 # fi
8866 # orig_target_* = aros built crosstools
8867 # orig_target_cc = elf cc wrapper around crosstools cc
8868 # else
8869 # VALIDATE(${kernel_tools_prefix}*)
8871 # orig_target_* = aros_kernel_*
8872 # if aros_kernel_cc is an AROS gcc
8873 # orig_target_cc = aros_kernel_cc
8874 # else
8875 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8876 # fi
8877 # fi
8879 target_tool_prefix="${aros_target_cpu}-aros-"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8882 $as_echo_n "checking which kernel tools... " >&6; }
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8884 $as_echo "$kernel_tool_prefix" >&6; };
8886 if test "$kernel_tool_prefix" = "none" ; then
8887 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8888 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8890 else
8891 # Kernel tools required - find them
8892 # Note that 'normally', aros_kernel_* overrides will be
8893 # empty, unless specified in the per-arch sections above.
8894 if test "x$aros_kernel_cpp" = "x"; then
8895 aros_kernel_cpp=${kernel_tool_prefix}cpp
8898 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8899 if test "$cross_compiling" = "yes" ; then
8900 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8901 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 case $aros_kernel_cpp in
8908 [\\/]* | ?:[\\/]*)
8909 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 for as_dir in $PATH
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8919 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8923 done
8924 done
8925 IFS=$as_save_IFS
8928 esac
8930 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8931 if test -n "$aros_kernel_cpp"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8933 $as_echo "$aros_kernel_cpp" >&6; }
8934 else
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8940 else
8941 if test "$GCC" = "yes"; then
8942 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8943 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8944 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 case $aros_kernel_cpp in
8951 [\\/]* | ?:[\\/]*)
8952 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 for as_dir in `dirname $aros_gcc_cpp`
8958 IFS=$as_save_IFS
8959 test -z "$as_dir" && as_dir=.
8960 for ac_exec_ext in '' $ac_executable_extensions; do
8961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8962 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 break 2
8966 done
8967 done
8968 IFS=$as_save_IFS
8971 esac
8973 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8974 if test -n "$aros_kernel_cpp"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8976 $as_echo "$aros_kernel_cpp" >&6; }
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8984 if test "$aros_kernel_cpp" = ""; then
8985 # Extract the first word of "cpp", so it can be a program name with args.
8986 set dummy cpp; ac_word=$2
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8988 $as_echo_n "checking for $ac_word... " >&6; }
8989 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 case $aros_kernel_cpp in
8993 [\\/]* | ?:[\\/]*)
8994 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9008 done
9009 done
9010 IFS=$as_save_IFS
9013 esac
9015 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9016 if test -n "$aros_kernel_cpp"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9018 $as_echo "$aros_kernel_cpp" >&6; }
9019 else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9027 else
9028 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9029 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 case $aros_kernel_cpp in
9036 [\\/]* | ?:[\\/]*)
9037 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 for as_dir in $PATH
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 break 2
9051 done
9052 done
9053 IFS=$as_save_IFS
9056 esac
9058 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9059 if test -n "$aros_kernel_cpp"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9061 $as_echo "$aros_kernel_cpp" >&6; }
9062 else
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9070 if test "$aros_kernel_cpp" = ""; then
9071 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9073 if test "x$aros_kernel_cc" = "x"; then
9074 aros_kernel_cc=${kernel_tool_prefix}gcc
9077 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9078 if test "$cross_compiling" = "yes" ; then
9079 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9080 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 case $aros_kernel_cc in
9087 [\\/]* | ?:[\\/]*)
9088 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
9096 for ac_exec_ext in '' $ac_executable_extensions; do
9097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9098 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 break 2
9102 done
9103 done
9104 IFS=$as_save_IFS
9107 esac
9109 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9110 if test -n "$aros_kernel_cc"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9112 $as_echo "$aros_kernel_cc" >&6; }
9113 else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9119 else
9120 if test "$GCC" = "yes"; then
9121 aros_gcc_cc=`$CC -print-prog-name=cc`
9122 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9123 set dummy `basename $aros_gcc_cc`; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 case $aros_kernel_cc in
9130 [\\/]* | ?:[\\/]*)
9131 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 for as_dir in `dirname $aros_gcc_cc`
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
9140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9141 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 break 2
9145 done
9146 done
9147 IFS=$as_save_IFS
9150 esac
9152 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9153 if test -n "$aros_kernel_cc"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9155 $as_echo "$aros_kernel_cc" >&6; }
9156 else
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9163 if test "$aros_kernel_cc" = ""; then
9164 # Extract the first word of "cc", so it can be a program name with args.
9165 set dummy cc; ac_word=$2
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167 $as_echo_n "checking for $ac_word... " >&6; }
9168 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 case $aros_kernel_cc in
9172 [\\/]* | ?:[\\/]*)
9173 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in $PATH
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
9181 for ac_exec_ext in '' $ac_executable_extensions; do
9182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9183 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 break 2
9187 done
9188 done
9189 IFS=$as_save_IFS
9192 esac
9194 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9195 if test -n "$aros_kernel_cc"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9197 $as_echo "$aros_kernel_cc" >&6; }
9198 else
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9206 else
9207 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9208 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 case $aros_kernel_cc in
9215 [\\/]* | ?:[\\/]*)
9216 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220 for as_dir in $PATH
9222 IFS=$as_save_IFS
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 break 2
9230 done
9231 done
9232 IFS=$as_save_IFS
9235 esac
9237 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9238 if test -n "$aros_kernel_cc"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9240 $as_echo "$aros_kernel_cc" >&6; }
9241 else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9249 if test "$aros_kernel_cc" = ""; then
9250 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9252 if test "x$aros_kernel_cxx" = "x"; then
9253 aros_kernel_cxx=${kernel_tool_prefix}g++
9256 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9257 if test "$cross_compiling" = "yes" ; then
9258 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9259 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261 $as_echo_n "checking for $ac_word... " >&6; }
9262 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 case $aros_kernel_cxx in
9266 [\\/]* | ?:[\\/]*)
9267 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9281 done
9282 done
9283 IFS=$as_save_IFS
9286 esac
9288 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9289 if test -n "$aros_kernel_cxx"; then
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9291 $as_echo "$aros_kernel_cxx" >&6; }
9292 else
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294 $as_echo "no" >&6; }
9298 else
9299 if test "$GCC" = "yes"; then
9300 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9301 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9302 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 case $aros_kernel_cxx in
9309 [\\/]* | ?:[\\/]*)
9310 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in `dirname $aros_gcc_cxx`
9316 IFS=$as_save_IFS
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9320 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 break 2
9324 done
9325 done
9326 IFS=$as_save_IFS
9329 esac
9331 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9332 if test -n "$aros_kernel_cxx"; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9334 $as_echo "$aros_kernel_cxx" >&6; }
9335 else
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 $as_echo "no" >&6; }
9342 if test "$aros_kernel_cxx" = ""; then
9343 # Extract the first word of "cxx", so it can be a program name with args.
9344 set dummy cxx; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 case $aros_kernel_cxx in
9351 [\\/]* | ?:[\\/]*)
9352 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in $PATH
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9364 break 2
9366 done
9367 done
9368 IFS=$as_save_IFS
9371 esac
9373 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9374 if test -n "$aros_kernel_cxx"; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9376 $as_echo "$aros_kernel_cxx" >&6; }
9377 else
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 $as_echo "no" >&6; }
9385 else
9386 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9387 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 case $aros_kernel_cxx in
9394 [\\/]* | ?:[\\/]*)
9395 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399 for as_dir in $PATH
9401 IFS=$as_save_IFS
9402 test -z "$as_dir" && as_dir=.
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9405 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9407 break 2
9409 done
9410 done
9411 IFS=$as_save_IFS
9414 esac
9416 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9417 if test -n "$aros_kernel_cxx"; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9419 $as_echo "$aros_kernel_cxx" >&6; }
9420 else
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422 $as_echo "no" >&6; }
9428 # If it's set, make sure it's really there
9429 if test "x$aros_kernel_cxx" != "x" ; then
9430 if test "$aros_kernel_cxx" = ""; then
9431 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9435 if test "$aros_kernel_ld" = ""; then
9436 if test "$cross_compiling" = "yes" ; then
9437 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9438 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 $as_echo_n "checking for $ac_word... " >&6; }
9441 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 case $aros_kernel_ld in
9445 [\\/]* | ?:[\\/]*)
9446 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9456 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 break 2
9460 done
9461 done
9462 IFS=$as_save_IFS
9465 esac
9467 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9468 if test -n "$aros_kernel_ld"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9470 $as_echo "$aros_kernel_ld" >&6; }
9471 else
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473 $as_echo "no" >&6; }
9477 else
9478 if test "$GCC" = "yes"; then
9479 aros_gcc_ld=`$CC -print-prog-name=ld`
9480 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9481 set dummy `basename $aros_gcc_ld`; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 case $aros_kernel_ld in
9488 [\\/]* | ?:[\\/]*)
9489 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 for as_dir in `dirname $aros_gcc_ld`
9495 IFS=$as_save_IFS
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9499 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 break 2
9503 done
9504 done
9505 IFS=$as_save_IFS
9508 esac
9510 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9511 if test -n "$aros_kernel_ld"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9513 $as_echo "$aros_kernel_ld" >&6; }
9514 else
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9521 if test "$aros_kernel_ld" = ""; then
9522 # Extract the first word of "ld", so it can be a program name with args.
9523 set dummy ld; ac_word=$2
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 case $aros_kernel_ld in
9530 [\\/]* | ?:[\\/]*)
9531 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535 for as_dir in $PATH
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9541 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 break 2
9545 done
9546 done
9547 IFS=$as_save_IFS
9550 esac
9552 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9553 if test -n "$aros_kernel_ld"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9555 $as_echo "$aros_kernel_ld" >&6; }
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9564 else
9565 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9566 set dummy $aros_kernel_ld; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 case $aros_kernel_ld in
9573 [\\/]* | ?:[\\/]*)
9574 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9588 done
9589 done
9590 IFS=$as_save_IFS
9593 esac
9595 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9596 if test -n "$aros_kernel_ld"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9598 $as_echo "$aros_kernel_ld" >&6; }
9599 else
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9607 if test "$aros_kernel_ld" = ""; then
9608 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9611 if test "$aros_kernel_as" = ""; then
9612 if test "$cross_compiling" = "yes" ; then
9613 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9614 set dummy ${kernel_tool_prefix}as; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if ${ac_cv_path_aros_kernel_as+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 case $aros_kernel_as in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9636 done
9637 done
9638 IFS=$as_save_IFS
9641 esac
9643 aros_kernel_as=$ac_cv_path_aros_kernel_as
9644 if test -n "$aros_kernel_as"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9646 $as_echo "$aros_kernel_as" >&6; }
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9653 else
9654 if test "$GCC" = "yes"; then
9655 aros_gcc_as=`$CC -print-prog-name=as`
9656 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9657 set dummy `basename $aros_gcc_as`; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if ${ac_cv_path_aros_kernel_as+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 case $aros_kernel_as in
9664 [\\/]* | ?:[\\/]*)
9665 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in `dirname $aros_gcc_as`
9671 IFS=$as_save_IFS
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9675 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 break 2
9679 done
9680 done
9681 IFS=$as_save_IFS
9684 esac
9686 aros_kernel_as=$ac_cv_path_aros_kernel_as
9687 if test -n "$aros_kernel_as"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9689 $as_echo "$aros_kernel_as" >&6; }
9690 else
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9697 if test "$aros_kernel_as" = ""; then
9698 # Extract the first word of "as", so it can be a program name with args.
9699 set dummy as; ac_word=$2
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if ${ac_cv_path_aros_kernel_as+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 case $aros_kernel_as in
9706 [\\/]* | ?:[\\/]*)
9707 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in $PATH
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9717 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9721 done
9722 done
9723 IFS=$as_save_IFS
9726 esac
9728 aros_kernel_as=$ac_cv_path_aros_kernel_as
9729 if test -n "$aros_kernel_as"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9731 $as_echo "$aros_kernel_as" >&6; }
9732 else
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9740 else
9741 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9742 set dummy $aros_kernel_as; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if ${ac_cv_path_aros_kernel_as+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 case $aros_kernel_as in
9749 [\\/]* | ?:[\\/]*)
9750 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9760 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 break 2
9764 done
9765 done
9766 IFS=$as_save_IFS
9769 esac
9771 aros_kernel_as=$ac_cv_path_aros_kernel_as
9772 if test -n "$aros_kernel_as"; then
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9774 $as_echo "$aros_kernel_as" >&6; }
9775 else
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9777 $as_echo "no" >&6; }
9783 if test "$aros_kernel_as" = ""; then
9784 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9787 if test "$aros_kernel_ar" = ""; then
9788 if test "$cross_compiling" = "yes" ; then
9789 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9790 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792 $as_echo_n "checking for $ac_word... " >&6; }
9793 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 case $aros_kernel_ar in
9797 [\\/]* | ?:[\\/]*)
9798 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9808 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9812 done
9813 done
9814 IFS=$as_save_IFS
9817 esac
9819 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9820 if test -n "$aros_kernel_ar"; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9822 $as_echo "$aros_kernel_ar" >&6; }
9823 else
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9829 else
9830 if test "$GCC" = "yes"; then
9831 aros_gcc_ar=`$CC -print-prog-name=ar`
9832 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9833 set dummy `basename $aros_gcc_ar`; ac_word=$2
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9835 $as_echo_n "checking for $ac_word... " >&6; }
9836 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 case $aros_kernel_ar in
9840 [\\/]* | ?:[\\/]*)
9841 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in `dirname $aros_gcc_ar`
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
9849 for ac_exec_ext in '' $ac_executable_extensions; do
9850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9851 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853 break 2
9855 done
9856 done
9857 IFS=$as_save_IFS
9860 esac
9862 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9863 if test -n "$aros_kernel_ar"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9865 $as_echo "$aros_kernel_ar" >&6; }
9866 else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9873 if test "$aros_kernel_ar" = ""; then
9874 # Extract the first word of "ar", so it can be a program name with args.
9875 set dummy ar; ac_word=$2
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877 $as_echo_n "checking for $ac_word... " >&6; }
9878 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 case $aros_kernel_ar in
9882 [\\/]* | ?:[\\/]*)
9883 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9893 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9897 done
9898 done
9899 IFS=$as_save_IFS
9902 esac
9904 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9905 if test -n "$aros_kernel_ar"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9907 $as_echo "$aros_kernel_ar" >&6; }
9908 else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9916 else
9917 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9918 set dummy $aros_kernel_ar; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 case $aros_kernel_ar in
9925 [\\/]* | ?:[\\/]*)
9926 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9940 done
9941 done
9942 IFS=$as_save_IFS
9945 esac
9947 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9948 if test -n "$aros_kernel_ar"; then
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9950 $as_echo "$aros_kernel_ar" >&6; }
9951 else
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9959 if test "$aros_kernel_ar" = ""; then
9960 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9963 if test "$aros_kernel_ranlib" = ""; then
9964 if test "$cross_compiling" = "yes" ; then
9965 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9966 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 case $aros_kernel_ranlib in
9973 [\\/]* | ?:[\\/]*)
9974 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978 for as_dir in $PATH
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
9982 for ac_exec_ext in '' $ac_executable_extensions; do
9983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9984 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 break 2
9988 done
9989 done
9990 IFS=$as_save_IFS
9993 esac
9995 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9996 if test -n "$aros_kernel_ranlib"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9998 $as_echo "$aros_kernel_ranlib" >&6; }
9999 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10005 else
10006 if test "$GCC" = "yes"; then
10007 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10008 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10009 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 case $aros_kernel_ranlib in
10016 [\\/]* | ?:[\\/]*)
10017 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in `dirname $aros_gcc_ranlib`
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10027 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 break 2
10031 done
10032 done
10033 IFS=$as_save_IFS
10036 esac
10038 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10039 if test -n "$aros_kernel_ranlib"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10041 $as_echo "$aros_kernel_ranlib" >&6; }
10042 else
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10049 if test "$aros_kernel_ranlib" = ""; then
10050 # Extract the first word of "ranlib", so it can be a program name with args.
10051 set dummy ranlib; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 case $aros_kernel_ranlib in
10058 [\\/]* | ?:[\\/]*)
10059 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10069 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10075 IFS=$as_save_IFS
10078 esac
10080 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10081 if test -n "$aros_kernel_ranlib"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10083 $as_echo "$aros_kernel_ranlib" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10092 else
10093 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10094 set dummy $aros_kernel_ranlib; ac_word=$2
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096 $as_echo_n "checking for $ac_word... " >&6; }
10097 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10098 $as_echo_n "(cached) " >&6
10099 else
10100 case $aros_kernel_ranlib in
10101 [\\/]* | ?:[\\/]*)
10102 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10112 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 break 2
10116 done
10117 done
10118 IFS=$as_save_IFS
10121 esac
10123 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10124 if test -n "$aros_kernel_ranlib"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10126 $as_echo "$aros_kernel_ranlib" >&6; }
10127 else
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10135 if test "$aros_kernel_ranlib" = ""; then
10136 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10139 if test "$aros_kernel_nm" = ""; then
10140 if test "$cross_compiling" = "yes" ; then
10141 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10142 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 case $aros_kernel_nm in
10149 [\\/]* | ?:[\\/]*)
10150 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154 for as_dir in $PATH
10156 IFS=$as_save_IFS
10157 test -z "$as_dir" && as_dir=.
10158 for ac_exec_ext in '' $ac_executable_extensions; do
10159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10160 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 break 2
10164 done
10165 done
10166 IFS=$as_save_IFS
10169 esac
10171 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10172 if test -n "$aros_kernel_nm"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10174 $as_echo "$aros_kernel_nm" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10181 else
10182 if test "$GCC" = "yes"; then
10183 aros_gcc_nm=`$CC -print-prog-name=nm`
10184 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10185 set dummy `basename $aros_gcc_nm`; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 case $aros_kernel_nm in
10192 [\\/]* | ?:[\\/]*)
10193 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in `dirname $aros_gcc_nm`
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10207 done
10208 done
10209 IFS=$as_save_IFS
10212 esac
10214 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10215 if test -n "$aros_kernel_nm"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10217 $as_echo "$aros_kernel_nm" >&6; }
10218 else
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10225 if test "$aros_kernel_nm" = ""; then
10226 # Extract the first word of "nm", so it can be a program name with args.
10227 set dummy nm; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 case $aros_kernel_nm in
10234 [\\/]* | ?:[\\/]*)
10235 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10245 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 break 2
10249 done
10250 done
10251 IFS=$as_save_IFS
10254 esac
10256 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10257 if test -n "$aros_kernel_nm"; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10259 $as_echo "$aros_kernel_nm" >&6; }
10260 else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 $as_echo "no" >&6; }
10268 else
10269 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10270 set dummy $aros_kernel_nm; ac_word=$2
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272 $as_echo_n "checking for $ac_word... " >&6; }
10273 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10274 $as_echo_n "(cached) " >&6
10275 else
10276 case $aros_kernel_nm in
10277 [\\/]* | ?:[\\/]*)
10278 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282 for as_dir in $PATH
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
10286 for ac_exec_ext in '' $ac_executable_extensions; do
10287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10288 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 break 2
10292 done
10293 done
10294 IFS=$as_save_IFS
10297 esac
10299 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10300 if test -n "$aros_kernel_nm"; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10302 $as_echo "$aros_kernel_nm" >&6; }
10303 else
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10311 if test "$aros_kernel_nm" = ""; then
10312 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10315 if test "$aros_kernel_strip" = ""; then
10316 if test "$cross_compiling" = "yes" ; then
10317 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10318 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 case $aros_kernel_strip in
10325 [\\/]* | ?:[\\/]*)
10326 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10340 done
10341 done
10342 IFS=$as_save_IFS
10345 esac
10347 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10348 if test -n "$aros_kernel_strip"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10350 $as_echo "$aros_kernel_strip" >&6; }
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10357 else
10358 if test "$GCC" = "yes"; then
10359 aros_gcc_strip=`$CC -print-prog-name=strip`
10360 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10361 set dummy `basename $aros_gcc_strip`; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 case $aros_kernel_strip in
10368 [\\/]* | ?:[\\/]*)
10369 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in `dirname $aros_gcc_strip`
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 break 2
10383 done
10384 done
10385 IFS=$as_save_IFS
10388 esac
10390 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10391 if test -n "$aros_kernel_strip"; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10393 $as_echo "$aros_kernel_strip" >&6; }
10394 else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396 $as_echo "no" >&6; }
10401 if test "$aros_kernel_strip" = ""; then
10402 # Extract the first word of "strip", so it can be a program name with args.
10403 set dummy strip; ac_word=$2
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10405 $as_echo_n "checking for $ac_word... " >&6; }
10406 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 case $aros_kernel_strip in
10410 [\\/]* | ?:[\\/]*)
10411 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10425 done
10426 done
10427 IFS=$as_save_IFS
10430 esac
10432 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10433 if test -n "$aros_kernel_strip"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10435 $as_echo "$aros_kernel_strip" >&6; }
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10444 else
10445 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10446 set dummy $aros_kernel_strip; ac_word=$2
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448 $as_echo_n "checking for $ac_word... " >&6; }
10449 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10450 $as_echo_n "(cached) " >&6
10451 else
10452 case $aros_kernel_strip in
10453 [\\/]* | ?:[\\/]*)
10454 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458 for as_dir in $PATH
10460 IFS=$as_save_IFS
10461 test -z "$as_dir" && as_dir=.
10462 for ac_exec_ext in '' $ac_executable_extensions; do
10463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10464 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 break 2
10468 done
10469 done
10470 IFS=$as_save_IFS
10473 esac
10475 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10476 if test -n "$aros_kernel_strip"; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10478 $as_echo "$aros_kernel_strip" >&6; }
10479 else
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481 $as_echo "no" >&6; }
10487 if test "$aros_kernel_strip" = ""; then
10488 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10491 # Objcopy and objdump are not required for the kernel
10492 # toolchain on many architectures.
10493 # So we'll look for them, but not make them strictly required.
10495 if test "$aros_kernel_objcopy" = ""; then
10496 if test "$cross_compiling" = "yes" ; then
10497 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10498 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500 $as_echo_n "checking for $ac_word... " >&6; }
10501 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 case $aros_kernel_objcopy in
10505 [\\/]* | ?:[\\/]*)
10506 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10512 IFS=$as_save_IFS
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10516 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10518 break 2
10520 done
10521 done
10522 IFS=$as_save_IFS
10525 esac
10527 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10528 if test -n "$aros_kernel_objcopy"; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10530 $as_echo "$aros_kernel_objcopy" >&6; }
10531 else
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533 $as_echo "no" >&6; }
10537 else
10538 if test "$GCC" = "yes"; then
10539 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10540 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10541 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543 $as_echo_n "checking for $ac_word... " >&6; }
10544 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 case $aros_kernel_objcopy in
10548 [\\/]* | ?:[\\/]*)
10549 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in `dirname $aros_gcc_objcopy`
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10559 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10563 done
10564 done
10565 IFS=$as_save_IFS
10568 esac
10570 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10571 if test -n "$aros_kernel_objcopy"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10573 $as_echo "$aros_kernel_objcopy" >&6; }
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10581 if test "$aros_kernel_objcopy" = ""; then
10582 # Extract the first word of "objcopy", so it can be a program name with args.
10583 set dummy objcopy; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 case $aros_kernel_objcopy in
10590 [\\/]* | ?:[\\/]*)
10591 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10605 done
10606 done
10607 IFS=$as_save_IFS
10610 esac
10612 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10613 if test -n "$aros_kernel_objcopy"; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10615 $as_echo "$aros_kernel_objcopy" >&6; }
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10624 else
10625 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10626 set dummy $aros_kernel_objcopy; ac_word=$2
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10628 $as_echo_n "checking for $ac_word... " >&6; }
10629 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 case $aros_kernel_objcopy in
10633 [\\/]* | ?:[\\/]*)
10634 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
10643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10644 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 break 2
10648 done
10649 done
10650 IFS=$as_save_IFS
10653 esac
10655 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10656 if test -n "$aros_kernel_objcopy"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10658 $as_echo "$aros_kernel_objcopy" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10668 if test "$aros_kernel_objdump" = ""; then
10669 if test "$cross_compiling" = "yes" ; then
10670 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10671 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673 $as_echo_n "checking for $ac_word... " >&6; }
10674 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 case $aros_kernel_objdump in
10678 [\\/]* | ?:[\\/]*)
10679 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 break 2
10693 done
10694 done
10695 IFS=$as_save_IFS
10698 esac
10700 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10701 if test -n "$aros_kernel_objdump"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10703 $as_echo "$aros_kernel_objdump" >&6; }
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10710 else
10711 if test "$GCC" = "yes"; then
10712 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10713 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10714 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 case $aros_kernel_objdump in
10721 [\\/]* | ?:[\\/]*)
10722 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in `dirname $aros_gcc_objdump`
10728 IFS=$as_save_IFS
10729 test -z "$as_dir" && as_dir=.
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10732 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 break 2
10736 done
10737 done
10738 IFS=$as_save_IFS
10741 esac
10743 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10744 if test -n "$aros_kernel_objdump"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10746 $as_echo "$aros_kernel_objdump" >&6; }
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10754 if test "$aros_kernel_objdump" = ""; then
10755 # Extract the first word of "objdump", so it can be a program name with args.
10756 set dummy objdump; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 case $aros_kernel_objdump in
10763 [\\/]* | ?:[\\/]*)
10764 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10774 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10778 done
10779 done
10780 IFS=$as_save_IFS
10783 esac
10785 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10786 if test -n "$aros_kernel_objdump"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10788 $as_echo "$aros_kernel_objdump" >&6; }
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10797 else
10798 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10799 set dummy $aros_kernel_objdump; ac_word=$2
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801 $as_echo_n "checking for $ac_word... " >&6; }
10802 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 case $aros_kernel_objdump in
10806 [\\/]* | ?:[\\/]*)
10807 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10817 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10821 done
10822 done
10823 IFS=$as_save_IFS
10826 esac
10828 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10829 if test -n "$aros_kernel_objdump"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10831 $as_echo "$aros_kernel_objdump" >&6; }
10832 else
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10840 if test "x${crosstools}" != "xyes" ; then
10841 if test "$aros_kernel_objcopy" = ""; then
10842 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10844 if test "$aros_kernel_objdump" = ""; then
10845 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10851 $as_echo_n "checking which target tools to use... " >&6; }
10852 if test "$crosstools" = "yes"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10854 $as_echo "$target_tool_prefix" >&6; }
10855 # We are building AROS crosstools
10856 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10857 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10858 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10859 orig_target_cpp="${tmp_tool_prefix}cpp"
10860 orig_target_ld="${tmp_tool_prefix}ld"
10861 orig_target_as="${tmp_tool_prefix}as"
10862 orig_target_ar="${tmp_tool_prefix}ar"
10863 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10864 orig_target_nm="${tmp_tool_prefix}nm"
10865 orig_target_strip="${tmp_tool_prefix}strip"
10866 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10867 orig_target_objdump="${tmp_tool_prefix}objdump"
10868 else
10869 # Determine whether AROS or ELF tools should be used
10870 if test "$aros_tool_prefix" = "none"; then
10871 aros_tool_prefix="${elf_tool_prefix}"
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10875 $as_echo "$aros_tool_prefix" >&6; }
10876 # We are *not* building AROS crosstools - use the AROS or ELF tools
10878 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10879 if test "$cross_compiling" = "yes" ; then
10880 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10881 set dummy ${target_tool_prefix}cpp; ac_word=$2
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 $as_echo_n "checking for $ac_word... " >&6; }
10884 if ${ac_cv_path_orig_target_cpp+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 case $orig_target_cpp in
10888 [\\/]* | ?:[\\/]*)
10889 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893 for as_dir in $PATH
10895 IFS=$as_save_IFS
10896 test -z "$as_dir" && as_dir=.
10897 for ac_exec_ext in '' $ac_executable_extensions; do
10898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10899 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10901 break 2
10903 done
10904 done
10905 IFS=$as_save_IFS
10908 esac
10910 orig_target_cpp=$ac_cv_path_orig_target_cpp
10911 if test -n "$orig_target_cpp"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10913 $as_echo "$orig_target_cpp" >&6; }
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10920 else
10921 if test "$GCC" = "yes"; then
10922 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10923 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10924 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926 $as_echo_n "checking for $ac_word... " >&6; }
10927 if ${ac_cv_path_orig_target_cpp+:} false; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 case $orig_target_cpp in
10931 [\\/]* | ?:[\\/]*)
10932 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in `dirname $aros_gcc_cpp`
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10946 done
10947 done
10948 IFS=$as_save_IFS
10951 esac
10953 orig_target_cpp=$ac_cv_path_orig_target_cpp
10954 if test -n "$orig_target_cpp"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10956 $as_echo "$orig_target_cpp" >&6; }
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10964 if test "$orig_target_cpp" = ""; then
10965 # Extract the first word of "cpp", so it can be a program name with args.
10966 set dummy cpp; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if ${ac_cv_path_orig_target_cpp+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 case $orig_target_cpp in
10973 [\\/]* | ?:[\\/]*)
10974 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10988 done
10989 done
10990 IFS=$as_save_IFS
10993 esac
10995 orig_target_cpp=$ac_cv_path_orig_target_cpp
10996 if test -n "$orig_target_cpp"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10998 $as_echo "$orig_target_cpp" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11007 else
11008 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11009 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011 $as_echo_n "checking for $ac_word... " >&6; }
11012 if ${ac_cv_path_orig_target_cpp+:} false; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 case $orig_target_cpp in
11016 [\\/]* | ?:[\\/]*)
11017 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in $PATH
11023 IFS=$as_save_IFS
11024 test -z "$as_dir" && as_dir=.
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11027 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11029 break 2
11031 done
11032 done
11033 IFS=$as_save_IFS
11036 esac
11038 orig_target_cpp=$ac_cv_path_orig_target_cpp
11039 if test -n "$orig_target_cpp"; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11041 $as_echo "$orig_target_cpp" >&6; }
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11050 if test "$orig_target_cpp" = ""; then
11051 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11054 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11055 if test "$cross_compiling" = "yes" ; then
11056 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11057 set dummy ${target_tool_prefix}gcc; ac_word=$2
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059 $as_echo_n "checking for $ac_word... " >&6; }
11060 if ${ac_cv_path_orig_target_cc+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 case $orig_target_cc in
11064 [\\/]* | ?:[\\/]*)
11065 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069 for as_dir in $PATH
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
11074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11075 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 break 2
11079 done
11080 done
11081 IFS=$as_save_IFS
11084 esac
11086 orig_target_cc=$ac_cv_path_orig_target_cc
11087 if test -n "$orig_target_cc"; then
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11089 $as_echo "$orig_target_cc" >&6; }
11090 else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11096 else
11097 if test "$GCC" = "yes"; then
11098 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11099 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11100 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102 $as_echo_n "checking for $ac_word... " >&6; }
11103 if ${ac_cv_path_orig_target_cc+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 case $orig_target_cc in
11107 [\\/]* | ?:[\\/]*)
11108 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in `dirname $aros_gcc_gcc`
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11118 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 break 2
11122 done
11123 done
11124 IFS=$as_save_IFS
11127 esac
11129 orig_target_cc=$ac_cv_path_orig_target_cc
11130 if test -n "$orig_target_cc"; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11132 $as_echo "$orig_target_cc" >&6; }
11133 else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11140 if test "$orig_target_cc" = ""; then
11141 # Extract the first word of "gcc", so it can be a program name with args.
11142 set dummy gcc; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if ${ac_cv_path_orig_target_cc+:} false; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 case $orig_target_cc in
11149 [\\/]* | ?:[\\/]*)
11150 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $PATH
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11160 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 break 2
11164 done
11165 done
11166 IFS=$as_save_IFS
11169 esac
11171 orig_target_cc=$ac_cv_path_orig_target_cc
11172 if test -n "$orig_target_cc"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11174 $as_echo "$orig_target_cc" >&6; }
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11183 else
11184 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11185 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187 $as_echo_n "checking for $ac_word... " >&6; }
11188 if ${ac_cv_path_orig_target_cc+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 case $orig_target_cc in
11192 [\\/]* | ?:[\\/]*)
11193 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11203 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11207 done
11208 done
11209 IFS=$as_save_IFS
11212 esac
11214 orig_target_cc=$ac_cv_path_orig_target_cc
11215 if test -n "$orig_target_cc"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11217 $as_echo "$orig_target_cc" >&6; }
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11226 if test "$orig_target_cc" = ""; then
11227 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11230 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11231 if test "$cross_compiling" = "yes" ; then
11232 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11233 set dummy ${target_tool_prefix}g++; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235 $as_echo_n "checking for $ac_word... " >&6; }
11236 if ${ac_cv_path_orig_target_cxx+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 case $orig_target_cxx in
11240 [\\/]* | ?:[\\/]*)
11241 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11247 IFS=$as_save_IFS
11248 test -z "$as_dir" && as_dir=.
11249 for ac_exec_ext in '' $ac_executable_extensions; do
11250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11251 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 break 2
11255 done
11256 done
11257 IFS=$as_save_IFS
11260 esac
11262 orig_target_cxx=$ac_cv_path_orig_target_cxx
11263 if test -n "$orig_target_cxx"; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11265 $as_echo "$orig_target_cxx" >&6; }
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11272 else
11273 if test "$GCC" = "yes"; then
11274 aros_gcc_g++=`$CC -print-prog-name=g++`
11275 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11276 set dummy `basename $aros_gcc_g++`; ac_word=$2
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11278 $as_echo_n "checking for $ac_word... " >&6; }
11279 if ${ac_cv_path_orig_target_cxx+:} false; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 case $orig_target_cxx in
11283 [\\/]* | ?:[\\/]*)
11284 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288 for as_dir in `dirname $aros_gcc_g++`
11290 IFS=$as_save_IFS
11291 test -z "$as_dir" && as_dir=.
11292 for ac_exec_ext in '' $ac_executable_extensions; do
11293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11294 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296 break 2
11298 done
11299 done
11300 IFS=$as_save_IFS
11303 esac
11305 orig_target_cxx=$ac_cv_path_orig_target_cxx
11306 if test -n "$orig_target_cxx"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11308 $as_echo "$orig_target_cxx" >&6; }
11309 else
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11316 if test "$orig_target_cxx" = ""; then
11317 # Extract the first word of "g++", so it can be a program name with args.
11318 set dummy g++; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if ${ac_cv_path_orig_target_cxx+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 case $orig_target_cxx in
11325 [\\/]* | ?:[\\/]*)
11326 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 for as_dir in $PATH
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
11335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11336 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 break 2
11340 done
11341 done
11342 IFS=$as_save_IFS
11345 esac
11347 orig_target_cxx=$ac_cv_path_orig_target_cxx
11348 if test -n "$orig_target_cxx"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11350 $as_echo "$orig_target_cxx" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11359 else
11360 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11361 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363 $as_echo_n "checking for $ac_word... " >&6; }
11364 if ${ac_cv_path_orig_target_cxx+:} false; then :
11365 $as_echo_n "(cached) " >&6
11366 else
11367 case $orig_target_cxx in
11368 [\\/]* | ?:[\\/]*)
11369 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373 for as_dir in $PATH
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
11377 for ac_exec_ext in '' $ac_executable_extensions; do
11378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11379 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 break 2
11383 done
11384 done
11385 IFS=$as_save_IFS
11388 esac
11390 orig_target_cxx=$ac_cv_path_orig_target_cxx
11391 if test -n "$orig_target_cxx"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11393 $as_echo "$orig_target_cxx" >&6; }
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11402 if test "$orig_target_cxx" = ""; then
11403 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11406 if test "${aros_tool_prefix}ld" = ""; then
11407 if test "$cross_compiling" = "yes" ; then
11408 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11409 set dummy ${target_tool_prefix}gcc; ac_word=$2
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11411 $as_echo_n "checking for $ac_word... " >&6; }
11412 if ${ac_cv_path_orig_target_ld+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 case $orig_target_ld in
11416 [\\/]* | ?:[\\/]*)
11417 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11431 done
11432 done
11433 IFS=$as_save_IFS
11436 esac
11438 orig_target_ld=$ac_cv_path_orig_target_ld
11439 if test -n "$orig_target_ld"; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11441 $as_echo "$orig_target_ld" >&6; }
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11448 else
11449 if test "$GCC" = "yes"; then
11450 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11451 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11452 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if ${ac_cv_path_orig_target_ld+:} false; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 case $orig_target_ld in
11459 [\\/]* | ?:[\\/]*)
11460 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in `dirname $aros_gcc_gcc`
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11470 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 break 2
11474 done
11475 done
11476 IFS=$as_save_IFS
11479 esac
11481 orig_target_ld=$ac_cv_path_orig_target_ld
11482 if test -n "$orig_target_ld"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11484 $as_echo "$orig_target_ld" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11492 if test "$orig_target_ld" = ""; then
11493 # Extract the first word of "gcc", so it can be a program name with args.
11494 set dummy gcc; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if ${ac_cv_path_orig_target_ld+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 case $orig_target_ld in
11501 [\\/]* | ?:[\\/]*)
11502 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506 for as_dir in $PATH
11508 IFS=$as_save_IFS
11509 test -z "$as_dir" && as_dir=.
11510 for ac_exec_ext in '' $ac_executable_extensions; do
11511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11512 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 break 2
11516 done
11517 done
11518 IFS=$as_save_IFS
11521 esac
11523 orig_target_ld=$ac_cv_path_orig_target_ld
11524 if test -n "$orig_target_ld"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11526 $as_echo "$orig_target_ld" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11535 else
11536 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11537 set dummy ${aros_tool_prefix}ld; ac_word=$2
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539 $as_echo_n "checking for $ac_word... " >&6; }
11540 if ${ac_cv_path_orig_target_ld+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 case $orig_target_ld in
11544 [\\/]* | ?:[\\/]*)
11545 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $PATH
11551 IFS=$as_save_IFS
11552 test -z "$as_dir" && as_dir=.
11553 for ac_exec_ext in '' $ac_executable_extensions; do
11554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11555 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 break 2
11559 done
11560 done
11561 IFS=$as_save_IFS
11564 esac
11566 orig_target_ld=$ac_cv_path_orig_target_ld
11567 if test -n "$orig_target_ld"; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11569 $as_echo "$orig_target_ld" >&6; }
11570 else
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572 $as_echo "no" >&6; }
11578 if test "$orig_target_ld" = ""; then
11579 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11582 if test "${aros_tool_prefix}as" = ""; then
11583 if test "$cross_compiling" = "yes" ; then
11584 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11585 set dummy ${target_tool_prefix}as; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if ${ac_cv_path_orig_target_as+:} false; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 case $orig_target_as in
11592 [\\/]* | ?:[\\/]*)
11593 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11607 done
11608 done
11609 IFS=$as_save_IFS
11612 esac
11614 orig_target_as=$ac_cv_path_orig_target_as
11615 if test -n "$orig_target_as"; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11617 $as_echo "$orig_target_as" >&6; }
11618 else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 $as_echo "no" >&6; }
11624 else
11625 if test "$GCC" = "yes"; then
11626 aros_gcc_as=`$CC -print-prog-name=as`
11627 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11628 set dummy `basename $aros_gcc_as`; ac_word=$2
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11630 $as_echo_n "checking for $ac_word... " >&6; }
11631 if ${ac_cv_path_orig_target_as+:} false; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 case $orig_target_as in
11635 [\\/]* | ?:[\\/]*)
11636 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in `dirname $aros_gcc_as`
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11650 done
11651 done
11652 IFS=$as_save_IFS
11655 esac
11657 orig_target_as=$ac_cv_path_orig_target_as
11658 if test -n "$orig_target_as"; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11660 $as_echo "$orig_target_as" >&6; }
11661 else
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11668 if test "$orig_target_as" = ""; then
11669 # Extract the first word of "as", so it can be a program name with args.
11670 set dummy as; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if ${ac_cv_path_orig_target_as+:} false; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 case $orig_target_as in
11677 [\\/]* | ?:[\\/]*)
11678 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11692 done
11693 done
11694 IFS=$as_save_IFS
11697 esac
11699 orig_target_as=$ac_cv_path_orig_target_as
11700 if test -n "$orig_target_as"; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11702 $as_echo "$orig_target_as" >&6; }
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11711 else
11712 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11713 set dummy ${aros_tool_prefix}as; ac_word=$2
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715 $as_echo_n "checking for $ac_word... " >&6; }
11716 if ${ac_cv_path_orig_target_as+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 case $orig_target_as in
11720 [\\/]* | ?:[\\/]*)
11721 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11731 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 break 2
11735 done
11736 done
11737 IFS=$as_save_IFS
11740 esac
11742 orig_target_as=$ac_cv_path_orig_target_as
11743 if test -n "$orig_target_as"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11745 $as_echo "$orig_target_as" >&6; }
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11754 if test "$orig_target_as" = ""; then
11755 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11758 if test "${aros_tool_prefix}ar" = ""; then
11759 if test "$cross_compiling" = "yes" ; then
11760 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11761 set dummy ${target_tool_prefix}ar; ac_word=$2
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763 $as_echo_n "checking for $ac_word... " >&6; }
11764 if ${ac_cv_path_orig_target_ar+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 case $orig_target_ar in
11768 [\\/]* | ?:[\\/]*)
11769 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11775 IFS=$as_save_IFS
11776 test -z "$as_dir" && as_dir=.
11777 for ac_exec_ext in '' $ac_executable_extensions; do
11778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11779 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781 break 2
11783 done
11784 done
11785 IFS=$as_save_IFS
11788 esac
11790 orig_target_ar=$ac_cv_path_orig_target_ar
11791 if test -n "$orig_target_ar"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11793 $as_echo "$orig_target_ar" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11800 else
11801 if test "$GCC" = "yes"; then
11802 aros_gcc_ar=`$CC -print-prog-name=ar`
11803 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11804 set dummy `basename $aros_gcc_ar`; ac_word=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if ${ac_cv_path_orig_target_ar+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 case $orig_target_ar in
11811 [\\/]* | ?:[\\/]*)
11812 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in `dirname $aros_gcc_ar`
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11826 done
11827 done
11828 IFS=$as_save_IFS
11831 esac
11833 orig_target_ar=$ac_cv_path_orig_target_ar
11834 if test -n "$orig_target_ar"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11836 $as_echo "$orig_target_ar" >&6; }
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11844 if test "$orig_target_ar" = ""; then
11845 # Extract the first word of "ar", so it can be a program name with args.
11846 set dummy ar; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if ${ac_cv_path_orig_target_ar+:} false; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 case $orig_target_ar in
11853 [\\/]* | ?:[\\/]*)
11854 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11868 done
11869 done
11870 IFS=$as_save_IFS
11873 esac
11875 orig_target_ar=$ac_cv_path_orig_target_ar
11876 if test -n "$orig_target_ar"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11878 $as_echo "$orig_target_ar" >&6; }
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11887 else
11888 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11889 set dummy ${aros_tool_prefix}ar; ac_word=$2
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891 $as_echo_n "checking for $ac_word... " >&6; }
11892 if ${ac_cv_path_orig_target_ar+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 case $orig_target_ar in
11896 [\\/]* | ?:[\\/]*)
11897 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901 for as_dir in $PATH
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11907 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 break 2
11911 done
11912 done
11913 IFS=$as_save_IFS
11916 esac
11918 orig_target_ar=$ac_cv_path_orig_target_ar
11919 if test -n "$orig_target_ar"; then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11921 $as_echo "$orig_target_ar" >&6; }
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11930 if test "$orig_target_ar" = ""; then
11931 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11934 if test "${aros_tool_prefix}ranlib" = ""; then
11935 if test "$cross_compiling" = "yes" ; then
11936 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11937 set dummy ${target_tool_prefix}ar; ac_word=$2
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939 $as_echo_n "checking for $ac_word... " >&6; }
11940 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 case $orig_target_ranlib in
11944 [\\/]* | ?:[\\/]*)
11945 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in $PATH
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11955 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11957 break 2
11959 done
11960 done
11961 IFS=$as_save_IFS
11964 esac
11966 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11967 if test -n "$orig_target_ranlib"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11969 $as_echo "$orig_target_ranlib" >&6; }
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11976 else
11977 if test "$GCC" = "yes"; then
11978 aros_gcc_ar=`$CC -print-prog-name=ar`
11979 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11980 set dummy `basename $aros_gcc_ar`; ac_word=$2
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982 $as_echo_n "checking for $ac_word... " >&6; }
11983 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 case $orig_target_ranlib in
11987 [\\/]* | ?:[\\/]*)
11988 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992 for as_dir in `dirname $aros_gcc_ar`
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11998 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12002 done
12003 done
12004 IFS=$as_save_IFS
12007 esac
12009 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12010 if test -n "$orig_target_ranlib"; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12012 $as_echo "$orig_target_ranlib" >&6; }
12013 else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 $as_echo "no" >&6; }
12020 if test "$orig_target_ranlib" = ""; then
12021 # Extract the first word of "ar", so it can be a program name with args.
12022 set dummy ar; ac_word=$2
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12024 $as_echo_n "checking for $ac_word... " >&6; }
12025 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 case $orig_target_ranlib in
12029 [\\/]* | ?:[\\/]*)
12030 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $PATH
12036 IFS=$as_save_IFS
12037 test -z "$as_dir" && as_dir=.
12038 for ac_exec_ext in '' $ac_executable_extensions; do
12039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12040 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12042 break 2
12044 done
12045 done
12046 IFS=$as_save_IFS
12049 esac
12051 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12052 if test -n "$orig_target_ranlib"; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12054 $as_echo "$orig_target_ranlib" >&6; }
12055 else
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12063 else
12064 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12065 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067 $as_echo_n "checking for $ac_word... " >&6; }
12068 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 case $orig_target_ranlib in
12072 [\\/]* | ?:[\\/]*)
12073 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12077 for as_dir in $PATH
12079 IFS=$as_save_IFS
12080 test -z "$as_dir" && as_dir=.
12081 for ac_exec_ext in '' $ac_executable_extensions; do
12082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12083 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 break 2
12087 done
12088 done
12089 IFS=$as_save_IFS
12092 esac
12094 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12095 if test -n "$orig_target_ranlib"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12097 $as_echo "$orig_target_ranlib" >&6; }
12098 else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12106 if test "$orig_target_ranlib" = ""; then
12107 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12110 if test "${aros_tool_prefix}nm" = ""; then
12111 if test "$cross_compiling" = "yes" ; then
12112 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12113 set dummy ${target_tool_prefix}nm; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if ${ac_cv_path_orig_target_nm+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 case $orig_target_nm in
12120 [\\/]* | ?:[\\/]*)
12121 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12135 done
12136 done
12137 IFS=$as_save_IFS
12140 esac
12142 orig_target_nm=$ac_cv_path_orig_target_nm
12143 if test -n "$orig_target_nm"; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12145 $as_echo "$orig_target_nm" >&6; }
12146 else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12152 else
12153 if test "$GCC" = "yes"; then
12154 aros_gcc_nm=`$CC -print-prog-name=nm`
12155 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12156 set dummy `basename $aros_gcc_nm`; ac_word=$2
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12158 $as_echo_n "checking for $ac_word... " >&6; }
12159 if ${ac_cv_path_orig_target_nm+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 case $orig_target_nm in
12163 [\\/]* | ?:[\\/]*)
12164 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in `dirname $aros_gcc_nm`
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 break 2
12178 done
12179 done
12180 IFS=$as_save_IFS
12183 esac
12185 orig_target_nm=$ac_cv_path_orig_target_nm
12186 if test -n "$orig_target_nm"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12188 $as_echo "$orig_target_nm" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12196 if test "$orig_target_nm" = ""; then
12197 # Extract the first word of "nm", so it can be a program name with args.
12198 set dummy nm; ac_word=$2
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200 $as_echo_n "checking for $ac_word... " >&6; }
12201 if ${ac_cv_path_orig_target_nm+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 case $orig_target_nm in
12205 [\\/]* | ?:[\\/]*)
12206 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH
12212 IFS=$as_save_IFS
12213 test -z "$as_dir" && as_dir=.
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 break 2
12220 done
12221 done
12222 IFS=$as_save_IFS
12225 esac
12227 orig_target_nm=$ac_cv_path_orig_target_nm
12228 if test -n "$orig_target_nm"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12230 $as_echo "$orig_target_nm" >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12239 else
12240 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12241 set dummy ${aros_tool_prefix}nm; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if ${ac_cv_path_orig_target_nm+:} false; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 case $orig_target_nm in
12248 [\\/]* | ?:[\\/]*)
12249 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12259 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12263 done
12264 done
12265 IFS=$as_save_IFS
12268 esac
12270 orig_target_nm=$ac_cv_path_orig_target_nm
12271 if test -n "$orig_target_nm"; then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12273 $as_echo "$orig_target_nm" >&6; }
12274 else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12282 if test "$orig_target_nm" = ""; then
12283 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12286 if test "${aros_tool_prefix}strip" = ""; then
12287 if test "$cross_compiling" = "yes" ; then
12288 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12289 set dummy ${target_tool_prefix}strip; ac_word=$2
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291 $as_echo_n "checking for $ac_word... " >&6; }
12292 if ${ac_cv_path_orig_target_strip+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 case $orig_target_strip in
12296 [\\/]* | ?:[\\/]*)
12297 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12303 IFS=$as_save_IFS
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 break 2
12311 done
12312 done
12313 IFS=$as_save_IFS
12316 esac
12318 orig_target_strip=$ac_cv_path_orig_target_strip
12319 if test -n "$orig_target_strip"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12321 $as_echo "$orig_target_strip" >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12328 else
12329 if test "$GCC" = "yes"; then
12330 aros_gcc_strip=`$CC -print-prog-name=strip`
12331 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12332 set dummy `basename $aros_gcc_strip`; ac_word=$2
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12334 $as_echo_n "checking for $ac_word... " >&6; }
12335 if ${ac_cv_path_orig_target_strip+:} false; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 case $orig_target_strip in
12339 [\\/]* | ?:[\\/]*)
12340 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in `dirname $aros_gcc_strip`
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12350 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 break 2
12354 done
12355 done
12356 IFS=$as_save_IFS
12359 esac
12361 orig_target_strip=$ac_cv_path_orig_target_strip
12362 if test -n "$orig_target_strip"; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12364 $as_echo "$orig_target_strip" >&6; }
12365 else
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12372 if test "$orig_target_strip" = ""; then
12373 # Extract the first word of "strip", so it can be a program name with args.
12374 set dummy strip; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if ${ac_cv_path_orig_target_strip+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 case $orig_target_strip in
12381 [\\/]* | ?:[\\/]*)
12382 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
12391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 break 2
12396 done
12397 done
12398 IFS=$as_save_IFS
12401 esac
12403 orig_target_strip=$ac_cv_path_orig_target_strip
12404 if test -n "$orig_target_strip"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12406 $as_echo "$orig_target_strip" >&6; }
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12415 else
12416 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12417 set dummy ${aros_tool_prefix}strip; ac_word=$2
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419 $as_echo_n "checking for $ac_word... " >&6; }
12420 if ${ac_cv_path_orig_target_strip+:} false; then :
12421 $as_echo_n "(cached) " >&6
12422 else
12423 case $orig_target_strip in
12424 [\\/]* | ?:[\\/]*)
12425 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 break 2
12439 done
12440 done
12441 IFS=$as_save_IFS
12444 esac
12446 orig_target_strip=$ac_cv_path_orig_target_strip
12447 if test -n "$orig_target_strip"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12449 $as_echo "$orig_target_strip" >&6; }
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12458 if test "$orig_target_strip" = ""; then
12459 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12462 if test "${aros_tool_prefix}objcopy" = ""; then
12463 if test "$cross_compiling" = "yes" ; then
12464 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12465 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 case $orig_target_objcopy in
12472 [\\/]* | ?:[\\/]*)
12473 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 break 2
12487 done
12488 done
12489 IFS=$as_save_IFS
12492 esac
12494 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12495 if test -n "$orig_target_objcopy"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12497 $as_echo "$orig_target_objcopy" >&6; }
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12504 else
12505 if test "$GCC" = "yes"; then
12506 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12507 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12508 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 case $orig_target_objcopy in
12515 [\\/]* | ?:[\\/]*)
12516 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in `dirname $aros_gcc_objcopy`
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12526 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 break 2
12530 done
12531 done
12532 IFS=$as_save_IFS
12535 esac
12537 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12538 if test -n "$orig_target_objcopy"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12540 $as_echo "$orig_target_objcopy" >&6; }
12541 else
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 $as_echo "no" >&6; }
12548 if test "$orig_target_objcopy" = ""; then
12549 # Extract the first word of "objcopy", so it can be a program name with args.
12550 set dummy objcopy; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552 $as_echo_n "checking for $ac_word... " >&6; }
12553 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 case $orig_target_objcopy in
12557 [\\/]* | ?:[\\/]*)
12558 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562 for as_dir in $PATH
12564 IFS=$as_save_IFS
12565 test -z "$as_dir" && as_dir=.
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12568 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 break 2
12572 done
12573 done
12574 IFS=$as_save_IFS
12577 esac
12579 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12580 if test -n "$orig_target_objcopy"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12582 $as_echo "$orig_target_objcopy" >&6; }
12583 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12591 else
12592 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12593 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 case $orig_target_objcopy in
12600 [\\/]* | ?:[\\/]*)
12601 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 for as_dir in $PATH
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 break 2
12615 done
12616 done
12617 IFS=$as_save_IFS
12620 esac
12622 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12623 if test -n "$orig_target_objcopy"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12625 $as_echo "$orig_target_objcopy" >&6; }
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12634 if test "$orig_target_objcopy" = ""; then
12635 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12638 if test "${aros_tool_prefix}objdump" = ""; then
12639 if test "$cross_compiling" = "yes" ; then
12640 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12641 set dummy ${target_tool_prefix}objdump; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if ${ac_cv_path_orig_target_objdump+:} false; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 case $orig_target_objdump in
12648 [\\/]* | ?:[\\/]*)
12649 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12655 IFS=$as_save_IFS
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
12658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12659 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 break 2
12663 done
12664 done
12665 IFS=$as_save_IFS
12668 esac
12670 orig_target_objdump=$ac_cv_path_orig_target_objdump
12671 if test -n "$orig_target_objdump"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12673 $as_echo "$orig_target_objdump" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12680 else
12681 if test "$GCC" = "yes"; then
12682 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12683 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12684 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12686 $as_echo_n "checking for $ac_word... " >&6; }
12687 if ${ac_cv_path_orig_target_objdump+:} false; then :
12688 $as_echo_n "(cached) " >&6
12689 else
12690 case $orig_target_objdump in
12691 [\\/]* | ?:[\\/]*)
12692 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in `dirname $aros_gcc_objdump`
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12702 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704 break 2
12706 done
12707 done
12708 IFS=$as_save_IFS
12711 esac
12713 orig_target_objdump=$ac_cv_path_orig_target_objdump
12714 if test -n "$orig_target_objdump"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12716 $as_echo "$orig_target_objdump" >&6; }
12717 else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12724 if test "$orig_target_objdump" = ""; then
12725 # Extract the first word of "objdump", so it can be a program name with args.
12726 set dummy objdump; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_path_orig_target_objdump+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 case $orig_target_objdump in
12733 [\\/]* | ?:[\\/]*)
12734 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738 for as_dir in $PATH
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12744 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12748 done
12749 done
12750 IFS=$as_save_IFS
12753 esac
12755 orig_target_objdump=$ac_cv_path_orig_target_objdump
12756 if test -n "$orig_target_objdump"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12758 $as_echo "$orig_target_objdump" >&6; }
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12767 else
12768 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12769 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771 $as_echo_n "checking for $ac_word... " >&6; }
12772 if ${ac_cv_path_orig_target_objdump+:} false; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 case $orig_target_objdump in
12776 [\\/]* | ?:[\\/]*)
12777 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781 for as_dir in $PATH
12783 IFS=$as_save_IFS
12784 test -z "$as_dir" && as_dir=.
12785 for ac_exec_ext in '' $ac_executable_extensions; do
12786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12787 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 break 2
12791 done
12792 done
12793 IFS=$as_save_IFS
12796 esac
12798 orig_target_objdump=$ac_cv_path_orig_target_objdump
12799 if test -n "$orig_target_objdump"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12801 $as_echo "$orig_target_objdump" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12810 if test "$orig_target_objdump" = ""; then
12811 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12815 if test "$kernel_tool_prefix" = "none" ; then
12816 # No kernel tools specified
12817 # Assume target tools == kernel tools with ELF wrapper
12818 aros_kernel_cc=$orig_target_cc
12819 aros_kernel_cxx=$orig_target_cxx
12820 aros_kernel_cpp=$orig_target_cpp
12821 aros_kernel_ld=$orig_target_ld
12822 aros_kernel_as=$orig_target_as
12823 aros_kernel_ar=$orig_target_ar
12824 aros_kernel_ranlib=$orig_target_ranlib
12825 aros_kernel_nm=$orig_target_nm
12826 aros_kernel_strip=$orig_target_strip
12827 aros_kernel_objcopy=$orig_target_objcopy
12828 aros_kernel_objdump=$orig_target_objdump
12829 use_kernel_cc_wrapper=yes
12832 # At this point, all aros_kernel_* and aros_target_*
12833 # tools should be set up correctly
12835 CC="$aros_kernel_cc $kernel_tool_flags"
12836 CPP="$aros_kernel_cpp"
12838 #-----------------------------------------------------------------------------
12840 # Disable pointer-signedness warnings if the compiler recognises the option
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12843 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12844 save_cflags="$CFLAGS"
12845 if test "$crosstools" != "yes" ; then
12846 CFLAGS="$CFLAGS -Wno-pointer-sign"
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12851 main ()
12855 return 0;
12857 _ACEOF
12858 if ac_fn_c_try_compile "$LINENO"; then :
12859 use_no_sign_warning="yes"
12860 else
12861 use_no_sign_warning="no"
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864 else
12865 # we do know it is supported for the smallest version of gcc we are going to build
12866 # we assume it's also supported by later versions
12867 use_no_sign_warning=yes
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12870 $as_echo "$use_no_sign_warning" >&6; }
12871 if test "x-$use_no_sign_warning" = "x-yes" ; then
12872 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12874 CFLAGS="$save_cflags"
12876 #-----------------------------------------------------------------------------
12878 # Find all the tools we need to compile. This could be cross-compiling
12879 # though! If that is the case we use the GNU form of the target and
12880 # simply add this to the front of the binary name. This is rather simple,
12881 # but it should work under most circumstances.
12883 # The default tools are to use the same as the host, but only if the
12884 # host and target CPU are the same. With GCC this is normally enough.
12887 aros_cc_pre=""
12888 aros_shared_ld="$aros_host_ld"
12890 aros_target_mkdep="$aros_host_mkdep"
12892 # The default tools executables to be linked to.
12893 if test "$rescomp" != ""; then
12894 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12895 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897 $as_echo_n "checking for $ac_word... " >&6; }
12898 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 case $aros_kernel_rescomp in
12902 [\\/]* | ?:[\\/]*)
12903 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12917 done
12918 done
12919 IFS=$as_save_IFS
12922 esac
12924 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12925 if test -n "$aros_kernel_rescomp"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12927 $as_echo "$aros_kernel_rescomp" >&6; }
12928 else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12934 if test "$aros_kernel_rescomp" = ""; then
12935 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12939 # Set up the sources for the symlink farm
12940 if test "$crosstools" = "yes"; then
12941 crosstools_target=tools-crosstools
12944 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12945 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12948 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12949 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12950 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12951 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12952 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12953 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12954 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12956 # aros_cc_pre is a variable that is added to the front of the compiler name
12957 # in the generated aros-gcc shell script. We need this to enable the cache
12958 # to work across cleaned builds. Also, support DISTCC using the correct
12959 # environment variable.
12962 if test "x${DISTCC}" != "x" ; then
12963 if test "x${CCACHE}" != "x" ; then
12964 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12965 else
12966 aros_cc_pre="${DISTCC} "
12968 else
12969 if test "x${CCACHE}" != "x" ; then
12970 aros_cc_pre="${CCACHE} "
12974 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12976 aros_target_nostdinc_cflags=-nostdinc
12978 aros_target_nostartup_ldflags=-nostartfiles
12980 aros_target_nix_ldflags=-nix
12982 aros_target_detach_ldflags=-detach
12984 aros_target_nostdlib_ldflags=-nostdlib
12987 # Target tools
12988 if test "$crosstools" != "yes"; then
12989 if test "$GCC" = "yes"; then
12990 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12992 else
12993 # We do not know which gcc version we are going to build and what we need to know
12994 # here is different for different versions so this will be set later during the
12995 # build of crosstools.
12996 aros_target_cc_path=@aros_target_cc_path@
12998 aros_target_cpp="${prefix}cpp"
12999 aros_target_cc="${prefix}gcc"
13000 aros_target_cxx="${prefix}g++"
13001 aros_target_as="${prefix}as"
13002 aros_target_ld="${prefix}ld"
13003 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13004 aros_target_objcopy="${prefix}objcopy"
13005 aros_target_objdump="${prefix}objdump"
13006 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13007 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13008 aros_target_strip="${prefix}strip"
13009 aros_plain_nm="${prefix}nm"
13010 aros_plain_ar="${prefix}ar"
13012 # Check whether --enable-includes was given.
13013 if test "${enable_includes+set}" = set; then :
13014 enableval=$enable_includes; aros_target_incl=$enable_includes
13015 else
13016 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13020 if test "$aros_kernel_includes" = ""; then
13021 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13022 aros_kernel_includes="-isystem $aros_target_incl"
13026 if test "$aros_kernel_includes" != "" ; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13028 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13029 if test "$aros_kernel_cc_includes" = "" ; then
13030 # Try to guess where the directory is.
13031 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13032 if test -d $aros_kernel_cc_includes; then
13033 # Check if there is also an include-fixed directory and add it
13034 # to kernel compiler's include path as it may contain some of
13035 # the headers we need.
13036 if test -d "$aros_kernel_cc_includes"-fixed; then
13037 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13039 # Check for specific includes directory. Neede for Ubuntu 11.10
13040 if test -d "/usr/include/i386-linux-gnu"; then
13041 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13043 else
13044 # The directory doesn't exist, we need to do some more work.
13045 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13047 # These are the headers we're looking for.
13048 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13049 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13050 zutil.h stdint.h"
13052 dirs=
13053 for h in $headers; do
13054 # Which other headers are needed by each of the above?
13055 deps=$(echo "#include <$h>" | \
13056 $aros_kernel_cc -E -M - 2>/dev/null | \
13057 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13059 # Copy all the needed headers to a directory beneath gendir.
13060 for d in $deps; do
13061 h=$(basename $d)
13062 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13063 sed -n "s,^.*/include\(/.*\),\1,p")
13064 ! test -d $dir && mkdir -p $dir
13065 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13066 done
13067 done
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13071 $as_echo "$aros_kernel_cc_includes" >&6; }
13072 # Adding -nostdinc to kernel includes as they are always used together.
13073 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13076 if test "$crosstools" != "yes"; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13078 $as_echo_n "checking for the target compiler's include path... " >&6; }
13079 if test "$aros_target_cc_includes" = "" ; then
13080 #try to guess where the directory is
13081 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13082 if ! test -d $aros_target_cc_includes; then
13083 #the directory doesn't exist, we need to do some more work
13084 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13086 #these are the headers we're looking for
13087 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13088 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13089 zutil.h"
13091 dirs=
13092 for h in $headers; do
13093 #which other headers each of the above headers needs?
13094 deps=$(echo "#include <$h>" | \
13095 $orig_target_cc -E -M - 2>/dev/null | \
13096 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13098 #copy all the needed headers to a directory beneath gendir
13099 for d in $deps; do
13100 h=$(basename $d)
13101 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13102 sed -n "s,^.*/include\(/.*\),\1,p")
13103 ! test -d $dir && mkdir -p $dir
13104 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13105 done
13106 done
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13110 $as_echo "$aros_target_cc_includes" >&6; }
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 aros_target_cc_includes=@aros_target_cc_includes@
13119 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13120 # On GCC >= 4.0 -iquote should be used
13123 save_cc="$CC"
13124 save_cflags="$CFLAGS"
13125 CFLAGS="-iquote."
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13127 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13128 if test "x-$crosstools" != "x-yes"; then
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13133 main ()
13137 return 0;
13139 _ACEOF
13140 if ac_fn_c_try_compile "$LINENO"; then :
13141 has_iquote="yes"
13142 else
13143 has_iquote="no"
13145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13146 else
13147 # we do know it is supported for the smallest version of gcc we are going to build
13148 # we assume it's also supported by later versions
13149 has_iquote=yes
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13152 $as_echo "$has_iquote" >&6; }
13153 if test "x-$has_iquote" = "x-yes" ; then
13154 host_cflags_iquote=-iquote
13155 host_cflags_iquote_end=
13156 else
13157 host_cflags_iquote=-I
13158 host_cflags_iquote_end=-I-
13160 kernel_cflags_iquote=$host_cflags_iquote
13161 kernel_cflags_iquote_end=$host_cflags_iquote_end
13162 if test "x-$cross_compiling" = "x-yes"; then
13163 CC="$aros_kernel_cc"
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13165 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13166 if test "x-$crosstools" != "x-yes"; then
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13171 main ()
13175 return 0;
13177 _ACEOF
13178 if ac_fn_c_try_compile "$LINENO"; then :
13179 use_no_stack_protector="yes"
13180 else
13181 use_no_stack_protector="no"
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184 else
13185 # we do know it is supported for the smallest version of gcc we are going to build
13186 # we assume it's also supported by later versions
13187 use_no_stack_protector=yes
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13190 $as_echo "$use_no_stack_protector" >&6; }
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13192 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13193 if test "x-$crosstools" != "x-yes"; then
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13198 main ()
13202 return 0;
13204 _ACEOF
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206 has_iquote="yes"
13207 else
13208 has_iquote="no"
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 else
13212 # we do know it is supported for the smallest version of gcc we are going to build
13213 # we assume it's also supported by later versions
13214 has_iquote=yes
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13217 $as_echo "$has_iquote" >&6; }
13218 if test "x-$has_iquote" = "x-yes" ; then
13219 kernel_cflags_iquote=-iquote
13220 kernel_cflags_iquote_end=
13221 else
13222 kernel_cflags_iquote=-I
13223 kernel_cflags_iquote_end=-I-
13226 aros_cflags_iquote=$kernel_cflags_iquote
13227 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13228 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13229 CC="$orig_target_cc"
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13231 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13232 if test "x-$crosstools" != "x-yes"; then
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13237 main ()
13241 return 0;
13243 _ACEOF
13244 if ac_fn_c_try_compile "$LINENO"; then :
13245 has_iquote="yes"
13246 else
13247 has_iquote="no"
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 else
13251 # we do know it is supported for the smallest version of gcc we are going to build
13252 # we assume it's also supported by later versions
13253 has_iquote=yes
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13256 $as_echo "$has_iquote" >&6; }
13257 if test "x-$has_iquote" = "x-yes" ; then
13258 aros_cflags_iquote=-iquote
13259 aros_cflags_iquote_end=
13260 else
13261 aros_cflags_iquote=-I
13262 aros_cflags_iquote_end=-I-
13265 if test "x-$use_no_stack_protector" = "x-yes" ; then
13266 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13270 #-----------------------------------------------------------------------------
13272 # Check if the target compiler supports some options used for delinting:
13273 # -Wunused-but-set-variable
13274 # -Warray-bounds
13275 # -Wenum-compare
13276 # -Wstrict-overflow
13277 # -Wformat-security
13279 if test "x-$crosstools" != "x-yes"; then
13280 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13281 CC="$orig_target_cc"
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13284 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13285 CFLAGS=-Wunused-but-set-variable
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13290 main ()
13294 return 0;
13296 _ACEOF
13297 if ac_fn_c_try_compile "$LINENO"; then :
13298 aros_unused_but_set_variable="yes"
13299 else
13300 aros_unused_but_set_variable="no"
13302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13304 $as_echo "$aros_unused_but_set_variable" >&6; }
13305 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13306 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13310 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13311 CFLAGS=-Warray-bounds
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13316 main ()
13320 return 0;
13322 _ACEOF
13323 if ac_fn_c_try_compile "$LINENO"; then :
13324 aros_array_bounds="yes"
13325 else
13326 aros_array_bounds="no"
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13330 $as_echo "$aros_array_bounds" >&6; }
13331 if test "x-$aros_array_bounds" = "x-yes" ; then
13332 aros_cflags_array_bounds=-Wno-array-bounds
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13336 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13337 CFLAGS=-Wenum-compare
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13342 main ()
13346 return 0;
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350 aros_enum_compare="yes"
13351 else
13352 aros_enum_compare="no"
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13356 $as_echo "$aros_enum_compare" >&6; }
13357 if test "x-$aros_enum_compare" = "x-yes" ; then
13358 aros_cflags_enum_compare=-Wno-enum-compare
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13362 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13363 CFLAGS=-Wstrict-overflow
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13368 main ()
13372 return 0;
13374 _ACEOF
13375 if ac_fn_c_try_compile "$LINENO"; then :
13376 aros_strict_overflow="yes"
13377 else
13378 aros_strict_overflow="no"
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13382 $as_echo "$aros_strict_overflow" >&6; }
13383 if test "x-$aros_strict_overflow" = "x-yes" ; then
13384 aros_cflags_strict_overflow=-Wno-strict-overflow
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13388 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13389 CFLAGS=-Wformat-security
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13394 main ()
13398 return 0;
13400 _ACEOF
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402 aros_format_security="yes"
13403 else
13404 aros_format_security="no"
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13408 $as_echo "$aros_format_security" >&6; }
13409 if test "x-$aros_format_security" = "x-yes" ; then
13410 aros_cflags_format_security=-Wno-format-security
13412 else
13413 # We do not know which gcc version we are going to build and what we need to know
13414 # here is different for different versions so this will be set later during the
13415 # build of crosstools.
13416 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13417 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13418 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13419 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13420 aros_cflags_format_security=@aros_cflags_format_security@
13423 #-----------------------------------------------------------------------------
13425 # Check if we can explicitly choose older version of symbol hashing
13427 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13428 CC="$aros_kernel_cc"
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13430 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13435 main ()
13439 return 0;
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"; then :
13443 use_hash_style="yes"
13444 else
13445 use_hash_style="no"
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13450 $as_echo "$use_hash_style" >&6; }
13451 if test "x-$use_hash_style" = "x-yes" ; then
13452 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13454 CC="$save_cc"
13455 CFLAGS="$save_cflags"
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13466 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13468 # Check whether --with-resolution was given.
13469 if test "${with_resolution+set}" = set; then :
13470 withval=$with_resolution; resolution=$withval
13471 else
13472 resolution=none
13475 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13476 if test "$resolution" = "yes" ; then
13477 resolution="none"
13479 if test "$resolution" = "no" ; then
13480 resolution="none"
13482 if test "$resolution" != "none" ; then
13483 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13484 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13485 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13488 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13489 aros_cv_default_wbwidth=$aros_default_wbwidth
13490 aros_cv_default_wbheight=$aros_default_wbheight
13491 aros_cv_default_wbdepth=$aros_default_wbdepth
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13494 $as_echo_n "checking if serial debug is enabled... " >&6; }
13496 # Check whether --with-serial-debug was given.
13497 if test "${with_serial_debug+set}" = set; then :
13498 withval=$with_serial_debug; serial_debug=$withval
13499 else
13500 serial_debug=none
13503 if test "$aros_serial_debug" = 0 ; then
13504 serial_debug_forced=""
13505 if test "$serial_debug" = "yes" ; then
13506 serial_debug="1"
13508 if test "$serial_debug" = "no" ; then
13509 serial_debug="none"
13511 else
13512 serial_debug_forced="(forced)"
13513 serial_debug=$aros_serial_debug
13515 if test "$serial_debug" != "none" ; then
13516 aros_serial_debug=$serial_debug
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13518 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13525 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13526 # Check whether --enable-palm_debug_hack was given.
13527 if test "${enable_palm_debug_hack+set}" = set; then :
13528 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13529 else
13530 palm_debug_hack="no"
13533 if test "$palm_debug_hack" = "yes" ; then
13534 aros_palm_debug_hack="1"
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13537 $as_echo "$palm_debug_hack" >&6; }
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13540 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13541 # Check whether --enable-usb30_code was given.
13542 if test "${enable_usb30_code+set}" = set; then :
13543 enableval=$enable_usb30_code; usb30_code="yes"
13544 else
13545 usb30_code="no"
13548 if test "$usb30_code" = "yes" ; then
13549 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13550 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13553 $as_echo "$usb30_code" >&6; }
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13556 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13557 # Check whether --enable-nesting_supervisor was given.
13558 if test "${enable_nesting_supervisor+set}" = set; then :
13559 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13560 else
13561 nesting_supervisor="no"
13564 if test "$nesting_supervisor" = "yes" ; then
13565 aros_nesting_supervisor="1"
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13568 $as_echo "$nesting_supervisor" >&6; }
13570 if test "$aros_enable_mmu" = "" ; then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13572 $as_echo_n "checking if MMU support is enabled... " >&6; }
13573 # Check whether --enable-mmu was given.
13574 if test "${enable_mmu+set}" = set; then :
13575 enableval=$enable_mmu; aros_enable_mmu=$enableval
13576 else
13577 aros_enable_mmu="yes"
13580 if test "$aros_enable_mmu" = "" ; then
13581 aros_enable_mmu="yes"
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13584 $as_echo "$aros_enable_mmu" >&6; }
13586 if test "$aros_enable_mmu" = "no" ; then
13587 aros_enable_mmu="0"
13588 else
13589 aros_enable_mmu="1"
13593 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13595 if test "x-$need_dlopen" != "x-no" ; then
13596 save_libs="$LIBS"
13597 LIBS=""
13598 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13599 if test "x$ac_cv_func_dlopen" = xyes; then :
13600 have_dl="yes"
13601 else
13602 have_dl="no"
13605 if test "x-$have_dl" = "x-no" ; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13608 if ${ac_cv_lib_dl_dlopen+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-ldl $LIBS"
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char dlopen ();
13624 main ()
13626 return dlopen ();
13628 return 0;
13630 _ACEOF
13631 if ac_fn_c_try_link "$LINENO"; then :
13632 ac_cv_lib_dl_dlopen=yes
13633 else
13634 ac_cv_lib_dl_dlopen=no
13636 rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13641 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13642 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13643 have_dl="yes"
13644 aros_host_ldflags="$aros_host_ldflags -ldl"
13645 else
13646 have_dl="no"
13650 if test "x-$have_dl" = "x-no" ; then
13651 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13653 LIBS="$save_libs"
13657 # Check whether --enable-x11_hidd was given.
13658 if test "${enable_x11_hidd+set}" = set; then :
13659 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13660 else
13661 x11_hidd="$need_x11"
13664 case "x-$x11_hidd" in
13665 x-yes|x-no|x-auto) ;;
13666 *) x11_hidd="$need_x11" ;;
13667 esac
13669 ENABLE_X11=0
13671 if test "x-$x11_hidd" != "x-no" ; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13674 $as_echo_n "checking for X... " >&6; }
13677 # Check whether --with-x was given.
13678 if test "${with_x+set}" = set; then :
13679 withval=$with_x;
13682 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13683 if test "x$with_x" = xno; then
13684 # The user explicitly disabled X.
13685 have_x=disabled
13686 else
13687 case $x_includes,$x_libraries in #(
13688 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13689 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 # One or both of the vars are not set, and there is no cached value.
13693 ac_x_includes=no ac_x_libraries=no
13694 rm -f -r conftest.dir
13695 if mkdir conftest.dir; then
13696 cd conftest.dir
13697 cat >Imakefile <<'_ACEOF'
13698 incroot:
13699 @echo incroot='${INCROOT}'
13700 usrlibdir:
13701 @echo usrlibdir='${USRLIBDIR}'
13702 libdir:
13703 @echo libdir='${LIBDIR}'
13704 _ACEOF
13705 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13706 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13707 for ac_var in incroot usrlibdir libdir; do
13708 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13709 done
13710 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13711 for ac_extension in a so sl dylib la dll; do
13712 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13713 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13714 ac_im_usrlibdir=$ac_im_libdir; break
13716 done
13717 # Screen out bogus values from the imake configuration. They are
13718 # bogus both because they are the default anyway, and because
13719 # using them would break gcc on systems where it needs fixed includes.
13720 case $ac_im_incroot in
13721 /usr/include) ac_x_includes= ;;
13722 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13723 esac
13724 case $ac_im_usrlibdir in
13725 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13726 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13727 esac
13729 cd ..
13730 rm -f -r conftest.dir
13733 # Standard set of common directories for X headers.
13734 # Check X11 before X11Rn because it is often a symlink to the current release.
13735 ac_x_header_dirs='
13736 /usr/X11/include
13737 /usr/X11R7/include
13738 /usr/X11R6/include
13739 /usr/X11R5/include
13740 /usr/X11R4/include
13742 /usr/include/X11
13743 /usr/include/X11R7
13744 /usr/include/X11R6
13745 /usr/include/X11R5
13746 /usr/include/X11R4
13748 /usr/local/X11/include
13749 /usr/local/X11R7/include
13750 /usr/local/X11R6/include
13751 /usr/local/X11R5/include
13752 /usr/local/X11R4/include
13754 /usr/local/include/X11
13755 /usr/local/include/X11R7
13756 /usr/local/include/X11R6
13757 /usr/local/include/X11R5
13758 /usr/local/include/X11R4
13760 /usr/X386/include
13761 /usr/x386/include
13762 /usr/XFree86/include/X11
13764 /usr/include
13765 /usr/local/include
13766 /usr/unsupported/include
13767 /usr/athena/include
13768 /usr/local/x11r5/include
13769 /usr/lpp/Xamples/include
13771 /usr/openwin/include
13772 /usr/openwin/share/include'
13774 if test "$ac_x_includes" = no; then
13775 # Guess where to find include files, by looking for Xlib.h.
13776 # First, try using that file with no special directory specified.
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 #include <X11/Xlib.h>
13780 _ACEOF
13781 if ac_fn_c_try_cpp "$LINENO"; then :
13782 # We can compile using X headers with no special include directory.
13783 ac_x_includes=
13784 else
13785 for ac_dir in $ac_x_header_dirs; do
13786 if test -r "$ac_dir/X11/Xlib.h"; then
13787 ac_x_includes=$ac_dir
13788 break
13790 done
13792 rm -f conftest.err conftest.i conftest.$ac_ext
13793 fi # $ac_x_includes = no
13795 if test "$ac_x_libraries" = no; then
13796 # Check for the libraries.
13797 # See if we find them without any special options.
13798 # Don't add to $LIBS permanently.
13799 ac_save_LIBS=$LIBS
13800 LIBS="-lX11 $LIBS"
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 #include <X11/Xlib.h>
13805 main ()
13807 XrmInitialize ()
13809 return 0;
13811 _ACEOF
13812 if ac_fn_c_try_link "$LINENO"; then :
13813 LIBS=$ac_save_LIBS
13814 # We can link X programs with no special library path.
13815 ac_x_libraries=
13816 else
13817 LIBS=$ac_save_LIBS
13818 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13820 # Don't even attempt the hair of trying to link an X program!
13821 for ac_extension in a so sl dylib la dll; do
13822 if test -r "$ac_dir/libX11.$ac_extension"; then
13823 ac_x_libraries=$ac_dir
13824 break 2
13826 done
13827 done
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831 fi # $ac_x_libraries = no
13833 case $ac_x_includes,$ac_x_libraries in #(
13834 no,* | *,no | *\'*)
13835 # Didn't find X, or a directory has "'" in its name.
13836 ac_cv_have_x="have_x=no";; #(
13838 # Record where we found X for the cache.
13839 ac_cv_have_x="have_x=yes\
13840 ac_x_includes='$ac_x_includes'\
13841 ac_x_libraries='$ac_x_libraries'"
13842 esac
13844 ;; #(
13845 *) have_x=yes;;
13846 esac
13847 eval "$ac_cv_have_x"
13848 fi # $with_x != no
13850 if test "$have_x" != yes; then
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13852 $as_echo "$have_x" >&6; }
13853 no_x=yes
13854 else
13855 # If each of the values was on the command line, it overrides each guess.
13856 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13857 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13858 # Update the cache value to reflect the command line values.
13859 ac_cv_have_x="have_x=yes\
13860 ac_x_includes='$x_includes'\
13861 ac_x_libraries='$x_libraries'"
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13863 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13867 x_cflags=
13868 for path in $x_libraries
13870 x_cflags="$x_cflags -L$path"
13871 done
13873 for path in $x_includes
13875 x_cflags="$x_cflags -I$path"
13876 done
13878 if test "x-$no_x" = "x-yes" ; then
13880 if test "x-$x11_hidd" != "x-auto" ; then
13881 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13884 else
13885 unixgfx_hidd_target=kernel-x11gfx
13886 ENABLE_X11=1
13888 # Check whether --enable-x11_shm was given.
13889 if test "${enable_x11_shm+set}" = set; then :
13890 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13891 else
13892 x11_hidd_shm="auto"
13895 case "x-$x11_hidd_shm" in
13896 x-yes|x-no|x-auto) ;;
13897 *) x11_hidd_shm="auto" ;;
13898 esac
13900 have_xshm=no
13902 if test "x-$x11_hidd_shm" != "x-no" ; then
13904 for ac_header in sys/ipc.h
13905 do :
13906 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13907 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13908 cat >>confdefs.h <<_ACEOF
13909 #define HAVE_SYS_IPC_H 1
13910 _ACEOF
13914 done
13916 for ac_header in sys/shm.h
13917 do :
13918 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13919 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13920 cat >>confdefs.h <<_ACEOF
13921 #define HAVE_SYS_SHM_H 1
13922 _ACEOF
13926 done
13929 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13931 save_cflags="$CFLAGS"
13932 CFLAGS="$CFLAGS $x_cflags"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13934 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13935 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 ac_check_lib_save_LIBS=$LIBS
13939 LIBS="-lXext $LIBS"
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13943 /* Override any GCC internal prototype to avoid an error.
13944 Use char because int might match the return type of a GCC
13945 builtin and then its argument prototype would still apply. */
13946 #ifdef __cplusplus
13947 extern "C"
13948 #endif
13949 char XShmQueryExtension ();
13951 main ()
13953 return XShmQueryExtension ();
13955 return 0;
13957 _ACEOF
13958 if ac_fn_c_try_link "$LINENO"; then :
13959 ac_cv_lib_Xext_XShmQueryExtension=yes
13960 else
13961 ac_cv_lib_Xext_XShmQueryExtension=no
13963 rm -f core conftest.err conftest.$ac_objext \
13964 conftest$ac_exeext conftest.$ac_ext
13965 LIBS=$ac_check_lib_save_LIBS
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13968 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13969 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13970 have_xshm=yes
13973 CFLAGS="$save_cflags"
13977 if test "x-$have_xshm" = "x-yes" ; then
13978 DO_XSHM_SUPPORT="1"
13979 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13980 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13981 else
13982 DO_XSHM_SUPPORT="0"
13986 # Check whether --enable-x11_vidmode was given.
13987 if test "${enable_x11_vidmode+set}" = set; then :
13988 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13989 else
13990 x11_hidd_vidmode="auto"
13993 case "x-$x11_hidd_vidmode" in
13994 x-yes|x-no|x-auto) ;;
13995 *) x11_hidd_vidmode="auto" ;;
13996 esac
13998 have_vidmode=no
14000 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14002 save_cflags="$CFLAGS"
14003 CFLAGS="$CFLAGS $x_cflags"
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14005 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14006 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 ac_check_lib_save_LIBS=$LIBS
14010 LIBS="-lXxf86vm $LIBS"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply. */
14017 #ifdef __cplusplus
14018 extern "C"
14019 #endif
14020 char XF86VidModeQueryExtension ();
14022 main ()
14024 return XF86VidModeQueryExtension ();
14026 return 0;
14028 _ACEOF
14029 if ac_fn_c_try_link "$LINENO"; then :
14030 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14031 else
14032 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14034 rm -f core conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14036 LIBS=$ac_check_lib_save_LIBS
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14039 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14040 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14041 have_vidmode=yes
14044 CFLAGS="$save_cflags"
14047 if test "x-$have_vidmode" = "x-yes" ; then
14048 DO_VIDMODE_SUPPORT="1"
14049 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14050 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14051 else
14052 DO_VIDMODE_SUPPORT="0"
14056 aros_host_x11_includes=$x_includes
14057 aros_host_x11_libdirs=$x_libraries
14061 # Check whether --enable-sdl_hidd was given.
14062 if test "${enable_sdl_hidd+set}" = set; then :
14063 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14064 else
14065 sdl_hidd="auto"
14068 case "x-$sdl_hidd" in
14069 x-yes|x-no|x-auto) ;;
14070 *) sdl_hidd="auto" ;;
14071 esac
14073 if test "x-$sdl_hidd" != "x-no" ; then
14076 # Check whether --with-sdl-prefix was given.
14077 if test "${with_sdl_prefix+set}" = set; then :
14078 withval=$with_sdl_prefix; sdl_prefix="$withval"
14079 else
14080 sdl_prefix=""
14084 # Check whether --with-sdl-exec-prefix was given.
14085 if test "${with_sdl_exec_prefix+set}" = set; then :
14086 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14087 else
14088 sdl_exec_prefix=""
14091 # Check whether --enable-sdltest was given.
14092 if test "${enable_sdltest+set}" = set; then :
14093 enableval=$enable_sdltest;
14094 else
14095 enable_sdltest=yes
14099 if test x$sdl_exec_prefix != x ; then
14100 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14101 if test x${SDL_CONFIG+set} != xset ; then
14102 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14105 if test x$sdl_prefix != x ; then
14106 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14107 if test x${SDL_CONFIG+set} != xset ; then
14108 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14112 as_save_PATH="$PATH"
14113 if test "x$prefix" != xNONE; then
14114 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14116 # Extract the first word of "sdl-config", so it can be a program name with args.
14117 set dummy sdl-config; ac_word=$2
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14119 $as_echo_n "checking for $ac_word... " >&6; }
14120 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 case $SDL_CONFIG in
14124 [\\/]* | ?:[\\/]*)
14125 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129 for as_dir in $PATH
14131 IFS=$as_save_IFS
14132 test -z "$as_dir" && as_dir=.
14133 for ac_exec_ext in '' $ac_executable_extensions; do
14134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14135 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14137 break 2
14139 done
14140 done
14141 IFS=$as_save_IFS
14143 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14145 esac
14147 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14148 if test -n "$SDL_CONFIG"; then
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14150 $as_echo "$SDL_CONFIG" >&6; }
14151 else
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153 $as_echo "no" >&6; }
14157 PATH="$as_save_PATH"
14158 min_sdl_version=1.2.10
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14160 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14161 no_sdl=""
14162 if test "$SDL_CONFIG" = "no" ; then
14163 no_sdl=yes
14164 else
14165 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14166 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14168 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14169 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14170 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14171 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14172 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14173 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14174 if test "x$enable_sdltest" = "xyes" ; then
14175 ac_save_CFLAGS="$CFLAGS"
14176 ac_save_CXXFLAGS="$CXXFLAGS"
14177 ac_save_LIBS="$LIBS"
14178 CFLAGS="$CFLAGS $SDL_CFLAGS"
14179 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14180 LIBS="$LIBS $SDL_LIBS"
14181 rm -f conf.sdltest
14182 if test "$cross_compiling" = yes; then :
14183 echo $ac_n "cross compiling; assumed OK... $ac_c"
14184 else
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14188 #include <stdio.h>
14189 #include <stdlib.h>
14190 #include <string.h>
14191 #include "SDL.h"
14193 char*
14194 my_strdup (char *str)
14196 char *new_str;
14198 if (str)
14200 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14201 strcpy (new_str, str);
14203 else
14204 new_str = NULL;
14206 return new_str;
14209 int main (int argc, char *argv[])
14211 int major, minor, micro;
14212 char *tmp_version;
14214 /* This hangs on some systems (?)
14215 system ("touch conf.sdltest");
14217 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14219 /* HP/UX 9 (%@#!) writes to sscanf strings */
14220 tmp_version = my_strdup("$min_sdl_version");
14221 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14222 printf("%s, bad version string\n", "$min_sdl_version");
14223 exit(1);
14226 if (($sdl_major_version > major) ||
14227 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14228 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14230 return 0;
14232 else
14234 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14235 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14236 printf("*** best to upgrade to the required version.\n");
14237 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14238 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14239 printf("*** config.cache before re-running configure\n");
14240 return 1;
14245 _ACEOF
14246 if ac_fn_c_try_run "$LINENO"; then :
14248 else
14249 no_sdl=yes
14251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14252 conftest.$ac_objext conftest.beam conftest.$ac_ext
14255 CFLAGS="$ac_save_CFLAGS"
14256 CXXFLAGS="$ac_save_CXXFLAGS"
14257 LIBS="$ac_save_LIBS"
14260 if test "x$no_sdl" = x ; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14262 $as_echo "yes" >&6; }
14263 have_sdl="yes"
14264 else
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14267 if test "$SDL_CONFIG" = "no" ; then
14268 echo "*** The sdl-config script installed by SDL could not be found"
14269 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14270 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14271 echo "*** full path to sdl-config."
14272 else
14273 if test -f conf.sdltest ; then
14275 else
14276 echo "*** Could not run SDL test program, checking why..."
14277 CFLAGS="$CFLAGS $SDL_CFLAGS"
14278 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14279 LIBS="$LIBS $SDL_LIBS"
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14283 #include <stdio.h>
14284 #include "SDL.h"
14286 int main(int argc, char *argv[])
14287 { return 0; }
14288 #undef main
14289 #define main K_and_R_C_main
14292 main ()
14294 return 0;
14296 return 0;
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"; then :
14300 echo "*** The test program compiled, but did not run. This usually means"
14301 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14302 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14303 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14304 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14305 echo "*** is required on your system"
14306 echo "***"
14307 echo "*** If you have an old version installed, it is best to remove it, although"
14308 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14309 else
14310 echo "*** The test program failed to compile or link. See the file config.log for the"
14311 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14312 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14313 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14315 rm -f core conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 CFLAGS="$ac_save_CFLAGS"
14318 CXXFLAGS="$ac_save_CXXFLAGS"
14319 LIBS="$ac_save_LIBS"
14322 SDL_CFLAGS=""
14323 SDL_LIBS=""
14324 have_sdl="no"
14328 rm -f conf.sdltest
14331 if test "x-$have_sdl" != "x-yes" ; then
14333 if test "x-$sdl_hidd" != "x-auto" ; then
14334 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14337 else
14338 sdl_hidd_target=kernel-hidd-sdl
14339 aros_host_sdl_cflags=SDL_CFLAGS
14340 aros_host_sdl_libs=SDL_LIBS
14344 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14345 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14350 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14351 oss_library_target=workbench-libs-oss-unix
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14357 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14358 # Check whether --enable-dbus was given.
14359 if test "${enable_dbus+set}" = set; then :
14360 enableval=$enable_dbus; dbus="yes"
14361 else
14362 dbus="no"
14365 if test "$dbus" = "yes" ; then
14366 ENABLE_DBUS=1
14367 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14368 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14369 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14370 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14371 else
14372 ENABLE_DBUS=0
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14375 $as_echo "$dbus" >&6; }
14377 if test "$use_kernel_cc_wrapper" = "yes" ; then
14378 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14381 if test "${crosstools}" != "yes" ; then
14382 aros_target_toolchain=no
14383 else
14384 aros_target_toolchain=yes
14388 # Generic
14400 # Compatability with other Amiga-like operation systems
14403 # Host related
14431 # Target Related
14496 # Delinting target compiler flags
14503 # Graphics Related
14520 # Native version related
14523 # Palm native version related
14526 # Unix/Hosted version related
14529 # MMU related
14532 # Apple iOS related
14537 # ARM default GCC target related
14543 # Android related
14548 # DBUS related
14555 #X11 related
14558 # Debug related
14564 # Collect-aros stuff: "-ius" to ignore undefined symbols
14567 # C compiler related
14571 #ObjC compiler related
14574 # USB3.0 code
14577 case "$aros_flavour" in
14578 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14579 aros_flavour="emulation" ;;
14580 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14581 aros_flavour="emulation" ;;
14582 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14583 aros_flavour="standalone";;
14584 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14585 aros_flavour="standalone";;
14586 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14587 aros_flavour="native" ;;
14588 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14589 aros_flavour="native" ;;
14590 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14591 aros_flavour="linklib" ;;
14592 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14593 aros_flavour="palmnative" ;;
14594 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14595 aros_flavour="mac68knative" ;;
14596 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14597 aros_flavour="ppcnative" ;;
14598 esac
14600 if test ! -d ${aros_inc_dir} ; then
14601 ${MKDIR} ${aros_inc_dir}
14603 if test ! -d ${aros_geninc_dir} ; then
14604 ${MKDIR} ${aros_geninc_dir}
14606 if test ! -d ${aros_hostcfg_dir} ; then
14607 ${MKDIR} ${aros_hostcfg_dir}
14609 if test ! -d ${aros_targetcfg_dir} ; then
14610 ${MKDIR} ${aros_targetcfg_dir}
14612 if test ! -d ${aros_tools_dir} ; then
14613 ${MKDIR} ${aros_tools_dir}
14615 if test ! -d ${aros_scripts_dir} ; then
14616 ${MKDIR} ${aros_scripts_dir}
14619 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14622 ac_config_commands="$ac_config_commands compiler_executable"
14624 ac_config_commands="$ac_config_commands genmf_executable"
14627 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14630 cat >confcache <<\_ACEOF
14631 # This file is a shell script that caches the results of configure
14632 # tests run on this system so they can be shared between configure
14633 # scripts and configure runs, see configure's option --config-cache.
14634 # It is not useful on other systems. If it contains results you don't
14635 # want to keep, you may remove or edit it.
14637 # config.status only pays attention to the cache file if you give it
14638 # the --recheck option to rerun configure.
14640 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14641 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14642 # following values.
14644 _ACEOF
14646 # The following way of writing the cache mishandles newlines in values,
14647 # but we know of no workaround that is simple, portable, and efficient.
14648 # So, we kill variables containing newlines.
14649 # Ultrix sh set writes to stderr and can't be redirected directly,
14650 # and sets the high bit in the cache file unless we assign to the vars.
14652 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14653 eval ac_val=\$$ac_var
14654 case $ac_val in #(
14655 *${as_nl}*)
14656 case $ac_var in #(
14657 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14658 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14659 esac
14660 case $ac_var in #(
14661 _ | IFS | as_nl) ;; #(
14662 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14663 *) { eval $ac_var=; unset $ac_var;} ;;
14664 esac ;;
14665 esac
14666 done
14668 (set) 2>&1 |
14669 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14670 *${as_nl}ac_space=\ *)
14671 # `set' does not quote correctly, so add quotes: double-quote
14672 # substitution turns \\\\ into \\, and sed turns \\ into \.
14673 sed -n \
14674 "s/'/'\\\\''/g;
14675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14676 ;; #(
14678 # `set' quotes correctly as required by POSIX, so do not add quotes.
14679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14681 esac |
14682 sort
14684 sed '
14685 /^ac_cv_env_/b end
14686 t clear
14687 :clear
14688 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14689 t end
14690 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14691 :end' >>confcache
14692 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14693 if test -w "$cache_file"; then
14694 if test "x$cache_file" != "x/dev/null"; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14696 $as_echo "$as_me: updating cache $cache_file" >&6;}
14697 if test ! -f "$cache_file" || test -h "$cache_file"; then
14698 cat confcache >"$cache_file"
14699 else
14700 case $cache_file in #(
14701 */* | ?:*)
14702 mv -f confcache "$cache_file"$$ &&
14703 mv -f "$cache_file"$$ "$cache_file" ;; #(
14705 mv -f confcache "$cache_file" ;;
14706 esac
14709 else
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14714 rm -f confcache
14716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14717 # Let make expand exec_prefix.
14718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14720 DEFS=-DHAVE_CONFIG_H
14722 ac_libobjs=
14723 ac_ltlibobjs=
14725 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14726 # 1. Remove the extension, and $U if already installed.
14727 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14728 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14729 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14730 # will be set to the directory where LIBOBJS objects are built.
14731 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14732 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14733 done
14734 LIBOBJS=$ac_libobjs
14736 LTLIBOBJS=$ac_ltlibobjs
14740 : "${CONFIG_STATUS=./config.status}"
14741 ac_write_fail=0
14742 ac_clean_files_save=$ac_clean_files
14743 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14745 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14746 as_write_fail=0
14747 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14748 #! $SHELL
14749 # Generated by $as_me.
14750 # Run this file to recreate the current configuration.
14751 # Compiler output produced by configure, useful for debugging
14752 # configure, is in config.log if it exists.
14754 debug=false
14755 ac_cs_recheck=false
14756 ac_cs_silent=false
14758 SHELL=\${CONFIG_SHELL-$SHELL}
14759 export SHELL
14760 _ASEOF
14761 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14762 ## -------------------- ##
14763 ## M4sh Initialization. ##
14764 ## -------------------- ##
14766 # Be more Bourne compatible
14767 DUALCASE=1; export DUALCASE # for MKS sh
14768 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14769 emulate sh
14770 NULLCMD=:
14771 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14772 # is contrary to our usage. Disable this feature.
14773 alias -g '${1+"$@"}'='"$@"'
14774 setopt NO_GLOB_SUBST
14775 else
14776 case `(set -o) 2>/dev/null` in #(
14777 *posix*) :
14778 set -o posix ;; #(
14779 *) :
14781 esac
14785 as_nl='
14787 export as_nl
14788 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14789 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14790 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14791 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14792 # Prefer a ksh shell builtin over an external printf program on Solaris,
14793 # but without wasting forks for bash or zsh.
14794 if test -z "$BASH_VERSION$ZSH_VERSION" \
14795 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14796 as_echo='print -r --'
14797 as_echo_n='print -rn --'
14798 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14799 as_echo='printf %s\n'
14800 as_echo_n='printf %s'
14801 else
14802 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14803 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14804 as_echo_n='/usr/ucb/echo -n'
14805 else
14806 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14807 as_echo_n_body='eval
14808 arg=$1;
14809 case $arg in #(
14810 *"$as_nl"*)
14811 expr "X$arg" : "X\\(.*\\)$as_nl";
14812 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14813 esac;
14814 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14816 export as_echo_n_body
14817 as_echo_n='sh -c $as_echo_n_body as_echo'
14819 export as_echo_body
14820 as_echo='sh -c $as_echo_body as_echo'
14823 # The user is always right.
14824 if test "${PATH_SEPARATOR+set}" != set; then
14825 PATH_SEPARATOR=:
14826 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14827 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14828 PATH_SEPARATOR=';'
14833 # IFS
14834 # We need space, tab and new line, in precisely that order. Quoting is
14835 # there to prevent editors from complaining about space-tab.
14836 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14837 # splitting by setting IFS to empty value.)
14838 IFS=" "" $as_nl"
14840 # Find who we are. Look in the path if we contain no directory separator.
14841 as_myself=
14842 case $0 in #((
14843 *[\\/]* ) as_myself=$0 ;;
14844 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14847 IFS=$as_save_IFS
14848 test -z "$as_dir" && as_dir=.
14849 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14850 done
14851 IFS=$as_save_IFS
14854 esac
14855 # We did not find ourselves, most probably we were run as `sh COMMAND'
14856 # in which case we are not to be found in the path.
14857 if test "x$as_myself" = x; then
14858 as_myself=$0
14860 if test ! -f "$as_myself"; then
14861 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14862 exit 1
14865 # Unset variables that we do not need and which cause bugs (e.g. in
14866 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14867 # suppresses any "Segmentation fault" message there. '((' could
14868 # trigger a bug in pdksh 5.2.14.
14869 for as_var in BASH_ENV ENV MAIL MAILPATH
14870 do eval test x\${$as_var+set} = xset \
14871 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14872 done
14873 PS1='$ '
14874 PS2='> '
14875 PS4='+ '
14877 # NLS nuisances.
14878 LC_ALL=C
14879 export LC_ALL
14880 LANGUAGE=C
14881 export LANGUAGE
14883 # CDPATH.
14884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14887 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14888 # ----------------------------------------
14889 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14890 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14891 # script with STATUS, using 1 if that was 0.
14892 as_fn_error ()
14894 as_status=$1; test $as_status -eq 0 && as_status=1
14895 if test "$4"; then
14896 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14897 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14899 $as_echo "$as_me: error: $2" >&2
14900 as_fn_exit $as_status
14901 } # as_fn_error
14904 # as_fn_set_status STATUS
14905 # -----------------------
14906 # Set $? to STATUS, without forking.
14907 as_fn_set_status ()
14909 return $1
14910 } # as_fn_set_status
14912 # as_fn_exit STATUS
14913 # -----------------
14914 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14915 as_fn_exit ()
14917 set +e
14918 as_fn_set_status $1
14919 exit $1
14920 } # as_fn_exit
14922 # as_fn_unset VAR
14923 # ---------------
14924 # Portably unset VAR.
14925 as_fn_unset ()
14927 { eval $1=; unset $1;}
14929 as_unset=as_fn_unset
14930 # as_fn_append VAR VALUE
14931 # ----------------------
14932 # Append the text in VALUE to the end of the definition contained in VAR. Take
14933 # advantage of any shell optimizations that allow amortized linear growth over
14934 # repeated appends, instead of the typical quadratic growth present in naive
14935 # implementations.
14936 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14937 eval 'as_fn_append ()
14939 eval $1+=\$2
14941 else
14942 as_fn_append ()
14944 eval $1=\$$1\$2
14946 fi # as_fn_append
14948 # as_fn_arith ARG...
14949 # ------------------
14950 # Perform arithmetic evaluation on the ARGs, and store the result in the
14951 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14952 # must be portable across $(()) and expr.
14953 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14954 eval 'as_fn_arith ()
14956 as_val=$(( $* ))
14958 else
14959 as_fn_arith ()
14961 as_val=`expr "$@" || test $? -eq 1`
14963 fi # as_fn_arith
14966 if expr a : '\(a\)' >/dev/null 2>&1 &&
14967 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14968 as_expr=expr
14969 else
14970 as_expr=false
14973 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14974 as_basename=basename
14975 else
14976 as_basename=false
14979 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14980 as_dirname=dirname
14981 else
14982 as_dirname=false
14985 as_me=`$as_basename -- "$0" ||
14986 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14987 X"$0" : 'X\(//\)$' \| \
14988 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14989 $as_echo X/"$0" |
14990 sed '/^.*\/\([^/][^/]*\)\/*$/{
14991 s//\1/
14994 /^X\/\(\/\/\)$/{
14995 s//\1/
14998 /^X\/\(\/\).*/{
14999 s//\1/
15002 s/.*/./; q'`
15004 # Avoid depending upon Character Ranges.
15005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15008 as_cr_digits='0123456789'
15009 as_cr_alnum=$as_cr_Letters$as_cr_digits
15011 ECHO_C= ECHO_N= ECHO_T=
15012 case `echo -n x` in #(((((
15013 -n*)
15014 case `echo 'xy\c'` in
15015 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15016 xy) ECHO_C='\c';;
15017 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15018 ECHO_T=' ';;
15019 esac;;
15021 ECHO_N='-n';;
15022 esac
15024 rm -f conf$$ conf$$.exe conf$$.file
15025 if test -d conf$$.dir; then
15026 rm -f conf$$.dir/conf$$.file
15027 else
15028 rm -f conf$$.dir
15029 mkdir conf$$.dir 2>/dev/null
15031 if (echo >conf$$.file) 2>/dev/null; then
15032 if ln -s conf$$.file conf$$ 2>/dev/null; then
15033 as_ln_s='ln -s'
15034 # ... but there are two gotchas:
15035 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15036 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15037 # In both cases, we have to default to `cp -pR'.
15038 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15039 as_ln_s='cp -pR'
15040 elif ln conf$$.file conf$$ 2>/dev/null; then
15041 as_ln_s=ln
15042 else
15043 as_ln_s='cp -pR'
15045 else
15046 as_ln_s='cp -pR'
15048 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15049 rmdir conf$$.dir 2>/dev/null
15052 # as_fn_mkdir_p
15053 # -------------
15054 # Create "$as_dir" as a directory, including parents if necessary.
15055 as_fn_mkdir_p ()
15058 case $as_dir in #(
15059 -*) as_dir=./$as_dir;;
15060 esac
15061 test -d "$as_dir" || eval $as_mkdir_p || {
15062 as_dirs=
15063 while :; do
15064 case $as_dir in #(
15065 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15066 *) as_qdir=$as_dir;;
15067 esac
15068 as_dirs="'$as_qdir' $as_dirs"
15069 as_dir=`$as_dirname -- "$as_dir" ||
15070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15071 X"$as_dir" : 'X\(//\)[^/]' \| \
15072 X"$as_dir" : 'X\(//\)$' \| \
15073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15074 $as_echo X"$as_dir" |
15075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15076 s//\1/
15079 /^X\(\/\/\)[^/].*/{
15080 s//\1/
15083 /^X\(\/\/\)$/{
15084 s//\1/
15087 /^X\(\/\).*/{
15088 s//\1/
15091 s/.*/./; q'`
15092 test -d "$as_dir" && break
15093 done
15094 test -z "$as_dirs" || eval "mkdir $as_dirs"
15095 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15098 } # as_fn_mkdir_p
15099 if mkdir -p . 2>/dev/null; then
15100 as_mkdir_p='mkdir -p "$as_dir"'
15101 else
15102 test -d ./-p && rmdir ./-p
15103 as_mkdir_p=false
15107 # as_fn_executable_p FILE
15108 # -----------------------
15109 # Test if FILE is an executable regular file.
15110 as_fn_executable_p ()
15112 test -f "$1" && test -x "$1"
15113 } # as_fn_executable_p
15114 as_test_x='test -x'
15115 as_executable_p=as_fn_executable_p
15117 # Sed expression to map a string onto a valid CPP name.
15118 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15120 # Sed expression to map a string onto a valid variable name.
15121 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15124 exec 6>&1
15125 ## ----------------------------------- ##
15126 ## Main body of $CONFIG_STATUS script. ##
15127 ## ----------------------------------- ##
15128 _ASEOF
15129 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15132 # Save the log message, to keep $0 and so on meaningful, and to
15133 # report actual input values of CONFIG_FILES etc. instead of their
15134 # values after options handling.
15135 ac_log="
15136 This file was extended by $as_me, which was
15137 generated by GNU Autoconf 2.69. Invocation command line was
15139 CONFIG_FILES = $CONFIG_FILES
15140 CONFIG_HEADERS = $CONFIG_HEADERS
15141 CONFIG_LINKS = $CONFIG_LINKS
15142 CONFIG_COMMANDS = $CONFIG_COMMANDS
15143 $ $0 $@
15145 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15148 _ACEOF
15150 case $ac_config_files in *"
15151 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15152 esac
15154 case $ac_config_headers in *"
15155 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15156 esac
15159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160 # Files that config.status was made for.
15161 config_files="$ac_config_files"
15162 config_headers="$ac_config_headers"
15163 config_commands="$ac_config_commands"
15165 _ACEOF
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 ac_cs_usage="\
15169 \`$as_me' instantiates files and other configuration actions
15170 from templates according to the current configuration. Unless the files
15171 and actions are specified as TAGs, all are instantiated by default.
15173 Usage: $0 [OPTION]... [TAG]...
15175 -h, --help print this help, then exit
15176 -V, --version print version number and configuration settings, then exit
15177 --config print configuration, then exit
15178 -q, --quiet, --silent
15179 do not print progress messages
15180 -d, --debug don't remove temporary files
15181 --recheck update $as_me by reconfiguring in the same conditions
15182 --file=FILE[:TEMPLATE]
15183 instantiate the configuration file FILE
15184 --header=FILE[:TEMPLATE]
15185 instantiate the configuration header FILE
15187 Configuration files:
15188 $config_files
15190 Configuration headers:
15191 $config_headers
15193 Configuration commands:
15194 $config_commands
15196 Report bugs to the package provider."
15198 _ACEOF
15199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15200 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15201 ac_cs_version="\\
15202 config.status
15203 configured by $0, generated by GNU Autoconf 2.69,
15204 with options \\"\$ac_cs_config\\"
15206 Copyright (C) 2012 Free Software Foundation, Inc.
15207 This config.status script is free software; the Free Software Foundation
15208 gives unlimited permission to copy, distribute and modify it."
15210 ac_pwd='$ac_pwd'
15211 srcdir='$srcdir'
15212 test -n "\$AWK" || AWK=awk
15213 _ACEOF
15215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15216 # The default lists apply if the user does not specify any file.
15217 ac_need_defaults=:
15218 while test $# != 0
15220 case $1 in
15221 --*=?*)
15222 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15223 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15224 ac_shift=:
15226 --*=)
15227 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15228 ac_optarg=
15229 ac_shift=:
15232 ac_option=$1
15233 ac_optarg=$2
15234 ac_shift=shift
15236 esac
15238 case $ac_option in
15239 # Handling of the options.
15240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15241 ac_cs_recheck=: ;;
15242 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15243 $as_echo "$ac_cs_version"; exit ;;
15244 --config | --confi | --conf | --con | --co | --c )
15245 $as_echo "$ac_cs_config"; exit ;;
15246 --debug | --debu | --deb | --de | --d | -d )
15247 debug=: ;;
15248 --file | --fil | --fi | --f )
15249 $ac_shift
15250 case $ac_optarg in
15251 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15252 '') as_fn_error $? "missing file argument" ;;
15253 esac
15254 as_fn_append CONFIG_FILES " '$ac_optarg'"
15255 ac_need_defaults=false;;
15256 --header | --heade | --head | --hea )
15257 $ac_shift
15258 case $ac_optarg in
15259 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15260 esac
15261 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15262 ac_need_defaults=false;;
15263 --he | --h)
15264 # Conflict between --help and --header
15265 as_fn_error $? "ambiguous option: \`$1'
15266 Try \`$0 --help' for more information.";;
15267 --help | --hel | -h )
15268 $as_echo "$ac_cs_usage"; exit ;;
15269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15270 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15271 ac_cs_silent=: ;;
15273 # This is an error.
15274 -*) as_fn_error $? "unrecognized option: \`$1'
15275 Try \`$0 --help' for more information." ;;
15277 *) as_fn_append ac_config_targets " $1"
15278 ac_need_defaults=false ;;
15280 esac
15281 shift
15282 done
15284 ac_configure_extra_args=
15286 if $ac_cs_silent; then
15287 exec 6>/dev/null
15288 ac_configure_extra_args="$ac_configure_extra_args --silent"
15291 _ACEOF
15292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15293 if \$ac_cs_recheck; then
15294 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15295 shift
15296 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15297 CONFIG_SHELL='$SHELL'
15298 export CONFIG_SHELL
15299 exec "\$@"
15302 _ACEOF
15303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304 exec 5>>config.log
15306 echo
15307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15308 ## Running $as_me. ##
15309 _ASBOX
15310 $as_echo "$ac_log"
15311 } >&5
15313 _ACEOF
15314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15316 # INIT-COMMANDS
15319 aros_host_exe_suffix=${aros_host_exe_suffix}
15320 aros_tools_dir=${aros_tools_dir}
15321 aros_target_cpu=${aros_target_cpu}
15322 aros_target_arch=${aros_target_arch}
15323 aros_target_suffix=${aros_target_suffix}
15324 orig_target_nm=${orig_target_nm}
15325 orig_target_as=${orig_target_as}
15326 orig_target_ar=${orig_target_ar}
15327 orig_target_ranlib=${orig_target_ranlib}
15328 orig_target_objdump=${orig_target_objdump}
15329 orig_target_objcopy=${orig_target_objcopy}
15330 orig_target_strip=${orig_target_strip}
15331 aros_kernel_ld=${aros_kernel_ld}
15334 aros_tools_dir=${aros_tools_dir}
15337 _ACEOF
15339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15341 # Handling of arguments.
15342 for ac_config_target in $ac_config_targets
15344 case $ac_config_target in
15345 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15346 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15347 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15348 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15349 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15350 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15351 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15352 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15353 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15354 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15355 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15356 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15357 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15358 "${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" ;;
15359 "${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" ;;
15360 "${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" ;;
15361 "${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" ;;
15362 "${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" ;;
15363 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15364 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15365 "${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" ;;
15367 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15368 esac
15369 done
15372 # If the user did not use the arguments to specify the items to instantiate,
15373 # then the envvar interface is used. Set only those that are not.
15374 # We use the long form for the default assignment because of an extremely
15375 # bizarre bug on SunOS 4.1.3.
15376 if $ac_need_defaults; then
15377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15382 # Have a temporary directory for convenience. Make it in the build tree
15383 # simply because there is no reason against having it here, and in addition,
15384 # creating and moving files from /tmp can sometimes cause problems.
15385 # Hook for its removal unless debugging.
15386 # Note that there is a small window in which the directory will not be cleaned:
15387 # after its creation but before its name has been assigned to `$tmp'.
15388 $debug ||
15390 tmp= ac_tmp=
15391 trap 'exit_status=$?
15392 : "${ac_tmp:=$tmp}"
15393 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15395 trap 'as_fn_exit 1' 1 2 13 15
15397 # Create a (secure) tmp directory for tmp files.
15400 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15401 test -d "$tmp"
15402 } ||
15404 tmp=./conf$$-$RANDOM
15405 (umask 077 && mkdir "$tmp")
15406 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15407 ac_tmp=$tmp
15409 # Set up the scripts for CONFIG_FILES section.
15410 # No need to generate them if there are no CONFIG_FILES.
15411 # This happens for instance with `./config.status config.h'.
15412 if test -n "$CONFIG_FILES"; then
15415 ac_cr=`echo X | tr X '\015'`
15416 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15417 # But we know of no other shell where ac_cr would be empty at this
15418 # point, so we can use a bashism as a fallback.
15419 if test "x$ac_cr" = x; then
15420 eval ac_cr=\$\'\\r\'
15422 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15423 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15424 ac_cs_awk_cr='\\r'
15425 else
15426 ac_cs_awk_cr=$ac_cr
15429 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15430 _ACEOF
15434 echo "cat >conf$$subs.awk <<_ACEOF" &&
15435 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15436 echo "_ACEOF"
15437 } >conf$$subs.sh ||
15438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15439 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15440 ac_delim='%!_!# '
15441 for ac_last_try in false false false false false :; do
15442 . ./conf$$subs.sh ||
15443 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15445 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15446 if test $ac_delim_n = $ac_delim_num; then
15447 break
15448 elif $ac_last_try; then
15449 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15450 else
15451 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15453 done
15454 rm -f conf$$subs.sh
15456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15457 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15458 _ACEOF
15459 sed -n '
15461 s/^/S["/; s/!.*/"]=/
15464 s/^[^!]*!//
15465 :repl
15466 t repl
15467 s/'"$ac_delim"'$//
15468 t delim
15471 s/\(.\{148\}\)..*/\1/
15472 t more1
15473 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15476 b repl
15477 :more1
15478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15481 s/.\{148\}//
15482 t nl
15483 :delim
15485 s/\(.\{148\}\)..*/\1/
15486 t more2
15487 s/["\\]/\\&/g; s/^/"/; s/$/"/
15490 :more2
15491 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15494 s/.\{148\}//
15495 t delim
15496 ' <conf$$subs.awk | sed '
15497 /^[^""]/{
15499 s/\n//
15501 ' >>$CONFIG_STATUS || ac_write_fail=1
15502 rm -f conf$$subs.awk
15503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15504 _ACAWK
15505 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15506 for (key in S) S_is_set[key] = 1
15507 FS = "\a"
15511 line = $ 0
15512 nfields = split(line, field, "@")
15513 substed = 0
15514 len = length(field[1])
15515 for (i = 2; i < nfields; i++) {
15516 key = field[i]
15517 keylen = length(key)
15518 if (S_is_set[key]) {
15519 value = S[key]
15520 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15521 len += length(value) + length(field[++i])
15522 substed = 1
15523 } else
15524 len += 1 + keylen
15527 print line
15530 _ACAWK
15531 _ACEOF
15532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15533 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15534 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15535 else
15537 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15538 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15539 _ACEOF
15541 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15542 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15543 # trailing colons and then remove the whole line if VPATH becomes empty
15544 # (actually we leave an empty line to preserve line numbers).
15545 if test "x$srcdir" = x.; then
15546 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15548 s///
15549 s/^/:/
15550 s/[ ]*$/:/
15551 s/:\$(srcdir):/:/g
15552 s/:\${srcdir}:/:/g
15553 s/:@srcdir@:/:/g
15554 s/^:*//
15555 s/:*$//
15557 s/\(=[ ]*\).*/\1/
15559 s/\n//
15560 s/^[^=]*=[ ]*$//
15564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15565 fi # test -n "$CONFIG_FILES"
15567 # Set up the scripts for CONFIG_HEADERS section.
15568 # No need to generate them if there are no CONFIG_HEADERS.
15569 # This happens for instance with `./config.status Makefile'.
15570 if test -n "$CONFIG_HEADERS"; then
15571 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15572 BEGIN {
15573 _ACEOF
15575 # Transform confdefs.h into an awk script `defines.awk', embedded as
15576 # here-document in config.status, that substitutes the proper values into
15577 # config.h.in to produce config.h.
15579 # Create a delimiter string that does not exist in confdefs.h, to ease
15580 # handling of long lines.
15581 ac_delim='%!_!# '
15582 for ac_last_try in false false :; do
15583 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15584 if test -z "$ac_tt"; then
15585 break
15586 elif $ac_last_try; then
15587 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15588 else
15589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15591 done
15593 # For the awk script, D is an array of macro values keyed by name,
15594 # likewise P contains macro parameters if any. Preserve backslash
15595 # newline sequences.
15597 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15598 sed -n '
15599 s/.\{148\}/&'"$ac_delim"'/g
15600 t rset
15601 :rset
15602 s/^[ ]*#[ ]*define[ ][ ]*/ /
15603 t def
15605 :def
15606 s/\\$//
15607 t bsnl
15608 s/["\\]/\\&/g
15609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15610 D["\1"]=" \3"/p
15611 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15613 :bsnl
15614 s/["\\]/\\&/g
15615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15616 D["\1"]=" \3\\\\\\n"\\/p
15617 t cont
15618 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15619 t cont
15621 :cont
15623 s/.\{148\}/&'"$ac_delim"'/g
15624 t clear
15625 :clear
15626 s/\\$//
15627 t bsnlc
15628 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15630 :bsnlc
15631 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15632 b cont
15633 ' <confdefs.h | sed '
15634 s/'"$ac_delim"'/"\\\
15635 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15638 for (key in D) D_is_set[key] = 1
15639 FS = "\a"
15641 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15642 line = \$ 0
15643 split(line, arg, " ")
15644 if (arg[1] == "#") {
15645 defundef = arg[2]
15646 mac1 = arg[3]
15647 } else {
15648 defundef = substr(arg[1], 2)
15649 mac1 = arg[2]
15651 split(mac1, mac2, "(") #)
15652 macro = mac2[1]
15653 prefix = substr(line, 1, index(line, defundef) - 1)
15654 if (D_is_set[macro]) {
15655 # Preserve the white space surrounding the "#".
15656 print prefix "define", macro P[macro] D[macro]
15657 next
15658 } else {
15659 # Replace #undef with comments. This is necessary, for example,
15660 # in the case of _POSIX_SOURCE, which is predefined and required
15661 # on some systems where configure will not decide to define it.
15662 if (defundef == "undef") {
15663 print "/*", prefix defundef, macro, "*/"
15664 next
15668 { print }
15669 _ACAWK
15670 _ACEOF
15671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15673 fi # test -n "$CONFIG_HEADERS"
15676 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15677 shift
15678 for ac_tag
15680 case $ac_tag in
15681 :[FHLC]) ac_mode=$ac_tag; continue;;
15682 esac
15683 case $ac_mode$ac_tag in
15684 :[FHL]*:*);;
15685 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15686 :[FH]-) ac_tag=-:-;;
15687 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15688 esac
15689 ac_save_IFS=$IFS
15690 IFS=:
15691 set x $ac_tag
15692 IFS=$ac_save_IFS
15693 shift
15694 ac_file=$1
15695 shift
15697 case $ac_mode in
15698 :L) ac_source=$1;;
15699 :[FH])
15700 ac_file_inputs=
15701 for ac_f
15703 case $ac_f in
15704 -) ac_f="$ac_tmp/stdin";;
15705 *) # Look for the file first in the build tree, then in the source tree
15706 # (if the path is not absolute). The absolute path cannot be DOS-style,
15707 # because $ac_f cannot contain `:'.
15708 test -f "$ac_f" ||
15709 case $ac_f in
15710 [\\/$]*) false;;
15711 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15712 esac ||
15713 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15714 esac
15715 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15716 as_fn_append ac_file_inputs " '$ac_f'"
15717 done
15719 # Let's still pretend it is `configure' which instantiates (i.e., don't
15720 # use $as_me), people would be surprised to read:
15721 # /* config.h. Generated by config.status. */
15722 configure_input='Generated from '`
15723 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15724 `' by configure.'
15725 if test x"$ac_file" != x-; then
15726 configure_input="$ac_file. $configure_input"
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15728 $as_echo "$as_me: creating $ac_file" >&6;}
15730 # Neutralize special characters interpreted by sed in replacement strings.
15731 case $configure_input in #(
15732 *\&* | *\|* | *\\* )
15733 ac_sed_conf_input=`$as_echo "$configure_input" |
15734 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15735 *) ac_sed_conf_input=$configure_input;;
15736 esac
15738 case $ac_tag in
15739 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15741 esac
15743 esac
15745 ac_dir=`$as_dirname -- "$ac_file" ||
15746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15747 X"$ac_file" : 'X\(//\)[^/]' \| \
15748 X"$ac_file" : 'X\(//\)$' \| \
15749 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15750 $as_echo X"$ac_file" |
15751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15752 s//\1/
15755 /^X\(\/\/\)[^/].*/{
15756 s//\1/
15759 /^X\(\/\/\)$/{
15760 s//\1/
15763 /^X\(\/\).*/{
15764 s//\1/
15767 s/.*/./; q'`
15768 as_dir="$ac_dir"; as_fn_mkdir_p
15769 ac_builddir=.
15771 case "$ac_dir" in
15772 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15774 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15775 # A ".." for each directory in $ac_dir_suffix.
15776 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15777 case $ac_top_builddir_sub in
15778 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15779 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15780 esac ;;
15781 esac
15782 ac_abs_top_builddir=$ac_pwd
15783 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15784 # for backward compatibility:
15785 ac_top_builddir=$ac_top_build_prefix
15787 case $srcdir in
15788 .) # We are building in place.
15789 ac_srcdir=.
15790 ac_top_srcdir=$ac_top_builddir_sub
15791 ac_abs_top_srcdir=$ac_pwd ;;
15792 [\\/]* | ?:[\\/]* ) # Absolute name.
15793 ac_srcdir=$srcdir$ac_dir_suffix;
15794 ac_top_srcdir=$srcdir
15795 ac_abs_top_srcdir=$srcdir ;;
15796 *) # Relative name.
15797 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15798 ac_top_srcdir=$ac_top_build_prefix$srcdir
15799 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15800 esac
15801 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15804 case $ac_mode in
15807 # CONFIG_FILE
15810 _ACEOF
15812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15813 # If the template does not know about datarootdir, expand it.
15814 # FIXME: This hack should be removed a few years after 2.60.
15815 ac_datarootdir_hack=; ac_datarootdir_seen=
15816 ac_sed_dataroot='
15817 /datarootdir/ {
15821 /@datadir@/p
15822 /@docdir@/p
15823 /@infodir@/p
15824 /@localedir@/p
15825 /@mandir@/p'
15826 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15827 *datarootdir*) ac_datarootdir_seen=yes;;
15828 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15830 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15831 _ACEOF
15832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15833 ac_datarootdir_hack='
15834 s&@datadir@&$datadir&g
15835 s&@docdir@&$docdir&g
15836 s&@infodir@&$infodir&g
15837 s&@localedir@&$localedir&g
15838 s&@mandir@&$mandir&g
15839 s&\\\${datarootdir}&$datarootdir&g' ;;
15840 esac
15841 _ACEOF
15843 # Neutralize VPATH when `$srcdir' = `.'.
15844 # Shell code in configure.ac might set extrasub.
15845 # FIXME: do we really want to maintain this feature?
15846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15847 ac_sed_extra="$ac_vpsub
15848 $extrasub
15849 _ACEOF
15850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15853 s|@configure_input@|$ac_sed_conf_input|;t t
15854 s&@top_builddir@&$ac_top_builddir_sub&;t t
15855 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15856 s&@srcdir@&$ac_srcdir&;t t
15857 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15858 s&@top_srcdir@&$ac_top_srcdir&;t t
15859 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15860 s&@builddir@&$ac_builddir&;t t
15861 s&@abs_builddir@&$ac_abs_builddir&;t t
15862 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15863 $ac_datarootdir_hack
15865 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15866 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15868 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15869 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15871 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15873 which seems to be undefined. Please make sure it is defined" >&5
15874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15875 which seems to be undefined. Please make sure it is defined" >&2;}
15877 rm -f "$ac_tmp/stdin"
15878 case $ac_file in
15879 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15880 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15881 esac \
15882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15886 # CONFIG_HEADER
15888 if test x"$ac_file" != x-; then
15890 $as_echo "/* $configure_input */" \
15891 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15892 } >"$ac_tmp/config.h" \
15893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15894 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15896 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15897 else
15898 rm -f "$ac_file"
15899 mv "$ac_tmp/config.h" "$ac_file" \
15900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15902 else
15903 $as_echo "/* $configure_input */" \
15904 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15905 || as_fn_error $? "could not create -" "$LINENO" 5
15909 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15910 $as_echo "$as_me: executing $ac_file commands" >&6;}
15912 esac
15915 case $ac_file$ac_mode in
15916 "compiler_executable":C)
15917 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15918 mkdir -p $prefix
15919 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15920 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15922 echo ${prefix2}
15923 echo ${prefix3}
15924 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15926 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15927 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15928 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15929 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15930 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15931 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15932 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15934 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15936 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15938 esac
15939 done # for ac_tag
15942 as_fn_exit 0
15943 _ACEOF
15944 ac_clean_files=$ac_clean_files_save
15946 test $ac_write_fail = 0 ||
15947 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15950 # configure is writing to config.log, and then calls config.status.
15951 # config.status does its own redirection, appending to config.log.
15952 # Unfortunately, on DOS this fails, as config.log is still kept open
15953 # by configure, so config.status won't be able to write to it; its
15954 # output is simply discarded. So we exec the FD to /dev/null,
15955 # effectively closing config.log, so it can be properly (re)opened and
15956 # appended to by config.status. When coming back to configure, we
15957 # need to make the FD available again.
15958 if test "$no_create" != yes; then
15959 ac_cs_success=:
15960 ac_config_status_args=
15961 test "$silent" = yes &&
15962 ac_config_status_args="$ac_config_status_args --quiet"
15963 exec 5>/dev/null
15964 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15965 exec 5>>config.log
15966 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15967 # would make configure fail if this is the last instruction.
15968 $ac_cs_success || as_fn_exit 1
15970 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15972 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15977 #XXX compatability...
15978 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15980 if test -n "$aros_shared_cflags" ; then
15981 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15982 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg