Change handling of sysroot.
[AROS.git] / configure
blob1b0e785bbd2772943d31bdd7d923b14d945d7c22
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 gcc_target_cpu
628 ignore_undefined_symbols
629 aros_modules_debug
630 aros_stack_debug
631 aros_mungwall_debug
632 aros_debug
633 ENABLE_X11
634 KERNEL_DBUS_INCLUDES
635 KERNEL_DBUS_KOBJ
636 DBUS_LIBFLAGS
637 DBUS_CFLAGS
638 ENABLE_DBUS
639 aros_android_antapk
640 aros_android_level
641 gcc_default_float_abi
642 gcc_default_fpu
643 gcc_default_cpu_tune
644 gcc_default_cpu
645 aros_ios_sdk
646 aros_ios_version
647 aros_ios_platform
648 aros_enable_mmu
649 aros_nesting_supervisor
650 aros_palm_debug_hack
651 aros_serial_debug
652 aros_host_sdl_libs
653 aros_host_sdl_cflags
654 aros_host_x11_libdirs
655 aros_host_x11_includes
656 DO_VIDMODE_SUPPORT
657 DO_XSHM_SUPPORT
658 aros_default_wbdepth
659 aros_default_wbheight
660 aros_default_wbwidth
661 oss_library_target
662 pci_hidd_target
663 sdl_hidd_target
664 unixgfx_hidd_target
665 aros_cflags_format_security
666 aros_cflags_strict_overflow
667 aros_cflags_enum_compare
668 aros_cflags_array_bounds
669 aros_cflags_unused_but_set_variable
670 crosstools_cxx_target
671 crosstools_target
672 aros_isa_flags
673 aros_optimization_cflags
674 aros_target_strip_flags
675 aros_target_genmap
676 aros_debug_ldflags
677 aros_debug_aflags
678 aros_debug_cflags
679 aros_target_cflags
680 aros_kernel_ldflags
681 aros_kernel_objcflags
682 aros_kernel_includes
683 aros_kernel_cflags
684 aros_shared_ldflags
685 aros_shared_aflags
686 aros_shared_cflags
687 aros_config_ldflags
688 aros_config_aflags
689 aros_config_cflags
690 aros_config_sysroot
691 aros_arch_libs
692 aros_compiler_libs
693 spec_obj_format
694 aros_object_format
695 aros_shared_ld
696 aros_shared_default
697 aros_target_nm
698 aros_target_strip
699 aros_target_objcopy
700 aros_target_objdump
701 aros_target_cc_path
702 aros_target_cc_includes
703 aros_target_ld
704 aros_target_as
705 aros_target_cpp
706 aros_target_cxx
707 aros_target_cc
708 aros_plain_ar
709 aros_plain_nm
710 aros_target_ranlib
711 aros_target_ar
712 aros_target_suffix
713 aros_target_variant
714 aros_target_cpu
715 aros_target_family
716 aros_target_arch
717 aros_target_bootloader
718 aros_target_iconset
719 aros_target_guitheme
720 aros_tools_dir
721 aros_host_lib_suffix
722 aros_host_exe_suffix
723 aros_host_mkargs
724 aros_host_mkdep
725 aros_host_debug
726 aros_host_ldflags
727 gnu89_inline
728 aros_host_cxxflags
729 aros_host_cflags
730 aros_host_make
731 aros_host_cxx
732 aros_host_cc
733 aros_host_cpp
734 aros_host_cpu
735 aros_host_arch
736 aros_cc_pre
737 aros_amigaos_compliance
738 AROS_PORTSSRCDIR
739 AROS_CROSSTOOLSDIR
740 SRCDIR
741 AROS_BUILDDIR_UNIX
742 AROS_BUILDDIR
743 aros_target_toolchain
744 aros_flavour_uc
745 aros_flavour
746 aros_cpu
747 aros_arch
748 SDL_LIBS
749 SDL_CFLAGS
750 SDL_CONFIG
751 XMKMF
752 aros_cflags_iquote_end
753 aros_cflags_iquote
754 kernel_cflags_iquote_end
755 kernel_cflags_iquote
756 host_cflags_iquote_end
757 host_cflags_iquote
758 aros_target_nostdlib_ldflags
759 aros_target_detach_ldflags
760 aros_target_nix_ldflags
761 aros_target_nostartup_ldflags
762 aros_target_nostdinc_cflags
763 aros_kernel_rescomp
764 orig_target_objdump
765 orig_target_objcopy
766 orig_target_strip
767 orig_target_nm
768 orig_target_ranlib
769 orig_target_ar
770 orig_target_as
771 orig_target_ld
772 orig_target_cxx
773 orig_target_cc
774 orig_target_cpp
775 aros_kernel_objdump
776 aros_kernel_objcopy
777 aros_kernel_strip
778 aros_kernel_nm
779 aros_kernel_ranlib
780 aros_kernel_ar
781 aros_kernel_as
782 aros_kernel_ld
783 aros_kernel_cxx
784 aros_kernel_cc
785 aros_kernel_cpp
786 target_gcc_version
788 android_tool
789 CCACHE
790 DISTCC
791 LIBOBJS
792 EGREP
793 GREP
795 TEST
798 pkgpyexecdir
799 pyexecdir
800 pkgpythondir
801 pythondir
802 PYTHON_PLATFORM
803 PYTHON_EXEC_PREFIX
804 PYTHON_PREFIX
805 PYTHON_VERSION
806 PYTHON
807 PATCH
808 CHMOD
810 PPMTOILBM
811 PNGTOPNM
812 FLEX
813 BISON
816 UNIQ
817 SORT
818 TOUCH
819 MKDIR
820 ECHO
824 aros_host_strip
825 aros_host_ranlib
826 aros_host_ar
827 aros_host_automake
828 aros_host_autoheader
829 aros_host_autoconf
830 aros_host_aclocal
831 aros_host_ld
832 MMAKE
835 ac_ct_CC
836 CFLAGS
838 OBJEXT
839 EXEEXT
840 ac_ct_CXX
841 CPPFLAGS
842 LDFLAGS
843 CXXFLAGS
845 host_os
846 host_vendor
847 host_cpu
848 host
849 build_os
850 build_vendor
851 build_cpu
852 build
853 target_alias
854 host_alias
855 build_alias
856 LIBS
857 ECHO_T
858 ECHO_N
859 ECHO_C
860 DEFS
861 mandir
862 localedir
863 libdir
864 psdir
865 pdfdir
866 dvidir
867 htmldir
868 infodir
869 docdir
870 oldincludedir
871 includedir
872 localstatedir
873 sharedstatedir
874 sysconfdir
875 datadir
876 datarootdir
877 libexecdir
878 sbindir
879 bindir
880 program_transform_name
881 prefix
882 exec_prefix
883 PACKAGE_URL
884 PACKAGE_BUGREPORT
885 PACKAGE_STRING
886 PACKAGE_VERSION
887 PACKAGE_TARNAME
888 PACKAGE_NAME
889 PATH_SEPARATOR
890 SHELL'
891 ac_subst_files=''
892 ac_user_opts='
893 enable_option_checking
894 enable_build_type
895 enable_debug
896 enable_distcc
897 enable_ccache
898 with_kernel_gcc_version
899 with_optimization
900 with_paranoia
901 enable_target_variant
902 with_xcode
903 with_sdk_version
904 with_sdk
905 with_ndk
906 with_ndk_version
907 with_apk_version
908 enable_amigaos_compliance
909 with_kernel_toolchain_prefix
910 with_elf_toolchain_prefix
911 with_aros_toolchain
912 enable_crosstools
913 with_aros_toolchain_install
914 with_gcc_version
915 enable_objc
916 enable_java
917 with_cpu
918 with_fpu
919 with_float
920 with_portssources
921 with_bootloader
922 with_iconset
923 with_theme
924 enable_includes
925 with_resolution
926 with_serial_debug
927 enable_palm_debug_hack
928 enable_usb30_code
929 enable_nesting_supervisor
930 enable_mmu
931 enable_x11_hidd
932 with_x
933 enable_x11_shm
934 enable_x11_vidmode
935 enable_sdl_hidd
936 with_sdl_prefix
937 with_sdl_exec_prefix
938 enable_sdltest
939 enable_dbus
941 ac_precious_vars='build_alias
942 host_alias
943 target_alias
945 CXXFLAGS
946 LDFLAGS
947 LIBS
948 CPPFLAGS
951 CFLAGS
953 PYTHON
954 XMKMF'
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 ac_unrecognized_opts=
961 ac_unrecognized_sep=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\$ac_option
1012 ac_prev=
1013 continue
1016 case $ac_option in
1017 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 *=) ac_optarg= ;;
1019 *) ac_optarg=yes ;;
1020 esac
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1026 ac_dashdash=yes ;;
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error $? "invalid feature name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_$ac_useropt"
1070 "*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=no ;;
1076 -docdir | --docdir | --docdi | --doc | --do)
1077 ac_prev=docdir ;;
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 ac_prev=dvidir ;;
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
1086 -enable-* | --enable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid feature name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=\$ac_optarg ;;
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1290 -with-* | --with-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error $? "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=\$ac_optarg ;;
1306 -without-* | --without-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error $? "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=no ;;
1322 --x)
1323 # Obsolete; use --with-x.
1324 with_x=yes ;;
1326 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327 | --x-incl | --x-inc | --x-in | --x-i)
1328 ac_prev=x_includes ;;
1329 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331 x_includes=$ac_optarg ;;
1333 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335 ac_prev=x_libraries ;;
1336 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338 x_libraries=$ac_optarg ;;
1340 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information"
1344 *=*)
1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' | [0-9]* | *[!_$as_cr_alnum]* )
1349 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1350 esac
1351 eval $ac_envvar=\$ac_optarg
1352 export $ac_envvar ;;
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1362 esac
1363 done
1365 if test -n "$ac_prev"; then
1366 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error $? "missing argument to $ac_option"
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1372 no) ;;
1373 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375 esac
1378 # Check all directory arguments for consistency.
1379 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1384 eval ac_val=\$$ac_var
1385 # Remove trailing slashes.
1386 case $ac_val in
1387 */ )
1388 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\$ac_val;;
1390 esac
1391 # Be sure to have absolute directory names.
1392 case $ac_val in
1393 [\\/$]* | ?:[\\/]* ) continue;;
1394 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395 esac
1396 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1397 done
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1402 build=$build_alias
1403 host=$host_alias
1404 target=$target_alias
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x; then
1408 if test "x$build_alias" = x; then
1409 cross_compiling=maybe
1410 elif test "x$build_alias" != "x$host_alias"; then
1411 cross_compiling=yes
1415 ac_tool_prefix=
1416 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418 test "$silent" = yes && exec 6>/dev/null
1421 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1422 ac_ls_di=`ls -di .` &&
1423 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1424 as_fn_error $? "working directory cannot be determined"
1425 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1426 as_fn_error $? "pwd does not report name of working directory"
1429 # Find the source files, if location was not specified.
1430 if test -z "$srcdir"; then
1431 ac_srcdir_defaulted=yes
1432 # Try the directory containing this script, then the parent directory.
1433 ac_confdir=`$as_dirname -- "$as_myself" ||
1434 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435 X"$as_myself" : 'X\(//\)[^/]' \| \
1436 X"$as_myself" : 'X\(//\)$' \| \
1437 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1438 $as_echo X"$as_myself" |
1439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440 s//\1/
1443 /^X\(\/\/\)[^/].*/{
1444 s//\1/
1447 /^X\(\/\/\)$/{
1448 s//\1/
1451 /^X\(\/\).*/{
1452 s//\1/
1455 s/.*/./; q'`
1456 srcdir=$ac_confdir
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 srcdir=..
1460 else
1461 ac_srcdir_defaulted=no
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1465 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1467 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468 ac_abs_confdir=`(
1469 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1470 pwd)`
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1473 srcdir=.
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1478 case $srcdir in
1479 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1480 esac
1481 for ac_var in $ac_precious_vars; do
1482 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_${ac_var}_value=\$${ac_var}
1484 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486 done
1489 # Report the --help message.
1491 if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1494 cat <<_ACEOF
1495 \`configure' configures this package to adapt to many kinds of systems.
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE. See below for descriptions of some of the useful variables.
1502 Defaults for the options are specified in brackets.
1504 Configuration:
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking ...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515 Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1519 [PREFIX]
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1526 For better control, use the options below.
1528 Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1548 _ACEOF
1550 cat <<\_ACEOF
1552 X features:
1553 --x-includes=DIR X include files are in DIR
1554 --x-libraries=DIR X library files are in DIR
1556 System types:
1557 --build=BUILD configure for building on BUILD [guessed]
1558 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1559 _ACEOF
1562 if test -n "$ac_init_help"; then
1564 cat <<\_ACEOF
1566 Optional Features:
1567 --disable-option-checking ignore unrecognized --enable/--with options
1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570 --enable-build-type=TYPE
1571 Select the build type. Available types are:
1572 personal, nightly, snapshot, milestone, release. Do
1573 NOT use this option unless you know what you are
1574 doing! (default=personal)
1575 --enable-debug=list Enable different types of debug. Commas or
1576 whitespaces can be used to separate the items in the
1577 list. Available types of debug are: all, none,
1578 messages, stack, mungwall, modules, symbols. If no
1579 list is provided then "all" is assumed.
1580 (default=none)
1581 --enable-distcc Use distcc as a front end to the compiler
1582 (default=no).
1583 --enable-ccache Use ccache as a front end to the compiler
1584 (default=no).
1585 --enable-target-variant=NAME
1586 Enable a specific target variant(default=none)
1587 --enable-amigaos-compliance=VERSION
1588 Enforce userspace AmigaOS compliance to a specific
1589 KickStart version (default=none).
1590 --disable-crosstools Do not build cross-compiler toolchain
1591 --enable-objc Enable Objectve-C support (default=yes)
1592 --enable-java Enable Java support (default=no)
1593 --enable-includes=dir Alternative system include directory
1594 --enable-palm-debug-hack
1595 Enable palm debug output hack in palm native
1596 (default=no)
1597 --enable-usb30-code Enable usb3.0 code (default=no)
1598 --enable-nesting-supervisor
1599 Enable nesting supervisor support in unix
1600 (default=no)
1601 --disable-mmu Disable MMU support (default=enabled)
1602 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1603 --enable-x11-shm use X11 shared memory (default=auto)
1604 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1605 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1606 --disable-sdltest Do not try to compile and run a test SDL program
1607 --enable-dbus Enable DBUS support via dbus.library (default=no)
1609 Optional Packages:
1610 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1611 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1612 --with-kernel-gcc-version=VERSION
1613 Use gcc-VERSION for building bootstrap
1614 --with-optimization=FLAGS
1615 Use optimization flags FLAGS (default=-O2).
1616 --with-paranoia=FLAGS CC flags to enable paranoia
1617 --with-xcode=PATH Specify XCode path for iOS targets
1618 (default=/Developer).
1619 --with-sdk-version=VERSION
1620 Use iOS SDK version VERSION (default=4.1).
1621 --with-sdk=PATH Specify Android SDK path
1622 (default=$default_android_sdk).
1623 --with-ndk=PATH Specify Android NDK path (default=none).
1624 --with-sdk-version=LEVEL
1625 Use Android SDK for API LEVEL (default=12).
1626 --with-ndk-version=LEVEL
1627 Use Android NDK for API LEVEL (default=9).
1628 --with-apk-version=(release|debug)
1629 Which version of AROSBootstrap.apk to compile.
1630 Release version needs key for signing, debug version
1631 will only run in emulator. (default=release)
1632 --with-kernel-toolchain-prefix=...
1633 Specify crosscompile toolchain prefix for kernel
1634 objects
1635 --with-elf-toolchain-prefix=...
1636 Specify crosscompile toolchain prefix to wrap for
1637 AROS objects
1638 --with-aros-toolchain=PREFIX
1639 Specify prebuilt AROS toolchain. Use yes for default
1640 name
1641 --with-aros-toolchain-install=DIR
1642 Where to install or search for cross tools binaries
1643 --with-gcc-version=VERSION
1644 Use gcc-VERSION for building AROS
1645 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1646 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1647 --with-float=<spec> Specify floating point ABI
1648 (default=$gcc_default_float_abi).
1649 --with-portssources=DIR Where to download sourcecode for external ports
1650 --with-bootloader=NAME Use a specific bootloader
1651 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1652 --with-theme=NAME Use a specific GUI Theme
1653 --with-resolution=XRESxYRESxDEPTH
1654 Default resolution of the initial WorkbenchScreen
1655 --with-serial-debug Enable serial debug output in native (default=no)
1656 --with-x use the X Window System
1657 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1658 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1660 Some influential environment variables:
1661 CXX C++ compiler command
1662 CXXFLAGS C++ compiler flags
1663 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1664 nonstandard directory <lib dir>
1665 LIBS libraries to pass to the linker, e.g. -l<library>
1666 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1667 you have headers in a nonstandard directory <include dir>
1668 CC C compiler command
1669 CFLAGS C compiler flags
1670 CPP C preprocessor
1671 PYTHON the Python interpreter
1672 XMKMF Path to xmkmf, Makefile generator for X Window System
1674 Use these variables to override the choices made by `configure' or to help
1675 it to find libraries and programs with nonstandard names/locations.
1677 Report bugs to the package provider.
1678 _ACEOF
1679 ac_status=$?
1682 if test "$ac_init_help" = "recursive"; then
1683 # If there are subdirs, report their specific --help.
1684 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685 test -d "$ac_dir" ||
1686 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687 continue
1688 ac_builddir=.
1690 case "$ac_dir" in
1691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694 # A ".." for each directory in $ac_dir_suffix.
1695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696 case $ac_top_builddir_sub in
1697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699 esac ;;
1700 esac
1701 ac_abs_top_builddir=$ac_pwd
1702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703 # for backward compatibility:
1704 ac_top_builddir=$ac_top_build_prefix
1706 case $srcdir in
1707 .) # We are building in place.
1708 ac_srcdir=.
1709 ac_top_srcdir=$ac_top_builddir_sub
1710 ac_abs_top_srcdir=$ac_pwd ;;
1711 [\\/]* | ?:[\\/]* ) # Absolute name.
1712 ac_srcdir=$srcdir$ac_dir_suffix;
1713 ac_top_srcdir=$srcdir
1714 ac_abs_top_srcdir=$srcdir ;;
1715 *) # Relative name.
1716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717 ac_top_srcdir=$ac_top_build_prefix$srcdir
1718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 esac
1720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1722 cd "$ac_dir" || { ac_status=$?; continue; }
1723 # Check for guested configure.
1724 if test -f "$ac_srcdir/configure.gnu"; then
1725 echo &&
1726 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727 elif test -f "$ac_srcdir/configure"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure" --help=recursive
1730 else
1731 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732 fi || ac_status=$?
1733 cd "$ac_pwd" || { ac_status=$?; break; }
1734 done
1737 test -n "$ac_init_help" && exit $ac_status
1738 if $ac_init_version; then
1739 cat <<\_ACEOF
1740 configure
1741 generated by GNU Autoconf 2.69
1743 Copyright (C) 2012 Free Software Foundation, Inc.
1744 This configure script is free software; the Free Software Foundation
1745 gives unlimited permission to copy, distribute and modify it.
1746 _ACEOF
1747 exit
1750 ## ------------------------ ##
1751 ## Autoconf initialization. ##
1752 ## ------------------------ ##
1754 # ac_fn_cxx_try_compile LINENO
1755 # ----------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_cxx_try_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_cxx_try_compile
1792 # ac_fn_c_try_compile LINENO
1793 # --------------------------
1794 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_compile ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext
1799 if { { ac_try="$ac_compile"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_compile") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest.$ac_objext; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 ac_retval=1
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1828 } # ac_fn_c_try_compile
1830 # ac_fn_c_try_cpp LINENO
1831 # ----------------------
1832 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_cpp ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { { ac_try="$ac_cpp conftest.$ac_ext"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } > conftest.i && {
1852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 }; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_c_try_cpp
1867 # ac_fn_c_try_link LINENO
1868 # -----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_c_try_link ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1911 } # ac_fn_c_try_link
1913 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916 # the include files in INCLUDES and setting the cache variable VAR
1917 # accordingly.
1918 ac_fn_c_check_header_mongrel ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if eval \${$3+:} false; then :
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 else
1931 # Is the header compilable?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933 $as_echo_n "checking $2 usability... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1937 #include <$2>
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_header_compiler=yes
1941 else
1942 ac_header_compiler=no
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946 $as_echo "$ac_header_compiler" >&6; }
1948 # Is the header present?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950 $as_echo_n "checking $2 presence... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 #include <$2>
1954 _ACEOF
1955 if ac_fn_c_try_cpp "$LINENO"; then :
1956 ac_header_preproc=yes
1957 else
1958 ac_header_preproc=no
1960 rm -f conftest.err conftest.i conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962 $as_echo "$ac_header_preproc" >&6; }
1964 # So? What about this header?
1965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966 yes:no: )
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 no:yes:* )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1976 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1980 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 esac
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 eval "$3=\$ac_header_compiler"
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_header_mongrel
2000 # ac_fn_c_try_run LINENO
2001 # ----------------------
2002 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2003 # that executables *can* be run.
2004 ac_fn_c_try_run ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if { { ac_try="$ac_link"
2008 case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011 esac
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>&5
2015 ac_status=$?
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2018 { { case "(($ac_try" in
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2021 esac
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_try") 2>&5
2025 ac_status=$?
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; }; }; then :
2028 ac_retval=0
2029 else
2030 $as_echo "$as_me: program exited with status $ac_status" >&5
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2034 ac_retval=$ac_status
2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 as_fn_set_status $ac_retval
2040 } # ac_fn_c_try_run
2042 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2043 # -------------------------------------------------------
2044 # Tests whether HEADER exists and can be compiled using the include files in
2045 # INCLUDES, setting the cache variable VAR accordingly.
2046 ac_fn_c_check_header_compile ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2057 #include <$2>
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 eval "$3=yes"
2061 else
2062 eval "$3=no"
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_header_compile
2073 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2074 # ----------------------------------------------------
2075 # Tries to find if the field MEMBER exists in type AGGR, after including
2076 # INCLUDES, setting cache variable VAR accordingly.
2077 ac_fn_c_check_member ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2081 $as_echo_n "checking for $2.$3... " >&6; }
2082 if eval \${$4+:} false; then :
2083 $as_echo_n "(cached) " >&6
2084 else
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static $2 ac_aggr;
2092 if (ac_aggr.$3)
2093 return 0;
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 eval "$4=yes"
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 main ()
2107 static $2 ac_aggr;
2108 if (sizeof ac_aggr.$3)
2109 return 0;
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 eval "$4=yes"
2116 else
2117 eval "$4=no"
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 eval ac_res=\$$4
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_member
2130 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2131 # ---------------------------------------------
2132 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2133 # accordingly.
2134 ac_fn_c_check_decl ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 as_decl_name=`echo $2|sed 's/ *(.*//'`
2138 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2140 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 main ()
2150 #ifndef $as_decl_name
2151 #ifdef __cplusplus
2152 (void) $as_decl_use;
2153 #else
2154 (void) $as_decl_name;
2155 #endif
2156 #endif
2159 return 0;
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 eval "$3=yes"
2164 else
2165 eval "$3=no"
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 } # ac_fn_c_check_decl
2176 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2177 # -------------------------------------------
2178 # Tests whether TYPE exists after having included INCLUDES, setting cache
2179 # variable VAR accordingly.
2180 ac_fn_c_check_type ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if eval \${$3+:} false; then :
2186 $as_echo_n "(cached) " >&6
2187 else
2188 eval "$3=no"
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2193 main ()
2195 if (sizeof ($2))
2196 return 0;
2198 return 0;
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 if (sizeof (($2)))
2209 return 0;
2211 return 0;
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2216 else
2217 eval "$3=yes"
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 } # ac_fn_c_check_type
2230 # ac_fn_c_check_func LINENO FUNC VAR
2231 # ----------------------------------
2232 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2233 ac_fn_c_check_func ()
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if eval \${$3+:} false; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2245 #define $2 innocuous_$2
2247 /* System header to define __stub macros and hopefully few prototypes,
2248 which can conflict with char $2 (); below.
2249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2250 <limits.h> exists even on freestanding compilers. */
2252 #ifdef __STDC__
2253 # include <limits.h>
2254 #else
2255 # include <assert.h>
2256 #endif
2258 #undef $2
2260 /* Override any GCC internal prototype to avoid an error.
2261 Use char because int might match the return type of a GCC
2262 builtin and then its argument prototype would still apply. */
2263 #ifdef __cplusplus
2264 extern "C"
2265 #endif
2266 char $2 ();
2267 /* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270 #if defined __stub_$2 || defined __stub___$2
2271 choke me
2272 #endif
2275 main ()
2277 return $2 ();
2279 return 0;
2281 _ACEOF
2282 if ac_fn_c_try_link "$LINENO"; then :
2283 eval "$3=yes"
2284 else
2285 eval "$3=no"
2287 rm -f core conftest.err conftest.$ac_objext \
2288 conftest$ac_exeext conftest.$ac_ext
2290 eval ac_res=\$$3
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 } # ac_fn_c_check_func
2296 cat >config.log <<_ACEOF
2297 This file contains any messages produced by compilers while
2298 running configure, to aid debugging if configure makes a mistake.
2300 It was created by $as_me, which was
2301 generated by GNU Autoconf 2.69. Invocation command line was
2303 $ $0 $@
2305 _ACEOF
2306 exec 5>>config.log
2308 cat <<_ASUNAME
2309 ## --------- ##
2310 ## Platform. ##
2311 ## --------- ##
2313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2322 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2323 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2326 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2327 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2328 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2330 _ASUNAME
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 $as_echo "PATH: $as_dir"
2338 done
2339 IFS=$as_save_IFS
2341 } >&5
2343 cat >&5 <<_ACEOF
2346 ## ----------- ##
2347 ## Core tests. ##
2348 ## ----------- ##
2350 _ACEOF
2353 # Keep a trace of the command line.
2354 # Strip out --no-create and --no-recursion so they do not pile up.
2355 # Strip out --silent because we don't want to record it for future runs.
2356 # Also quote any args containing shell meta-characters.
2357 # Make two passes to allow for proper duplicate-argument suppression.
2358 ac_configure_args=
2359 ac_configure_args0=
2360 ac_configure_args1=
2361 ac_must_keep_next=false
2362 for ac_pass in 1 2
2364 for ac_arg
2366 case $ac_arg in
2367 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2369 | -silent | --silent | --silen | --sile | --sil)
2370 continue ;;
2371 *\'*)
2372 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 esac
2374 case $ac_pass in
2375 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2377 as_fn_append ac_configure_args1 " '$ac_arg'"
2378 if test $ac_must_keep_next = true; then
2379 ac_must_keep_next=false # Got value, back to normal.
2380 else
2381 case $ac_arg in
2382 *=* | --config-cache | -C | -disable-* | --disable-* \
2383 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2384 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2385 | -with-* | --with-* | -without-* | --without-* | --x)
2386 case "$ac_configure_args0 " in
2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388 esac
2390 -* ) ac_must_keep_next=true ;;
2391 esac
2393 as_fn_append ac_configure_args " '$ac_arg'"
2395 esac
2396 done
2397 done
2398 { ac_configure_args0=; unset ac_configure_args0;}
2399 { ac_configure_args1=; unset ac_configure_args1;}
2401 # When interrupted or exit'd, cleanup temporary files, and complete
2402 # config.log. We remove comments because anyway the quotes in there
2403 # would cause problems or look ugly.
2404 # WARNING: Use '\'' to represent an apostrophe within the trap.
2405 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406 trap 'exit_status=$?
2407 # Save into config.log some information that might help in debugging.
2409 echo
2411 $as_echo "## ---------------- ##
2412 ## Cache variables. ##
2413 ## ---------------- ##"
2414 echo
2415 # The following way of writing the cache mishandles newlines in values,
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in #(
2420 *${as_nl}*)
2421 case $ac_var in #(
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2424 esac
2425 case $ac_var in #(
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2429 esac ;;
2430 esac
2431 done
2432 (set) 2>&1 |
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2435 sed -n \
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2438 ;; #(
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2442 esac |
2443 sort
2445 echo
2447 $as_echo "## ----------------- ##
2448 ## Output variables. ##
2449 ## ----------------- ##"
2450 echo
2451 for ac_var in $ac_subst_vars
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2461 if test -n "$ac_subst_files"; then
2462 $as_echo "## ------------------- ##
2463 ## File substitutions. ##
2464 ## ------------------- ##"
2465 echo
2466 for ac_var in $ac_subst_files
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2477 if test -s confdefs.h; then
2478 $as_echo "## ----------- ##
2479 ## confdefs.h. ##
2480 ## ----------- ##"
2481 echo
2482 cat confdefs.h
2483 echo
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2488 } >&5
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2491 exit $exit_status
2493 for ac_signal in 1 2 13 15; do
2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495 done
2496 ac_signal=0
2498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2499 rm -f -r conftest* confdefs.h
2501 $as_echo "/* confdefs.h */" > confdefs.h
2503 # Predefined preprocessor variables.
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_NAME "$PACKAGE_NAME"
2507 _ACEOF
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2511 _ACEOF
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2515 _ACEOF
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_STRING "$PACKAGE_STRING"
2519 _ACEOF
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2523 _ACEOF
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_URL "$PACKAGE_URL"
2527 _ACEOF
2530 # Let the site file select an alternate cache file if it wants to.
2531 # Prefer an explicitly selected file to automatically selected ones.
2532 ac_site_file1=NONE
2533 ac_site_file2=NONE
2534 if test -n "$CONFIG_SITE"; then
2535 # We do not want a PATH search for config.site.
2536 case $CONFIG_SITE in #((
2537 -*) ac_site_file1=./$CONFIG_SITE;;
2538 */*) ac_site_file1=$CONFIG_SITE;;
2539 *) ac_site_file1=./$CONFIG_SITE;;
2540 esac
2541 elif test "x$prefix" != xNONE; then
2542 ac_site_file1=$prefix/share/config.site
2543 ac_site_file2=$prefix/etc/config.site
2544 else
2545 ac_site_file1=$ac_default_prefix/share/config.site
2546 ac_site_file2=$ac_default_prefix/etc/config.site
2548 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2550 test "x$ac_site_file" = xNONE && continue
2551 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2555 . "$ac_site_file" \
2556 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error $? "failed to load site script $ac_site_file
2559 See \`config.log' for more details" "$LINENO" 5; }
2561 done
2563 if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568 $as_echo "$as_me: loading cache $cache_file" >&6;}
2569 case $cache_file in
2570 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2571 *) . "./$cache_file";;
2572 esac
2574 else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576 $as_echo "$as_me: creating cache $cache_file" >&6;}
2577 >$cache_file
2580 as_fn_append ac_header_list " stdlib.h"
2581 as_fn_append ac_header_list " unistd.h"
2582 as_fn_append ac_header_list " sys/param.h"
2583 # Check that the precious variables saved in the cache have kept the same
2584 # value.
2585 ac_cache_corrupted=false
2586 for ac_var in $ac_precious_vars; do
2587 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2588 eval ac_new_set=\$ac_env_${ac_var}_set
2589 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2590 eval ac_new_val=\$ac_env_${ac_var}_value
2591 case $ac_old_set,$ac_new_set in
2592 set,)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2594 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,set)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,);;
2602 if test "x$ac_old_val" != "x$ac_new_val"; then
2603 # differences in whitespace do not lead to failure.
2604 ac_old_val_w=`echo x $ac_old_val`
2605 ac_new_val_w=`echo x $ac_new_val`
2606 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2608 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2609 ac_cache_corrupted=:
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2612 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2613 eval $ac_var=\$ac_old_val
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2616 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2618 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2619 fi;;
2620 esac
2621 # Pass precious variables to config.status.
2622 if test "$ac_new_set" = set; then
2623 case $ac_new_val in
2624 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2625 *) ac_arg=$ac_var=$ac_new_val ;;
2626 esac
2627 case " $ac_configure_args " in
2628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2629 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2630 esac
2632 done
2633 if $ac_cache_corrupted; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2637 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2638 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2640 ## -------------------- ##
2641 ## Main body of script. ##
2642 ## -------------------- ##
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 ac_aux_dir=
2653 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2654 if test -f "$ac_dir/install-sh"; then
2655 ac_aux_dir=$ac_dir
2656 ac_install_sh="$ac_aux_dir/install-sh -c"
2657 break
2658 elif test -f "$ac_dir/install.sh"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/install.sh -c"
2661 break
2662 elif test -f "$ac_dir/shtool"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/shtool install -c"
2665 break
2667 done
2668 if test -z "$ac_aux_dir"; then
2669 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2672 # These three variables are undocumented and unsupported,
2673 # and are intended to be withdrawn in a future Autoconf release.
2674 # They can cause serious problems if a builder's source tree is in a directory
2675 # whose full name contains unusual characters.
2676 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2677 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2678 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2682 # Check what host we are running on.
2683 # If a target is not suggested, we use this one.
2684 # Note that what we call a target, Autoconf calls a host.
2685 # Make sure we can run config.sub.
2686 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2687 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2690 $as_echo_n "checking build system type... " >&6; }
2691 if ${ac_cv_build+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 ac_build_alias=$build_alias
2695 test "x$ac_build_alias" = x &&
2696 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2697 test "x$ac_build_alias" = x &&
2698 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2699 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2704 $as_echo "$ac_cv_build" >&6; }
2705 case $ac_cv_build in
2706 *-*-*) ;;
2707 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2708 esac
2709 build=$ac_cv_build
2710 ac_save_IFS=$IFS; IFS='-'
2711 set x $ac_cv_build
2712 shift
2713 build_cpu=$1
2714 build_vendor=$2
2715 shift; shift
2716 # Remember, the first character of IFS is used to create $*,
2717 # except with old shells:
2718 build_os=$*
2719 IFS=$ac_save_IFS
2720 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2724 $as_echo_n "checking host system type... " >&6; }
2725 if ${ac_cv_host+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test "x$host_alias" = x; then
2729 ac_cv_host=$ac_cv_build
2730 else
2731 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2737 $as_echo "$ac_cv_host" >&6; }
2738 case $ac_cv_host in
2739 *-*-*) ;;
2740 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2741 esac
2742 host=$ac_cv_host
2743 ac_save_IFS=$IFS; IFS='-'
2744 set x $ac_cv_host
2745 shift
2746 host_cpu=$1
2747 host_vendor=$2
2748 shift; shift
2749 # Remember, the first character of IFS is used to create $*,
2750 # except with old shells:
2751 host_os=$*
2752 IFS=$ac_save_IFS
2753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2757 # The AROS target is slightly different to the normal GNU style
2758 # format. We don't have the middle part, and we reverse the order
2759 # of the $(CPU) and $(OS) bits.
2761 # Don't strip the version of the target yet, it might be
2762 # useful on some systems.
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2765 $as_echo_n "checking for AROS style target... " >&6; }
2767 if test "$target" = "NONE" ; then
2768 target=$host_os-$host_cpu
2769 else
2770 if test "$target" = "" ; then
2771 target=$host_os-$host_cpu
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2775 $as_echo "$target" >&6; }
2777 if test "$host_os" = "mingw32" ; then
2778 PWDCMD="pwd -W"
2781 # Don't know where else to put this...
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2783 $as_echo_n "checking building AROS in... " >&6; }
2784 AROS_BUILDDIR=`${PWDCMD-pwd}`
2785 AROS_BUILDDIR_UNIX=${PWD}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2787 $as_echo "$AROS_BUILDDIR" >&6; }
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2790 $as_echo_n "checking AROS source in... " >&6; }
2791 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2792 SRCDIR=${srcpwd}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2794 $as_echo "$SRCDIR" >&6; }
2796 # Parse the target field into something useful.
2798 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2799 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2802 # Some debug output, to be removed again.
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2804 $as_echo_n "checking for target system (debug output)... " >&6; }
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2806 $as_echo "$target_os" >&6; }
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2808 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2810 $as_echo "$target_cpu" >&6; }
2812 aros_default_wbwidth=800
2813 aros_default_wbheight=600
2814 aros_default_wbdepth=4
2817 # The first step is to find the host binaries.
2818 # Check for a compiler.
2819 # Due to a bug in autoconf check for c++ compiler first.
2820 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2821 ac_ext=cpp
2822 ac_cpp='$CXXCPP $CPPFLAGS'
2823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2826 if test -z "$CXX"; then
2827 if test -n "$CCC"; then
2828 CXX=$CCC
2829 else
2830 if test -n "$ac_tool_prefix"; then
2831 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_CXX+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$CXX"; then
2841 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2854 done
2855 done
2856 IFS=$as_save_IFS
2860 CXX=$ac_cv_prog_CXX
2861 if test -n "$CXX"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2863 $as_echo "$CXX" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2870 test -n "$CXX" && break
2871 done
2873 if test -z "$CXX"; then
2874 ac_ct_CXX=$CXX
2875 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2877 # Extract the first word of "$ac_prog", so it can be a program name with args.
2878 set dummy $ac_prog; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$ac_ct_CXX"; then
2885 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_ac_ct_CXX="$ac_prog"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2898 done
2899 done
2900 IFS=$as_save_IFS
2904 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2905 if test -n "$ac_ct_CXX"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2907 $as_echo "$ac_ct_CXX" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2914 test -n "$ac_ct_CXX" && break
2915 done
2917 if test "x$ac_ct_CXX" = x; then
2918 CXX="g++"
2919 else
2920 case $cross_compiling:$ac_tool_warned in
2921 yes:)
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924 ac_tool_warned=yes ;;
2925 esac
2926 CXX=$ac_ct_CXX
2932 # Provide some information about the compiler.
2933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2934 set X $ac_compile
2935 ac_compiler=$2
2936 for ac_option in --version -v -V -qversion; do
2937 { { ac_try="$ac_compiler $ac_option >&5"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2945 ac_status=$?
2946 if test -s conftest.err; then
2947 sed '10a\
2948 ... rest of stderr output deleted ...
2949 10q' conftest.err >conftest.er1
2950 cat conftest.er1 >&5
2952 rm -f conftest.er1 conftest.err
2953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954 test $ac_status = 0; }
2955 done
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2961 main ()
2965 return 0;
2967 _ACEOF
2968 ac_clean_files_save=$ac_clean_files
2969 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2970 # Try to create an executable without -o first, disregard a.out.
2971 # It will help us diagnose broken compilers, and finding out an intuition
2972 # of exeext.
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2974 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2975 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2977 # The possible output files:
2978 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2980 ac_rmfiles=
2981 for ac_file in $ac_files
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2986 esac
2987 done
2988 rm -f $ac_rmfiles
2990 if { { ac_try="$ac_link_default"
2991 case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_link_default") 2>&5
2998 ac_status=$?
2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }; then :
3001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3004 # so that the user can short-circuit this test for compilers unknown to
3005 # Autoconf.
3006 for ac_file in $ac_files ''
3008 test -f "$ac_file" || continue
3009 case $ac_file in
3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3012 [ab].out )
3013 # We found the default executable, but exeext='' is most
3014 # certainly right.
3015 break;;
3016 *.* )
3017 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3018 then :; else
3019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021 # We set ac_cv_exeext here because the later test for it is not
3022 # safe: cross compilers may not add the suffix if given an `-o'
3023 # argument, so we may need to know it at that point already.
3024 # Even if this section looks crufty: it has the advantage of
3025 # actually working.
3026 break;;
3028 break;;
3029 esac
3030 done
3031 test "$ac_cv_exeext" = no && ac_cv_exeext=
3033 else
3034 ac_file=''
3036 if test -z "$ac_file"; then :
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error 77 "C++ compiler cannot create executables
3045 See \`config.log' for more details" "$LINENO" 5; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3051 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3053 $as_echo "$ac_file" >&6; }
3054 ac_exeext=$ac_cv_exeext
3056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3057 ac_clean_files=$ac_clean_files_save
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3059 $as_echo_n "checking for suffix of executables... " >&6; }
3060 if { { ac_try="$ac_link"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_link") 2>&5
3068 ac_status=$?
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; then :
3071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3073 # work properly (i.e., refer to `conftest.exe'), while it won't with
3074 # `rm'.
3075 for ac_file in conftest.exe conftest conftest.*; do
3076 test -f "$ac_file" || continue
3077 case $ac_file in
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 break;;
3081 * ) break;;
3082 esac
3083 done
3084 else
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details" "$LINENO" 5; }
3090 rm -f conftest conftest$ac_cv_exeext
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3092 $as_echo "$ac_cv_exeext" >&6; }
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3096 ac_exeext=$EXEEXT
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099 #include <stdio.h>
3101 main ()
3103 FILE *f = fopen ("conftest.out", "w");
3104 return ferror (f) || fclose (f) != 0;
3107 return 0;
3109 _ACEOF
3110 ac_clean_files="$ac_clean_files conftest.out"
3111 # Check that the compiler produces executables we can run. If not, either
3112 # the compiler is broken, or we cross compile.
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3114 $as_echo_n "checking whether we are cross compiling... " >&6; }
3115 if test "$cross_compiling" != yes; then
3116 { { ac_try="$ac_link"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_link") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }
3127 if { ac_try='./conftest$ac_cv_exeext'
3128 { { case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }; }; then
3138 cross_compiling=no
3139 else
3140 if test "$cross_compiling" = maybe; then
3141 cross_compiling=yes
3142 else
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $? "cannot run C++ compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details" "$LINENO" 5; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3152 $as_echo "$cross_compiling" >&6; }
3154 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3155 ac_clean_files=$ac_clean_files_save
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3157 $as_echo_n "checking for suffix of object files... " >&6; }
3158 if ${ac_cv_objext+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3165 main ()
3169 return 0;
3171 _ACEOF
3172 rm -f conftest.o conftest.obj
3173 if { { ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_compile") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 for ac_file in conftest.o conftest.obj conftest.*; do
3185 test -f "$ac_file" || continue;
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3189 break;;
3190 esac
3191 done
3192 else
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details" "$LINENO" 5; }
3201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3204 $as_echo "$ac_cv_objext" >&6; }
3205 OBJEXT=$ac_cv_objext
3206 ac_objext=$OBJEXT
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3208 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3209 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3216 main ()
3218 #ifndef __GNUC__
3219 choke me
3220 #endif
3223 return 0;
3225 _ACEOF
3226 if ac_fn_cxx_try_compile "$LINENO"; then :
3227 ac_compiler_gnu=yes
3228 else
3229 ac_compiler_gnu=no
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3236 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3237 if test $ac_compiler_gnu = yes; then
3238 GXX=yes
3239 else
3240 GXX=
3242 ac_test_CXXFLAGS=${CXXFLAGS+set}
3243 ac_save_CXXFLAGS=$CXXFLAGS
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3245 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3246 if ${ac_cv_prog_cxx_g+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3250 ac_cxx_werror_flag=yes
3251 ac_cv_prog_cxx_g=no
3252 CXXFLAGS="-g"
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3257 main ()
3261 return 0;
3263 _ACEOF
3264 if ac_fn_cxx_try_compile "$LINENO"; then :
3265 ac_cv_prog_cxx_g=yes
3266 else
3267 CXXFLAGS=""
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3272 main ()
3276 return 0;
3278 _ACEOF
3279 if ac_fn_cxx_try_compile "$LINENO"; then :
3281 else
3282 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3283 CXXFLAGS="-g"
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3288 main ()
3292 return 0;
3294 _ACEOF
3295 if ac_fn_cxx_try_compile "$LINENO"; then :
3296 ac_cv_prog_cxx_g=yes
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3306 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3307 if test "$ac_test_CXXFLAGS" = set; then
3308 CXXFLAGS=$ac_save_CXXFLAGS
3309 elif test $ac_cv_prog_cxx_g = yes; then
3310 if test "$GXX" = yes; then
3311 CXXFLAGS="-g -O2"
3312 else
3313 CXXFLAGS="-g"
3315 else
3316 if test "$GXX" = yes; then
3317 CXXFLAGS="-O2"
3318 else
3319 CXXFLAGS=
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 ac_ext=c
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3355 done
3356 done
3357 IFS=$as_save_IFS
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3372 if test -z "$ac_cv_prog_CC"; then
3373 ac_ct_CC=$CC
3374 # Extract the first word of "gcc", so it can be a program name with args.
3375 set dummy gcc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$ac_ct_CC"; then
3382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_ac_ct_CC="gcc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3395 done
3396 done
3397 IFS=$as_save_IFS
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 if test "x$ac_ct_CC" = x; then
3411 CC=""
3412 else
3413 case $cross_compiling:$ac_tool_warned in
3414 yes:)
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned=yes ;;
3418 esac
3419 CC=$ac_ct_CC
3421 else
3422 CC="$ac_cv_prog_CC"
3425 if test -z "$CC"; then
3426 if test -n "$ac_tool_prefix"; then
3427 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3428 set dummy ${ac_tool_prefix}cc; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC="${ac_tool_prefix}cc"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3448 done
3449 done
3450 IFS=$as_save_IFS
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3466 if test -z "$CC"; then
3467 # Extract the first word of "cc", so it can be a program name with args.
3468 set dummy cc; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_CC+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 ac_prog_rejected=no
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3486 ac_prog_rejected=yes
3487 continue
3489 ac_cv_prog_CC="cc"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3493 done
3494 done
3495 IFS=$as_save_IFS
3497 if test $ac_prog_rejected = yes; then
3498 # We found a bogon in the path, so make sure we never use it.
3499 set dummy $ac_cv_prog_CC
3500 shift
3501 if test $# != 0; then
3502 # We chose a different compiler from the bogus one.
3503 # However, it has the same basename, so the bogon will be chosen
3504 # first if we set CC to just the basename; use the full file name.
3505 shift
3506 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3511 CC=$ac_cv_prog_CC
3512 if test -n "$CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3515 else
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3522 if test -z "$CC"; then
3523 if test -n "$ac_tool_prefix"; then
3524 for ac_prog in cl.exe
3526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC="$CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3547 done
3548 done
3549 IFS=$as_save_IFS
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3563 test -n "$CC" && break
3564 done
3566 if test -z "$CC"; then
3567 ac_ct_CC=$CC
3568 for ac_prog in cl.exe
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 if test -n "$ac_ct_CC"; then
3578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_ac_ct_CC="$ac_prog"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3591 done
3592 done
3593 IFS=$as_save_IFS
3597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3598 if test -n "$ac_ct_CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3600 $as_echo "$ac_ct_CC" >&6; }
3601 else
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3607 test -n "$ac_ct_CC" && break
3608 done
3610 if test "x$ac_ct_CC" = x; then
3611 CC=""
3612 else
3613 case $cross_compiling:$ac_tool_warned in
3614 yes:)
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617 ac_tool_warned=yes ;;
3618 esac
3619 CC=$ac_ct_CC
3626 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "no acceptable C compiler found in \$PATH
3629 See \`config.log' for more details" "$LINENO" 5; }
3631 # Provide some information about the compiler.
3632 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3633 set X $ac_compile
3634 ac_compiler=$2
3635 for ac_option in --version -v -V -qversion; do
3636 { { ac_try="$ac_compiler $ac_option >&5"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3644 ac_status=$?
3645 if test -s conftest.err; then
3646 sed '10a\
3647 ... rest of stderr output deleted ...
3648 10q' conftest.err >conftest.er1
3649 cat conftest.er1 >&5
3651 rm -f conftest.er1 conftest.err
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }
3654 done
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3657 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3658 if ${ac_cv_c_compiler_gnu+:} false; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3665 main ()
3667 #ifndef __GNUC__
3668 choke me
3669 #endif
3672 return 0;
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_compiler_gnu=yes
3677 else
3678 ac_compiler_gnu=no
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3685 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3686 if test $ac_compiler_gnu = yes; then
3687 GCC=yes
3688 else
3689 GCC=
3691 ac_test_CFLAGS=${CFLAGS+set}
3692 ac_save_CFLAGS=$CFLAGS
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3694 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3695 if ${ac_cv_prog_cc_g+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 ac_save_c_werror_flag=$ac_c_werror_flag
3699 ac_c_werror_flag=yes
3700 ac_cv_prog_cc_g=no
3701 CFLAGS="-g"
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 main ()
3710 return 0;
3712 _ACEOF
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714 ac_cv_prog_cc_g=yes
3715 else
3716 CFLAGS=""
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3721 main ()
3725 return 0;
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3730 else
3731 ac_c_werror_flag=$ac_save_c_werror_flag
3732 CFLAGS="-g"
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3737 main ()
3741 return 0;
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_prog_cc_g=yes
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_c_werror_flag=$ac_save_c_werror_flag
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3755 $as_echo "$ac_cv_prog_cc_g" >&6; }
3756 if test "$ac_test_CFLAGS" = set; then
3757 CFLAGS=$ac_save_CFLAGS
3758 elif test $ac_cv_prog_cc_g = yes; then
3759 if test "$GCC" = yes; then
3760 CFLAGS="-g -O2"
3761 else
3762 CFLAGS="-g"
3764 else
3765 if test "$GCC" = yes; then
3766 CFLAGS="-O2"
3767 else
3768 CFLAGS=
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3772 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3773 if ${ac_cv_prog_cc_c89+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 ac_cv_prog_cc_c89=no
3777 ac_save_CC=$CC
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780 #include <stdarg.h>
3781 #include <stdio.h>
3782 struct stat;
3783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3784 struct buf { int x; };
3785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3786 static char *e (p, i)
3787 char **p;
3788 int i;
3790 return p[i];
3792 static char *f (char * (*g) (char **, int), char **p, ...)
3794 char *s;
3795 va_list v;
3796 va_start (v,p);
3797 s = g (p, va_arg (v,int));
3798 va_end (v);
3799 return s;
3802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3803 function prototypes and stuff, but not '\xHH' hex character constants.
3804 These don't provoke an error unfortunately, instead are silently treated
3805 as 'x'. The following induces an error, until -std is added to get
3806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3807 array size at least. It's necessary to write '\x00'==0 to get something
3808 that's true only with -std. */
3809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3812 inside strings and character constants. */
3813 #define FOO(x) 'x'
3814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3816 int test (int i, double x);
3817 struct s1 {int (*f) (int a);};
3818 struct s2 {int (*f) (double a);};
3819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3820 int argc;
3821 char **argv;
3823 main ()
3825 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3827 return 0;
3829 _ACEOF
3830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3831 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3833 CC="$ac_save_CC $ac_arg"
3834 if ac_fn_c_try_compile "$LINENO"; then :
3835 ac_cv_prog_cc_c89=$ac_arg
3837 rm -f core conftest.err conftest.$ac_objext
3838 test "x$ac_cv_prog_cc_c89" != "xno" && break
3839 done
3840 rm -f conftest.$ac_ext
3841 CC=$ac_save_CC
3844 # AC_CACHE_VAL
3845 case "x$ac_cv_prog_cc_c89" in
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3848 $as_echo "none needed" >&6; } ;;
3849 xno)
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3851 $as_echo "unsupported" >&6; } ;;
3853 CC="$CC $ac_cv_prog_cc_c89"
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3855 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3856 esac
3857 if test "x$ac_cv_prog_cc_c89" != xno; then :
3861 ac_ext=c
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 case $ac_cv_prog_cc_stdc in #(
3868 no) :
3869 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3870 *) :
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3872 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3873 if ${ac_cv_prog_cc_c99+:} false; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 ac_cv_prog_cc_c99=no
3877 ac_save_CC=$CC
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880 #include <stdarg.h>
3881 #include <stdbool.h>
3882 #include <stdlib.h>
3883 #include <wchar.h>
3884 #include <stdio.h>
3886 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3887 #define debug(...) fprintf (stderr, __VA_ARGS__)
3888 #define showlist(...) puts (#__VA_ARGS__)
3889 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3890 static void
3891 test_varargs_macros (void)
3893 int x = 1234;
3894 int y = 5678;
3895 debug ("Flag");
3896 debug ("X = %d\n", x);
3897 showlist (The first, second, and third items.);
3898 report (x>y, "x is %d but y is %d", x, y);
3901 // Check long long types.
3902 #define BIG64 18446744073709551615ull
3903 #define BIG32 4294967295ul
3904 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3905 #if !BIG_OK
3906 your preprocessor is broken;
3907 #endif
3908 #if BIG_OK
3909 #else
3910 your preprocessor is broken;
3911 #endif
3912 static long long int bignum = -9223372036854775807LL;
3913 static unsigned long long int ubignum = BIG64;
3915 struct incomplete_array
3917 int datasize;
3918 double data[];
3921 struct named_init {
3922 int number;
3923 const wchar_t *name;
3924 double average;
3927 typedef const char *ccp;
3929 static inline int
3930 test_restrict (ccp restrict text)
3932 // See if C++-style comments work.
3933 // Iterate through items via the restricted pointer.
3934 // Also check for declarations in for loops.
3935 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3936 continue;
3937 return 0;
3940 // Check varargs and va_copy.
3941 static void
3942 test_varargs (const char *format, ...)
3944 va_list args;
3945 va_start (args, format);
3946 va_list args_copy;
3947 va_copy (args_copy, args);
3949 const char *str;
3950 int number;
3951 float fnumber;
3953 while (*format)
3955 switch (*format++)
3957 case 's': // string
3958 str = va_arg (args_copy, const char *);
3959 break;
3960 case 'd': // int
3961 number = va_arg (args_copy, int);
3962 break;
3963 case 'f': // float
3964 fnumber = va_arg (args_copy, double);
3965 break;
3966 default:
3967 break;
3970 va_end (args_copy);
3971 va_end (args);
3975 main ()
3978 // Check bool.
3979 _Bool success = false;
3981 // Check restrict.
3982 if (test_restrict ("String literal") == 0)
3983 success = true;
3984 char *restrict newvar = "Another string";
3986 // Check varargs.
3987 test_varargs ("s, d' f .", "string", 65, 34.234);
3988 test_varargs_macros ();
3990 // Check flexible array members.
3991 struct incomplete_array *ia =
3992 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3993 ia->datasize = 10;
3994 for (int i = 0; i < ia->datasize; ++i)
3995 ia->data[i] = i * 1.234;
3997 // Check named initializers.
3998 struct named_init ni = {
3999 .number = 34,
4000 .name = L"Test wide string",
4001 .average = 543.34343,
4004 ni.number = 58;
4006 int dynamic_array[ni.number];
4007 dynamic_array[ni.number - 1] = 543;
4009 // work around unused variable warnings
4010 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4011 || dynamic_array[ni.number - 1] != 543);
4014 return 0;
4016 _ACEOF
4017 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4019 CC="$ac_save_CC $ac_arg"
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_c99=$ac_arg
4023 rm -f core conftest.err conftest.$ac_objext
4024 test "x$ac_cv_prog_cc_c99" != "xno" && break
4025 done
4026 rm -f conftest.$ac_ext
4027 CC=$ac_save_CC
4030 # AC_CACHE_VAL
4031 case "x$ac_cv_prog_cc_c99" in
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4034 $as_echo "none needed" >&6; } ;;
4035 xno)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4037 $as_echo "unsupported" >&6; } ;;
4039 CC="$CC $ac_cv_prog_cc_c99"
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4041 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4042 esac
4043 if test "x$ac_cv_prog_cc_c99" != xno; then :
4044 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4045 else
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4047 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4048 if ${ac_cv_prog_cc_c89+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 ac_cv_prog_cc_c89=no
4052 ac_save_CC=$CC
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 #include <stdarg.h>
4056 #include <stdio.h>
4057 struct stat;
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4062 char **p;
4063 int i;
4065 return p[i];
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4069 char *s;
4070 va_list v;
4071 va_start (v,p);
4072 s = g (p, va_arg (v,int));
4073 va_end (v);
4074 return s;
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4078 function prototypes and stuff, but not '\xHH' hex character constants.
4079 These don't provoke an error unfortunately, instead are silently treated
4080 as 'x'. The following induces an error, until -std is added to get
4081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4082 array size at least. It's necessary to write '\x00'==0 to get something
4083 that's true only with -std. */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087 inside strings and character constants. */
4088 #define FOO(x) 'x'
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 int argc;
4096 char **argv;
4098 main ()
4100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4102 return 0;
4104 _ACEOF
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108 CC="$ac_save_CC $ac_arg"
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_cv_prog_cc_c89=$ac_arg
4112 rm -f core conftest.err conftest.$ac_objext
4113 test "x$ac_cv_prog_cc_c89" != "xno" && break
4114 done
4115 rm -f conftest.$ac_ext
4116 CC=$ac_save_CC
4119 # AC_CACHE_VAL
4120 case "x$ac_cv_prog_cc_c89" in
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4123 $as_echo "none needed" >&6; } ;;
4124 xno)
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4126 $as_echo "unsupported" >&6; } ;;
4128 CC="$CC $ac_cv_prog_cc_c89"
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4130 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4131 esac
4132 if test "x$ac_cv_prog_cc_c89" != xno; then :
4133 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4134 else
4135 ac_cv_prog_cc_stdc=no
4140 esac
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4142 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4143 if ${ac_cv_prog_cc_stdc+:} false; then :
4144 $as_echo_n "(cached) " >&6
4147 case $ac_cv_prog_cc_stdc in #(
4148 no) :
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4150 $as_echo "unsupported" >&6; } ;; #(
4151 '') :
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4153 $as_echo "none needed" >&6; } ;; #(
4154 *) :
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4156 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4157 esac
4159 ac_ext=c
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4165 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4166 # On Suns, sometimes $CPP names a directory.
4167 if test -n "$CPP" && test -d "$CPP"; then
4168 CPP=
4170 if test -z "$CPP"; then
4171 if ${ac_cv_prog_CPP+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 # Double quotes because CPP needs to be expanded
4175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4177 ac_preproc_ok=false
4178 for ac_c_preproc_warn_flag in '' yes
4180 # Use a header file that comes with gcc, so configuring glibc
4181 # with a fresh cross-compiler works.
4182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183 # <limits.h> exists even on freestanding compilers.
4184 # On the NeXT, cc -E runs the code through the compiler's parser,
4185 # not just through cpp. "Syntax error" is here to catch this case.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #ifdef __STDC__
4189 # include <limits.h>
4190 #else
4191 # include <assert.h>
4192 #endif
4193 Syntax error
4194 _ACEOF
4195 if ac_fn_c_try_cpp "$LINENO"; then :
4197 else
4198 # Broken: fails on valid input.
4199 continue
4201 rm -f conftest.err conftest.i conftest.$ac_ext
4203 # OK, works on sane cases. Now check whether nonexistent headers
4204 # can be detected and how.
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207 #include <ac_nonexistent.h>
4208 _ACEOF
4209 if ac_fn_c_try_cpp "$LINENO"; then :
4210 # Broken: success on invalid input.
4211 continue
4212 else
4213 # Passes both tests.
4214 ac_preproc_ok=:
4215 break
4217 rm -f conftest.err conftest.i conftest.$ac_ext
4219 done
4220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4221 rm -f conftest.i conftest.err conftest.$ac_ext
4222 if $ac_preproc_ok; then :
4223 break
4226 done
4227 ac_cv_prog_CPP=$CPP
4230 CPP=$ac_cv_prog_CPP
4231 else
4232 ac_cv_prog_CPP=$CPP
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4235 $as_echo "$CPP" >&6; }
4236 ac_preproc_ok=false
4237 for ac_c_preproc_warn_flag in '' yes
4239 # Use a header file that comes with gcc, so configuring glibc
4240 # with a fresh cross-compiler works.
4241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4242 # <limits.h> exists even on freestanding compilers.
4243 # On the NeXT, cc -E runs the code through the compiler's parser,
4244 # not just through cpp. "Syntax error" is here to catch this case.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #ifdef __STDC__
4248 # include <limits.h>
4249 #else
4250 # include <assert.h>
4251 #endif
4252 Syntax error
4253 _ACEOF
4254 if ac_fn_c_try_cpp "$LINENO"; then :
4256 else
4257 # Broken: fails on valid input.
4258 continue
4260 rm -f conftest.err conftest.i conftest.$ac_ext
4262 # OK, works on sane cases. Now check whether nonexistent headers
4263 # can be detected and how.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266 #include <ac_nonexistent.h>
4267 _ACEOF
4268 if ac_fn_c_try_cpp "$LINENO"; then :
4269 # Broken: success on invalid input.
4270 continue
4271 else
4272 # Passes both tests.
4273 ac_preproc_ok=:
4274 break
4276 rm -f conftest.err conftest.i conftest.$ac_ext
4278 done
4279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4280 rm -f conftest.i conftest.err conftest.$ac_ext
4281 if $ac_preproc_ok; then :
4283 else
4284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4286 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4287 See \`config.log' for more details" "$LINENO" 5; }
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 # Check for a compatible awk
4298 for ac_prog in gawk nawk
4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
4301 set dummy $ac_prog; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_prog_AWK+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if test -n "$AWK"; then
4308 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_AWK="$ac_prog"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4321 done
4322 done
4323 IFS=$as_save_IFS
4327 AWK=$ac_cv_prog_AWK
4328 if test -n "$AWK"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4330 $as_echo "$AWK" >&6; }
4331 else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4337 test -n "$AWK" && break
4338 done
4340 if test "$AWK" = ""; then
4341 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4343 # Extract the first word of "mmake", so it can be a program name with args.
4344 set dummy mmake; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_MMAKE+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$MMAKE"; then
4351 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_MMAKE="mmake "
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4364 done
4365 done
4366 IFS=$as_save_IFS
4370 MMAKE=$ac_cv_prog_MMAKE
4371 if test -n "$MMAKE"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4373 $as_echo "$MMAKE" >&6; }
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4381 # Perform some default variable assignments. Note all of these will be
4382 # Regenerated from the script, so there is no need to cache them.
4384 aros_host_cpp="$CPP"
4385 aros_host_cc="$CC"
4386 aros_host_cxx="$CXX"
4387 if test "$GCC" = "yes"; then
4388 aros_gcc_ld=`$CC -print-prog-name=ld`
4389 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4390 set dummy `basename $aros_gcc_ld`; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_path_aros_host_ld+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 case $aros_host_ld in
4397 [\\/]* | ?:[\\/]*)
4398 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in `dirname $aros_gcc_ld`
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4412 done
4413 done
4414 IFS=$as_save_IFS
4417 esac
4419 aros_host_ld=$ac_cv_path_aros_host_ld
4420 if test -n "$aros_host_ld"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4422 $as_echo "$aros_host_ld" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4430 if test "$aros_host_ld" = ""; then
4431 # Extract the first word of "ld", so it can be a program name with args.
4432 set dummy ld; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_path_aros_host_ld+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 case $aros_host_ld in
4439 [\\/]* | ?:[\\/]*)
4440 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4456 IFS=$as_save_IFS
4459 esac
4461 aros_host_ld=$ac_cv_path_aros_host_ld
4462 if test -n "$aros_host_ld"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4464 $as_echo "$aros_host_ld" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4472 if test "$aros_host_ld" = ""; then
4473 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4475 aros_host_make="make"
4476 aros_host_cflags="$CFLAGS"
4477 aros_host_cxxflags="$CXXFLAGS"
4478 aros_host_ldflags="$LDFLAGS"
4479 aros_host_debug="-g -O0"
4480 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4481 aros_host_mkargs="--no-print-directory"
4482 aros_host_exe_suffix="$EXEEXT"
4483 aros_host_lib_suffix=""
4485 # Ignore all compliance, AROS ROMs = 0
4486 # KickStart v1.0 = 30
4487 # KickStart v1.3 = 34
4488 # KickStart v2.0 = 37
4489 # KickStart v3.0 = 39
4490 # KickStart v3.1 = 40
4491 # AmigaOS v3.5 = 44
4492 aros_amigaos_compliance=0
4494 for ac_prog in aclocal aclocal19 aclocal-1.9
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$aros_host_aclocal"; then
4504 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_aros_host_aclocal="$ac_prog"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4517 done
4518 done
4519 IFS=$as_save_IFS
4523 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4524 if test -n "$aros_host_aclocal"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4526 $as_echo "$aros_host_aclocal" >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4533 test -n "$aros_host_aclocal" && break
4534 done
4536 for ac_prog in autoconf autoconf259 autoconf253
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$aros_host_autoconf"; then
4546 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_aros_host_autoconf="$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4566 if test -n "$aros_host_autoconf"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4568 $as_echo "$aros_host_autoconf" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$aros_host_autoconf" && break
4576 done
4578 for ac_prog in autoheader autoheader259 autoheader253
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$aros_host_autoheader"; then
4588 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_aros_host_autoheader="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4608 if test -n "$aros_host_autoheader"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4610 $as_echo "$aros_host_autoheader" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$aros_host_autoheader" && break
4618 done
4620 for ac_prog in automake automake19 automake-1.9
4622 # Extract the first word of "$ac_prog", so it can be a program name with args.
4623 set dummy $ac_prog; ac_word=$2
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if ${ac_cv_prog_aros_host_automake+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if test -n "$aros_host_automake"; then
4630 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_prog_aros_host_automake="$ac_prog"
4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4643 done
4644 done
4645 IFS=$as_save_IFS
4649 aros_host_automake=$ac_cv_prog_aros_host_automake
4650 if test -n "$aros_host_automake"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4652 $as_echo "$aros_host_automake" >&6; }
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4659 test -n "$aros_host_automake" && break
4660 done
4663 if test "$aros_host_aclocal" = ""; then
4664 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4666 if test "$aros_host_automake" = ""; then
4667 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4670 case "$aros_host_cc" in
4671 *clang*)
4672 aros_host_cc_pipe=""
4674 *gcc*)
4675 aros_host_cc_pipe="-pipe"
4677 icc)
4678 aros_host_cc_pipe=""
4681 aros_host_cc_pipe=""
4683 esac
4685 aros_kernel_cc_includes=""
4686 aros_target_cc_includes=""
4687 host_cc_elf=yes
4689 # ----------------------------------------------------------------------------------------
4690 # Host-specific defaults
4692 # This is the main host configuration section. It is where the host
4693 # can change the values of any variables it needs to change. We do
4694 # not look at anything that compiles to the target yet, we'll get
4695 # to that later.
4697 case "$host_os" in
4698 aros*)
4699 aros_host_arch="aros"
4700 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4701 case "$host_cpu" in
4702 *i?86*)
4703 aros_host_cpu="i386"
4705 *x86_64*)
4706 aros_host_cpu="x86_64"
4708 *powerpc*)
4709 aros_host_cpu="ppc"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4713 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4714 aros_host_cpu="$host_cpu"
4716 esac
4719 linux*)
4720 aros_host_arch="linux"
4721 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4722 android_build_os="linux-x86"
4723 android_tool="android"
4724 default_android_sdk="/opt/android-sdk-linux_x86"
4725 case "$host_cpu" in
4726 *i?86*)
4727 aros_host_cpu="i386"
4729 *x86_64*)
4730 aros_host_cpu="x86_64"
4732 *m68k*)
4733 aros_host_cpu="m68k"
4735 *powerpc*)
4736 aros_host_cpu="ppc"
4738 *arm*)
4739 aros_host_cpu="arm"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4743 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4744 aros_host_cpu="$host_cpu"
4746 esac
4749 freebsd*)
4750 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4751 aros_host_make="gmake"
4752 aros_host_arch="freebsd"
4753 aros_host_cpu="i386"
4755 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4757 case $host_os in
4758 freebsd[234]*)
4759 aros_object_format="elf_i386"
4763 aros_object_format="elf_i386_fbsd"
4765 esac
4769 darwin*)
4770 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4771 aros_host_arch="darwin"
4772 host_cc_elf=no
4773 SED="gsed"
4774 android_build_os="darwin-x86"
4775 android_tool="android"
4776 default_android_sdk="/android-sdk-mac_x86"
4777 case "$host_cpu" in
4778 *i?86*)
4779 aros_host_cpu="i386"
4781 *x86_64*)
4782 aros_host_cpu="x86_64"
4784 *powerpc*)
4785 aros_host_cpu="ppc"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4789 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4790 aros_host_cpu="$host_cpu"
4792 esac
4794 aros_host_ldflags="$aros_host_ldflags -liconv"
4798 dragonfly*)
4799 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4800 aros_host_make="gmake"
4801 aros_host_arch="dragonfly"
4802 case $host_cpu in
4803 *i?86*)
4804 aros_host_cpu="i386"
4806 *amd64*)
4807 aros_host_cpu="x86_64"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4811 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4812 aros_host_cpu="$host_cpu"
4814 esac
4817 netbsd*)
4818 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4819 aros_host_make="gmake"
4820 aros_host_arch="netbsd"
4821 case "$host_cpu" in
4822 *i?86*)
4823 aros_host_cpu="i386"
4825 *m68k*)
4826 aros_host_cpu="m68k"
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4830 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4831 aros_host_cpu="$host_cpu"
4833 esac
4834 aros_host_lib_suffix=".0.0"
4837 openbsd*)
4838 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4839 aros_host_make="gmake"
4840 aros_host_arch="openbsd"
4841 case "$host_cpu" in
4842 *i?86*)
4843 aros_host_cpu="i386"
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4847 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4848 aros_host_cpu="$host_cpu"
4850 esac
4853 solaris*)
4854 aros_host_arch="solaris"
4855 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4856 case "$host_cpu" in
4857 *i?86*)
4858 aros_host_cpu="i386"
4860 *sparc*)
4861 aros_host_cpu="sparc"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4865 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4866 aros_host_cpu="$host_cpu"
4868 esac
4871 morphos*)
4872 aros_host_arch="morphos"
4873 aros_host_cpu="ppc"
4874 host_cc_elf=no
4877 amiga*)
4878 aros_host_arch="amiga"
4879 host_cc_elf=no
4880 SORT="/gg/bin/sort"
4881 TEST="/gg/bin/test"
4882 UNIQ="/gg/bin/uniq"
4883 FOR="for"
4884 TOUCH="/gg/bin/touch"
4885 case "$host_cpu" in
4886 *m68k*)
4887 aros_host_cpu="m68k"
4889 *powerpc*)
4890 aros_host_cpu="ppc"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4894 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4895 aros_host_cpu="$host_cpu"
4897 esac
4900 cygwin*)
4901 aros_host_arch="cygwin"
4902 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4903 host_cc_elf=no
4904 android_build_os="windows"
4905 android_tool="android.bat"
4906 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4908 case "$host_cpu" in
4909 *i?86*)
4910 aros_host_cpu="i386"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4914 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4915 aros_host_cpu="$host_cpu"
4917 esac
4920 mingw32*)
4921 aros_host_arch="mingw32"
4922 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4923 host_cc_elf=no
4924 android_build_os="windows"
4925 android_tool="android.bat"
4926 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4928 case "$host_cpu" in
4929 *i?86*)
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4932 $as_echo_n "checking for Windows native gcc target... " >&6; }
4933 host_cpu=`gcc -dumpmachine`
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4935 $as_echo "$host_cpu" >&6; }
4938 esac
4940 case "$host_cpu" in
4941 *i?86*)
4942 aros_host_cpu="i386"
4945 mingw32*)
4946 aros_host_cpu="i386"
4949 *x86_64*)
4950 aros_host_cpu="x86_64"
4951 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4956 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4957 aros_host_cpu="$host_cpu"
4959 esac
4962 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4964 esac
4966 # Extract the first word of "ar", so it can be a program name with args.
4967 set dummy ar; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_aros_host_ar+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$aros_host_ar"; then
4974 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_aros_host_ar="ar cr"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4993 aros_host_ar=$ac_cv_prog_aros_host_ar
4994 if test -n "$aros_host_ar"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4996 $as_echo "$aros_host_ar" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5003 if test "$aros_host_ar" = ""; then
5004 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5006 # Extract the first word of "ranlib", so it can be a program name with args.
5007 set dummy ranlib; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$aros_host_ranlib"; then
5014 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_aros_host_ranlib="ranlib "
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5027 done
5028 done
5029 IFS=$as_save_IFS
5033 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5034 if test -n "$aros_host_ranlib"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5036 $as_echo "$aros_host_ranlib" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5043 if test "$aros_host_ranlib" = ""; then
5044 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5046 # Extract the first word of "strip", so it can be a program name with args.
5047 set dummy strip; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_aros_host_strip+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$aros_host_strip"; then
5054 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_aros_host_strip="strip "
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5073 aros_host_strip=$ac_cv_prog_aros_host_strip
5074 if test -n "$aros_host_strip"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5076 $as_echo "$aros_host_strip" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 if test "$aros_host_strip" = ""; then
5084 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5087 # Extract the first word of "rm", so it can be a program name with args.
5088 set dummy rm; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_RM+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$RM"; then
5095 ac_cv_prog_RM="$RM" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_RM="rm -rf"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5110 IFS=$as_save_IFS
5114 RM=$ac_cv_prog_RM
5115 if test -n "$RM"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5117 $as_echo "$RM" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5124 if test "$RM" = ""; then
5125 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5127 # Extract the first word of "cp", so it can be a program name with args.
5128 set dummy cp; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_CP+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$CP"; then
5135 ac_cv_prog_CP="$CP" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_CP="cp "
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5150 IFS=$as_save_IFS
5154 CP=$ac_cv_prog_CP
5155 if test -n "$CP"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5157 $as_echo "$CP" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5164 if test "$CP" = ""; then
5165 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5167 # Extract the first word of "mv", so it can be a program name with args.
5168 set dummy mv; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_MV+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if test -n "$MV"; then
5175 ac_cv_prog_MV="$MV" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_MV="mv "
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5188 done
5189 done
5190 IFS=$as_save_IFS
5194 MV=$ac_cv_prog_MV
5195 if test -n "$MV"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5197 $as_echo "$MV" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 if test "$MV" = ""; then
5205 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5207 # Extract the first word of "echo", so it can be a program name with args.
5208 set dummy echo; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_prog_ECHO+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 if test -n "$ECHO"; then
5215 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_ECHO="echo "
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5228 done
5229 done
5230 IFS=$as_save_IFS
5234 ECHO=$ac_cv_prog_ECHO
5235 if test -n "$ECHO"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5237 $as_echo "$ECHO" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5244 if test "$ECHO" = ""; then
5245 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5247 # Extract the first word of "mkdir", so it can be a program name with args.
5248 set dummy mkdir; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if ${ac_cv_prog_MKDIR+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 if test -n "$MKDIR"; then
5255 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_MKDIR="mkdir -p"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5268 done
5269 done
5270 IFS=$as_save_IFS
5274 MKDIR=$ac_cv_prog_MKDIR
5275 if test -n "$MKDIR"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5277 $as_echo "$MKDIR" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5284 if test "$MKDIR" = ""; then
5285 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5287 # Extract the first word of "touch", so it can be a program name with args.
5288 set dummy touch; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_TOUCH+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$TOUCH"; then
5295 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_TOUCH="touch "
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5314 TOUCH=$ac_cv_prog_TOUCH
5315 if test -n "$TOUCH"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5317 $as_echo "$TOUCH" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5324 if test "$TOUCH" = ""; then
5325 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5327 # Extract the first word of "sort", so it can be a program name with args.
5328 set dummy sort; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_SORT+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$SORT"; then
5335 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_SORT="sort "
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5354 SORT=$ac_cv_prog_SORT
5355 if test -n "$SORT"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5357 $as_echo "$SORT" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5364 if test "$SORT" = ""; then
5365 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5367 # Extract the first word of "uniq", so it can be a program name with args.
5368 set dummy uniq; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_UNIQ+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$UNIQ"; then
5375 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_UNIQ="uniq "
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5394 UNIQ=$ac_cv_prog_UNIQ
5395 if test -n "$UNIQ"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5397 $as_echo "$UNIQ" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5404 if test "$UNIQ" = ""; then
5405 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5407 # Extract the first word of "true", so it can be a program name with args.
5408 set dummy true; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_NOP+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$NOP"; then
5415 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_NOP="true "
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5434 NOP=$ac_cv_prog_NOP
5435 if test -n "$NOP"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5437 $as_echo "$NOP" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5444 if test "$NOP" = ""; then
5445 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5447 # Extract the first word of "cat", so it can be a program name with args.
5448 set dummy cat; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_CAT+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$CAT"; then
5455 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_CAT="cat "
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5468 done
5469 done
5470 IFS=$as_save_IFS
5474 CAT=$ac_cv_prog_CAT
5475 if test -n "$CAT"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5477 $as_echo "$CAT" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5484 if test "$CAT" = ""; then
5485 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5487 # Extract the first word of "bison", so it can be a program name with args.
5488 set dummy bison; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if ${ac_cv_prog_BISON+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$BISON"; then
5495 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504 ac_cv_prog_BISON="bison "
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5508 done
5509 done
5510 IFS=$as_save_IFS
5514 BISON=$ac_cv_prog_BISON
5515 if test -n "$BISON"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5517 $as_echo "$BISON" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5524 if test "$BISON" = ""; then
5525 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5527 # Extract the first word of "flex", so it can be a program name with args.
5528 set dummy flex; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_FLEX+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$FLEX"; then
5535 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_FLEX="flex "
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5548 done
5549 done
5550 IFS=$as_save_IFS
5554 FLEX=$ac_cv_prog_FLEX
5555 if test -n "$FLEX"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5557 $as_echo "$FLEX" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5564 if test "$FLEX" = ""; then
5565 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5567 # Extract the first word of "pngtopnm", so it can be a program name with args.
5568 set dummy pngtopnm; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$PNGTOPNM"; then
5575 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_PNGTOPNM="pngtopnm "
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5588 done
5589 done
5590 IFS=$as_save_IFS
5594 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5595 if test -n "$PNGTOPNM"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5597 $as_echo "$PNGTOPNM" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5604 if test "$PNGTOPNM" = ""; then
5605 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5607 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5608 set dummy ppmtoilbm; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$PPMTOILBM"; then
5615 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5628 done
5629 done
5630 IFS=$as_save_IFS
5634 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5635 if test -n "$PPMTOILBM"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5637 $as_echo "$PPMTOILBM" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5644 if test "$PPMTOILBM" = ""; then
5645 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5647 # Extract the first word of "sed", so it can be a program name with args.
5648 set dummy sed; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if ${ac_cv_prog_SED+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$SED"; then
5655 ac_cv_prog_SED="$SED" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_SED="sed "
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5674 SED=$ac_cv_prog_SED
5675 if test -n "$SED"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5677 $as_echo "$SED" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5684 if test "$SED" = ""; then
5685 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5687 # Extract the first word of "chmod", so it can be a program name with args.
5688 set dummy chmod; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_prog_CHMOD+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 if test -n "$CHMOD"; then
5695 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_CHMOD="chmod "
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5708 done
5709 done
5710 IFS=$as_save_IFS
5714 CHMOD=$ac_cv_prog_CHMOD
5715 if test -n "$CHMOD"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5717 $as_echo "$CHMOD" >&6; }
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5724 if test "$CHMOD" = ""; then
5725 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5727 # Extract the first word of "patch", so it can be a program name with args.
5728 set dummy patch; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_PATCH+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$PATCH"; then
5735 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_PATCH="patch "
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5748 done
5749 done
5750 IFS=$as_save_IFS
5754 PATCH=$ac_cv_prog_PATCH
5755 if test -n "$PATCH"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5757 $as_echo "$PATCH" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5764 if test "$PATCH" = ""; then
5765 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5774 if test -n "$PYTHON"; then
5775 # If the user set $PYTHON, use it and don't search something else.
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5777 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5778 prog="import sys
5779 # split strings by '.' and convert to numeric. Append some zeros
5780 # because we need at least 4 digits for the hex conversion.
5781 # map returns an iterator in Python 3.0 and a list in 2.x
5782 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5783 minverhex = 0
5784 # xrange is not present in Python 3.0 and range returns an iterator
5785 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5786 sys.exit(sys.hexversion < minverhex)"
5787 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5788 ($PYTHON -c "$prog") >&5 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; then :
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793 $as_echo "yes" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5799 am_display_PYTHON=$PYTHON
5800 else
5801 # Otherwise, try each interpreter until we find one that satisfies
5802 # VERSION.
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5804 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5805 if ${am_cv_pathless_PYTHON+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5809 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
5810 test "$am_cv_pathless_PYTHON" = none && break
5811 prog="import sys
5812 # split strings by '.' and convert to numeric. Append some zeros
5813 # because we need at least 4 digits for the hex conversion.
5814 # map returns an iterator in Python 3.0 and a list in 2.x
5815 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5816 minverhex = 0
5817 # xrange is not present in Python 3.0 and range returns an iterator
5818 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5819 sys.exit(sys.hexversion < minverhex)"
5820 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5821 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; then :
5825 break
5827 done
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5830 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5831 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5832 if test "$am_cv_pathless_PYTHON" = none; then
5833 PYTHON=:
5834 else
5835 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5836 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_path_PYTHON+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 case $PYTHON in
5843 [\\/]* | ?:[\\/]*)
5844 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5858 done
5859 done
5860 IFS=$as_save_IFS
5863 esac
5865 PYTHON=$ac_cv_path_PYTHON
5866 if test -n "$PYTHON"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5868 $as_echo "$PYTHON" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5876 am_display_PYTHON=$am_cv_pathless_PYTHON
5880 if test "$PYTHON" = :; then
5881 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5882 else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5886 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5887 if ${am_cv_python_version+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5893 $as_echo "$am_cv_python_version" >&6; }
5894 PYTHON_VERSION=$am_cv_python_version
5898 PYTHON_PREFIX='${prefix}'
5900 PYTHON_EXEC_PREFIX='${exec_prefix}'
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5905 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5906 if ${am_cv_python_platform+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5912 $as_echo "$am_cv_python_platform" >&6; }
5913 PYTHON_PLATFORM=$am_cv_python_platform
5916 # Just factor out some code duplication.
5917 am_python_setup_sysconfig="\
5918 import sys
5919 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5920 # with python 3.x. See automake bug#10227.
5921 try:
5922 import sysconfig
5923 except ImportError:
5924 can_use_sysconfig = 0
5925 else:
5926 can_use_sysconfig = 1
5927 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5928 # <https://github.com/pypa/virtualenv/issues/118>
5929 try:
5930 from platform import python_implementation
5931 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5932 can_use_sysconfig = 0
5933 except ImportError:
5934 pass"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5938 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5939 if ${am_cv_python_pythondir+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if test "x$prefix" = xNONE
5943 then
5944 am_py_prefix=$ac_default_prefix
5945 else
5946 am_py_prefix=$prefix
5948 am_cv_python_pythondir=`$PYTHON -c "
5949 $am_python_setup_sysconfig
5950 if can_use_sysconfig:
5951 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5952 else:
5953 from distutils import sysconfig
5954 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5955 sys.stdout.write(sitedir)"`
5956 case $am_cv_python_pythondir in
5957 $am_py_prefix*)
5958 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5959 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5962 case $am_py_prefix in
5963 /usr|/System*) ;;
5965 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5967 esac
5969 esac
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5973 $as_echo "$am_cv_python_pythondir" >&6; }
5974 pythondir=$am_cv_python_pythondir
5978 pkgpythondir=\${pythondir}/$PACKAGE
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5982 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5983 if ${am_cv_python_pyexecdir+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 if test "x$exec_prefix" = xNONE
5987 then
5988 am_py_exec_prefix=$am_py_prefix
5989 else
5990 am_py_exec_prefix=$exec_prefix
5992 am_cv_python_pyexecdir=`$PYTHON -c "
5993 $am_python_setup_sysconfig
5994 if can_use_sysconfig:
5995 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5996 else:
5997 from distutils import sysconfig
5998 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5999 sys.stdout.write(sitedir)"`
6000 case $am_cv_python_pyexecdir in
6001 $am_py_exec_prefix*)
6002 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6003 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6006 case $am_py_exec_prefix in
6007 /usr|/System*) ;;
6009 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6011 esac
6013 esac
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6017 $as_echo "$am_cv_python_pyexecdir" >&6; }
6018 pyexecdir=$am_cv_python_pyexecdir
6022 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6032 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6033 if ${ac_cv_lib_png_png_read_png+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 ac_check_lib_save_LIBS=$LIBS
6037 LIBS="-lpng $LIBS"
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6041 /* Override any GCC internal prototype to avoid an error.
6042 Use char because int might match the return type of a GCC
6043 builtin and then its argument prototype would still apply. */
6044 #ifdef __cplusplus
6045 extern "C"
6046 #endif
6047 char png_read_png ();
6049 main ()
6051 return png_read_png ();
6053 return 0;
6055 _ACEOF
6056 if ac_fn_c_try_link "$LINENO"; then :
6057 ac_cv_lib_png_png_read_png=yes
6058 else
6059 ac_cv_lib_png_png_read_png=no
6061 rm -f core conftest.err conftest.$ac_objext \
6062 conftest$ac_exeext conftest.$ac_ext
6063 LIBS=$ac_check_lib_save_LIBS
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6066 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6067 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6068 cat >>confdefs.h <<_ACEOF
6069 #define HAVE_LIBPNG 1
6070 _ACEOF
6072 LIBS="-lpng $LIBS"
6076 if test "$ac_cv_lib_png_png_read_png" = ""; then
6077 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6080 FOR=for
6082 IF=if
6084 TEST=test
6086 CMP=cmp
6090 # Check for some includes for the X11 HIDD and the kernel
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6093 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6094 if ${ac_cv_path_GREP+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -z "$GREP"; then
6098 ac_path_GREP_found=false
6099 # Loop through the user's path and test for each of PROGNAME-LIST
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_prog in grep ggrep; do
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6108 as_fn_executable_p "$ac_path_GREP" || continue
6109 # Check for GNU ac_path_GREP and select it if it is found.
6110 # Check for GNU $ac_path_GREP
6111 case `"$ac_path_GREP" --version 2>&1` in
6112 *GNU*)
6113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6115 ac_count=0
6116 $as_echo_n 0123456789 >"conftest.in"
6117 while :
6119 cat "conftest.in" "conftest.in" >"conftest.tmp"
6120 mv "conftest.tmp" "conftest.in"
6121 cp "conftest.in" "conftest.nl"
6122 $as_echo 'GREP' >> "conftest.nl"
6123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6125 as_fn_arith $ac_count + 1 && ac_count=$as_val
6126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6127 # Best one so far, save it but keep looking for a better one
6128 ac_cv_path_GREP="$ac_path_GREP"
6129 ac_path_GREP_max=$ac_count
6131 # 10*(2^10) chars as input seems more than enough
6132 test $ac_count -gt 10 && break
6133 done
6134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6135 esac
6137 $ac_path_GREP_found && break 3
6138 done
6139 done
6140 done
6141 IFS=$as_save_IFS
6142 if test -z "$ac_cv_path_GREP"; then
6143 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6145 else
6146 ac_cv_path_GREP=$GREP
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6151 $as_echo "$ac_cv_path_GREP" >&6; }
6152 GREP="$ac_cv_path_GREP"
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6156 $as_echo_n "checking for egrep... " >&6; }
6157 if ${ac_cv_path_EGREP+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6161 then ac_cv_path_EGREP="$GREP -E"
6162 else
6163 if test -z "$EGREP"; then
6164 ac_path_EGREP_found=false
6165 # Loop through the user's path and test for each of PROGNAME-LIST
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_prog in egrep; do
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6174 as_fn_executable_p "$ac_path_EGREP" || continue
6175 # Check for GNU ac_path_EGREP and select it if it is found.
6176 # Check for GNU $ac_path_EGREP
6177 case `"$ac_path_EGREP" --version 2>&1` in
6178 *GNU*)
6179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6181 ac_count=0
6182 $as_echo_n 0123456789 >"conftest.in"
6183 while :
6185 cat "conftest.in" "conftest.in" >"conftest.tmp"
6186 mv "conftest.tmp" "conftest.in"
6187 cp "conftest.in" "conftest.nl"
6188 $as_echo 'EGREP' >> "conftest.nl"
6189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6191 as_fn_arith $ac_count + 1 && ac_count=$as_val
6192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6193 # Best one so far, save it but keep looking for a better one
6194 ac_cv_path_EGREP="$ac_path_EGREP"
6195 ac_path_EGREP_max=$ac_count
6197 # 10*(2^10) chars as input seems more than enough
6198 test $ac_count -gt 10 && break
6199 done
6200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6201 esac
6203 $ac_path_EGREP_found && break 3
6204 done
6205 done
6206 done
6207 IFS=$as_save_IFS
6208 if test -z "$ac_cv_path_EGREP"; then
6209 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6211 else
6212 ac_cv_path_EGREP=$EGREP
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6218 $as_echo "$ac_cv_path_EGREP" >&6; }
6219 EGREP="$ac_cv_path_EGREP"
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6223 $as_echo_n "checking for ANSI C header files... " >&6; }
6224 if ${ac_cv_header_stdc+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 #include <stdlib.h>
6230 #include <stdarg.h>
6231 #include <string.h>
6232 #include <float.h>
6235 main ()
6239 return 0;
6241 _ACEOF
6242 if ac_fn_c_try_compile "$LINENO"; then :
6243 ac_cv_header_stdc=yes
6244 else
6245 ac_cv_header_stdc=no
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 if test $ac_cv_header_stdc = yes; then
6250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253 #include <string.h>
6255 _ACEOF
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 $EGREP "memchr" >/dev/null 2>&1; then :
6259 else
6260 ac_cv_header_stdc=no
6262 rm -f conftest*
6266 if test $ac_cv_header_stdc = yes; then
6267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <stdlib.h>
6272 _ACEOF
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "free" >/dev/null 2>&1; then :
6276 else
6277 ac_cv_header_stdc=no
6279 rm -f conftest*
6283 if test $ac_cv_header_stdc = yes; then
6284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6285 if test "$cross_compiling" = yes; then :
6287 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 #include <ctype.h>
6291 #include <stdlib.h>
6292 #if ((' ' & 0x0FF) == 0x020)
6293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6295 #else
6296 # define ISLOWER(c) \
6297 (('a' <= (c) && (c) <= 'i') \
6298 || ('j' <= (c) && (c) <= 'r') \
6299 || ('s' <= (c) && (c) <= 'z'))
6300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6301 #endif
6303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6305 main ()
6307 int i;
6308 for (i = 0; i < 256; i++)
6309 if (XOR (islower (i), ISLOWER (i))
6310 || toupper (i) != TOUPPER (i))
6311 return 2;
6312 return 0;
6314 _ACEOF
6315 if ac_fn_c_try_run "$LINENO"; then :
6317 else
6318 ac_cv_header_stdc=no
6320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6321 conftest.$ac_objext conftest.beam conftest.$ac_ext
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6327 $as_echo "$ac_cv_header_stdc" >&6; }
6328 if test $ac_cv_header_stdc = yes; then
6330 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6336 inttypes.h stdint.h unistd.h
6337 do :
6338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6339 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6341 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6342 cat >>confdefs.h <<_ACEOF
6343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6344 _ACEOF
6348 done
6351 for ac_header in sys/ipc.h sys/shm.h \
6352 sys/mmap.h sys/mman.h sysexits.h \
6353 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6355 do :
6356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6357 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6359 cat >>confdefs.h <<_ACEOF
6360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361 _ACEOF
6365 done
6368 for ac_header in sys/mount.h
6369 do :
6370 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6372 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6373 cat >>confdefs.h <<_ACEOF
6374 #define HAVE_SYS_MOUNT_H 1
6375 _ACEOF
6379 done
6382 ac_header_dirent=no
6383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6384 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6386 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6387 if eval \${$as_ac_Header+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 #include <sys/types.h>
6393 #include <$ac_hdr>
6396 main ()
6398 if ((DIR *) 0)
6399 return 0;
6401 return 0;
6403 _ACEOF
6404 if ac_fn_c_try_compile "$LINENO"; then :
6405 eval "$as_ac_Header=yes"
6406 else
6407 eval "$as_ac_Header=no"
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 eval ac_res=\$$as_ac_Header
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6413 $as_echo "$ac_res" >&6; }
6414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6415 cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6417 _ACEOF
6419 ac_header_dirent=$ac_hdr; break
6422 done
6423 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6424 if test $ac_header_dirent = dirent.h; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6426 $as_echo_n "checking for library containing opendir... " >&6; }
6427 if ${ac_cv_search_opendir+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 ac_func_search_save_LIBS=$LIBS
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6434 /* Override any GCC internal prototype to avoid an error.
6435 Use char because int might match the return type of a GCC
6436 builtin and then its argument prototype would still apply. */
6437 #ifdef __cplusplus
6438 extern "C"
6439 #endif
6440 char opendir ();
6442 main ()
6444 return opendir ();
6446 return 0;
6448 _ACEOF
6449 for ac_lib in '' dir; do
6450 if test -z "$ac_lib"; then
6451 ac_res="none required"
6452 else
6453 ac_res=-l$ac_lib
6454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6456 if ac_fn_c_try_link "$LINENO"; then :
6457 ac_cv_search_opendir=$ac_res
6459 rm -f core conftest.err conftest.$ac_objext \
6460 conftest$ac_exeext
6461 if ${ac_cv_search_opendir+:} false; then :
6462 break
6464 done
6465 if ${ac_cv_search_opendir+:} false; then :
6467 else
6468 ac_cv_search_opendir=no
6470 rm conftest.$ac_ext
6471 LIBS=$ac_func_search_save_LIBS
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6474 $as_echo "$ac_cv_search_opendir" >&6; }
6475 ac_res=$ac_cv_search_opendir
6476 if test "$ac_res" != no; then :
6477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6481 else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6483 $as_echo_n "checking for library containing opendir... " >&6; }
6484 if ${ac_cv_search_opendir+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 ac_func_search_save_LIBS=$LIBS
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6491 /* Override any GCC internal prototype to avoid an error.
6492 Use char because int might match the return type of a GCC
6493 builtin and then its argument prototype would still apply. */
6494 #ifdef __cplusplus
6495 extern "C"
6496 #endif
6497 char opendir ();
6499 main ()
6501 return opendir ();
6503 return 0;
6505 _ACEOF
6506 for ac_lib in '' x; do
6507 if test -z "$ac_lib"; then
6508 ac_res="none required"
6509 else
6510 ac_res=-l$ac_lib
6511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6513 if ac_fn_c_try_link "$LINENO"; then :
6514 ac_cv_search_opendir=$ac_res
6516 rm -f core conftest.err conftest.$ac_objext \
6517 conftest$ac_exeext
6518 if ${ac_cv_search_opendir+:} false; then :
6519 break
6521 done
6522 if ${ac_cv_search_opendir+:} false; then :
6524 else
6525 ac_cv_search_opendir=no
6527 rm conftest.$ac_ext
6528 LIBS=$ac_func_search_save_LIBS
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6531 $as_echo "$ac_cv_search_opendir" >&6; }
6532 ac_res=$ac_cv_search_opendir
6533 if test "$ac_res" != no; then :
6534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6541 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6542 if ${ac_cv_header_stat_broken+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 #include <sys/types.h>
6548 #include <sys/stat.h>
6550 #if defined S_ISBLK && defined S_IFDIR
6551 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6552 #endif
6554 #if defined S_ISBLK && defined S_IFCHR
6555 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6556 #endif
6558 #if defined S_ISLNK && defined S_IFREG
6559 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6560 #endif
6562 #if defined S_ISSOCK && defined S_IFREG
6563 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6564 #endif
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 ac_cv_header_stat_broken=no
6569 else
6570 ac_cv_header_stat_broken=yes
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6575 $as_echo "$ac_cv_header_stat_broken" >&6; }
6576 if test $ac_cv_header_stat_broken = yes; then
6578 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6583 $as_echo_n "checking for ANSI C header files... " >&6; }
6584 if ${ac_cv_header_stdc+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 #include <stdlib.h>
6590 #include <stdarg.h>
6591 #include <string.h>
6592 #include <float.h>
6595 main ()
6599 return 0;
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603 ac_cv_header_stdc=yes
6604 else
6605 ac_cv_header_stdc=no
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 if test $ac_cv_header_stdc = yes; then
6610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613 #include <string.h>
6615 _ACEOF
6616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6617 $EGREP "memchr" >/dev/null 2>&1; then :
6619 else
6620 ac_cv_header_stdc=no
6622 rm -f conftest*
6626 if test $ac_cv_header_stdc = yes; then
6627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630 #include <stdlib.h>
6632 _ACEOF
6633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634 $EGREP "free" >/dev/null 2>&1; then :
6636 else
6637 ac_cv_header_stdc=no
6639 rm -f conftest*
6643 if test $ac_cv_header_stdc = yes; then
6644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6645 if test "$cross_compiling" = yes; then :
6647 else
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 #include <ctype.h>
6651 #include <stdlib.h>
6652 #if ((' ' & 0x0FF) == 0x020)
6653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6655 #else
6656 # define ISLOWER(c) \
6657 (('a' <= (c) && (c) <= 'i') \
6658 || ('j' <= (c) && (c) <= 'r') \
6659 || ('s' <= (c) && (c) <= 'z'))
6660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6661 #endif
6663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6665 main ()
6667 int i;
6668 for (i = 0; i < 256; i++)
6669 if (XOR (islower (i), ISLOWER (i))
6670 || toupper (i) != TOUPPER (i))
6671 return 2;
6672 return 0;
6674 _ACEOF
6675 if ac_fn_c_try_run "$LINENO"; then :
6677 else
6678 ac_cv_header_stdc=no
6680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6681 conftest.$ac_objext conftest.beam conftest.$ac_ext
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6687 $as_echo "$ac_cv_header_stdc" >&6; }
6688 if test $ac_cv_header_stdc = yes; then
6690 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6695 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6696 if ${ac_cv_header_sys_wait_h+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 #include <sys/types.h>
6702 #include <sys/wait.h>
6703 #ifndef WEXITSTATUS
6704 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6705 #endif
6706 #ifndef WIFEXITED
6707 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6708 #endif
6711 main ()
6713 int s;
6714 wait (&s);
6715 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6717 return 0;
6719 _ACEOF
6720 if ac_fn_c_try_compile "$LINENO"; then :
6721 ac_cv_header_sys_wait_h=yes
6722 else
6723 ac_cv_header_sys_wait_h=no
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6728 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6729 if test $ac_cv_header_sys_wait_h = yes; then
6731 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6736 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6737 if ${ac_cv_header_time+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 #include <sys/types.h>
6743 #include <sys/time.h>
6744 #include <time.h>
6747 main ()
6749 if ((struct tm *) 0)
6750 return 0;
6752 return 0;
6754 _ACEOF
6755 if ac_fn_c_try_compile "$LINENO"; then :
6756 ac_cv_header_time=yes
6757 else
6758 ac_cv_header_time=no
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6763 $as_echo "$ac_cv_header_time" >&6; }
6764 if test $ac_cv_header_time = yes; then
6766 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6770 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6771 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6773 cat >>confdefs.h <<_ACEOF
6774 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6775 _ACEOF
6778 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6783 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6784 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6786 cat >>confdefs.h <<_ACEOF
6787 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6788 _ACEOF
6791 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6793 else
6794 case " $LIBOBJS " in
6795 *" fileblocks.$ac_objext "* ) ;;
6796 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6798 esac
6803 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6804 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6806 cat >>confdefs.h <<_ACEOF
6807 #define HAVE_STRUCT_STAT_ST_RDEV 1
6808 _ACEOF
6811 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6817 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6818 if ${ac_cv_struct_tm+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 #include <sys/types.h>
6824 #include <time.h>
6827 main ()
6829 struct tm tm;
6830 int *p = &tm.tm_sec;
6831 return !p;
6833 return 0;
6835 _ACEOF
6836 if ac_fn_c_try_compile "$LINENO"; then :
6837 ac_cv_struct_tm=time.h
6838 else
6839 ac_cv_struct_tm=sys/time.h
6841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6844 $as_echo "$ac_cv_struct_tm" >&6; }
6845 if test $ac_cv_struct_tm = sys/time.h; then
6847 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6851 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6852 #include <$ac_cv_struct_tm>
6855 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6857 cat >>confdefs.h <<_ACEOF
6858 #define HAVE_STRUCT_TM_TM_ZONE 1
6859 _ACEOF
6864 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6866 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6868 else
6869 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6871 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6872 ac_have_decl=1
6873 else
6874 ac_have_decl=0
6877 cat >>confdefs.h <<_ACEOF
6878 #define HAVE_DECL_TZNAME $ac_have_decl
6879 _ACEOF
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6882 $as_echo_n "checking for tzname... " >&6; }
6883 if ${ac_cv_var_tzname+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 #include <time.h>
6889 #if !HAVE_DECL_TZNAME
6890 extern char *tzname[];
6891 #endif
6894 main ()
6896 return tzname[0][0];
6898 return 0;
6900 _ACEOF
6901 if ac_fn_c_try_link "$LINENO"; then :
6902 ac_cv_var_tzname=yes
6903 else
6904 ac_cv_var_tzname=no
6906 rm -f core conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6910 $as_echo "$ac_cv_var_tzname" >&6; }
6911 if test $ac_cv_var_tzname = yes; then
6913 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6918 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6919 if test "x$ac_cv_type_off_t" = xyes; then :
6921 else
6923 cat >>confdefs.h <<_ACEOF
6924 #define off_t long int
6925 _ACEOF
6929 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6930 if test "x$ac_cv_type_pid_t" = xyes; then :
6932 else
6934 cat >>confdefs.h <<_ACEOF
6935 #define pid_t int
6936 _ACEOF
6940 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6941 if test "x$ac_cv_type_size_t" = xyes; then :
6943 else
6945 cat >>confdefs.h <<_ACEOF
6946 #define size_t unsigned int
6947 _ACEOF
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6952 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6953 if ${ac_cv_type_uid_t+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 #include <sys/types.h>
6960 _ACEOF
6961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6962 $EGREP "uid_t" >/dev/null 2>&1; then :
6963 ac_cv_type_uid_t=yes
6964 else
6965 ac_cv_type_uid_t=no
6967 rm -f conftest*
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6971 $as_echo "$ac_cv_type_uid_t" >&6; }
6972 if test $ac_cv_type_uid_t = no; then
6974 $as_echo "#define uid_t int" >>confdefs.h
6977 $as_echo "#define gid_t int" >>confdefs.h
6982 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6983 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6985 cat >>confdefs.h <<_ACEOF
6986 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6987 _ACEOF
6993 # Look for some functions
6994 for ac_func in getpagesize kqueue statfs statvfs \
6995 clone kse_create rfork_thread thr_create sa_register \
6996 getcontext makecontext setcontext sigaltstack swapcontext
6997 do :
6998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6999 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7000 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7001 cat >>confdefs.h <<_ACEOF
7002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7003 _ACEOF
7006 done
7012 for ac_header in $ac_header_list
7013 do :
7014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7015 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7018 cat >>confdefs.h <<_ACEOF
7019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7020 _ACEOF
7024 done
7033 for ac_func in getpagesize
7034 do :
7035 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7036 if test "x$ac_cv_func_getpagesize" = xyes; then :
7037 cat >>confdefs.h <<_ACEOF
7038 #define HAVE_GETPAGESIZE 1
7039 _ACEOF
7042 done
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7045 $as_echo_n "checking for working mmap... " >&6; }
7046 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 if test "$cross_compiling" = yes; then :
7050 ac_cv_func_mmap_fixed_mapped=no
7051 else
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 $ac_includes_default
7055 /* malloc might have been renamed as rpl_malloc. */
7056 #undef malloc
7058 /* Thanks to Mike Haertel and Jim Avera for this test.
7059 Here is a matrix of mmap possibilities:
7060 mmap private not fixed
7061 mmap private fixed at somewhere currently unmapped
7062 mmap private fixed at somewhere already mapped
7063 mmap shared not fixed
7064 mmap shared fixed at somewhere currently unmapped
7065 mmap shared fixed at somewhere already mapped
7066 For private mappings, we should verify that changes cannot be read()
7067 back from the file, nor mmap's back from the file at a different
7068 address. (There have been systems where private was not correctly
7069 implemented like the infamous i386 svr4.0, and systems where the
7070 VM page cache was not coherent with the file system buffer cache
7071 like early versions of FreeBSD and possibly contemporary NetBSD.)
7072 For shared mappings, we should conversely verify that changes get
7073 propagated back to all the places they're supposed to be.
7075 Grep wants private fixed already mapped.
7076 The main things grep needs to know about mmap are:
7077 * does it exist and is it safe to write into the mmap'd area
7078 * how to use it (BSD variants) */
7080 #include <fcntl.h>
7081 #include <sys/mman.h>
7083 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7084 char *malloc ();
7085 #endif
7087 /* This mess was copied from the GNU getpagesize.h. */
7088 #ifndef HAVE_GETPAGESIZE
7089 # ifdef _SC_PAGESIZE
7090 # define getpagesize() sysconf(_SC_PAGESIZE)
7091 # else /* no _SC_PAGESIZE */
7092 # ifdef HAVE_SYS_PARAM_H
7093 # include <sys/param.h>
7094 # ifdef EXEC_PAGESIZE
7095 # define getpagesize() EXEC_PAGESIZE
7096 # else /* no EXEC_PAGESIZE */
7097 # ifdef NBPG
7098 # define getpagesize() NBPG * CLSIZE
7099 # ifndef CLSIZE
7100 # define CLSIZE 1
7101 # endif /* no CLSIZE */
7102 # else /* no NBPG */
7103 # ifdef NBPC
7104 # define getpagesize() NBPC
7105 # else /* no NBPC */
7106 # ifdef PAGESIZE
7107 # define getpagesize() PAGESIZE
7108 # endif /* PAGESIZE */
7109 # endif /* no NBPC */
7110 # endif /* no NBPG */
7111 # endif /* no EXEC_PAGESIZE */
7112 # else /* no HAVE_SYS_PARAM_H */
7113 # define getpagesize() 8192 /* punt totally */
7114 # endif /* no HAVE_SYS_PARAM_H */
7115 # endif /* no _SC_PAGESIZE */
7117 #endif /* no HAVE_GETPAGESIZE */
7120 main ()
7122 char *data, *data2, *data3;
7123 const char *cdata2;
7124 int i, pagesize;
7125 int fd, fd2;
7127 pagesize = getpagesize ();
7129 /* First, make a file with some known garbage in it. */
7130 data = (char *) malloc (pagesize);
7131 if (!data)
7132 return 1;
7133 for (i = 0; i < pagesize; ++i)
7134 *(data + i) = rand ();
7135 umask (0);
7136 fd = creat ("conftest.mmap", 0600);
7137 if (fd < 0)
7138 return 2;
7139 if (write (fd, data, pagesize) != pagesize)
7140 return 3;
7141 close (fd);
7143 /* Next, check that the tail of a page is zero-filled. File must have
7144 non-zero length, otherwise we risk SIGBUS for entire page. */
7145 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7146 if (fd2 < 0)
7147 return 4;
7148 cdata2 = "";
7149 if (write (fd2, cdata2, 1) != 1)
7150 return 5;
7151 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7152 if (data2 == MAP_FAILED)
7153 return 6;
7154 for (i = 0; i < pagesize; ++i)
7155 if (*(data2 + i))
7156 return 7;
7157 close (fd2);
7158 if (munmap (data2, pagesize))
7159 return 8;
7161 /* Next, try to mmap the file at a fixed address which already has
7162 something else allocated at it. If we can, also make sure that
7163 we see the same garbage. */
7164 fd = open ("conftest.mmap", O_RDWR);
7165 if (fd < 0)
7166 return 9;
7167 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7168 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7169 return 10;
7170 for (i = 0; i < pagesize; ++i)
7171 if (*(data + i) != *(data2 + i))
7172 return 11;
7174 /* Finally, make sure that changes to the mapped area do not
7175 percolate back to the file as seen by read(). (This is a bug on
7176 some variants of i386 svr4.0.) */
7177 for (i = 0; i < pagesize; ++i)
7178 *(data2 + i) = *(data2 + i) + 1;
7179 data3 = (char *) malloc (pagesize);
7180 if (!data3)
7181 return 12;
7182 if (read (fd, data3, pagesize) != pagesize)
7183 return 13;
7184 for (i = 0; i < pagesize; ++i)
7185 if (*(data + i) != *(data3 + i))
7186 return 14;
7187 close (fd);
7188 return 0;
7190 _ACEOF
7191 if ac_fn_c_try_run "$LINENO"; then :
7192 ac_cv_func_mmap_fixed_mapped=yes
7193 else
7194 ac_cv_func_mmap_fixed_mapped=no
7196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7197 conftest.$ac_objext conftest.beam conftest.$ac_ext
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7202 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7203 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7205 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7208 rm -f conftest.mmap conftest.txt
7213 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7214 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7215 aros_config_ldflags=""
7217 aros_shared_default=yes
7219 aros_shared_cflags="-fPIC"
7220 aros_shared_aflags=""
7221 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7222 aros_kernel_ldflags="-Wl,-rpath,./lib"
7224 aros_kernel_ar_flags="cr"
7225 aros_target_ar_flags="cr"
7226 aros_target_nm_flags="-C -ul"
7227 aros_target_strip_flags="--strip-unneeded -R.comment"
7229 aros_compiler_libs=
7230 aros_arch_libs=
7232 aros_target_genmap="-Wl,-Map -Xlinker"
7234 # Native flavour stuff
7235 aros_serial_debug="0"
7237 # Palm native flavour stuff
7238 aros_palm_debug_hack="0"
7240 # Unix flavour stuff
7241 aros_nesting_supervisor="0"
7243 # Collect-aros stuff: "-ius" to ignore undefined symbols
7244 ignore_undefined_symbols=""
7246 # Check for X11 by default
7247 need_x11="auto"
7249 #-----------------------------------------------------------------------------
7252 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7253 # it switched on by default, and we use the host compiler, so it compiles AROS
7254 # code with this enabled resulting in link failures as we don't have support
7255 # for it.
7257 # We use two methods to disable it. For the host compiler (used to compile
7258 # some hosted modules), we test to see if the compiler supports stack
7259 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7260 # work on all platforms.
7262 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7263 # (this is done unconditionally, as it should have no effect on compilers
7264 # without the stack protection feature). This may be specific to the way that
7265 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7266 # strong enough to disable it in a generic way though, so we'll live with it
7267 # until another vendor ships GCC with it enabled in a different way, and deal
7268 # with it then.
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7272 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7273 save_cflags="$CFLAGS"
7274 CFLAGS="$CFLAGS -fno-stack-protector"
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7279 main ()
7283 return 0;
7285 _ACEOF
7286 if ac_fn_c_try_compile "$LINENO"; then :
7287 use_no_stack_protector="yes"
7288 else
7289 use_no_stack_protector="no"
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7293 $as_echo "$use_no_stack_protector" >&6; }
7294 if test "x-$use_no_stack_protector" = "x-yes" ; then
7295 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7297 CFLAGS="$save_cflags"
7299 #-----------------------------------------------------------------------------
7301 # Disable pointer-signedness warnings if the compiler recognises the option
7302 # (this only works for the host compiler at the moment)
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7305 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7306 save_cflags="$CFLAGS"
7307 CFLAGS="$CFLAGS -Wno-pointer-sign"
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7312 main ()
7316 return 0;
7318 _ACEOF
7319 if ac_fn_c_try_compile "$LINENO"; then :
7320 use_no_sign_warning="yes"
7321 else
7322 use_no_sign_warning="no"
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7326 $as_echo "$use_no_sign_warning" >&6; }
7327 if test "x-$use_no_sign_warning" = "x-yes" ; then
7328 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7330 CFLAGS="$save_cflags"
7332 #-----------------------------------------------------------------------------
7334 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7337 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7338 save_cflags="$CFLAGS"
7339 CFLAGS="$CFLAGS -fgnu89-inline"
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7344 main ()
7348 return 0;
7350 _ACEOF
7351 if ac_fn_c_try_compile "$LINENO"; then :
7352 use_gnu89_inline="yes"
7353 else
7354 use_gnu89_inline="no"
7356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7358 $as_echo "$use_gnu89_inline" >&6; }
7359 if test "x-$use_gnu89_inline" = "x-yes" ; then
7360 gnu89_inline="-fgnu89-inline"
7362 CFLAGS="$save_cflags"
7364 #-----------------------------------------------------------------------------
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7367 $as_echo_n "checking for type of build... " >&6; }
7368 # Check whether --enable-build_type was given.
7369 if test "${enable_build_type+set}" = set; then :
7370 enableval=$enable_build_type; build_type=$enableval
7371 else
7372 build_type="personal"
7376 if test "$build_type" = "nightly"; then
7377 build_type_string="NIGHTLY"
7378 elif test "$build_type" = "snapshot"; then
7379 build_type_string="SNAPSHOT"
7380 elif test "$build_type" = "milestone"; then
7381 build_type_string="MILESTONE"
7382 elif test "$build_type" = "release"; then
7383 build_type_string="RELEASE"
7384 else
7385 build_type_string="PERSONAL"
7386 build_type="personal"
7389 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7392 $as_echo "$build_type" >&6; }
7394 #-----------------------------------------------------------------------------
7395 all_debug_types="messages stack modules mungwall symbols"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7398 $as_echo_n "checking which debug types to enable... " >&6; }
7399 # Check whether --enable-debug was given.
7400 if test "${enable_debug+set}" = set; then :
7401 enableval=$enable_debug; debug="$enableval"
7402 else
7403 debug=""
7407 if test "$debug" = "" -o "$debug" = "no"; then
7408 debug="none"
7409 elif test "$debug" = "yes"; then
7410 debug="all"
7413 if test "$debug" = "all" ; then
7414 debug="messages stack modules symbols"
7415 for d in $all_debug_types; do
7416 export aros_${d}_debug="1"
7417 done
7418 else
7419 for d in $all_debug_types; do
7420 export aros_${d}_debug="0"
7421 done
7424 if test "$debug" != "none"; then
7425 debug=`echo $debug | sed s/,/\ /g`
7426 for d in $debug; do
7427 found="0"
7428 for d2 in $all_debug_types; do
7429 if test "$d2" = "$d"; then
7430 found="1"
7431 break
7433 done
7434 if test "$found" = "0"; then
7435 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7437 export aros_${d}_debug="1"
7438 done
7439 aros_debug="yes"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7442 $as_echo "$debug" >&6; }
7444 if test "$aros_messages_debug" = "1"; then
7445 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7446 else
7447 aros_messages_debug=""
7449 if test "$aros_symbols_debug" = "1"; then
7450 aros_symbols_debug="-g"
7451 else
7452 aros_symbols_debug=""
7455 # These are the flags to pass when compiling debugged programs
7456 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7457 aros_debug_aflags=""
7458 aros_debug_ldflags="$aros_symbols_debug"
7460 #-----------------------------------------------------------------------------
7461 # Checking for distcc and ccache.
7463 # Always apply the transforms in this particular order. Basically you should
7464 # always run 'ccache distcc compiler' in that order for the best performance.
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7467 $as_echo_n "checking whether to enable distcc... " >&6; }
7468 # Check whether --enable-distcc was given.
7469 if test "${enable_distcc+set}" = set; then :
7470 enableval=$enable_distcc; distcc="$enableval"
7471 else
7472 distcc="no"
7475 if test "$distcc" != "" -a "$distcc" != "no"; then
7476 # AC_CHECK_PROG will print out the result in this case
7477 # Extract the first word of "distcc", so it can be a program name with args.
7478 set dummy distcc; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_path_DISTCC+:} false; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 case $DISTCC in
7485 [\\/]* | ?:[\\/]*)
7486 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7500 done
7501 done
7502 IFS=$as_save_IFS
7504 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7506 esac
7508 DISTCC=$ac_cv_path_DISTCC
7509 if test -n "$DISTCC"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7511 $as_echo "$DISTCC" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7524 $as_echo_n "checking whether to enable ccache... " >&6; }
7525 # Check whether --enable-ccache was given.
7526 if test "${enable_ccache+set}" = set; then :
7527 enableval=$enable_ccache; ccache="$enableval"
7528 else
7529 ccache="no"
7532 if test "$ccache" != "" -a "$ccache" != "no"; then
7533 # AC_CHECK_PROG will print out the result in this case
7534 # Extract the first word of "ccache", so it can be a program name with args.
7535 set dummy ccache; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_CCACHE+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 if test -n "$CCACHE"; then
7542 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_CCACHE="ccache"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7555 done
7556 done
7557 IFS=$as_save_IFS
7561 CCACHE=$ac_cv_prog_CCACHE
7562 if test -n "$CCACHE"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7564 $as_echo "$CCACHE" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7571 else
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7576 #-----------------------------------------------------------------------------
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7578 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7580 # Check whether --with-kernel-gcc-version was given.
7581 if test "${with_kernel_gcc_version+set}" = set; then :
7582 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7583 else
7584 kernel_tool_version=""
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7588 $as_echo "$kernel_tool_version" >&6; }
7590 #-----------------------------------------------------------------------------
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7592 $as_echo_n "checking what optimization flags to use... " >&6; }
7594 # Check whether --with-optimization was given.
7595 if test "${with_optimization+set}" = set; then :
7596 withval=$with_optimization; optimization="$withval"
7597 else
7598 optimization="unknown"
7601 if test "$optimization" = "unknown"; then
7602 if test "$debug" != "none"; then
7603 optimization="-O0"
7604 else
7605 optimization="-O2"
7608 aros_optimization_cflags="$optimization"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7610 $as_echo "$optimization" >&6; }
7612 #-----------------------------------------------------------------------------
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7614 $as_echo_n "checking what paranoia flags to use... " >&6; }
7616 # Check whether --with-paranoia was given.
7617 if test "${with_paranoia+set}" = set; then :
7618 withval=$with_paranoia; paranoia_flags="$withval"
7619 else
7620 paranoia_flags="default"
7623 if test "$paranoia_flags" = "default"; then
7624 paranoia_flags=""
7625 else if test "$paranoia_flags" = "yes"; then
7626 paranoia_flags="-Wall -Werror"
7627 fi fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7629 $as_echo "$paranoia_flags" >&6; }
7630 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7632 #-----------------------------------------------------------------------------
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7634 $as_echo_n "checking what target variant to enable... " >&6; }
7635 # Check whether --enable-target_variant was given.
7636 if test "${enable_target_variant+set}" = set; then :
7637 enableval=$enable_target_variant; target_variant=$enableval
7638 else
7639 target_variant=""
7642 if test "$target_variant" = ""; then
7643 aros_target_variant=""
7644 aros_target_suffix=""
7645 enableval="none"
7646 else
7647 aros_target_variant="$target_variant"
7648 aros_target_suffix="-$target_variant"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7651 $as_echo "$enableval" >&6; }
7653 #-----------------------------------------------------------------------------
7654 # Target-specific defaults. You can override then on a per-target basis.
7656 # Bootloader name. Currently used by PC target.
7657 target_bootloader="none"
7659 #-----------------------------------------------------------------------------
7660 # Additional options for some specific targets
7662 case "$aros_target_variant" in
7663 ios)
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7665 $as_echo_n "checking XCode path... " >&6; }
7667 # Check whether --with-xcode was given.
7668 if test "${with_xcode+set}" = set; then :
7669 withval=$with_xcode; aros_xcode_path="$withval"
7670 else
7671 aros_xcode_path="/Developer"
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7675 $as_echo "$aros_xcode_path" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7678 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7680 # Check whether --with-sdk-version was given.
7681 if test "${with_sdk_version+set}" = set; then :
7682 withval=$with_sdk_version; aros_sdk_version="$withval"
7683 else
7684 aros_sdk_version="4.1"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7688 $as_echo "$aros_sdk_version" >&6; }
7692 "android")
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7694 $as_echo_n "checking Android SDK path... " >&6; }
7696 # Check whether --with-sdk was given.
7697 if test "${with_sdk+set}" = set; then :
7698 withval=$with_sdk; aros_android_sdk="$withval"
7699 else
7700 aros_android_sdk=$default_android_sdk
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7704 $as_echo "$aros_android_sdk" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7707 $as_echo_n "checking Android NDK path... " >&6; }
7709 # Check whether --with-ndk was given.
7710 if test "${with_ndk+set}" = set; then :
7711 withval=$with_ndk; aros_android_ndk="$withval"
7712 else
7713 aros_android_ndk="none"
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7717 $as_echo "$aros_android_ndk" >&6; }
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7720 $as_echo_n "checking what Android SDK version to use... " >&6; }
7722 # Check whether --with-sdk-version was given.
7723 if test "${with_sdk_version+set}" = set; then :
7724 withval=$with_sdk_version; aros_sdk_version="$withval"
7725 else
7726 aros_sdk_version="12"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7730 $as_echo "$aros_sdk_version" >&6; }
7732 aros_android_level=android-$aros_sdk_version
7733 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7734 echo "Platform $aros_android_level is not installed in your SDK"
7735 echo "Use --with-sdk-version=<API level number> to select another platform version"
7736 echo "You can check what plaform versions are installed in your SDK"
7737 echo "by examining contents of $aros_android_sdk/platforms directory"
7738 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7741 export PATH="$aros_android_sdk/tools:$PATH"
7742 # Extract the first word of "$android_tool", so it can be a program name with args.
7743 set dummy $android_tool; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_path_android_tool+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 case $android_tool in
7750 [\\/]* | ?:[\\/]*)
7751 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7765 done
7766 done
7767 IFS=$as_save_IFS
7770 esac
7772 android_tool=$ac_cv_path_android_tool
7773 if test -n "$android_tool"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7775 $as_echo "$android_tool" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7782 if test "$android_tool" = ""; then
7783 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7786 if test "$aros_android_ndk" != "none"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7788 $as_echo_n "checking what Android NDK version to use... " >&6; }
7790 # Check whether --with-ndk-version was given.
7791 if test "${with_ndk_version+set}" = set; then :
7792 withval=$with_ndk_version; aros_ndk_version="$withval"
7793 else
7794 aros_ndk_version="9"
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7798 $as_echo "$aros_ndk_version" >&6; }
7801 # Extract the first word of "ant", so it can be a program name with args.
7802 set dummy ant; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_path_ant+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 case $ant in
7809 [\\/]* | ?:[\\/]*)
7810 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7824 done
7825 done
7826 IFS=$as_save_IFS
7829 esac
7831 ant=$ac_cv_path_ant
7832 if test -n "$ant"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7834 $as_echo "$ant" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7841 if test "$ant" = ""; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7843 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7847 $as_echo_n "checking Build debug or release apk... " >&6; }
7849 # Check whether --with-apk-version was given.
7850 if test "${with_apk_version+set}" = set; then :
7851 withval=$with_apk_version; aros_android_antapk=$withval
7852 else
7853 aros_android_antapk=release
7856 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7857 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7860 $as_echo "$aros_android_antapk" >&6; }
7862 if test "$host_os" = "mingw32"; then
7863 android_tool="cmd //c $android_tool"
7866 need_dlopen="no"
7869 esac
7871 #-----------------------------------------------------------------------------
7872 # External toolchains
7873 kernel_tool_prefix="none"
7874 aros_tool_prefix="none"
7875 elf_tool_prefix="${target_cpu}-elf-"
7877 # This is the target configuration switch.
7878 case "$target_os" in
7879 linux*)
7880 aros_target_arch="linux"
7881 aros_target_family="unix"
7882 case "$target_cpu" in
7883 *m68k*)
7884 aros_target_cpu="m68k"
7885 aros_object_format="m68kelf"
7886 aros_flavour="emulcompat"
7887 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7888 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7889 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7890 gcc_target_cpu="mc68000"
7892 *i?86*)
7893 aros_target_cpu="i386"
7894 aros_object_format="elf_i386"
7895 aros_flavour="emulation"
7896 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7897 aros_kernel_ldflags="-Wl,-melf_i386"
7898 aros_default_wbdepth=8
7899 gcc_target_cpu="i386"
7900 pci_hidd_target="hidd-pci-linux"
7901 android_tool_dir_prefix="x86"
7902 android_tool_prefix="i686-android-linux"
7903 android_ndk_arch="x86"
7905 *x86_64*)
7906 aros_target_cpu="x86_64"
7907 aros_object_format="elf_x86_64"
7908 aros_flavour="emulation"
7909 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7910 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7911 aros_default_wbdepth=8
7912 pci_hidd_target="hidd-pci-linux"
7914 *powerpc*)
7915 aros_target_cpu="ppc"
7916 aros_object_format="elf32ppc"
7917 aros_flavour="emulation"
7918 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7919 aros_default_wbdepth=8
7920 gcc_target_cpu="ppc"
7922 # TODO
7923 # Same as powerpc, but I need this for the nightly build to work again.
7924 # Actually, the nightly should be made working with powerpc target.
7925 # That just was too much work for the moment, another week or two.
7926 *ppc*)
7927 aros_target_cpu="ppc"
7928 aros_object_format="elf32ppc"
7929 aros_flavour="emulation"
7930 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7931 aros_default_wbdepth=8
7932 gcc_target_cpu="ppc"
7934 *armhf*)
7935 aros_target_cpu="arm"
7936 target_cpu="arm"
7937 aros_object_format="armelf_aros"
7938 aros_flavour="emulation"
7939 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7940 gcc_target_cpu="arm"
7941 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7942 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7943 aros_arch_libs="-laeabi"
7944 gcc_default_float_abi="hard"
7945 android_tool_dir_prefix="arm-linux-androideabi"
7946 android_tool_prefix="arm-linux-androideabi"
7947 android_ndk_arch="arm"
7948 kernel_tool_prefix="arm-linux-gnueabihf-"
7950 *arm*)
7951 aros_target_cpu="arm"
7952 aros_object_format="armelf_aros"
7953 aros_flavour="emulation"
7954 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7955 gcc_target_cpu="arm"
7956 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7957 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7958 aros_arch_libs="-laeabi"
7959 android_tool_dir_prefix="arm-linux-androideabi"
7960 android_tool_prefix="arm-linux-androideabi"
7961 android_ndk_arch="arm"
7962 kernel_tool_prefix="arm-linux-gnueabi-"
7965 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7967 esac
7968 case "$aros_target_variant" in
7969 android)
7971 if test "$android_ndk_arch" = ""; then
7972 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7975 aros_default_wbwidth=320
7976 aros_default_wbheight=480
7977 if test "$aros_android_ndk" = "none"; then
7978 aros_kernel_cflags="-mandroid"
7979 aros_kernel_ldflags="-mandroid"
7980 CFLAGS="-mandroid"
7981 else
7982 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7983 kernel_tool_version=""
7984 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7985 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7986 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7987 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7988 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7990 need_x11=no
7991 unixgfx_hidd_target=kernel-hidd-androidgfx
7992 # Disable implicit PIC mode
7993 aros_target_cflags="$aros_target_cflags -fno-pic"
7994 kernel_tool_prefix="$android_tool_prefix-"
7996 esac
8000 aros_target_arch="pc"
8001 aros_shared_default="no"
8002 target_bootloader="grub2"
8003 case "$target_cpu" in
8004 *i?86*)
8005 aros_target_cpu="i386"
8008 if test "$aros_object_format" = "" ; then
8009 aros_object_format="elf_i386"
8011 aros_flavour="standalone"
8012 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8013 aros_kernel_ldflags="-Wl,-melf_i386"
8014 aros_default_wbwidth=640
8015 aros_default_wbheight=480
8016 gcc_target_cpu="i386"
8018 *x86_64*)
8019 aros_target_cpu="x86_64"
8020 aros_serial_debug=1
8021 if test "$aros_object_format" = "" ; then
8022 aros_object_format="elf_x86_64"
8024 aros_flavour="standalone"
8025 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8026 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8027 aros_kernel_ldflags=""
8028 aros_default_wbwidth=640
8029 aros_default_wbheight=480
8032 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8034 esac
8037 prep)
8038 aros_target_arch="prep"
8039 aros_shared_default="no"
8040 aros_target_cpu="ppc"
8041 aros_object_format="elf32ppc"
8042 aros_flavour="ppcnative"
8043 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8044 aros_kernel_ldflags=""
8045 aros_default_wbwidth=640
8046 aros_default_wbheight=480
8047 gcc_target_cpu="ppc"
8050 freebsd*)
8051 aros_target_arch="freebsd"
8052 aros_target_family="unix"
8053 aros_target_cpu="i386"
8054 aros_flavour="emulation"
8055 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8056 gcc_target_cpu="i386"
8058 aros_target_strip_flags="-x"
8061 darwin*)
8062 aros_target_arch="darwin"
8063 aros_target_family="unix"
8064 aros_flavour="emulation"
8065 case "$target_cpu" in
8066 *i?86*)
8067 aros_ios_platform="iPhoneSimulator"
8068 aros_target_cpu="i386"
8069 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8070 aros_kernel_ldflags=""
8071 aros_macosx_version="10.4"
8072 aros_default_wbdepth=8
8073 gcc_target_cpu="i386"
8074 aros_object_format="elf_i386"
8075 aros_kernel_ar_flags="-cr"
8076 aros_target_strip_flags="-x"
8077 kernel_tool_flags="-m32"
8079 *x86_64*)
8080 aros_target_cpu="x86_64"
8081 aros_object_format="elf_x86_64"
8082 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8083 aros_macosx_version="10.6"
8084 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8085 aros_kernel_cflags="-m64"
8086 aros_kernel_ldflags="-m64"
8087 aros_target_cflags="-mcmodel=large"
8088 aros_default_wbdepth=8
8089 aros_kernel_ar="ar"
8090 aros_kernel_ar_flags="-cr"
8091 aros_kernel_ld="ld"
8092 aros_kernel_as="as"
8093 aros_kernel_ranlib="ranlib"
8094 aros_kernel_nm="nm"
8095 aros_kernel_strip="strip"
8096 kernel_tool_prefix="i686-apple-darwin10-"
8098 *ppc*)
8099 aros_target_cpu="ppc"
8100 aros_object_format="elf32ppc"
8101 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8102 aros_kernel_ldflags=""
8103 aros_macosx_version="10.0"
8104 aros_default_wbdepth=8
8105 gcc_target_cpu="ppc"
8106 aros_kernel_ar="ar"
8107 aros_kernel_ar_flags="-cr"
8108 aros_kernel_ld="ld -arch ppc"
8109 aros_kernel_as="as -arch ppc"
8110 aros_kernel_ranlib="ranlib -arch ppc"
8111 aros_kernel_nm="nm -arch ppc"
8112 aros_kernel_strip="strip -arch ppc"
8113 kernel_tool_prefix="powerpc-apple-darwin10-"
8115 *arm*)
8116 aros_ios_platform="iPhoneOS"
8117 aros_target_cpu="arm"
8118 aros_object_format="armelf_aros"
8119 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8120 aros_arch_libs="-laeabi"
8121 aros_default_wbdepth=8
8122 gcc_target_cpu="arm"
8123 aros_kernel_ar="ar"
8124 aros_kernel_ar_flags="-cr"
8125 aros_kernel_ld="ld -arch arm"
8126 aros_kernel_ranlib="ranlib -arch arm"
8127 kernel_tool_prefix="arm-apple-darwin10-"
8128 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8131 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8133 esac
8134 case "$aros_target_variant" in
8135 ios)
8136 aros_ios_version="3.0"
8137 aros_default_wbwidth=320
8138 aros_default_wbheight=480
8139 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8140 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8141 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8142 need_x11=no
8143 # This is here because it may depend on iOS or SDK version
8144 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8145 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8146 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8149 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8150 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8152 esac
8155 dragonfly*)
8156 aros_target_arch="dragonfly"
8157 aros_target_family="unix"
8158 aros_flavour="emulation"
8159 case "$target_cpu" in
8160 *i?86*)
8161 aros_target_cpu="i386"
8162 aros_object_format="elf_i386"
8163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8165 *x86_64*)
8166 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8167 aros_target_cpu="x86_64"
8168 aros_object_format="elf_x86_64"
8169 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8172 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8174 esac
8177 netbsd*)
8178 aros_target_arch="netbsd"
8179 aros_target_family="unix"
8180 case "$target_cpu" in
8181 *m68k*)
8182 aros_target_cpu="m68k"
8183 aros_object_format="m68kelf"
8184 aros_flavour="emulcompat"
8185 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8186 gcc_target_cpu="mc68000"
8188 *i?86*)
8189 aros_target_cpu="i386"
8190 aros_object_format="elf_i386"
8191 aros_flavour="emulation"
8192 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8193 aros_default_wbdepth=8
8194 gcc_target_cpu="i386"
8197 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8199 esac
8200 aros_target_genmap="-Wl,-M -Xlinker >"
8201 aros_flavour="emulation"
8202 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8205 openbsd*)
8206 aros_target_arch="openbsd"
8207 aros_target_family="unix"
8208 case "$target_cpu" in
8209 *i?86*)
8210 aros_target_cpu="i386"
8211 aros_object_format="elf_i386"
8212 aros_flavour="emulation"
8213 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8214 gcc_target_cpu="i386"
8217 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8219 esac
8220 aros_target_genmap="-Wl,-M -Xlinker >"
8221 aros_target_nm_flags="-u"
8222 aros_flavour="emulation"
8225 solaris*)
8226 aros_target_arch="solaris"
8227 aros_target_family="unix"
8228 case "$target_cpu" in
8229 *i?86*)
8230 aros_target_cpu="i386"
8231 aros_object_format="elf_i386"
8232 aros_flavour="emulation"
8233 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8234 aros_default_wbdepth=8
8235 gcc_target_cpu="i386"
8237 *sparc*)
8238 aros_target_cpu="sparc"
8239 aros_object_format="elf_sparc"
8240 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8241 gcc_target_cpu="sparc"
8244 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8246 esac
8247 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8248 aros_flavour="emulation"
8251 morphos*)
8252 aros_target_arch="morphos"
8253 aros_shared_default="no"
8254 aros_target_cpu="ppc"
8255 aros_object_format="elf_ppc"
8256 aros_flavour="nativecompat"
8257 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8258 gcc_target_cpu="ppc"
8261 sam440)
8262 aros_target_arch="sam440"
8263 aros_shared_default="no"
8264 aros_target_cpu="ppc"
8265 aros_object_format="elf32ppc"
8266 aros_flavour="ppcnative"
8267 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8268 aros_kernel_ldflags=""
8269 aros_default_wbwidth=1024
8270 aros_default_wbheight=768
8271 aros_default_wbdepth=24
8272 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8273 gcc_target_cpu="powerpc"
8276 efika)
8277 aros_target_arch="efika"
8278 aros_shared_default="no"
8279 aros_target_cpu="arm"
8280 aros_object_format="armelf_aros"
8281 aros_flavour="standalone"
8282 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8283 aros_kernel_ldflags=""
8284 aros_default_wbwidth=1024
8285 aros_default_wbheight=600
8286 aros_arch_libs="-laeabi"
8287 gcc_default_cpu="armv7-a"
8288 gcc_default_fpu="vfpv3"
8289 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8290 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8291 aros_optimization_cflags="$aros_optimization_cflags -Os"
8292 case "$target_cpu" in
8293 *armhf*)
8294 gcc_default_float_abi="hard"
8295 target_cpu=arm
8296 aros_target_cpu=arm
8298 *arm*)
8299 gcc_default_float_abi="softfp"
8302 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8304 esac
8307 chrp)
8308 aros_target_arch="chrp"
8309 aros_shared_default="no"
8310 aros_target_cpu="ppc"
8311 aros_object_format="elf32ppc"
8312 aros_flavour="ppcnative"
8313 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8314 aros_kernel_ldflags=""
8315 aros_default_wbwidth=640
8316 aros_default_wbheight=480
8317 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8318 gcc_target_cpu="powerpc"
8319 case "$aros_target_variant" in
8320 efika)
8321 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8323 esac
8326 r*pi)
8327 aros_flavour="standalone"
8328 aros_target_arch="raspi"
8329 aros_target_cpu="arm"
8330 aros_object_format="armelf_aros"
8331 aros_shared_default="no"
8332 aros_arch_libs="-laeabi"
8334 gcc_default_cpu="armv6"
8335 gcc_default_cpu_tune="arm1176jzf-s"
8337 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8338 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8339 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8340 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8341 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8344 sun4i)
8345 aros_flavour="standalone"
8346 aros_target_arch="sun4i"
8347 aros_target_cpu="arm"
8348 aros_object_format="armelf_aros"
8349 aros_shared_default="no"
8350 aros_arch_libs="-laeabi"
8352 gcc_default_cpu="armv7-a"
8353 gcc_default_fpu="neon"
8354 gcc_default_cpu_tune="cortex-a8"
8355 gcc_default_float_abi="hard"
8357 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8358 aros_optimization_cflags=""
8359 aros_config_cflags="$aros_config_cflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8360 aros_config_aflags="$aros_config_aflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8363 amiga*)
8364 aros_target_arch="amiga"
8365 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8366 aros_shared_default="no"
8368 case "$target_cpu" in
8369 *m68k*)
8370 # Check whether --enable-amigaos_compliance was given.
8371 if test "${enable_amigaos_compliance+set}" = set; then :
8372 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8375 aros_enable_mmu=no
8376 aros_target_cpu="m68k"
8377 aros_object_format="m68kelf"
8378 aros_flavour="standcompat"
8379 gcc_target_cpu="m68000"
8380 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8381 aros_optimization_cflags="$aros_optimization_cflags -Os"
8382 aros_config_aflags="$aros_config_aflags"
8383 aros_target_strip_flags="-R.comment --strip-debug"
8384 aros_default_wbwidth=640
8385 aros_default_wbheight=256
8386 aros_default_wbdepth=2
8388 *ppc*)
8389 aros_cpu="ppc"
8390 aros_flavour="native"
8391 gcc_target_cpu="ppc"
8394 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8396 esac
8399 mingw*)
8400 aros_target_arch="mingw32"
8401 aros_shared_default="no"
8402 aros_flavour="emulation"
8403 aros_shared_cflags=""
8404 need_crosstools="yes"
8405 need_dlopen="no"
8406 rescomp="windres"
8407 case "$target_cpu" in
8408 *i?86*)
8409 aros_target_cpu="i386"
8410 aros_object_format="elf_i386"
8411 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8412 aros_default_wbdepth=8
8413 gcc_target_cpu="i386"
8415 kernel_tool_prefix="i386-mingw32-"
8417 *x86_64*)
8418 aros_target_cpu="x86_64"
8419 aros_object_format="elf_x86_64"
8420 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8421 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8422 aros_default_wbdepth=8
8423 kernel_tool_prefix="x86_64-w64-mingw32-"
8425 *arm*)
8426 aros_target_cpu="arm"
8427 aros_object_format="armelf_aros"
8428 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8429 aros_arch_libs="-laeabi"
8430 aros_default_wbdepth=8
8431 gcc_target_cpu="arm"
8432 gcc_default_float_abi="soft"
8433 kernel_tool_prefix="arm-mingw32ce-"
8434 aros_default_wbwidth=160
8435 aros_default_wbheight=160
8438 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8440 esac
8441 if test $host_os = "cygwin"; then
8442 aros_kernel_cflags="-mno-cygwin"
8445 pp*)
8446 aros_target_arch="pp"
8447 aros_shared_default="no"
8448 case "$target_cpu" in
8449 *m68k*)
8450 aros_target_cpu="m68k"
8451 aros_object_format="m68kelf"
8452 aros_flavour="palmnative"
8453 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8454 aros_default_wbwidth=160
8455 aros_default_wbheight=160
8456 aros_default_wbdepth=1
8457 aros_target_ar_flags="cru"
8458 aros_compiler_libs="-lgcc1"
8459 aros_shared_default=no
8460 aros_shared_cflags="-fpic"
8461 aros_shared_aflags=""
8462 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8463 aros_kernel_ldflags="-Wl,-rpath,./lib"
8464 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8465 aros_debug_aflags=""
8466 aros_debug_ldflags="$aros_symbols_debug"
8467 aros_mungwall_debug="0"
8468 aros_modules_debug="0"
8469 gcc_target_cpu="mc68000"
8470 ignore_undefined_symbols="-ius"
8473 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8475 esac
8478 mac*)
8479 aros_target_arch="mac"
8480 aros_shared_default="no"
8481 case "$target_cpu" in
8482 *m68k*)
8483 aros_target_cpu="m68k"
8484 aros_object_format="m68kelf"
8485 aros_flavour="mac68knative"
8486 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8487 aros_default_wbwidth=512
8488 aros_default_wbheight=384
8489 aros_default_wbdepth=8
8490 aros_target_ar_flags="cru"
8491 aros_compiler_libs="-lgcc1"
8492 aros_shared_default=no
8493 aros_shared_cflags="-fpic"
8494 aros_shared_aflags=""
8495 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8496 aros_kernel_ldflags="-Wl,-rpath,./lib"
8497 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8498 aros_debug_aflags=""
8499 aros_debug_ldflags="$aros_symbols_debug"
8500 aros_mungwall_debug="0"
8501 aros_modules_debug="0"
8502 gcc_target_cpu="mc68000"
8503 ignore_undefined_symbols="-ius"
8506 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8508 esac
8512 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8514 esac
8516 #-----------------------------------------------------------------------------
8517 crosstools_guess="yes"
8518 aros_target_toolchain="no"
8519 aros_config_sysroot = ""
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8522 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8524 # Check whether --with-kernel-toolchain-prefix was given.
8525 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8526 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8530 $as_echo "$kernel_tool_prefix" >&6; }
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8533 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8535 # Check whether --with-elf-toolchain-prefix was given.
8536 if test "${with_elf_toolchain_prefix+set}" = set; then :
8537 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8538 crosstools_guess="no"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8542 $as_echo "$elf_tool_prefix" >&6; }
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8545 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8547 # Check whether --with-aros-toolchain was given.
8548 if test "${with_aros_toolchain+set}" = set; then :
8549 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8550 crosstools_guess="no"
8553 if test "$aros_tool_prefix" = "yes" ; then
8554 aros_tool_prefix=$aros_target_cpu-aros-
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8557 $as_echo "$aros_tool_prefix" >&6; }
8559 #-----------------------------------------------------------------------------
8560 # Checking if we should build crosstools..
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8562 $as_echo_n "checking whether to build crosstools... " >&6; }
8563 # Check whether --enable-crosstools was given.
8564 if test "${enable_crosstools+set}" = set; then :
8565 enableval=$enable_crosstools; crosstools="$enableval"
8566 else
8567 crosstools="$crosstools_guess"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8571 $as_echo "$crosstools" >&6; }
8573 if test "${crosstools}" = "yes"; then
8574 if test "${crosstools_guess}" = "no"; then
8575 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8579 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8580 aros_target_toolchain="yes"
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8584 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8586 # Check whether --with-aros-toolchain-install was given.
8587 if test "${with_aros_toolchain_install+set}" = set; then :
8588 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8591 if test "x$aros_toolchain_install" = "x"; then
8592 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8593 else
8594 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8595 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8596 if test "$crosstools_guess" = "no" ; then
8597 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8601 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8603 # Helper to identify gcc version
8606 #-----------------------------------------------------------------------------
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8608 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8610 # Check whether --with-gcc-version was given.
8611 if test "${with_gcc_version+set}" = set; then :
8612 withval=$with_gcc_version; use_gcc_version="$withval"
8613 else
8614 use_gcc_version=""
8617 if test "$use_gcc_version" = ""; then
8618 if test "${crosstools}" = "no"; then
8619 if test "x$aros_toolchain_install" != "x"; then
8621 target_gcc_version=""
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8623 $as_echo_n "checking gcc version... " >&6; }
8624 if ${ax_cv_gcc_version+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8628 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8629 if test "x$ax_cv_gcc_version" = "x"; then :
8631 ax_cv_gcc_version=""
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8637 $as_echo "$ax_cv_gcc_version" >&6; }
8638 target_gcc_version=$ax_cv_gcc_version
8643 if test "$use_gcc_version" = ""; then
8644 target_gcc_version="4.6.4"
8646 else
8647 target_gcc_version="$use_gcc_version"
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8650 $as_echo "$target_gcc_version" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8653 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8654 # Check whether --enable-objc was given.
8655 if test "${enable_objc+set}" = set; then :
8656 enableval=$enable_objc; objc="$enableval"
8657 else
8658 objc="yes"
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8662 $as_echo "$objc" >&6; }
8663 if test "x$objc" = "xyes"; then
8664 objc_target="$objc"
8665 else
8666 objc_target="no-objc"
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8670 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8671 # Check whether --enable-java was given.
8672 if test "${enable_java+set}" = set; then :
8673 enableval=$enable_java; java="$enableval"
8674 else
8675 java="no"
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8679 $as_echo "$java" >&6; }
8680 if test "x$java" != "xno"; then
8681 java_target="$java"
8682 else
8683 java_target="no-java"
8686 spec_obj_format="-m $aros_object_format"
8687 # Now process extra architecture-specific options.
8688 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8689 # as well as floating-point ABI.
8690 case "$aros_target_cpu" in
8691 *x86_64*)
8692 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8694 arm*)
8695 if test "$gcc_default_cpu" = ""; then
8696 gcc_default_cpu="armv6"
8698 if test "$gcc_default_fpu" = ""; then
8699 gcc_default_fpu="vfp"
8701 if test "$gcc_default_float_abi" = ""; then
8702 if test "$target_cpu" = "armhf"; then
8703 gcc_default_float_abi="hard"
8704 else
8705 gcc_default_float_abi="softfp"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8710 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8712 # Check whether --with-cpu was given.
8713 if test "${with_cpu+set}" = set; then :
8714 withval=$with_cpu; aros_gcc_cpu="$withval"
8715 else
8716 aros_gcc_cpu=$gcc_default_cpu
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8720 $as_echo "$aros_gcc_cpu" >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8723 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8725 # Check whether --with-fpu was given.
8726 if test "${with_fpu+set}" = set; then :
8727 withval=$with_fpu; aros_gcc_fpu="$withval"
8728 else
8729 aros_gcc_fpu=$gcc_default_fpu
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8733 $as_echo "$aros_gcc_fpu" >&6; }
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8736 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8738 # Check whether --with-float was given.
8739 if test "${with_float+set}" = set; then :
8740 withval=$with_float; aros_gcc_float_abi="$withval"
8741 else
8742 aros_gcc_float_abi=$gcc_default_float_abi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8746 $as_echo "$aros_gcc_float_abi" >&6; }
8748 aros_isa_flags="-marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8749 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8750 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8752 i386)
8753 aros_isa_flags="-m32 -march=i486"
8754 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8755 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8757 esac
8759 # Some architectures may need custom ELF specs.
8760 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8761 elf_specs_in=config/${aros_object_format}-specs.in
8762 else
8763 elf_specs_in=config/elf-specs.in
8766 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8767 # Since we override specs, we may need to put these defines there
8768 if test "$gcc_target_cpu" != ""; then
8769 gcc_target_cpu="-D__${gcc_target_cpu}__"
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8773 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8775 # Check whether --with-portssources was given.
8776 if test "${with_portssources+set}" = set; then :
8777 withval=$with_portssources; with_portssrcdir=$withval
8778 else
8779 with_portssrcdir="default"
8782 if test "$with_portssrcdir" = "default"; then
8783 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8784 else
8785 AROS_PORTSSRCDIR="$with_portssrcdir"
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8788 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8791 $as_echo_n "checking which bootloader to use... " >&6; }
8793 # Check whether --with-bootloader was given.
8794 if test "${with_bootloader+set}" = set; then :
8795 withval=$with_bootloader; target_bootloader=$withval
8796 else
8797 target_bootloader=$target_bootloader
8800 if test "$target_bootloader" = "none"; then
8801 aros_target_bootloader=""
8802 else
8803 aros_target_bootloader="$target_bootloader"
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8806 $as_echo "$target_bootloader" >&6; }
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8809 $as_echo_n "checking which icon-set to use... " >&6; }
8811 # Check whether --with-iconset was given.
8812 if test "${with_iconset+set}" = set; then :
8813 withval=$with_iconset; target_iconset=$withval
8814 else
8815 target_iconset="default"
8818 if test "$target_iconset" = "default"; then
8819 aros_target_iconset="Gorilla"
8820 target_iconset="default (Gorilla)"
8821 else
8822 aros_target_iconset="$target_iconset"
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8825 $as_echo "$target_iconset" >&6; }
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8828 $as_echo_n "checking which GUI Theme to use... " >&6; }
8830 # Check whether --with-theme was given.
8831 if test "${with_theme+set}" = set; then :
8832 withval=$with_theme; target_guitheme=$withval
8833 else
8834 target_guitheme="default"
8837 if test "$target_guitheme" = "default"; then
8838 aros_target_guitheme="Ice"
8839 else
8840 aros_target_guitheme="$target_guitheme"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8843 $as_echo "$aros_target_guitheme" >&6; }
8845 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8846 # for target code)
8847 cross_compiling=no
8849 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8850 cross_compiling=yes
8853 if test "$aros_host_cpu" == "x86_64" ; then
8854 if test "$aros_target_cpu" == "i386" ; then
8855 cross_compiling=no
8859 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8860 if test "$aros_host_arch" != "$aros_target_arch" ; then
8861 cross_compiling=yes
8863 else
8864 if test "$host_cc_elf" = "no" ; then
8865 cross_compiling=yes
8869 if test "$cross_compiling" = "no" ; then
8870 kernel_tool_prefix=""
8871 if test "$host_cc_elf" = "yes" ; then
8872 elf_tool_prefix=""
8876 if test "$kernel_tool_version" != ""; then
8877 kernel_tool_version="-$kernel_tool_version"
8880 #######################################################################
8881 ## Compute what toolchains to use, and their paths ##
8882 #######################################################################
8884 # This takes, as input:
8885 # crosstools {yes,no}
8886 # kernel_tool_version {"",[version]}
8887 # target_tool_version {"",[version]}
8888 # kernel_tool_prefix {none,[some-arch-os-]}
8889 # target_tool_prefix ${aros_target_cpu}-aros-
8890 # aros_tool_prefix ${aros_target_cpu}-aros-
8892 # The output is
8893 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8894 # Where the 'kernel' binaries are located
8895 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8896 # Where the 'target' binaries are located
8897 # (not the symlink farm - that is aros_target_*!)
8899 # The rules are:
8900 # if crosstools then
8901 # if kernel_tools_prefix = "no-kernel-prefix-"
8902 # aros_kernel_* = crosstools cc paths
8903 # aros_kernel_cc = elf cc wrapper around crosstools cc
8904 # else
8905 # VALIDATE(${kernel_tools_prefix}*)
8906 # aros_kernel_* = ${kernel_tools_prefix}*
8907 # if ${kernel_tools_prefix}cc is an AROS gcc
8908 # aros_kernel_cc = ${kernel_tools_prefix}cc
8909 # else
8910 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8911 # fi
8912 # fi
8914 # orig_target_* = aros built crosstools
8915 # orig_target_cc = elf cc wrapper around crosstools cc
8916 # else
8917 # VALIDATE(${kernel_tools_prefix}*)
8919 # orig_target_* = aros_kernel_*
8920 # if aros_kernel_cc is an AROS gcc
8921 # orig_target_cc = aros_kernel_cc
8922 # else
8923 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8924 # fi
8925 # fi
8927 target_tool_prefix="${aros_target_cpu}-aros-"
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8930 $as_echo_n "checking which kernel tools... " >&6; }
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8932 $as_echo "$kernel_tool_prefix" >&6; };
8934 if test "$kernel_tool_prefix" = "none" ; then
8935 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8936 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8938 else
8939 # Kernel tools required - find them
8940 # Note that 'normally', aros_kernel_* overrides will be
8941 # empty, unless specified in the per-arch sections above.
8942 if test "x$aros_kernel_cpp" = "x"; then
8943 aros_kernel_cpp=${kernel_tool_prefix}cpp
8946 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8947 if test "$cross_compiling" = "yes" ; then
8948 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8949 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8951 $as_echo_n "checking for $ac_word... " >&6; }
8952 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 case $aros_kernel_cpp in
8956 [\\/]* | ?:[\\/]*)
8957 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8963 IFS=$as_save_IFS
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8967 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8969 break 2
8971 done
8972 done
8973 IFS=$as_save_IFS
8976 esac
8978 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8979 if test -n "$aros_kernel_cpp"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8981 $as_echo "$aros_kernel_cpp" >&6; }
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8988 else
8989 if test "$GCC" = "yes"; then
8990 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8991 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8992 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 case $aros_kernel_cpp in
8999 [\\/]* | ?:[\\/]*)
9000 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in `dirname $aros_gcc_cpp`
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9010 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9014 done
9015 done
9016 IFS=$as_save_IFS
9019 esac
9021 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9022 if test -n "$aros_kernel_cpp"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9024 $as_echo "$aros_kernel_cpp" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9032 if test "$aros_kernel_cpp" = ""; then
9033 # Extract the first word of "cpp", so it can be a program name with args.
9034 set dummy cpp; ac_word=$2
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036 $as_echo_n "checking for $ac_word... " >&6; }
9037 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 case $aros_kernel_cpp in
9041 [\\/]* | ?:[\\/]*)
9042 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9048 IFS=$as_save_IFS
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 break 2
9056 done
9057 done
9058 IFS=$as_save_IFS
9061 esac
9063 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9064 if test -n "$aros_kernel_cpp"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9066 $as_echo "$aros_kernel_cpp" >&6; }
9067 else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9075 else
9076 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9077 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 case $aros_kernel_cpp in
9084 [\\/]* | ?:[\\/]*)
9085 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 break 2
9099 done
9100 done
9101 IFS=$as_save_IFS
9104 esac
9106 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9107 if test -n "$aros_kernel_cpp"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9109 $as_echo "$aros_kernel_cpp" >&6; }
9110 else
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9118 if test "$aros_kernel_cpp" = ""; then
9119 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9121 if test "x$aros_kernel_cc" = "x"; then
9122 aros_kernel_cc=${kernel_tool_prefix}gcc
9125 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9126 if test "$cross_compiling" = "yes" ; then
9127 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9128 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 case $aros_kernel_cc in
9135 [\\/]* | ?:[\\/]*)
9136 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 for as_dir in $PATH
9142 IFS=$as_save_IFS
9143 test -z "$as_dir" && as_dir=.
9144 for ac_exec_ext in '' $ac_executable_extensions; do
9145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9146 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148 break 2
9150 done
9151 done
9152 IFS=$as_save_IFS
9155 esac
9157 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9158 if test -n "$aros_kernel_cc"; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9160 $as_echo "$aros_kernel_cc" >&6; }
9161 else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9167 else
9168 if test "$GCC" = "yes"; then
9169 aros_gcc_cc=`$CC -print-prog-name=cc`
9170 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9171 set dummy `basename $aros_gcc_cc`; ac_word=$2
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 case $aros_kernel_cc in
9178 [\\/]* | ?:[\\/]*)
9179 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 for as_dir in `dirname $aros_gcc_cc`
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9189 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 break 2
9193 done
9194 done
9195 IFS=$as_save_IFS
9198 esac
9200 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9201 if test -n "$aros_kernel_cc"; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9203 $as_echo "$aros_kernel_cc" >&6; }
9204 else
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9211 if test "$aros_kernel_cc" = ""; then
9212 # Extract the first word of "cc", so it can be a program name with args.
9213 set dummy cc; ac_word=$2
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9215 $as_echo_n "checking for $ac_word... " >&6; }
9216 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 case $aros_kernel_cc in
9220 [\\/]* | ?:[\\/]*)
9221 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225 for as_dir in $PATH
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9231 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 break 2
9235 done
9236 done
9237 IFS=$as_save_IFS
9240 esac
9242 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9243 if test -n "$aros_kernel_cc"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9245 $as_echo "$aros_kernel_cc" >&6; }
9246 else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 $as_echo "no" >&6; }
9254 else
9255 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9256 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 case $aros_kernel_cc in
9263 [\\/]* | ?:[\\/]*)
9264 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 for as_dir in $PATH
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9274 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9278 done
9279 done
9280 IFS=$as_save_IFS
9283 esac
9285 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9286 if test -n "$aros_kernel_cc"; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9288 $as_echo "$aros_kernel_cc" >&6; }
9289 else
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9297 if test "$aros_kernel_cc" = ""; then
9298 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9300 if test "x$aros_kernel_cxx" = "x"; then
9301 aros_kernel_cxx=${kernel_tool_prefix}g++
9304 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9305 if test "$cross_compiling" = "yes" ; then
9306 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9307 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 case $aros_kernel_cxx in
9314 [\\/]* | ?:[\\/]*)
9315 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in $PATH
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9325 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 break 2
9329 done
9330 done
9331 IFS=$as_save_IFS
9334 esac
9336 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9337 if test -n "$aros_kernel_cxx"; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9339 $as_echo "$aros_kernel_cxx" >&6; }
9340 else
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342 $as_echo "no" >&6; }
9346 else
9347 if test "$GCC" = "yes"; then
9348 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9349 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9350 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352 $as_echo_n "checking for $ac_word... " >&6; }
9353 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 case $aros_kernel_cxx in
9357 [\\/]* | ?:[\\/]*)
9358 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9362 for as_dir in `dirname $aros_gcc_cxx`
9364 IFS=$as_save_IFS
9365 test -z "$as_dir" && as_dir=.
9366 for ac_exec_ext in '' $ac_executable_extensions; do
9367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9368 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9370 break 2
9372 done
9373 done
9374 IFS=$as_save_IFS
9377 esac
9379 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9380 if test -n "$aros_kernel_cxx"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9382 $as_echo "$aros_kernel_cxx" >&6; }
9383 else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385 $as_echo "no" >&6; }
9390 if test "$aros_kernel_cxx" = ""; then
9391 # Extract the first word of "cxx", so it can be a program name with args.
9392 set dummy cxx; ac_word=$2
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9394 $as_echo_n "checking for $ac_word... " >&6; }
9395 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 case $aros_kernel_cxx in
9399 [\\/]* | ?:[\\/]*)
9400 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404 for as_dir in $PATH
9406 IFS=$as_save_IFS
9407 test -z "$as_dir" && as_dir=.
9408 for ac_exec_ext in '' $ac_executable_extensions; do
9409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9410 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9412 break 2
9414 done
9415 done
9416 IFS=$as_save_IFS
9419 esac
9421 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9422 if test -n "$aros_kernel_cxx"; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9424 $as_echo "$aros_kernel_cxx" >&6; }
9425 else
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 $as_echo "no" >&6; }
9433 else
9434 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9435 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9437 $as_echo_n "checking for $ac_word... " >&6; }
9438 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 case $aros_kernel_cxx in
9442 [\\/]* | ?:[\\/]*)
9443 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9447 for as_dir in $PATH
9449 IFS=$as_save_IFS
9450 test -z "$as_dir" && as_dir=.
9451 for ac_exec_ext in '' $ac_executable_extensions; do
9452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9453 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455 break 2
9457 done
9458 done
9459 IFS=$as_save_IFS
9462 esac
9464 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9465 if test -n "$aros_kernel_cxx"; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9467 $as_echo "$aros_kernel_cxx" >&6; }
9468 else
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9476 # If it's set, make sure it's really there
9477 if test "x$aros_kernel_cxx" != "x" ; then
9478 if test "$aros_kernel_cxx" = ""; then
9479 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9483 if test "$aros_kernel_ld" = ""; then
9484 if test "$cross_compiling" = "yes" ; then
9485 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9486 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 case $aros_kernel_ld in
9493 [\\/]* | ?:[\\/]*)
9494 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9504 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9508 done
9509 done
9510 IFS=$as_save_IFS
9513 esac
9515 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9516 if test -n "$aros_kernel_ld"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9518 $as_echo "$aros_kernel_ld" >&6; }
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9525 else
9526 if test "$GCC" = "yes"; then
9527 aros_gcc_ld=`$CC -print-prog-name=ld`
9528 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9529 set dummy `basename $aros_gcc_ld`; ac_word=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 case $aros_kernel_ld in
9536 [\\/]* | ?:[\\/]*)
9537 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in `dirname $aros_gcc_ld`
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9551 done
9552 done
9553 IFS=$as_save_IFS
9556 esac
9558 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9559 if test -n "$aros_kernel_ld"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9561 $as_echo "$aros_kernel_ld" >&6; }
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9569 if test "$aros_kernel_ld" = ""; then
9570 # Extract the first word of "ld", so it can be a program name with args.
9571 set dummy ld; ac_word=$2
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573 $as_echo_n "checking for $ac_word... " >&6; }
9574 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 case $aros_kernel_ld in
9578 [\\/]* | ?:[\\/]*)
9579 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9589 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 break 2
9593 done
9594 done
9595 IFS=$as_save_IFS
9598 esac
9600 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9601 if test -n "$aros_kernel_ld"; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9603 $as_echo "$aros_kernel_ld" >&6; }
9604 else
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 $as_echo "no" >&6; }
9612 else
9613 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9614 set dummy $aros_kernel_ld; 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_ld+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 case $aros_kernel_ld in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
9644 if test -n "$aros_kernel_ld"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9646 $as_echo "$aros_kernel_ld" >&6; }
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9655 if test "$aros_kernel_ld" = ""; then
9656 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9659 if test "$aros_kernel_as" = ""; then
9660 if test "$cross_compiling" = "yes" ; then
9661 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9662 set dummy ${kernel_tool_prefix}as; ac_word=$2
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664 $as_echo_n "checking for $ac_word... " >&6; }
9665 if ${ac_cv_path_aros_kernel_as+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 case $aros_kernel_as in
9669 [\\/]* | ?:[\\/]*)
9670 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9680 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9684 done
9685 done
9686 IFS=$as_save_IFS
9689 esac
9691 aros_kernel_as=$ac_cv_path_aros_kernel_as
9692 if test -n "$aros_kernel_as"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9694 $as_echo "$aros_kernel_as" >&6; }
9695 else
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 $as_echo "no" >&6; }
9701 else
9702 if test "$GCC" = "yes"; then
9703 aros_gcc_as=`$CC -print-prog-name=as`
9704 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9705 set dummy `basename $aros_gcc_as`; ac_word=$2
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707 $as_echo_n "checking for $ac_word... " >&6; }
9708 if ${ac_cv_path_aros_kernel_as+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 case $aros_kernel_as in
9712 [\\/]* | ?:[\\/]*)
9713 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 for as_dir in `dirname $aros_gcc_as`
9719 IFS=$as_save_IFS
9720 test -z "$as_dir" && as_dir=.
9721 for ac_exec_ext in '' $ac_executable_extensions; do
9722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9723 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9725 break 2
9727 done
9728 done
9729 IFS=$as_save_IFS
9732 esac
9734 aros_kernel_as=$ac_cv_path_aros_kernel_as
9735 if test -n "$aros_kernel_as"; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9737 $as_echo "$aros_kernel_as" >&6; }
9738 else
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 $as_echo "no" >&6; }
9745 if test "$aros_kernel_as" = ""; then
9746 # Extract the first word of "as", so it can be a program name with args.
9747 set dummy as; ac_word=$2
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if ${ac_cv_path_aros_kernel_as+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 case $aros_kernel_as in
9754 [\\/]* | ?:[\\/]*)
9755 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 break 2
9769 done
9770 done
9771 IFS=$as_save_IFS
9774 esac
9776 aros_kernel_as=$ac_cv_path_aros_kernel_as
9777 if test -n "$aros_kernel_as"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9779 $as_echo "$aros_kernel_as" >&6; }
9780 else
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9788 else
9789 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9790 set dummy $aros_kernel_as; 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_as+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 case $aros_kernel_as in
9797 [\\/]* | ?:[\\/]*)
9798 ac_cv_path_aros_kernel_as="$aros_kernel_as" # 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_as="$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_as=$ac_cv_path_aros_kernel_as
9820 if test -n "$aros_kernel_as"; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9822 $as_echo "$aros_kernel_as" >&6; }
9823 else
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9831 if test "$aros_kernel_as" = ""; then
9832 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9835 if test "$aros_kernel_ar" = ""; then
9836 if test "$cross_compiling" = "yes" ; then
9837 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9838 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 case $aros_kernel_ar in
9845 [\\/]* | ?:[\\/]*)
9846 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 for as_dir in $PATH
9852 IFS=$as_save_IFS
9853 test -z "$as_dir" && as_dir=.
9854 for ac_exec_ext in '' $ac_executable_extensions; do
9855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9856 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9858 break 2
9860 done
9861 done
9862 IFS=$as_save_IFS
9865 esac
9867 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9868 if test -n "$aros_kernel_ar"; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9870 $as_echo "$aros_kernel_ar" >&6; }
9871 else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9877 else
9878 if test "$GCC" = "yes"; then
9879 aros_gcc_ar=`$CC -print-prog-name=ar`
9880 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9881 set dummy `basename $aros_gcc_ar`; ac_word=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 case $aros_kernel_ar in
9888 [\\/]* | ?:[\\/]*)
9889 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in `dirname $aros_gcc_ar`
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9899 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901 break 2
9903 done
9904 done
9905 IFS=$as_save_IFS
9908 esac
9910 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9911 if test -n "$aros_kernel_ar"; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9913 $as_echo "$aros_kernel_ar" >&6; }
9914 else
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9921 if test "$aros_kernel_ar" = ""; then
9922 # Extract the first word of "ar", so it can be a program name with args.
9923 set dummy ar; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 case $aros_kernel_ar in
9930 [\\/]* | ?:[\\/]*)
9931 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 for as_dir in $PATH
9937 IFS=$as_save_IFS
9938 test -z "$as_dir" && as_dir=.
9939 for ac_exec_ext in '' $ac_executable_extensions; do
9940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9941 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 break 2
9945 done
9946 done
9947 IFS=$as_save_IFS
9950 esac
9952 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9953 if test -n "$aros_kernel_ar"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9955 $as_echo "$aros_kernel_ar" >&6; }
9956 else
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9964 else
9965 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9966 set dummy $aros_kernel_ar; 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_ar+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 case $aros_kernel_ar in
9973 [\\/]* | ?:[\\/]*)
9974 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # 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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
9996 if test -n "$aros_kernel_ar"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9998 $as_echo "$aros_kernel_ar" >&6; }
9999 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10007 if test "$aros_kernel_ar" = ""; then
10008 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10011 if test "$aros_kernel_ranlib" = ""; then
10012 if test "$cross_compiling" = "yes" ; then
10013 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10014 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016 $as_echo_n "checking for $ac_word... " >&6; }
10017 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 case $aros_kernel_ranlib in
10021 [\\/]* | ?:[\\/]*)
10022 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10032 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 break 2
10036 done
10037 done
10038 IFS=$as_save_IFS
10041 esac
10043 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10044 if test -n "$aros_kernel_ranlib"; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10046 $as_echo "$aros_kernel_ranlib" >&6; }
10047 else
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10053 else
10054 if test "$GCC" = "yes"; then
10055 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10056 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10057 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059 $as_echo_n "checking for $ac_word... " >&6; }
10060 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 case $aros_kernel_ranlib in
10064 [\\/]* | ?:[\\/]*)
10065 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in `dirname $aros_gcc_ranlib`
10071 IFS=$as_save_IFS
10072 test -z "$as_dir" && as_dir=.
10073 for ac_exec_ext in '' $ac_executable_extensions; do
10074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10075 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077 break 2
10079 done
10080 done
10081 IFS=$as_save_IFS
10084 esac
10086 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10087 if test -n "$aros_kernel_ranlib"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10089 $as_echo "$aros_kernel_ranlib" >&6; }
10090 else
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10097 if test "$aros_kernel_ranlib" = ""; then
10098 # Extract the first word of "ranlib", so it can be a program name with args.
10099 set dummy ranlib; ac_word=$2
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 case $aros_kernel_ranlib in
10106 [\\/]* | ?:[\\/]*)
10107 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111 for as_dir in $PATH
10113 IFS=$as_save_IFS
10114 test -z "$as_dir" && as_dir=.
10115 for ac_exec_ext in '' $ac_executable_extensions; do
10116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10117 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10119 break 2
10121 done
10122 done
10123 IFS=$as_save_IFS
10126 esac
10128 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10129 if test -n "$aros_kernel_ranlib"; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10131 $as_echo "$aros_kernel_ranlib" >&6; }
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10140 else
10141 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10142 set dummy $aros_kernel_ranlib; 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_ranlib+:} false; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 case $aros_kernel_ranlib in
10149 [\\/]* | ?:[\\/]*)
10150 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # 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_ranlib="$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_ranlib=$ac_cv_path_aros_kernel_ranlib
10172 if test -n "$aros_kernel_ranlib"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10174 $as_echo "$aros_kernel_ranlib" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10183 if test "$aros_kernel_ranlib" = ""; then
10184 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10187 if test "$aros_kernel_nm" = ""; then
10188 if test "$cross_compiling" = "yes" ; then
10189 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10190 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 case $aros_kernel_nm in
10197 [\\/]* | ?:[\\/]*)
10198 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10208 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 break 2
10212 done
10213 done
10214 IFS=$as_save_IFS
10217 esac
10219 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10220 if test -n "$aros_kernel_nm"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10222 $as_echo "$aros_kernel_nm" >&6; }
10223 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10229 else
10230 if test "$GCC" = "yes"; then
10231 aros_gcc_nm=`$CC -print-prog-name=nm`
10232 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10233 set dummy `basename $aros_gcc_nm`; ac_word=$2
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10235 $as_echo_n "checking for $ac_word... " >&6; }
10236 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 case $aros_kernel_nm in
10240 [\\/]* | ?:[\\/]*)
10241 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in `dirname $aros_gcc_nm`
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10255 done
10256 done
10257 IFS=$as_save_IFS
10260 esac
10262 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10263 if test -n "$aros_kernel_nm"; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10265 $as_echo "$aros_kernel_nm" >&6; }
10266 else
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10273 if test "$aros_kernel_nm" = ""; then
10274 # Extract the first word of "nm", so it can be a program name with args.
10275 set dummy nm; ac_word=$2
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277 $as_echo_n "checking for $ac_word... " >&6; }
10278 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 case $aros_kernel_nm in
10282 [\\/]* | ?:[\\/]*)
10283 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10293 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10297 done
10298 done
10299 IFS=$as_save_IFS
10302 esac
10304 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10305 if test -n "$aros_kernel_nm"; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10307 $as_echo "$aros_kernel_nm" >&6; }
10308 else
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310 $as_echo "no" >&6; }
10316 else
10317 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10318 set dummy $aros_kernel_nm; 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_nm+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 case $aros_kernel_nm in
10325 [\\/]* | ?:[\\/]*)
10326 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # 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_nm="$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_nm=$ac_cv_path_aros_kernel_nm
10348 if test -n "$aros_kernel_nm"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10350 $as_echo "$aros_kernel_nm" >&6; }
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10359 if test "$aros_kernel_nm" = ""; then
10360 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10363 if test "$aros_kernel_strip" = ""; then
10364 if test "$cross_compiling" = "yes" ; then
10365 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10366 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368 $as_echo_n "checking for $ac_word... " >&6; }
10369 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 case $aros_kernel_strip in
10373 [\\/]* | ?:[\\/]*)
10374 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378 for as_dir in $PATH
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
10383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10384 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 break 2
10388 done
10389 done
10390 IFS=$as_save_IFS
10393 esac
10395 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10396 if test -n "$aros_kernel_strip"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10398 $as_echo "$aros_kernel_strip" >&6; }
10399 else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10405 else
10406 if test "$GCC" = "yes"; then
10407 aros_gcc_strip=`$CC -print-prog-name=strip`
10408 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10409 set dummy `basename $aros_gcc_strip`; ac_word=$2
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411 $as_echo_n "checking for $ac_word... " >&6; }
10412 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 case $aros_kernel_strip in
10416 [\\/]* | ?:[\\/]*)
10417 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in `dirname $aros_gcc_strip`
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10427 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10431 done
10432 done
10433 IFS=$as_save_IFS
10436 esac
10438 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10439 if test -n "$aros_kernel_strip"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10441 $as_echo "$aros_kernel_strip" >&6; }
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10449 if test "$aros_kernel_strip" = ""; then
10450 # Extract the first word of "strip", so it can be a program name with args.
10451 set dummy strip; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10455 $as_echo_n "(cached) " >&6
10456 else
10457 case $aros_kernel_strip in
10458 [\\/]* | ?:[\\/]*)
10459 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10469 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 break 2
10473 done
10474 done
10475 IFS=$as_save_IFS
10478 esac
10480 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10481 if test -n "$aros_kernel_strip"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10483 $as_echo "$aros_kernel_strip" >&6; }
10484 else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10492 else
10493 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10494 set dummy $aros_kernel_strip; ac_word=$2
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496 $as_echo_n "checking for $ac_word... " >&6; }
10497 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 case $aros_kernel_strip in
10501 [\\/]* | ?:[\\/]*)
10502 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10508 IFS=$as_save_IFS
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10512 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514 break 2
10516 done
10517 done
10518 IFS=$as_save_IFS
10521 esac
10523 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10524 if test -n "$aros_kernel_strip"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10526 $as_echo "$aros_kernel_strip" >&6; }
10527 else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10535 if test "$aros_kernel_strip" = ""; then
10536 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10539 # Objcopy and objdump are not required for the kernel
10540 # toolchain on many architectures.
10541 # So we'll look for them, but not make them strictly required.
10543 if test "$aros_kernel_objcopy" = ""; then
10544 if test "$cross_compiling" = "yes" ; then
10545 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10546 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548 $as_echo_n "checking for $ac_word... " >&6; }
10549 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10550 $as_echo_n "(cached) " >&6
10551 else
10552 case $aros_kernel_objcopy in
10553 [\\/]* | ?:[\\/]*)
10554 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in $PATH
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10568 done
10569 done
10570 IFS=$as_save_IFS
10573 esac
10575 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10576 if test -n "$aros_kernel_objcopy"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10578 $as_echo "$aros_kernel_objcopy" >&6; }
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10585 else
10586 if test "$GCC" = "yes"; then
10587 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10588 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10589 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591 $as_echo_n "checking for $ac_word... " >&6; }
10592 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 case $aros_kernel_objcopy in
10596 [\\/]* | ?:[\\/]*)
10597 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in `dirname $aros_gcc_objcopy`
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10607 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 break 2
10611 done
10612 done
10613 IFS=$as_save_IFS
10616 esac
10618 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10619 if test -n "$aros_kernel_objcopy"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10621 $as_echo "$aros_kernel_objcopy" >&6; }
10622 else
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10629 if test "$aros_kernel_objcopy" = ""; then
10630 # Extract the first word of "objcopy", so it can be a program name with args.
10631 set dummy objcopy; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 case $aros_kernel_objcopy in
10638 [\\/]* | ?:[\\/]*)
10639 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 break 2
10653 done
10654 done
10655 IFS=$as_save_IFS
10658 esac
10660 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10661 if test -n "$aros_kernel_objcopy"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10663 $as_echo "$aros_kernel_objcopy" >&6; }
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10672 else
10673 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10674 set dummy $aros_kernel_objcopy; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 case $aros_kernel_objcopy in
10681 [\\/]* | ?:[\\/]*)
10682 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10688 IFS=$as_save_IFS
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 break 2
10696 done
10697 done
10698 IFS=$as_save_IFS
10701 esac
10703 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10704 if test -n "$aros_kernel_objcopy"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10706 $as_echo "$aros_kernel_objcopy" >&6; }
10707 else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; }
10716 if test "$aros_kernel_objdump" = ""; then
10717 if test "$cross_compiling" = "yes" ; then
10718 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10719 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10721 $as_echo_n "checking for $ac_word... " >&6; }
10722 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 case $aros_kernel_objdump in
10726 [\\/]* | ?:[\\/]*)
10727 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731 for as_dir in $PATH
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10737 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 break 2
10741 done
10742 done
10743 IFS=$as_save_IFS
10746 esac
10748 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10749 if test -n "$aros_kernel_objdump"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10751 $as_echo "$aros_kernel_objdump" >&6; }
10752 else
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; }
10758 else
10759 if test "$GCC" = "yes"; then
10760 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10761 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10762 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 case $aros_kernel_objdump in
10769 [\\/]* | ?:[\\/]*)
10770 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10774 for as_dir in `dirname $aros_gcc_objdump`
10776 IFS=$as_save_IFS
10777 test -z "$as_dir" && as_dir=.
10778 for ac_exec_ext in '' $ac_executable_extensions; do
10779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10780 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10782 break 2
10784 done
10785 done
10786 IFS=$as_save_IFS
10789 esac
10791 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10792 if test -n "$aros_kernel_objdump"; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10794 $as_echo "$aros_kernel_objdump" >&6; }
10795 else
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10802 if test "$aros_kernel_objdump" = ""; then
10803 # Extract the first word of "objdump", so it can be a program name with args.
10804 set dummy objdump; ac_word=$2
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 $as_echo_n "checking for $ac_word... " >&6; }
10807 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 case $aros_kernel_objdump in
10811 [\\/]* | ?:[\\/]*)
10812 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816 for as_dir in $PATH
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10822 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10826 done
10827 done
10828 IFS=$as_save_IFS
10831 esac
10833 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10834 if test -n "$aros_kernel_objdump"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10836 $as_echo "$aros_kernel_objdump" >&6; }
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10845 else
10846 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10847 set dummy $aros_kernel_objdump; ac_word=$2
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 $as_echo_n "checking for $ac_word... " >&6; }
10850 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 case $aros_kernel_objdump in
10854 [\\/]* | ?:[\\/]*)
10855 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10865 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10869 done
10870 done
10871 IFS=$as_save_IFS
10874 esac
10876 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10877 if test -n "$aros_kernel_objdump"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10879 $as_echo "$aros_kernel_objdump" >&6; }
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10888 if test "x${crosstools}" != "xyes" ; then
10889 if test "$aros_kernel_objcopy" = ""; then
10890 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10892 if test "$aros_kernel_objdump" = ""; then
10893 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10899 $as_echo_n "checking which target tools to use... " >&6; }
10900 if test "$aros_target_toolchain" = "yes"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10902 $as_echo "$target_tool_prefix" >&6; }
10903 # We are building AROS crosstools
10904 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10905 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10906 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10907 orig_target_cpp="${tmp_tool_prefix}cpp"
10908 orig_target_ld="${tmp_tool_prefix}ld"
10909 orig_target_as="${tmp_tool_prefix}as"
10910 orig_target_ar="${tmp_tool_prefix}ar"
10911 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10912 orig_target_nm="${tmp_tool_prefix}nm"
10913 orig_target_strip="${tmp_tool_prefix}strip"
10914 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10915 orig_target_objdump="${tmp_tool_prefix}objdump"
10916 else
10917 # Determine whether AROS or ELF tools should be used
10918 if test "$aros_tool_prefix" = "none"; then
10919 aros_tool_prefix="${elf_tool_prefix}"
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10923 $as_echo "$aros_tool_prefix" >&6; }
10924 # We are *not* building AROS crosstools - use the AROS or ELF tools
10926 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10927 if test "$cross_compiling" = "yes" ; then
10928 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10929 set dummy ${target_tool_prefix}cpp; ac_word=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931 $as_echo_n "checking for $ac_word... " >&6; }
10932 if ${ac_cv_path_orig_target_cpp+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 case $orig_target_cpp in
10936 [\\/]* | ?:[\\/]*)
10937 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10951 done
10952 done
10953 IFS=$as_save_IFS
10956 esac
10958 orig_target_cpp=$ac_cv_path_orig_target_cpp
10959 if test -n "$orig_target_cpp"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10961 $as_echo "$orig_target_cpp" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10968 else
10969 if test "$GCC" = "yes"; then
10970 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10971 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10972 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if ${ac_cv_path_orig_target_cpp+:} false; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 case $orig_target_cpp in
10979 [\\/]* | ?:[\\/]*)
10980 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in `dirname $aros_gcc_cpp`
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 break 2
10994 done
10995 done
10996 IFS=$as_save_IFS
10999 esac
11001 orig_target_cpp=$ac_cv_path_orig_target_cpp
11002 if test -n "$orig_target_cpp"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11004 $as_echo "$orig_target_cpp" >&6; }
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11012 if test "$orig_target_cpp" = ""; then
11013 # Extract the first word of "cpp", so it can be a program name with args.
11014 set dummy cpp; ac_word=$2
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if ${ac_cv_path_orig_target_cpp+:} false; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 case $orig_target_cpp in
11021 [\\/]* | ?:[\\/]*)
11022 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11032 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11036 done
11037 done
11038 IFS=$as_save_IFS
11041 esac
11043 orig_target_cpp=$ac_cv_path_orig_target_cpp
11044 if test -n "$orig_target_cpp"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11046 $as_echo "$orig_target_cpp" >&6; }
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11055 else
11056 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11057 set dummy ${aros_tool_prefix}cpp${target_tool_version}; 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_cpp+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 case $orig_target_cpp in
11064 [\\/]* | ?:[\\/]*)
11065 ac_cv_path_orig_target_cpp="$orig_target_cpp" # 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_cpp="$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_cpp=$ac_cv_path_orig_target_cpp
11087 if test -n "$orig_target_cpp"; then
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11089 $as_echo "$orig_target_cpp" >&6; }
11090 else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11098 if test "$orig_target_cpp" = ""; then
11099 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11102 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11103 if test "$cross_compiling" = "yes" ; then
11104 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11105 set dummy ${target_tool_prefix}gcc; ac_word=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107 $as_echo_n "checking for $ac_word... " >&6; }
11108 if ${ac_cv_path_orig_target_cc+:} false; then :
11109 $as_echo_n "(cached) " >&6
11110 else
11111 case $orig_target_cc in
11112 [\\/]* | ?:[\\/]*)
11113 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11127 done
11128 done
11129 IFS=$as_save_IFS
11132 esac
11134 orig_target_cc=$ac_cv_path_orig_target_cc
11135 if test -n "$orig_target_cc"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11137 $as_echo "$orig_target_cc" >&6; }
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11144 else
11145 if test "$GCC" = "yes"; then
11146 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11147 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11148 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11150 $as_echo_n "checking for $ac_word... " >&6; }
11151 if ${ac_cv_path_orig_target_cc+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 case $orig_target_cc in
11155 [\\/]* | ?:[\\/]*)
11156 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160 for as_dir in `dirname $aros_gcc_gcc`
11162 IFS=$as_save_IFS
11163 test -z "$as_dir" && as_dir=.
11164 for ac_exec_ext in '' $ac_executable_extensions; do
11165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11166 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11168 break 2
11170 done
11171 done
11172 IFS=$as_save_IFS
11175 esac
11177 orig_target_cc=$ac_cv_path_orig_target_cc
11178 if test -n "$orig_target_cc"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11180 $as_echo "$orig_target_cc" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11188 if test "$orig_target_cc" = ""; then
11189 # Extract the first word of "gcc", so it can be a program name with args.
11190 set dummy gcc; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if ${ac_cv_path_orig_target_cc+:} false; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 case $orig_target_cc in
11197 [\\/]* | ?:[\\/]*)
11198 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11212 done
11213 done
11214 IFS=$as_save_IFS
11217 esac
11219 orig_target_cc=$ac_cv_path_orig_target_cc
11220 if test -n "$orig_target_cc"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11222 $as_echo "$orig_target_cc" >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11231 else
11232 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11233 set dummy ${aros_tool_prefix}gcc${target_tool_version}; 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_cc+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 case $orig_target_cc in
11240 [\\/]* | ?:[\\/]*)
11241 ac_cv_path_orig_target_cc="$orig_target_cc" # 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_cc="$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_cc=$ac_cv_path_orig_target_cc
11263 if test -n "$orig_target_cc"; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11265 $as_echo "$orig_target_cc" >&6; }
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11274 if test "$orig_target_cc" = ""; then
11275 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11278 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11279 if test "$cross_compiling" = "yes" ; then
11280 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11281 set dummy ${target_tool_prefix}g++; ac_word=$2
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 $as_echo_n "checking for $ac_word... " >&6; }
11284 if ${ac_cv_path_orig_target_cxx+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 case $orig_target_cxx in
11288 [\\/]* | ?:[\\/]*)
11289 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11299 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 break 2
11303 done
11304 done
11305 IFS=$as_save_IFS
11308 esac
11310 orig_target_cxx=$ac_cv_path_orig_target_cxx
11311 if test -n "$orig_target_cxx"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11313 $as_echo "$orig_target_cxx" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11320 else
11321 if test "$GCC" = "yes"; then
11322 aros_gcc_g++=`$CC -print-prog-name=g++`
11323 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11324 set dummy `basename $aros_gcc_g++`; ac_word=$2
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11326 $as_echo_n "checking for $ac_word... " >&6; }
11327 if ${ac_cv_path_orig_target_cxx+:} false; then :
11328 $as_echo_n "(cached) " >&6
11329 else
11330 case $orig_target_cxx in
11331 [\\/]* | ?:[\\/]*)
11332 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in `dirname $aros_gcc_g++`
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 break 2
11346 done
11347 done
11348 IFS=$as_save_IFS
11351 esac
11353 orig_target_cxx=$ac_cv_path_orig_target_cxx
11354 if test -n "$orig_target_cxx"; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11356 $as_echo "$orig_target_cxx" >&6; }
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11364 if test "$orig_target_cxx" = ""; then
11365 # Extract the first word of "g++", so it can be a program name with args.
11366 set dummy g++; ac_word=$2
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11368 $as_echo_n "checking for $ac_word... " >&6; }
11369 if ${ac_cv_path_orig_target_cxx+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 case $orig_target_cxx in
11373 [\\/]* | ?:[\\/]*)
11374 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11380 IFS=$as_save_IFS
11381 test -z "$as_dir" && as_dir=.
11382 for ac_exec_ext in '' $ac_executable_extensions; do
11383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11384 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11386 break 2
11388 done
11389 done
11390 IFS=$as_save_IFS
11393 esac
11395 orig_target_cxx=$ac_cv_path_orig_target_cxx
11396 if test -n "$orig_target_cxx"; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11398 $as_echo "$orig_target_cxx" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11407 else
11408 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11409 set dummy ${aros_tool_prefix}g++${target_tool_version}; 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_cxx+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 case $orig_target_cxx in
11416 [\\/]* | ?:[\\/]*)
11417 ac_cv_path_orig_target_cxx="$orig_target_cxx" # 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_cxx="$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_cxx=$ac_cv_path_orig_target_cxx
11439 if test -n "$orig_target_cxx"; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11441 $as_echo "$orig_target_cxx" >&6; }
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11450 if test "$orig_target_cxx" = ""; then
11451 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11454 if test "${aros_tool_prefix}ld" = ""; then
11455 if test "$cross_compiling" = "yes" ; then
11456 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11457 set dummy ${target_tool_prefix}gcc; ac_word=$2
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459 $as_echo_n "checking for $ac_word... " >&6; }
11460 if ${ac_cv_path_orig_target_ld+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 case $orig_target_ld in
11464 [\\/]* | ?:[\\/]*)
11465 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11471 IFS=$as_save_IFS
11472 test -z "$as_dir" && as_dir=.
11473 for ac_exec_ext in '' $ac_executable_extensions; do
11474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11475 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477 break 2
11479 done
11480 done
11481 IFS=$as_save_IFS
11484 esac
11486 orig_target_ld=$ac_cv_path_orig_target_ld
11487 if test -n "$orig_target_ld"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11489 $as_echo "$orig_target_ld" >&6; }
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11496 else
11497 if test "$GCC" = "yes"; then
11498 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11499 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11500 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if ${ac_cv_path_orig_target_ld+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 case $orig_target_ld in
11507 [\\/]* | ?:[\\/]*)
11508 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in `dirname $aros_gcc_gcc`
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11518 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11522 done
11523 done
11524 IFS=$as_save_IFS
11527 esac
11529 orig_target_ld=$ac_cv_path_orig_target_ld
11530 if test -n "$orig_target_ld"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11532 $as_echo "$orig_target_ld" >&6; }
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11540 if test "$orig_target_ld" = ""; then
11541 # Extract the first word of "gcc", so it can be a program name with args.
11542 set dummy gcc; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_path_orig_target_ld+:} false; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 case $orig_target_ld in
11549 [\\/]* | ?:[\\/]*)
11550 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11564 done
11565 done
11566 IFS=$as_save_IFS
11569 esac
11571 orig_target_ld=$ac_cv_path_orig_target_ld
11572 if test -n "$orig_target_ld"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11574 $as_echo "$orig_target_ld" >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11583 else
11584 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11585 set dummy ${aros_tool_prefix}ld; 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_ld+:} false; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 case $orig_target_ld in
11592 [\\/]* | ?:[\\/]*)
11593 ac_cv_path_orig_target_ld="$orig_target_ld" # 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_ld="$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_ld=$ac_cv_path_orig_target_ld
11615 if test -n "$orig_target_ld"; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11617 $as_echo "$orig_target_ld" >&6; }
11618 else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 $as_echo "no" >&6; }
11626 if test "$orig_target_ld" = ""; then
11627 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11630 if test "${aros_tool_prefix}as" = ""; then
11631 if test "$cross_compiling" = "yes" ; then
11632 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11633 set dummy ${target_tool_prefix}as; ac_word=$2
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if ${ac_cv_path_orig_target_as+:} false; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 case $orig_target_as in
11640 [\\/]* | ?:[\\/]*)
11641 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11655 done
11656 done
11657 IFS=$as_save_IFS
11660 esac
11662 orig_target_as=$ac_cv_path_orig_target_as
11663 if test -n "$orig_target_as"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11665 $as_echo "$orig_target_as" >&6; }
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11672 else
11673 if test "$GCC" = "yes"; then
11674 aros_gcc_as=`$CC -print-prog-name=as`
11675 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11676 set dummy `basename $aros_gcc_as`; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_path_orig_target_as+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 case $orig_target_as in
11683 [\\/]* | ?:[\\/]*)
11684 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in `dirname $aros_gcc_as`
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11698 done
11699 done
11700 IFS=$as_save_IFS
11703 esac
11705 orig_target_as=$ac_cv_path_orig_target_as
11706 if test -n "$orig_target_as"; then
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11708 $as_echo "$orig_target_as" >&6; }
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11716 if test "$orig_target_as" = ""; then
11717 # Extract the first word of "as", so it can be a program name with args.
11718 set dummy as; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_path_orig_target_as+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 case $orig_target_as in
11725 [\\/]* | ?:[\\/]*)
11726 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11736 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 break 2
11740 done
11741 done
11742 IFS=$as_save_IFS
11745 esac
11747 orig_target_as=$ac_cv_path_orig_target_as
11748 if test -n "$orig_target_as"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11750 $as_echo "$orig_target_as" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11759 else
11760 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11761 set dummy ${aros_tool_prefix}as; 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_as+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 case $orig_target_as in
11768 [\\/]* | ?:[\\/]*)
11769 ac_cv_path_orig_target_as="$orig_target_as" # 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_as="$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_as=$ac_cv_path_orig_target_as
11791 if test -n "$orig_target_as"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11793 $as_echo "$orig_target_as" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11802 if test "$orig_target_as" = ""; then
11803 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11806 if test "${aros_tool_prefix}ar" = ""; then
11807 if test "$cross_compiling" = "yes" ; then
11808 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11809 set dummy ${target_tool_prefix}ar; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_path_orig_target_ar+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 case $orig_target_ar in
11816 [\\/]* | ?:[\\/]*)
11817 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in $PATH
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 break 2
11831 done
11832 done
11833 IFS=$as_save_IFS
11836 esac
11838 orig_target_ar=$ac_cv_path_orig_target_ar
11839 if test -n "$orig_target_ar"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11841 $as_echo "$orig_target_ar" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11848 else
11849 if test "$GCC" = "yes"; then
11850 aros_gcc_ar=`$CC -print-prog-name=ar`
11851 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11852 set dummy `basename $aros_gcc_ar`; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_path_orig_target_ar+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 case $orig_target_ar in
11859 [\\/]* | ?:[\\/]*)
11860 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in `dirname $aros_gcc_ar`
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11870 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11874 done
11875 done
11876 IFS=$as_save_IFS
11879 esac
11881 orig_target_ar=$ac_cv_path_orig_target_ar
11882 if test -n "$orig_target_ar"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11884 $as_echo "$orig_target_ar" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11892 if test "$orig_target_ar" = ""; then
11893 # Extract the first word of "ar", so it can be a program name with args.
11894 set dummy ar; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_path_orig_target_ar+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 case $orig_target_ar in
11901 [\\/]* | ?:[\\/]*)
11902 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11921 esac
11923 orig_target_ar=$ac_cv_path_orig_target_ar
11924 if test -n "$orig_target_ar"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11926 $as_echo "$orig_target_ar" >&6; }
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11935 else
11936 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11937 set dummy ${aros_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_ar+:} false; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 case $orig_target_ar in
11944 [\\/]* | ?:[\\/]*)
11945 ac_cv_path_orig_target_ar="$orig_target_ar" # 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_ar="$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_ar=$ac_cv_path_orig_target_ar
11967 if test -n "$orig_target_ar"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11969 $as_echo "$orig_target_ar" >&6; }
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11978 if test "$orig_target_ar" = ""; then
11979 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11982 if test "${aros_tool_prefix}ranlib" = ""; then
11983 if test "$cross_compiling" = "yes" ; then
11984 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11985 set dummy ${target_tool_prefix}ar; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 case $orig_target_ranlib in
11992 [\\/]* | ?:[\\/]*)
11993 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12003 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12007 done
12008 done
12009 IFS=$as_save_IFS
12012 esac
12014 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12015 if test -n "$orig_target_ranlib"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12017 $as_echo "$orig_target_ranlib" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12024 else
12025 if test "$GCC" = "yes"; then
12026 aros_gcc_ar=`$CC -print-prog-name=ar`
12027 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12028 set dummy `basename $aros_gcc_ar`; ac_word=$2
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 case $orig_target_ranlib in
12035 [\\/]* | ?:[\\/]*)
12036 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in `dirname $aros_gcc_ar`
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 break 2
12050 done
12051 done
12052 IFS=$as_save_IFS
12055 esac
12057 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12058 if test -n "$orig_target_ranlib"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12060 $as_echo "$orig_target_ranlib" >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12068 if test "$orig_target_ranlib" = ""; then
12069 # Extract the first word of "ar", so it can be a program name with args.
12070 set dummy ar; ac_word=$2
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072 $as_echo_n "checking for $ac_word... " >&6; }
12073 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12074 $as_echo_n "(cached) " >&6
12075 else
12076 case $orig_target_ranlib in
12077 [\\/]* | ?:[\\/]*)
12078 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12092 done
12093 done
12094 IFS=$as_save_IFS
12097 esac
12099 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12100 if test -n "$orig_target_ranlib"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12102 $as_echo "$orig_target_ranlib" >&6; }
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12111 else
12112 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12113 set dummy ${aros_tool_prefix}ranlib; 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_ranlib+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 case $orig_target_ranlib in
12120 [\\/]* | ?:[\\/]*)
12121 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # 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_ranlib="$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_ranlib=$ac_cv_path_orig_target_ranlib
12143 if test -n "$orig_target_ranlib"; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12145 $as_echo "$orig_target_ranlib" >&6; }
12146 else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12154 if test "$orig_target_ranlib" = ""; then
12155 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12158 if test "${aros_tool_prefix}nm" = ""; then
12159 if test "$cross_compiling" = "yes" ; then
12160 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12161 set dummy ${target_tool_prefix}nm; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if ${ac_cv_path_orig_target_nm+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 case $orig_target_nm in
12168 [\\/]* | ?:[\\/]*)
12169 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH
12175 IFS=$as_save_IFS
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12179 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 break 2
12183 done
12184 done
12185 IFS=$as_save_IFS
12188 esac
12190 orig_target_nm=$ac_cv_path_orig_target_nm
12191 if test -n "$orig_target_nm"; then
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12193 $as_echo "$orig_target_nm" >&6; }
12194 else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196 $as_echo "no" >&6; }
12200 else
12201 if test "$GCC" = "yes"; then
12202 aros_gcc_nm=`$CC -print-prog-name=nm`
12203 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12204 set dummy `basename $aros_gcc_nm`; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if ${ac_cv_path_orig_target_nm+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 case $orig_target_nm in
12211 [\\/]* | ?:[\\/]*)
12212 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in `dirname $aros_gcc_nm`
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12222 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12226 done
12227 done
12228 IFS=$as_save_IFS
12231 esac
12233 orig_target_nm=$ac_cv_path_orig_target_nm
12234 if test -n "$orig_target_nm"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12236 $as_echo "$orig_target_nm" >&6; }
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12244 if test "$orig_target_nm" = ""; then
12245 # Extract the first word of "nm", so it can be a program name with args.
12246 set dummy nm; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if ${ac_cv_path_orig_target_nm+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 case $orig_target_nm in
12253 [\\/]* | ?:[\\/]*)
12254 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in $PATH
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12264 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 break 2
12268 done
12269 done
12270 IFS=$as_save_IFS
12273 esac
12275 orig_target_nm=$ac_cv_path_orig_target_nm
12276 if test -n "$orig_target_nm"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12278 $as_echo "$orig_target_nm" >&6; }
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12287 else
12288 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12289 set dummy ${aros_tool_prefix}nm; 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_nm+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 case $orig_target_nm in
12296 [\\/]* | ?:[\\/]*)
12297 ac_cv_path_orig_target_nm="$orig_target_nm" # 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_nm="$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_nm=$ac_cv_path_orig_target_nm
12319 if test -n "$orig_target_nm"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12321 $as_echo "$orig_target_nm" >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12330 if test "$orig_target_nm" = ""; then
12331 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12334 if test "${aros_tool_prefix}strip" = ""; then
12335 if test "$cross_compiling" = "yes" ; then
12336 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12337 set dummy ${target_tool_prefix}strip; ac_word=$2
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339 $as_echo_n "checking for $ac_word... " >&6; }
12340 if ${ac_cv_path_orig_target_strip+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 case $orig_target_strip in
12344 [\\/]* | ?:[\\/]*)
12345 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349 for as_dir in $PATH
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 for ac_exec_ext in '' $ac_executable_extensions; do
12354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12355 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 break 2
12359 done
12360 done
12361 IFS=$as_save_IFS
12364 esac
12366 orig_target_strip=$ac_cv_path_orig_target_strip
12367 if test -n "$orig_target_strip"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12369 $as_echo "$orig_target_strip" >&6; }
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12376 else
12377 if test "$GCC" = "yes"; then
12378 aros_gcc_strip=`$CC -print-prog-name=strip`
12379 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12380 set dummy `basename $aros_gcc_strip`; ac_word=$2
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382 $as_echo_n "checking for $ac_word... " >&6; }
12383 if ${ac_cv_path_orig_target_strip+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 case $orig_target_strip in
12387 [\\/]* | ?:[\\/]*)
12388 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in `dirname $aros_gcc_strip`
12394 IFS=$as_save_IFS
12395 test -z "$as_dir" && as_dir=.
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12398 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 break 2
12402 done
12403 done
12404 IFS=$as_save_IFS
12407 esac
12409 orig_target_strip=$ac_cv_path_orig_target_strip
12410 if test -n "$orig_target_strip"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12412 $as_echo "$orig_target_strip" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12420 if test "$orig_target_strip" = ""; then
12421 # Extract the first word of "strip", so it can be a program name with args.
12422 set dummy strip; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424 $as_echo_n "checking for $ac_word... " >&6; }
12425 if ${ac_cv_path_orig_target_strip+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 case $orig_target_strip in
12429 [\\/]* | ?:[\\/]*)
12430 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12444 done
12445 done
12446 IFS=$as_save_IFS
12449 esac
12451 orig_target_strip=$ac_cv_path_orig_target_strip
12452 if test -n "$orig_target_strip"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12454 $as_echo "$orig_target_strip" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12463 else
12464 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12465 set dummy ${aros_tool_prefix}strip; 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_strip+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 case $orig_target_strip in
12472 [\\/]* | ?:[\\/]*)
12473 ac_cv_path_orig_target_strip="$orig_target_strip" # 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_strip="$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_strip=$ac_cv_path_orig_target_strip
12495 if test -n "$orig_target_strip"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12497 $as_echo "$orig_target_strip" >&6; }
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12506 if test "$orig_target_strip" = ""; then
12507 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12510 if test "${aros_tool_prefix}objcopy" = ""; then
12511 if test "$cross_compiling" = "yes" ; then
12512 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12513 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 case $orig_target_objcopy in
12520 [\\/]* | ?:[\\/]*)
12521 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 break 2
12535 done
12536 done
12537 IFS=$as_save_IFS
12540 esac
12542 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12543 if test -n "$orig_target_objcopy"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12545 $as_echo "$orig_target_objcopy" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12552 else
12553 if test "$GCC" = "yes"; then
12554 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12555 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12556 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 case $orig_target_objcopy in
12563 [\\/]* | ?:[\\/]*)
12564 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in `dirname $aros_gcc_objcopy`
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 break 2
12578 done
12579 done
12580 IFS=$as_save_IFS
12583 esac
12585 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12586 if test -n "$orig_target_objcopy"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12588 $as_echo "$orig_target_objcopy" >&6; }
12589 else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12596 if test "$orig_target_objcopy" = ""; then
12597 # Extract the first word of "objcopy", so it can be a program name with args.
12598 set dummy objcopy; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 case $orig_target_objcopy in
12605 [\\/]* | ?:[\\/]*)
12606 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12616 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12620 done
12621 done
12622 IFS=$as_save_IFS
12625 esac
12627 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12628 if test -n "$orig_target_objcopy"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12630 $as_echo "$orig_target_objcopy" >&6; }
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12639 else
12640 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12641 set dummy ${aros_tool_prefix}objcopy; 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_objcopy+:} false; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 case $orig_target_objcopy in
12648 [\\/]* | ?:[\\/]*)
12649 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # 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_objcopy="$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_objcopy=$ac_cv_path_orig_target_objcopy
12671 if test -n "$orig_target_objcopy"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12673 $as_echo "$orig_target_objcopy" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12682 if test "$orig_target_objcopy" = ""; then
12683 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12686 if test "${aros_tool_prefix}objdump" = ""; then
12687 if test "$cross_compiling" = "yes" ; then
12688 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12689 set dummy ${target_tool_prefix}objdump; ac_word=$2
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12691 $as_echo_n "checking for $ac_word... " >&6; }
12692 if ${ac_cv_path_orig_target_objdump+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 case $orig_target_objdump in
12696 [\\/]* | ?:[\\/]*)
12697 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12707 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12711 done
12712 done
12713 IFS=$as_save_IFS
12716 esac
12718 orig_target_objdump=$ac_cv_path_orig_target_objdump
12719 if test -n "$orig_target_objdump"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12721 $as_echo "$orig_target_objdump" >&6; }
12722 else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12728 else
12729 if test "$GCC" = "yes"; then
12730 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12731 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12732 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 $as_echo_n "checking for $ac_word... " >&6; }
12735 if ${ac_cv_path_orig_target_objdump+:} false; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 case $orig_target_objdump in
12739 [\\/]* | ?:[\\/]*)
12740 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in `dirname $aros_gcc_objdump`
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12750 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752 break 2
12754 done
12755 done
12756 IFS=$as_save_IFS
12759 esac
12761 orig_target_objdump=$ac_cv_path_orig_target_objdump
12762 if test -n "$orig_target_objdump"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12764 $as_echo "$orig_target_objdump" >&6; }
12765 else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12772 if test "$orig_target_objdump" = ""; then
12773 # Extract the first word of "objdump", so it can be a program name with args.
12774 set dummy objdump; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_path_orig_target_objdump+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 case $orig_target_objdump in
12781 [\\/]* | ?:[\\/]*)
12782 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12796 done
12797 done
12798 IFS=$as_save_IFS
12801 esac
12803 orig_target_objdump=$ac_cv_path_orig_target_objdump
12804 if test -n "$orig_target_objdump"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12806 $as_echo "$orig_target_objdump" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12815 else
12816 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12817 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 $as_echo_n "checking for $ac_word... " >&6; }
12820 if ${ac_cv_path_orig_target_objdump+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 case $orig_target_objdump in
12824 [\\/]* | ?:[\\/]*)
12825 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12831 IFS=$as_save_IFS
12832 test -z "$as_dir" && as_dir=.
12833 for ac_exec_ext in '' $ac_executable_extensions; do
12834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12835 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12837 break 2
12839 done
12840 done
12841 IFS=$as_save_IFS
12844 esac
12846 orig_target_objdump=$ac_cv_path_orig_target_objdump
12847 if test -n "$orig_target_objdump"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12849 $as_echo "$orig_target_objdump" >&6; }
12850 else
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852 $as_echo "no" >&6; }
12858 if test "$orig_target_objdump" = ""; then
12859 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12863 if test "$kernel_tool_prefix" = "none" ; then
12864 # No kernel tools specified
12865 # Assume target tools == kernel tools with ELF wrapper
12866 aros_kernel_cc=$orig_target_cc
12867 aros_kernel_cxx=$orig_target_cxx
12868 aros_kernel_cpp=$orig_target_cpp
12869 aros_kernel_ld=$orig_target_ld
12870 aros_kernel_as=$orig_target_as
12871 aros_kernel_ar=$orig_target_ar
12872 aros_kernel_ranlib=$orig_target_ranlib
12873 aros_kernel_nm=$orig_target_nm
12874 aros_kernel_strip=$orig_target_strip
12875 aros_kernel_objcopy=$orig_target_objcopy
12876 aros_kernel_objdump=$orig_target_objdump
12877 use_kernel_cc_wrapper=yes
12880 # At this point, all aros_kernel_* and aros_target_*
12881 # tools should be set up correctly
12883 CC="$aros_kernel_cc $kernel_tool_flags"
12884 CPP="$aros_kernel_cpp"
12886 #-----------------------------------------------------------------------------
12888 # Disable pointer-signedness warnings if the compiler recognises the option
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12891 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12892 save_cflags="$CFLAGS"
12893 if test "$crosstools" != "yes" ; then
12894 CFLAGS="$CFLAGS -Wno-pointer-sign"
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12899 main ()
12903 return 0;
12905 _ACEOF
12906 if ac_fn_c_try_compile "$LINENO"; then :
12907 use_no_sign_warning="yes"
12908 else
12909 use_no_sign_warning="no"
12911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12912 else
12913 # we do know it is supported for the smallest version of gcc we are going to build
12914 # we assume it's also supported by later versions
12915 use_no_sign_warning=yes
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12918 $as_echo "$use_no_sign_warning" >&6; }
12919 if test "x-$use_no_sign_warning" = "x-yes" ; then
12920 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12922 CFLAGS="$save_cflags"
12924 #-----------------------------------------------------------------------------
12926 # Find all the tools we need to compile. This could be cross-compiling
12927 # though! If that is the case we use the GNU form of the target and
12928 # simply add this to the front of the binary name. This is rather simple,
12929 # but it should work under most circumstances.
12931 # The default tools are to use the same as the host, but only if the
12932 # host and target CPU are the same. With GCC this is normally enough.
12935 aros_cc_pre=""
12936 aros_shared_ld="$aros_host_ld"
12938 aros_target_mkdep="$aros_host_mkdep"
12940 # The default tools executables to be linked to.
12941 if test "$rescomp" != ""; then
12942 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12943 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 case $aros_kernel_rescomp in
12950 [\\/]* | ?:[\\/]*)
12951 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12957 IFS=$as_save_IFS
12958 test -z "$as_dir" && as_dir=.
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12961 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 break 2
12965 done
12966 done
12967 IFS=$as_save_IFS
12970 esac
12972 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12973 if test -n "$aros_kernel_rescomp"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12975 $as_echo "$aros_kernel_rescomp" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12982 if test "$aros_kernel_rescomp" = ""; then
12983 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12987 # Set up the sources for the symlink farm
12988 if test "$crosstools" = "yes"; then
12989 crosstools_target=tools-crosstools
12992 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12993 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12995 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12996 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12997 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12998 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12999 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13000 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13001 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13003 # aros_cc_pre is a variable that is added to the front of the compiler name
13004 # in the generated aros-gcc shell script. We need this to enable the cache
13005 # to work across cleaned builds. Also, support DISTCC using the correct
13006 # environment variable.
13009 if test "x${DISTCC}" != "x" ; then
13010 if test "x${CCACHE}" != "x" ; then
13011 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13012 else
13013 aros_cc_pre="${DISTCC} "
13015 else
13016 if test "x${CCACHE}" != "x" ; then
13017 aros_cc_pre="${CCACHE} "
13021 aros_target_nostdinc_cflags=-nostdinc
13023 aros_target_nostartup_ldflags=-nostartfiles
13025 aros_target_nix_ldflags=-nix
13027 aros_target_detach_ldflags=-detach
13029 aros_target_nostdlib_ldflags=-nostdlib
13032 # Target tools
13033 if test "$aros_target_toolchain" != "yes"; then
13034 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13035 if test "$GCC" = "yes"; then
13036 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13038 else
13039 # We do not know which gcc version we are going to build and what we need to know
13040 # here is different for different versions so this will be set later during the
13041 # build of crosstools.
13042 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13043 aros_target_cc_path=@aros_target_cc_path@
13045 aros_target_cpp="${prefix}cpp"
13046 aros_target_cc="${prefix}gcc"
13047 aros_target_cxx="${prefix}g++"
13048 aros_target_as="${prefix}as"
13049 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13050 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13051 aros_target_objcopy="${prefix}objcopy"
13052 aros_target_objdump="${prefix}objdump"
13053 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13054 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13055 aros_target_strip="${prefix}strip"
13056 aros_plain_nm="${prefix}nm"
13057 aros_plain_ar="${prefix}ar"
13059 # Check whether --enable-includes was given.
13060 if test "${enable_includes+set}" = set; then :
13061 enableval=$enable_includes; aros_target_incl=$enable_includes
13062 else
13063 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13067 if test "$aros_kernel_includes" = ""; then
13068 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13069 aros_kernel_includes="-isystem $aros_target_incl"
13073 if test "$aros_kernel_includes" != "" ; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13075 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13076 if test "$aros_kernel_cc_includes" = "" ; then
13077 # Try to guess where the directory is.
13078 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13079 if test -d $aros_kernel_cc_includes; then
13080 # Check if there is also an include-fixed directory and add it
13081 # to kernel compiler's include path as it may contain some of
13082 # the headers we need.
13083 if test -d "$aros_kernel_cc_includes"-fixed; then
13084 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13086 # Check for specific includes directory. Neede for Ubuntu 11.10
13087 if test -d "/usr/include/i386-linux-gnu"; then
13088 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13090 else
13091 # The directory doesn't exist, we need to do some more work.
13092 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13094 # These are the headers we're looking for.
13095 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13096 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13097 zutil.h stdint.h"
13099 dirs=
13100 for h in $headers; do
13101 # Which other headers are needed by each of the above?
13102 deps=$(echo "#include <$h>" | \
13103 $aros_kernel_cc -E -M - 2>/dev/null | \
13104 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13106 # Copy all the needed headers to a directory beneath gendir.
13107 for d in $deps; do
13108 h=$(basename $d)
13109 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13110 sed -n "s,^.*/include\(/.*\),\1,p")
13111 ! test -d $dir && mkdir -p $dir
13112 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13113 done
13114 done
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13118 $as_echo "$aros_kernel_cc_includes" >&6; }
13119 # Adding -nostdinc to kernel includes as they are always used together.
13120 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13123 if test "$crosstools" != "yes"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13125 $as_echo_n "checking for the target compiler's include path... " >&6; }
13126 if test "$aros_target_cc_includes" = "" ; then
13127 #try to guess where the directory is
13128 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13129 if ! test -d $aros_target_cc_includes; then
13130 #the directory doesn't exist, we need to do some more work
13131 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13133 #these are the headers we're looking for
13134 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13135 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13136 zutil.h"
13138 dirs=
13139 for h in $headers; do
13140 #which other headers each of the above headers needs?
13141 deps=$(echo "#include <$h>" | \
13142 $orig_target_cc -E -M - 2>/dev/null | \
13143 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13145 #copy all the needed headers to a directory beneath gendir
13146 for d in $deps; do
13147 h=$(basename $d)
13148 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13149 sed -n "s,^.*/include\(/.*\),\1,p")
13150 ! test -d $dir && mkdir -p $dir
13151 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13152 done
13153 done
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13157 $as_echo "$aros_target_cc_includes" >&6; }
13158 else
13159 # We do not know which gcc version we are going to build and what we need to know
13160 # here is different for different versions so this will be set later during the
13161 # build of crosstools.
13162 aros_target_cc_includes=@aros_target_cc_includes@
13166 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13167 # On GCC >= 4.0 -iquote should be used
13170 save_cc="$CC"
13171 save_cflags="$CFLAGS"
13172 CFLAGS="-iquote."
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13174 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13175 if test "x-$crosstools" != "x-yes"; then
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13180 main ()
13184 return 0;
13186 _ACEOF
13187 if ac_fn_c_try_compile "$LINENO"; then :
13188 has_iquote="yes"
13189 else
13190 has_iquote="no"
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 else
13194 # we do know it is supported for the smallest version of gcc we are going to build
13195 # we assume it's also supported by later versions
13196 has_iquote=yes
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13199 $as_echo "$has_iquote" >&6; }
13200 if test "x-$has_iquote" = "x-yes" ; then
13201 host_cflags_iquote=-iquote
13202 host_cflags_iquote_end=
13203 else
13204 host_cflags_iquote=-I
13205 host_cflags_iquote_end=-I-
13207 kernel_cflags_iquote=$host_cflags_iquote
13208 kernel_cflags_iquote_end=$host_cflags_iquote_end
13209 if test "x-$cross_compiling" = "x-yes"; then
13210 CC="$aros_kernel_cc"
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13212 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13213 if test "x-$crosstools" != "x-yes"; then
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13218 main ()
13222 return 0;
13224 _ACEOF
13225 if ac_fn_c_try_compile "$LINENO"; then :
13226 use_no_stack_protector="yes"
13227 else
13228 use_no_stack_protector="no"
13230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13231 else
13232 # we do know it is supported for the smallest version of gcc we are going to build
13233 # we assume it's also supported by later versions
13234 use_no_stack_protector=yes
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13237 $as_echo "$use_no_stack_protector" >&6; }
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13239 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13240 if test "x-$crosstools" != "x-yes"; then
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13245 main ()
13249 return 0;
13251 _ACEOF
13252 if ac_fn_c_try_compile "$LINENO"; then :
13253 has_iquote="yes"
13254 else
13255 has_iquote="no"
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 else
13259 # we do know it is supported for the smallest version of gcc we are going to build
13260 # we assume it's also supported by later versions
13261 has_iquote=yes
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13264 $as_echo "$has_iquote" >&6; }
13265 if test "x-$has_iquote" = "x-yes" ; then
13266 kernel_cflags_iquote=-iquote
13267 kernel_cflags_iquote_end=
13268 else
13269 kernel_cflags_iquote=-I
13270 kernel_cflags_iquote_end=-I-
13273 aros_cflags_iquote=$kernel_cflags_iquote
13274 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13275 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13276 CC="$orig_target_cc"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13278 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13279 if test "x-$crosstools" != "x-yes"; then
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13284 main ()
13288 return 0;
13290 _ACEOF
13291 if ac_fn_c_try_compile "$LINENO"; then :
13292 has_iquote="yes"
13293 else
13294 has_iquote="no"
13296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13297 else
13298 # we do know it is supported for the smallest version of gcc we are going to build
13299 # we assume it's also supported by later versions
13300 has_iquote=yes
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13303 $as_echo "$has_iquote" >&6; }
13304 if test "x-$has_iquote" = "x-yes" ; then
13305 aros_cflags_iquote=-iquote
13306 aros_cflags_iquote_end=
13307 else
13308 aros_cflags_iquote=-I
13309 aros_cflags_iquote_end=-I-
13312 if test "x-$use_no_stack_protector" = "x-yes" ; then
13313 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13317 #-----------------------------------------------------------------------------
13319 # Check if the target compiler supports some options used for delinting:
13320 # -Wunused-but-set-variable
13321 # -Warray-bounds
13322 # -Wenum-compare
13323 # -Wstrict-overflow
13324 # -Wformat-security
13326 if test "x-$crosstools" != "x-yes"; then
13327 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13328 CC="$orig_target_cc"
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13331 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13332 CFLAGS=-Wunused-but-set-variable
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13337 main ()
13341 return 0;
13343 _ACEOF
13344 if ac_fn_c_try_compile "$LINENO"; then :
13345 aros_unused_but_set_variable="yes"
13346 else
13347 aros_unused_but_set_variable="no"
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13351 $as_echo "$aros_unused_but_set_variable" >&6; }
13352 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13353 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13357 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13358 CFLAGS=-Warray-bounds
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13363 main ()
13367 return 0;
13369 _ACEOF
13370 if ac_fn_c_try_compile "$LINENO"; then :
13371 aros_array_bounds="yes"
13372 else
13373 aros_array_bounds="no"
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13377 $as_echo "$aros_array_bounds" >&6; }
13378 if test "x-$aros_array_bounds" = "x-yes" ; then
13379 aros_cflags_array_bounds=-Wno-array-bounds
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13383 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13384 CFLAGS=-Wenum-compare
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13389 main ()
13393 return 0;
13395 _ACEOF
13396 if ac_fn_c_try_compile "$LINENO"; then :
13397 aros_enum_compare="yes"
13398 else
13399 aros_enum_compare="no"
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13403 $as_echo "$aros_enum_compare" >&6; }
13404 if test "x-$aros_enum_compare" = "x-yes" ; then
13405 aros_cflags_enum_compare=-Wno-enum-compare
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13409 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13410 CFLAGS=-Wstrict-overflow
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13415 main ()
13419 return 0;
13421 _ACEOF
13422 if ac_fn_c_try_compile "$LINENO"; then :
13423 aros_strict_overflow="yes"
13424 else
13425 aros_strict_overflow="no"
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13429 $as_echo "$aros_strict_overflow" >&6; }
13430 if test "x-$aros_strict_overflow" = "x-yes" ; then
13431 aros_cflags_strict_overflow=-Wno-strict-overflow
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13435 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13436 CFLAGS=-Wformat-security
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13441 main ()
13445 return 0;
13447 _ACEOF
13448 if ac_fn_c_try_compile "$LINENO"; then :
13449 aros_format_security="yes"
13450 else
13451 aros_format_security="no"
13453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13455 $as_echo "$aros_format_security" >&6; }
13456 if test "x-$aros_format_security" = "x-yes" ; then
13457 aros_cflags_format_security=-Wno-format-security
13459 else
13460 # We do not know which gcc version we are going to build and what we need to know
13461 # here is different for different versions so this will be set later during the
13462 # build of crosstools.
13463 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13464 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13465 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13466 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13467 aros_cflags_format_security=@aros_cflags_format_security@
13470 #-----------------------------------------------------------------------------
13472 # Check if we can explicitly choose older version of symbol hashing
13474 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13475 CC="$aros_kernel_cc"
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13477 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13482 main ()
13486 return 0;
13488 _ACEOF
13489 if ac_fn_c_try_link "$LINENO"; then :
13490 use_hash_style="yes"
13491 else
13492 use_hash_style="no"
13494 rm -f core conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13497 $as_echo "$use_hash_style" >&6; }
13498 if test "x-$use_hash_style" = "x-yes" ; then
13499 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13501 CC="$save_cc"
13502 CFLAGS="$save_cflags"
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13513 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13515 # Check whether --with-resolution was given.
13516 if test "${with_resolution+set}" = set; then :
13517 withval=$with_resolution; resolution=$withval
13518 else
13519 resolution=none
13522 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13523 if test "$resolution" = "yes" ; then
13524 resolution="none"
13526 if test "$resolution" = "no" ; then
13527 resolution="none"
13529 if test "$resolution" != "none" ; then
13530 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13531 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13532 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13535 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13536 aros_cv_default_wbwidth=$aros_default_wbwidth
13537 aros_cv_default_wbheight=$aros_default_wbheight
13538 aros_cv_default_wbdepth=$aros_default_wbdepth
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13541 $as_echo_n "checking if serial debug is enabled... " >&6; }
13543 # Check whether --with-serial-debug was given.
13544 if test "${with_serial_debug+set}" = set; then :
13545 withval=$with_serial_debug; serial_debug=$withval
13546 else
13547 serial_debug=none
13550 if test "$aros_serial_debug" = 0 ; then
13551 serial_debug_forced=""
13552 if test "$serial_debug" = "yes" ; then
13553 serial_debug="1"
13555 if test "$serial_debug" = "no" ; then
13556 serial_debug="none"
13558 else
13559 serial_debug_forced="(forced)"
13560 serial_debug=$aros_serial_debug
13562 if test "$serial_debug" != "none" ; then
13563 aros_serial_debug=$serial_debug
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13565 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13566 else
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568 $as_echo "no" >&6; }
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13572 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13573 # Check whether --enable-palm_debug_hack was given.
13574 if test "${enable_palm_debug_hack+set}" = set; then :
13575 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13576 else
13577 palm_debug_hack="no"
13580 if test "$palm_debug_hack" = "yes" ; then
13581 aros_palm_debug_hack="1"
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13584 $as_echo "$palm_debug_hack" >&6; }
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13587 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13588 # Check whether --enable-usb30_code was given.
13589 if test "${enable_usb30_code+set}" = set; then :
13590 enableval=$enable_usb30_code; usb30_code="yes"
13591 else
13592 usb30_code="no"
13595 if test "$usb30_code" = "yes" ; then
13596 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13597 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13600 $as_echo "$usb30_code" >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13603 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13604 # Check whether --enable-nesting_supervisor was given.
13605 if test "${enable_nesting_supervisor+set}" = set; then :
13606 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13607 else
13608 nesting_supervisor="no"
13611 if test "$nesting_supervisor" = "yes" ; then
13612 aros_nesting_supervisor="1"
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13615 $as_echo "$nesting_supervisor" >&6; }
13617 if test "$aros_enable_mmu" = "" ; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13619 $as_echo_n "checking if MMU support is enabled... " >&6; }
13620 # Check whether --enable-mmu was given.
13621 if test "${enable_mmu+set}" = set; then :
13622 enableval=$enable_mmu; aros_enable_mmu=$enableval
13623 else
13624 aros_enable_mmu="yes"
13627 if test "$aros_enable_mmu" = "" ; then
13628 aros_enable_mmu="yes"
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13631 $as_echo "$aros_enable_mmu" >&6; }
13633 if test "$aros_enable_mmu" = "no" ; then
13634 aros_enable_mmu="0"
13635 else
13636 aros_enable_mmu="1"
13640 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13642 if test "x-$need_dlopen" != "x-no" ; then
13643 save_libs="$LIBS"
13644 LIBS=""
13645 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13646 if test "x$ac_cv_func_dlopen" = xyes; then :
13647 have_dl="yes"
13648 else
13649 have_dl="no"
13652 if test "x-$have_dl" = "x-no" ; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13654 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13655 if ${ac_cv_lib_dl_dlopen+:} false; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 ac_check_lib_save_LIBS=$LIBS
13659 LIBS="-ldl $LIBS"
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13666 #ifdef __cplusplus
13667 extern "C"
13668 #endif
13669 char dlopen ();
13671 main ()
13673 return dlopen ();
13675 return 0;
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679 ac_cv_lib_dl_dlopen=yes
13680 else
13681 ac_cv_lib_dl_dlopen=no
13683 rm -f core conftest.err conftest.$ac_objext \
13684 conftest$ac_exeext conftest.$ac_ext
13685 LIBS=$ac_check_lib_save_LIBS
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13689 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13690 have_dl="yes"
13691 aros_host_ldflags="$aros_host_ldflags -ldl"
13692 else
13693 have_dl="no"
13697 if test "x-$have_dl" = "x-no" ; then
13698 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13700 LIBS="$save_libs"
13704 # Check whether --enable-x11_hidd was given.
13705 if test "${enable_x11_hidd+set}" = set; then :
13706 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13707 else
13708 x11_hidd="$need_x11"
13711 case "x-$x11_hidd" in
13712 x-yes|x-no|x-auto) ;;
13713 *) x11_hidd="$need_x11" ;;
13714 esac
13716 ENABLE_X11=0
13718 if test "x-$x11_hidd" != "x-no" ; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13721 $as_echo_n "checking for X... " >&6; }
13724 # Check whether --with-x was given.
13725 if test "${with_x+set}" = set; then :
13726 withval=$with_x;
13729 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13730 if test "x$with_x" = xno; then
13731 # The user explicitly disabled X.
13732 have_x=disabled
13733 else
13734 case $x_includes,$x_libraries in #(
13735 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13736 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 # One or both of the vars are not set, and there is no cached value.
13740 ac_x_includes=no ac_x_libraries=no
13741 rm -f -r conftest.dir
13742 if mkdir conftest.dir; then
13743 cd conftest.dir
13744 cat >Imakefile <<'_ACEOF'
13745 incroot:
13746 @echo incroot='${INCROOT}'
13747 usrlibdir:
13748 @echo usrlibdir='${USRLIBDIR}'
13749 libdir:
13750 @echo libdir='${LIBDIR}'
13751 _ACEOF
13752 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13753 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13754 for ac_var in incroot usrlibdir libdir; do
13755 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13756 done
13757 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13758 for ac_extension in a so sl dylib la dll; do
13759 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13760 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13761 ac_im_usrlibdir=$ac_im_libdir; break
13763 done
13764 # Screen out bogus values from the imake configuration. They are
13765 # bogus both because they are the default anyway, and because
13766 # using them would break gcc on systems where it needs fixed includes.
13767 case $ac_im_incroot in
13768 /usr/include) ac_x_includes= ;;
13769 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13770 esac
13771 case $ac_im_usrlibdir in
13772 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13773 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13774 esac
13776 cd ..
13777 rm -f -r conftest.dir
13780 # Standard set of common directories for X headers.
13781 # Check X11 before X11Rn because it is often a symlink to the current release.
13782 ac_x_header_dirs='
13783 /usr/X11/include
13784 /usr/X11R7/include
13785 /usr/X11R6/include
13786 /usr/X11R5/include
13787 /usr/X11R4/include
13789 /usr/include/X11
13790 /usr/include/X11R7
13791 /usr/include/X11R6
13792 /usr/include/X11R5
13793 /usr/include/X11R4
13795 /usr/local/X11/include
13796 /usr/local/X11R7/include
13797 /usr/local/X11R6/include
13798 /usr/local/X11R5/include
13799 /usr/local/X11R4/include
13801 /usr/local/include/X11
13802 /usr/local/include/X11R7
13803 /usr/local/include/X11R6
13804 /usr/local/include/X11R5
13805 /usr/local/include/X11R4
13807 /usr/X386/include
13808 /usr/x386/include
13809 /usr/XFree86/include/X11
13811 /usr/include
13812 /usr/local/include
13813 /usr/unsupported/include
13814 /usr/athena/include
13815 /usr/local/x11r5/include
13816 /usr/lpp/Xamples/include
13818 /usr/openwin/include
13819 /usr/openwin/share/include'
13821 if test "$ac_x_includes" = no; then
13822 # Guess where to find include files, by looking for Xlib.h.
13823 # First, try using that file with no special directory specified.
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <X11/Xlib.h>
13827 _ACEOF
13828 if ac_fn_c_try_cpp "$LINENO"; then :
13829 # We can compile using X headers with no special include directory.
13830 ac_x_includes=
13831 else
13832 for ac_dir in $ac_x_header_dirs; do
13833 if test -r "$ac_dir/X11/Xlib.h"; then
13834 ac_x_includes=$ac_dir
13835 break
13837 done
13839 rm -f conftest.err conftest.i conftest.$ac_ext
13840 fi # $ac_x_includes = no
13842 if test "$ac_x_libraries" = no; then
13843 # Check for the libraries.
13844 # See if we find them without any special options.
13845 # Don't add to $LIBS permanently.
13846 ac_save_LIBS=$LIBS
13847 LIBS="-lX11 $LIBS"
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #include <X11/Xlib.h>
13852 main ()
13854 XrmInitialize ()
13856 return 0;
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"; then :
13860 LIBS=$ac_save_LIBS
13861 # We can link X programs with no special library path.
13862 ac_x_libraries=
13863 else
13864 LIBS=$ac_save_LIBS
13865 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13867 # Don't even attempt the hair of trying to link an X program!
13868 for ac_extension in a so sl dylib la dll; do
13869 if test -r "$ac_dir/libX11.$ac_extension"; then
13870 ac_x_libraries=$ac_dir
13871 break 2
13873 done
13874 done
13876 rm -f core conftest.err conftest.$ac_objext \
13877 conftest$ac_exeext conftest.$ac_ext
13878 fi # $ac_x_libraries = no
13880 case $ac_x_includes,$ac_x_libraries in #(
13881 no,* | *,no | *\'*)
13882 # Didn't find X, or a directory has "'" in its name.
13883 ac_cv_have_x="have_x=no";; #(
13885 # Record where we found X for the cache.
13886 ac_cv_have_x="have_x=yes\
13887 ac_x_includes='$ac_x_includes'\
13888 ac_x_libraries='$ac_x_libraries'"
13889 esac
13891 ;; #(
13892 *) have_x=yes;;
13893 esac
13894 eval "$ac_cv_have_x"
13895 fi # $with_x != no
13897 if test "$have_x" != yes; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13899 $as_echo "$have_x" >&6; }
13900 no_x=yes
13901 else
13902 # If each of the values was on the command line, it overrides each guess.
13903 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13904 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13905 # Update the cache value to reflect the command line values.
13906 ac_cv_have_x="have_x=yes\
13907 ac_x_includes='$x_includes'\
13908 ac_x_libraries='$x_libraries'"
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13910 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13914 x_cflags=
13915 for path in $x_libraries
13917 x_cflags="$x_cflags -L$path"
13918 done
13920 for path in $x_includes
13922 x_cflags="$x_cflags -I$path"
13923 done
13925 if test "x-$no_x" = "x-yes" ; then
13927 if test "x-$x11_hidd" != "x-auto" ; then
13928 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13931 else
13932 unixgfx_hidd_target=kernel-x11gfx
13933 ENABLE_X11=1
13935 # Check whether --enable-x11_shm was given.
13936 if test "${enable_x11_shm+set}" = set; then :
13937 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13938 else
13939 x11_hidd_shm="auto"
13942 case "x-$x11_hidd_shm" in
13943 x-yes|x-no|x-auto) ;;
13944 *) x11_hidd_shm="auto" ;;
13945 esac
13947 have_xshm=no
13949 if test "x-$x11_hidd_shm" != "x-no" ; then
13951 for ac_header in sys/ipc.h
13952 do :
13953 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13954 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13955 cat >>confdefs.h <<_ACEOF
13956 #define HAVE_SYS_IPC_H 1
13957 _ACEOF
13961 done
13963 for ac_header in sys/shm.h
13964 do :
13965 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13966 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13967 cat >>confdefs.h <<_ACEOF
13968 #define HAVE_SYS_SHM_H 1
13969 _ACEOF
13973 done
13976 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13978 save_cflags="$CFLAGS"
13979 CFLAGS="$CFLAGS $x_cflags"
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13981 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13982 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 ac_check_lib_save_LIBS=$LIBS
13986 LIBS="-lXext $LIBS"
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13990 /* Override any GCC internal prototype to avoid an error.
13991 Use char because int might match the return type of a GCC
13992 builtin and then its argument prototype would still apply. */
13993 #ifdef __cplusplus
13994 extern "C"
13995 #endif
13996 char XShmQueryExtension ();
13998 main ()
14000 return XShmQueryExtension ();
14002 return 0;
14004 _ACEOF
14005 if ac_fn_c_try_link "$LINENO"; then :
14006 ac_cv_lib_Xext_XShmQueryExtension=yes
14007 else
14008 ac_cv_lib_Xext_XShmQueryExtension=no
14010 rm -f core conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012 LIBS=$ac_check_lib_save_LIBS
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14015 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14016 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14017 have_xshm=yes
14020 CFLAGS="$save_cflags"
14024 if test "x-$have_xshm" = "x-yes" ; then
14025 DO_XSHM_SUPPORT="1"
14026 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14027 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14028 else
14029 DO_XSHM_SUPPORT="0"
14033 # Check whether --enable-x11_vidmode was given.
14034 if test "${enable_x11_vidmode+set}" = set; then :
14035 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14036 else
14037 x11_hidd_vidmode="auto"
14040 case "x-$x11_hidd_vidmode" in
14041 x-yes|x-no|x-auto) ;;
14042 *) x11_hidd_vidmode="auto" ;;
14043 esac
14045 have_vidmode=no
14047 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14049 save_cflags="$CFLAGS"
14050 CFLAGS="$CFLAGS $x_cflags"
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14052 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14053 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 ac_check_lib_save_LIBS=$LIBS
14057 LIBS="-lXxf86vm $LIBS"
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14061 /* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14064 #ifdef __cplusplus
14065 extern "C"
14066 #endif
14067 char XF86VidModeQueryExtension ();
14069 main ()
14071 return XF86VidModeQueryExtension ();
14073 return 0;
14075 _ACEOF
14076 if ac_fn_c_try_link "$LINENO"; then :
14077 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14078 else
14079 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14086 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14087 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14088 have_vidmode=yes
14091 CFLAGS="$save_cflags"
14094 if test "x-$have_vidmode" = "x-yes" ; then
14095 DO_VIDMODE_SUPPORT="1"
14096 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14097 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14098 else
14099 DO_VIDMODE_SUPPORT="0"
14103 aros_host_x11_includes=$x_includes
14104 aros_host_x11_libdirs=$x_libraries
14108 # Check whether --enable-sdl_hidd was given.
14109 if test "${enable_sdl_hidd+set}" = set; then :
14110 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14111 else
14112 sdl_hidd="auto"
14115 case "x-$sdl_hidd" in
14116 x-yes|x-no|x-auto) ;;
14117 *) sdl_hidd="auto" ;;
14118 esac
14120 if test "x-$sdl_hidd" != "x-no" ; then
14123 # Check whether --with-sdl-prefix was given.
14124 if test "${with_sdl_prefix+set}" = set; then :
14125 withval=$with_sdl_prefix; sdl_prefix="$withval"
14126 else
14127 sdl_prefix=""
14131 # Check whether --with-sdl-exec-prefix was given.
14132 if test "${with_sdl_exec_prefix+set}" = set; then :
14133 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14134 else
14135 sdl_exec_prefix=""
14138 # Check whether --enable-sdltest was given.
14139 if test "${enable_sdltest+set}" = set; then :
14140 enableval=$enable_sdltest;
14141 else
14142 enable_sdltest=yes
14146 if test x$sdl_exec_prefix != x ; then
14147 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14148 if test x${SDL_CONFIG+set} != xset ; then
14149 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14152 if test x$sdl_prefix != x ; then
14153 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14154 if test x${SDL_CONFIG+set} != xset ; then
14155 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14159 as_save_PATH="$PATH"
14160 if test "x$prefix" != xNONE; then
14161 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14163 # Extract the first word of "sdl-config", so it can be a program name with args.
14164 set dummy sdl-config; ac_word=$2
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14166 $as_echo_n "checking for $ac_word... " >&6; }
14167 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14168 $as_echo_n "(cached) " >&6
14169 else
14170 case $SDL_CONFIG in
14171 [\\/]* | ?:[\\/]*)
14172 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14182 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14186 done
14187 done
14188 IFS=$as_save_IFS
14190 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14192 esac
14194 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14195 if test -n "$SDL_CONFIG"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14197 $as_echo "$SDL_CONFIG" >&6; }
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14204 PATH="$as_save_PATH"
14205 min_sdl_version=1.2.10
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14207 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14208 no_sdl=""
14209 if test "$SDL_CONFIG" = "no" ; then
14210 no_sdl=yes
14211 else
14212 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14213 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14215 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14217 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14218 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14219 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14220 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14221 if test "x$enable_sdltest" = "xyes" ; then
14222 ac_save_CFLAGS="$CFLAGS"
14223 ac_save_CXXFLAGS="$CXXFLAGS"
14224 ac_save_LIBS="$LIBS"
14225 CFLAGS="$CFLAGS $SDL_CFLAGS"
14226 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14227 LIBS="$LIBS $SDL_LIBS"
14228 rm -f conf.sdltest
14229 if test "$cross_compiling" = yes; then :
14230 echo $ac_n "cross compiling; assumed OK... $ac_c"
14231 else
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14235 #include <stdio.h>
14236 #include <stdlib.h>
14237 #include <string.h>
14238 #include "SDL.h"
14240 char*
14241 my_strdup (char *str)
14243 char *new_str;
14245 if (str)
14247 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14248 strcpy (new_str, str);
14250 else
14251 new_str = NULL;
14253 return new_str;
14256 int main (int argc, char *argv[])
14258 int major, minor, micro;
14259 char *tmp_version;
14261 /* This hangs on some systems (?)
14262 system ("touch conf.sdltest");
14264 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14266 /* HP/UX 9 (%@#!) writes to sscanf strings */
14267 tmp_version = my_strdup("$min_sdl_version");
14268 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14269 printf("%s, bad version string\n", "$min_sdl_version");
14270 exit(1);
14273 if (($sdl_major_version > major) ||
14274 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14275 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14277 return 0;
14279 else
14281 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14282 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14283 printf("*** best to upgrade to the required version.\n");
14284 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14285 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14286 printf("*** config.cache before re-running configure\n");
14287 return 1;
14292 _ACEOF
14293 if ac_fn_c_try_run "$LINENO"; then :
14295 else
14296 no_sdl=yes
14298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14299 conftest.$ac_objext conftest.beam conftest.$ac_ext
14302 CFLAGS="$ac_save_CFLAGS"
14303 CXXFLAGS="$ac_save_CXXFLAGS"
14304 LIBS="$ac_save_LIBS"
14307 if test "x$no_sdl" = x ; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14309 $as_echo "yes" >&6; }
14310 have_sdl="yes"
14311 else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14314 if test "$SDL_CONFIG" = "no" ; then
14315 echo "*** The sdl-config script installed by SDL could not be found"
14316 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14317 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14318 echo "*** full path to sdl-config."
14319 else
14320 if test -f conf.sdltest ; then
14322 else
14323 echo "*** Could not run SDL test program, checking why..."
14324 CFLAGS="$CFLAGS $SDL_CFLAGS"
14325 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14326 LIBS="$LIBS $SDL_LIBS"
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14330 #include <stdio.h>
14331 #include "SDL.h"
14333 int main(int argc, char *argv[])
14334 { return 0; }
14335 #undef main
14336 #define main K_and_R_C_main
14339 main ()
14341 return 0;
14343 return 0;
14345 _ACEOF
14346 if ac_fn_c_try_link "$LINENO"; then :
14347 echo "*** The test program compiled, but did not run. This usually means"
14348 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14349 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14350 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14351 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14352 echo "*** is required on your system"
14353 echo "***"
14354 echo "*** If you have an old version installed, it is best to remove it, although"
14355 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14356 else
14357 echo "*** The test program failed to compile or link. See the file config.log for the"
14358 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14359 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14360 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14362 rm -f core conftest.err conftest.$ac_objext \
14363 conftest$ac_exeext conftest.$ac_ext
14364 CFLAGS="$ac_save_CFLAGS"
14365 CXXFLAGS="$ac_save_CXXFLAGS"
14366 LIBS="$ac_save_LIBS"
14369 SDL_CFLAGS=""
14370 SDL_LIBS=""
14371 have_sdl="no"
14375 rm -f conf.sdltest
14378 if test "x-$have_sdl" != "x-yes" ; then
14380 if test "x-$sdl_hidd" != "x-auto" ; then
14381 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14384 else
14385 sdl_hidd_target=kernel-hidd-sdl
14386 aros_host_sdl_cflags=SDL_CFLAGS
14387 aros_host_sdl_libs=SDL_LIBS
14391 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14392 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14397 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14398 oss_library_target=workbench-libs-oss-unix
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14404 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14405 # Check whether --enable-dbus was given.
14406 if test "${enable_dbus+set}" = set; then :
14407 enableval=$enable_dbus; dbus="yes"
14408 else
14409 dbus="no"
14412 if test "$dbus" = "yes" ; then
14413 ENABLE_DBUS=1
14414 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14415 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14416 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14417 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14418 else
14419 ENABLE_DBUS=0
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14422 $as_echo "$dbus" >&6; }
14424 if test "$use_kernel_cc_wrapper" = "yes" ; then
14425 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14429 # Generic
14441 # Compatability with other Amiga-like operation systems
14444 # Host related
14472 # Target Related
14540 # Delinting target compiler flags
14547 # Graphics Related
14564 # Native version related
14567 # Palm native version related
14570 # Unix/Hosted version related
14573 # MMU related
14576 # Apple iOS related
14581 # ARM default GCC target related
14587 # Android related
14592 # DBUS related
14599 #X11 related
14602 # Debug related
14608 # Collect-aros stuff: "-ius" to ignore undefined symbols
14611 # C compiler related
14615 #ObjC compiler related
14618 #Java related
14621 # USB3.0 code
14624 case "$aros_flavour" in
14625 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14626 aros_flavour="emulation" ;;
14627 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14628 aros_flavour="emulation" ;;
14629 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14630 aros_flavour="standalone";;
14631 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14632 aros_flavour="standalone";;
14633 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14634 aros_flavour="native" ;;
14635 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14636 aros_flavour="native" ;;
14637 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14638 aros_flavour="linklib" ;;
14639 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14640 aros_flavour="palmnative" ;;
14641 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14642 aros_flavour="mac68knative" ;;
14643 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14644 aros_flavour="ppcnative" ;;
14645 esac
14647 if test ! -d ${aros_inc_dir} ; then
14648 ${MKDIR} ${aros_inc_dir}
14650 if test ! -d ${aros_geninc_dir} ; then
14651 ${MKDIR} ${aros_geninc_dir}
14653 if test ! -d ${aros_hostcfg_dir} ; then
14654 ${MKDIR} ${aros_hostcfg_dir}
14656 if test ! -d ${aros_targetcfg_dir} ; then
14657 ${MKDIR} ${aros_targetcfg_dir}
14659 if test ! -d ${aros_tools_dir} ; then
14660 ${MKDIR} ${aros_tools_dir}
14662 if test ! -d ${aros_scripts_dir} ; then
14663 ${MKDIR} ${aros_scripts_dir}
14666 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14669 # Generic build tools (metamake, etc)
14670 ac_config_commands="$ac_config_commands genmf-executable-support"
14672 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14675 # Binutils
14676 ac_config_commands="$ac_config_commands binutils-support"
14678 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14681 # Bare Elf support script and spec
14682 if test "${use_kernel_cc_wrapper}" = "yes"; then
14683 ac_config_commands="$ac_config_commands elf-compiler-support"
14685 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
14689 # Host compiler support scripts and spec
14690 if test "${aros_target_toolchain}" = "no"; then
14691 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14693 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in"
14697 # Android support
14698 if test "$aros_target_variant" == "android"; then
14699 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14703 cat >confcache <<\_ACEOF
14704 # This file is a shell script that caches the results of configure
14705 # tests run on this system so they can be shared between configure
14706 # scripts and configure runs, see configure's option --config-cache.
14707 # It is not useful on other systems. If it contains results you don't
14708 # want to keep, you may remove or edit it.
14710 # config.status only pays attention to the cache file if you give it
14711 # the --recheck option to rerun configure.
14713 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14714 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14715 # following values.
14717 _ACEOF
14719 # The following way of writing the cache mishandles newlines in values,
14720 # but we know of no workaround that is simple, portable, and efficient.
14721 # So, we kill variables containing newlines.
14722 # Ultrix sh set writes to stderr and can't be redirected directly,
14723 # and sets the high bit in the cache file unless we assign to the vars.
14725 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14726 eval ac_val=\$$ac_var
14727 case $ac_val in #(
14728 *${as_nl}*)
14729 case $ac_var in #(
14730 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14731 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14732 esac
14733 case $ac_var in #(
14734 _ | IFS | as_nl) ;; #(
14735 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14736 *) { eval $ac_var=; unset $ac_var;} ;;
14737 esac ;;
14738 esac
14739 done
14741 (set) 2>&1 |
14742 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14743 *${as_nl}ac_space=\ *)
14744 # `set' does not quote correctly, so add quotes: double-quote
14745 # substitution turns \\\\ into \\, and sed turns \\ into \.
14746 sed -n \
14747 "s/'/'\\\\''/g;
14748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14749 ;; #(
14751 # `set' quotes correctly as required by POSIX, so do not add quotes.
14752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14754 esac |
14755 sort
14757 sed '
14758 /^ac_cv_env_/b end
14759 t clear
14760 :clear
14761 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14762 t end
14763 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14764 :end' >>confcache
14765 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14766 if test -w "$cache_file"; then
14767 if test "x$cache_file" != "x/dev/null"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14769 $as_echo "$as_me: updating cache $cache_file" >&6;}
14770 if test ! -f "$cache_file" || test -h "$cache_file"; then
14771 cat confcache >"$cache_file"
14772 else
14773 case $cache_file in #(
14774 */* | ?:*)
14775 mv -f confcache "$cache_file"$$ &&
14776 mv -f "$cache_file"$$ "$cache_file" ;; #(
14778 mv -f confcache "$cache_file" ;;
14779 esac
14782 else
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14784 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14787 rm -f confcache
14789 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14790 # Let make expand exec_prefix.
14791 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14793 DEFS=-DHAVE_CONFIG_H
14795 ac_libobjs=
14796 ac_ltlibobjs=
14798 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14799 # 1. Remove the extension, and $U if already installed.
14800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14801 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14803 # will be set to the directory where LIBOBJS objects are built.
14804 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14805 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14806 done
14807 LIBOBJS=$ac_libobjs
14809 LTLIBOBJS=$ac_ltlibobjs
14813 : "${CONFIG_STATUS=./config.status}"
14814 ac_write_fail=0
14815 ac_clean_files_save=$ac_clean_files
14816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14819 as_write_fail=0
14820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14821 #! $SHELL
14822 # Generated by $as_me.
14823 # Run this file to recreate the current configuration.
14824 # Compiler output produced by configure, useful for debugging
14825 # configure, is in config.log if it exists.
14827 debug=false
14828 ac_cs_recheck=false
14829 ac_cs_silent=false
14831 SHELL=\${CONFIG_SHELL-$SHELL}
14832 export SHELL
14833 _ASEOF
14834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14835 ## -------------------- ##
14836 ## M4sh Initialization. ##
14837 ## -------------------- ##
14839 # Be more Bourne compatible
14840 DUALCASE=1; export DUALCASE # for MKS sh
14841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14842 emulate sh
14843 NULLCMD=:
14844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14845 # is contrary to our usage. Disable this feature.
14846 alias -g '${1+"$@"}'='"$@"'
14847 setopt NO_GLOB_SUBST
14848 else
14849 case `(set -o) 2>/dev/null` in #(
14850 *posix*) :
14851 set -o posix ;; #(
14852 *) :
14854 esac
14858 as_nl='
14860 export as_nl
14861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14865 # Prefer a ksh shell builtin over an external printf program on Solaris,
14866 # but without wasting forks for bash or zsh.
14867 if test -z "$BASH_VERSION$ZSH_VERSION" \
14868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14869 as_echo='print -r --'
14870 as_echo_n='print -rn --'
14871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14872 as_echo='printf %s\n'
14873 as_echo_n='printf %s'
14874 else
14875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14877 as_echo_n='/usr/ucb/echo -n'
14878 else
14879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14880 as_echo_n_body='eval
14881 arg=$1;
14882 case $arg in #(
14883 *"$as_nl"*)
14884 expr "X$arg" : "X\\(.*\\)$as_nl";
14885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14886 esac;
14887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14889 export as_echo_n_body
14890 as_echo_n='sh -c $as_echo_n_body as_echo'
14892 export as_echo_body
14893 as_echo='sh -c $as_echo_body as_echo'
14896 # The user is always right.
14897 if test "${PATH_SEPARATOR+set}" != set; then
14898 PATH_SEPARATOR=:
14899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14901 PATH_SEPARATOR=';'
14906 # IFS
14907 # We need space, tab and new line, in precisely that order. Quoting is
14908 # there to prevent editors from complaining about space-tab.
14909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14910 # splitting by setting IFS to empty value.)
14911 IFS=" "" $as_nl"
14913 # Find who we are. Look in the path if we contain no directory separator.
14914 as_myself=
14915 case $0 in #((
14916 *[\\/]* ) as_myself=$0 ;;
14917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14920 IFS=$as_save_IFS
14921 test -z "$as_dir" && as_dir=.
14922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14923 done
14924 IFS=$as_save_IFS
14927 esac
14928 # We did not find ourselves, most probably we were run as `sh COMMAND'
14929 # in which case we are not to be found in the path.
14930 if test "x$as_myself" = x; then
14931 as_myself=$0
14933 if test ! -f "$as_myself"; then
14934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14935 exit 1
14938 # Unset variables that we do not need and which cause bugs (e.g. in
14939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14940 # suppresses any "Segmentation fault" message there. '((' could
14941 # trigger a bug in pdksh 5.2.14.
14942 for as_var in BASH_ENV ENV MAIL MAILPATH
14943 do eval test x\${$as_var+set} = xset \
14944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14945 done
14946 PS1='$ '
14947 PS2='> '
14948 PS4='+ '
14950 # NLS nuisances.
14951 LC_ALL=C
14952 export LC_ALL
14953 LANGUAGE=C
14954 export LANGUAGE
14956 # CDPATH.
14957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14960 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14961 # ----------------------------------------
14962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14964 # script with STATUS, using 1 if that was 0.
14965 as_fn_error ()
14967 as_status=$1; test $as_status -eq 0 && as_status=1
14968 if test "$4"; then
14969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14972 $as_echo "$as_me: error: $2" >&2
14973 as_fn_exit $as_status
14974 } # as_fn_error
14977 # as_fn_set_status STATUS
14978 # -----------------------
14979 # Set $? to STATUS, without forking.
14980 as_fn_set_status ()
14982 return $1
14983 } # as_fn_set_status
14985 # as_fn_exit STATUS
14986 # -----------------
14987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14988 as_fn_exit ()
14990 set +e
14991 as_fn_set_status $1
14992 exit $1
14993 } # as_fn_exit
14995 # as_fn_unset VAR
14996 # ---------------
14997 # Portably unset VAR.
14998 as_fn_unset ()
15000 { eval $1=; unset $1;}
15002 as_unset=as_fn_unset
15003 # as_fn_append VAR VALUE
15004 # ----------------------
15005 # Append the text in VALUE to the end of the definition contained in VAR. Take
15006 # advantage of any shell optimizations that allow amortized linear growth over
15007 # repeated appends, instead of the typical quadratic growth present in naive
15008 # implementations.
15009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15010 eval 'as_fn_append ()
15012 eval $1+=\$2
15014 else
15015 as_fn_append ()
15017 eval $1=\$$1\$2
15019 fi # as_fn_append
15021 # as_fn_arith ARG...
15022 # ------------------
15023 # Perform arithmetic evaluation on the ARGs, and store the result in the
15024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15025 # must be portable across $(()) and expr.
15026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15027 eval 'as_fn_arith ()
15029 as_val=$(( $* ))
15031 else
15032 as_fn_arith ()
15034 as_val=`expr "$@" || test $? -eq 1`
15036 fi # as_fn_arith
15039 if expr a : '\(a\)' >/dev/null 2>&1 &&
15040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15041 as_expr=expr
15042 else
15043 as_expr=false
15046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15047 as_basename=basename
15048 else
15049 as_basename=false
15052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15053 as_dirname=dirname
15054 else
15055 as_dirname=false
15058 as_me=`$as_basename -- "$0" ||
15059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15060 X"$0" : 'X\(//\)$' \| \
15061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15062 $as_echo X/"$0" |
15063 sed '/^.*\/\([^/][^/]*\)\/*$/{
15064 s//\1/
15067 /^X\/\(\/\/\)$/{
15068 s//\1/
15071 /^X\/\(\/\).*/{
15072 s//\1/
15075 s/.*/./; q'`
15077 # Avoid depending upon Character Ranges.
15078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15081 as_cr_digits='0123456789'
15082 as_cr_alnum=$as_cr_Letters$as_cr_digits
15084 ECHO_C= ECHO_N= ECHO_T=
15085 case `echo -n x` in #(((((
15086 -n*)
15087 case `echo 'xy\c'` in
15088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15089 xy) ECHO_C='\c';;
15090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15091 ECHO_T=' ';;
15092 esac;;
15094 ECHO_N='-n';;
15095 esac
15097 rm -f conf$$ conf$$.exe conf$$.file
15098 if test -d conf$$.dir; then
15099 rm -f conf$$.dir/conf$$.file
15100 else
15101 rm -f conf$$.dir
15102 mkdir conf$$.dir 2>/dev/null
15104 if (echo >conf$$.file) 2>/dev/null; then
15105 if ln -s conf$$.file conf$$ 2>/dev/null; then
15106 as_ln_s='ln -s'
15107 # ... but there are two gotchas:
15108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15110 # In both cases, we have to default to `cp -pR'.
15111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15112 as_ln_s='cp -pR'
15113 elif ln conf$$.file conf$$ 2>/dev/null; then
15114 as_ln_s=ln
15115 else
15116 as_ln_s='cp -pR'
15118 else
15119 as_ln_s='cp -pR'
15121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15122 rmdir conf$$.dir 2>/dev/null
15125 # as_fn_mkdir_p
15126 # -------------
15127 # Create "$as_dir" as a directory, including parents if necessary.
15128 as_fn_mkdir_p ()
15131 case $as_dir in #(
15132 -*) as_dir=./$as_dir;;
15133 esac
15134 test -d "$as_dir" || eval $as_mkdir_p || {
15135 as_dirs=
15136 while :; do
15137 case $as_dir in #(
15138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15139 *) as_qdir=$as_dir;;
15140 esac
15141 as_dirs="'$as_qdir' $as_dirs"
15142 as_dir=`$as_dirname -- "$as_dir" ||
15143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15144 X"$as_dir" : 'X\(//\)[^/]' \| \
15145 X"$as_dir" : 'X\(//\)$' \| \
15146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15147 $as_echo X"$as_dir" |
15148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15149 s//\1/
15152 /^X\(\/\/\)[^/].*/{
15153 s//\1/
15156 /^X\(\/\/\)$/{
15157 s//\1/
15160 /^X\(\/\).*/{
15161 s//\1/
15164 s/.*/./; q'`
15165 test -d "$as_dir" && break
15166 done
15167 test -z "$as_dirs" || eval "mkdir $as_dirs"
15168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15171 } # as_fn_mkdir_p
15172 if mkdir -p . 2>/dev/null; then
15173 as_mkdir_p='mkdir -p "$as_dir"'
15174 else
15175 test -d ./-p && rmdir ./-p
15176 as_mkdir_p=false
15180 # as_fn_executable_p FILE
15181 # -----------------------
15182 # Test if FILE is an executable regular file.
15183 as_fn_executable_p ()
15185 test -f "$1" && test -x "$1"
15186 } # as_fn_executable_p
15187 as_test_x='test -x'
15188 as_executable_p=as_fn_executable_p
15190 # Sed expression to map a string onto a valid CPP name.
15191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15193 # Sed expression to map a string onto a valid variable name.
15194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15197 exec 6>&1
15198 ## ----------------------------------- ##
15199 ## Main body of $CONFIG_STATUS script. ##
15200 ## ----------------------------------- ##
15201 _ASEOF
15202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15205 # Save the log message, to keep $0 and so on meaningful, and to
15206 # report actual input values of CONFIG_FILES etc. instead of their
15207 # values after options handling.
15208 ac_log="
15209 This file was extended by $as_me, which was
15210 generated by GNU Autoconf 2.69. Invocation command line was
15212 CONFIG_FILES = $CONFIG_FILES
15213 CONFIG_HEADERS = $CONFIG_HEADERS
15214 CONFIG_LINKS = $CONFIG_LINKS
15215 CONFIG_COMMANDS = $CONFIG_COMMANDS
15216 $ $0 $@
15218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15221 _ACEOF
15223 case $ac_config_files in *"
15224 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15225 esac
15227 case $ac_config_headers in *"
15228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15229 esac
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233 # Files that config.status was made for.
15234 config_files="$ac_config_files"
15235 config_headers="$ac_config_headers"
15236 config_commands="$ac_config_commands"
15238 _ACEOF
15240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241 ac_cs_usage="\
15242 \`$as_me' instantiates files and other configuration actions
15243 from templates according to the current configuration. Unless the files
15244 and actions are specified as TAGs, all are instantiated by default.
15246 Usage: $0 [OPTION]... [TAG]...
15248 -h, --help print this help, then exit
15249 -V, --version print version number and configuration settings, then exit
15250 --config print configuration, then exit
15251 -q, --quiet, --silent
15252 do not print progress messages
15253 -d, --debug don't remove temporary files
15254 --recheck update $as_me by reconfiguring in the same conditions
15255 --file=FILE[:TEMPLATE]
15256 instantiate the configuration file FILE
15257 --header=FILE[:TEMPLATE]
15258 instantiate the configuration header FILE
15260 Configuration files:
15261 $config_files
15263 Configuration headers:
15264 $config_headers
15266 Configuration commands:
15267 $config_commands
15269 Report bugs to the package provider."
15271 _ACEOF
15272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15273 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15274 ac_cs_version="\\
15275 config.status
15276 configured by $0, generated by GNU Autoconf 2.69,
15277 with options \\"\$ac_cs_config\\"
15279 Copyright (C) 2012 Free Software Foundation, Inc.
15280 This config.status script is free software; the Free Software Foundation
15281 gives unlimited permission to copy, distribute and modify it."
15283 ac_pwd='$ac_pwd'
15284 srcdir='$srcdir'
15285 test -n "\$AWK" || AWK=awk
15286 _ACEOF
15288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15289 # The default lists apply if the user does not specify any file.
15290 ac_need_defaults=:
15291 while test $# != 0
15293 case $1 in
15294 --*=?*)
15295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15297 ac_shift=:
15299 --*=)
15300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15301 ac_optarg=
15302 ac_shift=:
15305 ac_option=$1
15306 ac_optarg=$2
15307 ac_shift=shift
15309 esac
15311 case $ac_option in
15312 # Handling of the options.
15313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15314 ac_cs_recheck=: ;;
15315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15316 $as_echo "$ac_cs_version"; exit ;;
15317 --config | --confi | --conf | --con | --co | --c )
15318 $as_echo "$ac_cs_config"; exit ;;
15319 --debug | --debu | --deb | --de | --d | -d )
15320 debug=: ;;
15321 --file | --fil | --fi | --f )
15322 $ac_shift
15323 case $ac_optarg in
15324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15325 '') as_fn_error $? "missing file argument" ;;
15326 esac
15327 as_fn_append CONFIG_FILES " '$ac_optarg'"
15328 ac_need_defaults=false;;
15329 --header | --heade | --head | --hea )
15330 $ac_shift
15331 case $ac_optarg in
15332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15333 esac
15334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15335 ac_need_defaults=false;;
15336 --he | --h)
15337 # Conflict between --help and --header
15338 as_fn_error $? "ambiguous option: \`$1'
15339 Try \`$0 --help' for more information.";;
15340 --help | --hel | -h )
15341 $as_echo "$ac_cs_usage"; exit ;;
15342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15344 ac_cs_silent=: ;;
15346 # This is an error.
15347 -*) as_fn_error $? "unrecognized option: \`$1'
15348 Try \`$0 --help' for more information." ;;
15350 *) as_fn_append ac_config_targets " $1"
15351 ac_need_defaults=false ;;
15353 esac
15354 shift
15355 done
15357 ac_configure_extra_args=
15359 if $ac_cs_silent; then
15360 exec 6>/dev/null
15361 ac_configure_extra_args="$ac_configure_extra_args --silent"
15364 _ACEOF
15365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15366 if \$ac_cs_recheck; then
15367 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15368 shift
15369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15370 CONFIG_SHELL='$SHELL'
15371 export CONFIG_SHELL
15372 exec "\$@"
15375 _ACEOF
15376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15377 exec 5>>config.log
15379 echo
15380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15381 ## Running $as_me. ##
15382 _ASBOX
15383 $as_echo "$ac_log"
15384 } >&5
15386 _ACEOF
15387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15389 # INIT-COMMANDS
15391 aros_tools_dir=${aros_tools_dir}
15394 aros_host_exe_suffix=${aros_host_exe_suffix}
15395 aros_tools_dir=${aros_tools_dir}
15396 aros_target_cpu=${aros_target_cpu}
15397 aros_target_arch=${aros_target_arch}
15398 aros_target_suffix=${aros_target_suffix}
15399 orig_target_nm=${orig_target_nm}
15400 orig_target_as=${orig_target_as}
15401 orig_target_ar=${orig_target_ar}
15402 orig_target_ranlib=${orig_target_ranlib}
15403 orig_target_objdump=${orig_target_objdump}
15404 orig_target_objcopy=${orig_target_objcopy}
15405 orig_target_strip=${orig_target_strip}
15406 aros_kernel_ld=${aros_kernel_ld}
15410 aros_host_exe_suffix=${aros_host_exe_suffix}
15411 aros_tools_dir=${aros_tools_dir}
15412 aros_target_cpu=${aros_target_cpu}
15413 aros_target_arch=${aros_target_arch}
15414 aros_target_suffix=${aros_target_suffix}
15415 aros_kernel_ld=${aros_kernel_ld}
15419 aros_host_exe_suffix=${aros_host_exe_suffix}
15420 aros_tools_dir=${aros_tools_dir}
15421 aros_target_cpu=${aros_target_cpu}
15422 aros_target_arch=${aros_target_arch}
15423 aros_target_suffix=${aros_target_suffix}
15427 _ACEOF
15429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15431 # Handling of arguments.
15432 for ac_config_target in $ac_config_targets
15434 case $ac_config_target in
15435 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15436 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15437 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15438 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15439 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15440 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15441 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15442 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15443 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15444 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15445 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15446 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15447 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15448 "${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" ;;
15449 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15450 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15451 "${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" ;;
15452 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15453 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15454 "${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" ;;
15455 "${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" ;;
15456 "${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" ;;
15457 "${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" ;;
15459 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15460 esac
15461 done
15464 # If the user did not use the arguments to specify the items to instantiate,
15465 # then the envvar interface is used. Set only those that are not.
15466 # We use the long form for the default assignment because of an extremely
15467 # bizarre bug on SunOS 4.1.3.
15468 if $ac_need_defaults; then
15469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15474 # Have a temporary directory for convenience. Make it in the build tree
15475 # simply because there is no reason against having it here, and in addition,
15476 # creating and moving files from /tmp can sometimes cause problems.
15477 # Hook for its removal unless debugging.
15478 # Note that there is a small window in which the directory will not be cleaned:
15479 # after its creation but before its name has been assigned to `$tmp'.
15480 $debug ||
15482 tmp= ac_tmp=
15483 trap 'exit_status=$?
15484 : "${ac_tmp:=$tmp}"
15485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15487 trap 'as_fn_exit 1' 1 2 13 15
15489 # Create a (secure) tmp directory for tmp files.
15492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15493 test -d "$tmp"
15494 } ||
15496 tmp=./conf$$-$RANDOM
15497 (umask 077 && mkdir "$tmp")
15498 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15499 ac_tmp=$tmp
15501 # Set up the scripts for CONFIG_FILES section.
15502 # No need to generate them if there are no CONFIG_FILES.
15503 # This happens for instance with `./config.status config.h'.
15504 if test -n "$CONFIG_FILES"; then
15507 ac_cr=`echo X | tr X '\015'`
15508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15509 # But we know of no other shell where ac_cr would be empty at this
15510 # point, so we can use a bashism as a fallback.
15511 if test "x$ac_cr" = x; then
15512 eval ac_cr=\$\'\\r\'
15514 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15516 ac_cs_awk_cr='\\r'
15517 else
15518 ac_cs_awk_cr=$ac_cr
15521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15522 _ACEOF
15526 echo "cat >conf$$subs.awk <<_ACEOF" &&
15527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15528 echo "_ACEOF"
15529 } >conf$$subs.sh ||
15530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15532 ac_delim='%!_!# '
15533 for ac_last_try in false false false false false :; do
15534 . ./conf$$subs.sh ||
15535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15538 if test $ac_delim_n = $ac_delim_num; then
15539 break
15540 elif $ac_last_try; then
15541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15542 else
15543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15545 done
15546 rm -f conf$$subs.sh
15548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15550 _ACEOF
15551 sed -n '
15553 s/^/S["/; s/!.*/"]=/
15556 s/^[^!]*!//
15557 :repl
15558 t repl
15559 s/'"$ac_delim"'$//
15560 t delim
15563 s/\(.\{148\}\)..*/\1/
15564 t more1
15565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15568 b repl
15569 :more1
15570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15573 s/.\{148\}//
15574 t nl
15575 :delim
15577 s/\(.\{148\}\)..*/\1/
15578 t more2
15579 s/["\\]/\\&/g; s/^/"/; s/$/"/
15582 :more2
15583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15586 s/.\{148\}//
15587 t delim
15588 ' <conf$$subs.awk | sed '
15589 /^[^""]/{
15591 s/\n//
15593 ' >>$CONFIG_STATUS || ac_write_fail=1
15594 rm -f conf$$subs.awk
15595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15596 _ACAWK
15597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15598 for (key in S) S_is_set[key] = 1
15599 FS = "\a"
15603 line = $ 0
15604 nfields = split(line, field, "@")
15605 substed = 0
15606 len = length(field[1])
15607 for (i = 2; i < nfields; i++) {
15608 key = field[i]
15609 keylen = length(key)
15610 if (S_is_set[key]) {
15611 value = S[key]
15612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15613 len += length(value) + length(field[++i])
15614 substed = 1
15615 } else
15616 len += 1 + keylen
15619 print line
15622 _ACAWK
15623 _ACEOF
15624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15625 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15626 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15627 else
15629 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15630 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15631 _ACEOF
15633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15635 # trailing colons and then remove the whole line if VPATH becomes empty
15636 # (actually we leave an empty line to preserve line numbers).
15637 if test "x$srcdir" = x.; then
15638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15640 s///
15641 s/^/:/
15642 s/[ ]*$/:/
15643 s/:\$(srcdir):/:/g
15644 s/:\${srcdir}:/:/g
15645 s/:@srcdir@:/:/g
15646 s/^:*//
15647 s/:*$//
15649 s/\(=[ ]*\).*/\1/
15651 s/\n//
15652 s/^[^=]*=[ ]*$//
15656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15657 fi # test -n "$CONFIG_FILES"
15659 # Set up the scripts for CONFIG_HEADERS section.
15660 # No need to generate them if there are no CONFIG_HEADERS.
15661 # This happens for instance with `./config.status Makefile'.
15662 if test -n "$CONFIG_HEADERS"; then
15663 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15664 BEGIN {
15665 _ACEOF
15667 # Transform confdefs.h into an awk script `defines.awk', embedded as
15668 # here-document in config.status, that substitutes the proper values into
15669 # config.h.in to produce config.h.
15671 # Create a delimiter string that does not exist in confdefs.h, to ease
15672 # handling of long lines.
15673 ac_delim='%!_!# '
15674 for ac_last_try in false false :; do
15675 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15676 if test -z "$ac_tt"; then
15677 break
15678 elif $ac_last_try; then
15679 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15680 else
15681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15683 done
15685 # For the awk script, D is an array of macro values keyed by name,
15686 # likewise P contains macro parameters if any. Preserve backslash
15687 # newline sequences.
15689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15690 sed -n '
15691 s/.\{148\}/&'"$ac_delim"'/g
15692 t rset
15693 :rset
15694 s/^[ ]*#[ ]*define[ ][ ]*/ /
15695 t def
15697 :def
15698 s/\\$//
15699 t bsnl
15700 s/["\\]/\\&/g
15701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15702 D["\1"]=" \3"/p
15703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15705 :bsnl
15706 s/["\\]/\\&/g
15707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15708 D["\1"]=" \3\\\\\\n"\\/p
15709 t cont
15710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15711 t cont
15713 :cont
15715 s/.\{148\}/&'"$ac_delim"'/g
15716 t clear
15717 :clear
15718 s/\\$//
15719 t bsnlc
15720 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15722 :bsnlc
15723 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15724 b cont
15725 ' <confdefs.h | sed '
15726 s/'"$ac_delim"'/"\\\
15727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730 for (key in D) D_is_set[key] = 1
15731 FS = "\a"
15733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15734 line = \$ 0
15735 split(line, arg, " ")
15736 if (arg[1] == "#") {
15737 defundef = arg[2]
15738 mac1 = arg[3]
15739 } else {
15740 defundef = substr(arg[1], 2)
15741 mac1 = arg[2]
15743 split(mac1, mac2, "(") #)
15744 macro = mac2[1]
15745 prefix = substr(line, 1, index(line, defundef) - 1)
15746 if (D_is_set[macro]) {
15747 # Preserve the white space surrounding the "#".
15748 print prefix "define", macro P[macro] D[macro]
15749 next
15750 } else {
15751 # Replace #undef with comments. This is necessary, for example,
15752 # in the case of _POSIX_SOURCE, which is predefined and required
15753 # on some systems where configure will not decide to define it.
15754 if (defundef == "undef") {
15755 print "/*", prefix defundef, macro, "*/"
15756 next
15760 { print }
15761 _ACAWK
15762 _ACEOF
15763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15764 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15765 fi # test -n "$CONFIG_HEADERS"
15768 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15769 shift
15770 for ac_tag
15772 case $ac_tag in
15773 :[FHLC]) ac_mode=$ac_tag; continue;;
15774 esac
15775 case $ac_mode$ac_tag in
15776 :[FHL]*:*);;
15777 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15778 :[FH]-) ac_tag=-:-;;
15779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15780 esac
15781 ac_save_IFS=$IFS
15782 IFS=:
15783 set x $ac_tag
15784 IFS=$ac_save_IFS
15785 shift
15786 ac_file=$1
15787 shift
15789 case $ac_mode in
15790 :L) ac_source=$1;;
15791 :[FH])
15792 ac_file_inputs=
15793 for ac_f
15795 case $ac_f in
15796 -) ac_f="$ac_tmp/stdin";;
15797 *) # Look for the file first in the build tree, then in the source tree
15798 # (if the path is not absolute). The absolute path cannot be DOS-style,
15799 # because $ac_f cannot contain `:'.
15800 test -f "$ac_f" ||
15801 case $ac_f in
15802 [\\/$]*) false;;
15803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15804 esac ||
15805 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15806 esac
15807 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15808 as_fn_append ac_file_inputs " '$ac_f'"
15809 done
15811 # Let's still pretend it is `configure' which instantiates (i.e., don't
15812 # use $as_me), people would be surprised to read:
15813 # /* config.h. Generated by config.status. */
15814 configure_input='Generated from '`
15815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15816 `' by configure.'
15817 if test x"$ac_file" != x-; then
15818 configure_input="$ac_file. $configure_input"
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15820 $as_echo "$as_me: creating $ac_file" >&6;}
15822 # Neutralize special characters interpreted by sed in replacement strings.
15823 case $configure_input in #(
15824 *\&* | *\|* | *\\* )
15825 ac_sed_conf_input=`$as_echo "$configure_input" |
15826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15827 *) ac_sed_conf_input=$configure_input;;
15828 esac
15830 case $ac_tag in
15831 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15833 esac
15835 esac
15837 ac_dir=`$as_dirname -- "$ac_file" ||
15838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15839 X"$ac_file" : 'X\(//\)[^/]' \| \
15840 X"$ac_file" : 'X\(//\)$' \| \
15841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15842 $as_echo X"$ac_file" |
15843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15844 s//\1/
15847 /^X\(\/\/\)[^/].*/{
15848 s//\1/
15851 /^X\(\/\/\)$/{
15852 s//\1/
15855 /^X\(\/\).*/{
15856 s//\1/
15859 s/.*/./; q'`
15860 as_dir="$ac_dir"; as_fn_mkdir_p
15861 ac_builddir=.
15863 case "$ac_dir" in
15864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15866 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15867 # A ".." for each directory in $ac_dir_suffix.
15868 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15869 case $ac_top_builddir_sub in
15870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15872 esac ;;
15873 esac
15874 ac_abs_top_builddir=$ac_pwd
15875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15876 # for backward compatibility:
15877 ac_top_builddir=$ac_top_build_prefix
15879 case $srcdir in
15880 .) # We are building in place.
15881 ac_srcdir=.
15882 ac_top_srcdir=$ac_top_builddir_sub
15883 ac_abs_top_srcdir=$ac_pwd ;;
15884 [\\/]* | ?:[\\/]* ) # Absolute name.
15885 ac_srcdir=$srcdir$ac_dir_suffix;
15886 ac_top_srcdir=$srcdir
15887 ac_abs_top_srcdir=$srcdir ;;
15888 *) # Relative name.
15889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15890 ac_top_srcdir=$ac_top_build_prefix$srcdir
15891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15892 esac
15893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15896 case $ac_mode in
15899 # CONFIG_FILE
15902 _ACEOF
15904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15905 # If the template does not know about datarootdir, expand it.
15906 # FIXME: This hack should be removed a few years after 2.60.
15907 ac_datarootdir_hack=; ac_datarootdir_seen=
15908 ac_sed_dataroot='
15909 /datarootdir/ {
15913 /@datadir@/p
15914 /@docdir@/p
15915 /@infodir@/p
15916 /@localedir@/p
15917 /@mandir@/p'
15918 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15919 *datarootdir*) ac_datarootdir_seen=yes;;
15920 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15922 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15923 _ACEOF
15924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15925 ac_datarootdir_hack='
15926 s&@datadir@&$datadir&g
15927 s&@docdir@&$docdir&g
15928 s&@infodir@&$infodir&g
15929 s&@localedir@&$localedir&g
15930 s&@mandir@&$mandir&g
15931 s&\\\${datarootdir}&$datarootdir&g' ;;
15932 esac
15933 _ACEOF
15935 # Neutralize VPATH when `$srcdir' = `.'.
15936 # Shell code in configure.ac might set extrasub.
15937 # FIXME: do we really want to maintain this feature?
15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15939 ac_sed_extra="$ac_vpsub
15940 $extrasub
15941 _ACEOF
15942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15945 s|@configure_input@|$ac_sed_conf_input|;t t
15946 s&@top_builddir@&$ac_top_builddir_sub&;t t
15947 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15948 s&@srcdir@&$ac_srcdir&;t t
15949 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15950 s&@top_srcdir@&$ac_top_srcdir&;t t
15951 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15952 s&@builddir@&$ac_builddir&;t t
15953 s&@abs_builddir@&$ac_abs_builddir&;t t
15954 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15955 $ac_datarootdir_hack
15957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15958 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15963 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15965 which seems to be undefined. Please make sure it is defined" >&5
15966 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15967 which seems to be undefined. Please make sure it is defined" >&2;}
15969 rm -f "$ac_tmp/stdin"
15970 case $ac_file in
15971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15973 esac \
15974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15978 # CONFIG_HEADER
15980 if test x"$ac_file" != x-; then
15982 $as_echo "/* $configure_input */" \
15983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15984 } >"$ac_tmp/config.h" \
15985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15986 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15988 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15989 else
15990 rm -f "$ac_file"
15991 mv "$ac_tmp/config.h" "$ac_file" \
15992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15994 else
15995 $as_echo "/* $configure_input */" \
15996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15997 || as_fn_error $? "could not create -" "$LINENO" 5
16001 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16002 $as_echo "$as_me: executing $ac_file commands" >&6;}
16004 esac
16007 case $ac_file$ac_mode in
16008 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16009 "binutils-support":C)
16010 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16011 mkdir -p $prefix
16012 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16014 chmod a+x ${prefix2}-ld
16016 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16017 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16018 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16019 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16020 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16021 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16022 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16024 "elf-compiler-support":C)
16025 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16026 mkdir -p $prefix
16027 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16029 chmod a+x ${prefix2}-gcc
16031 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16033 "host-compiler-wrapper-support":C)
16034 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16035 mkdir -p $prefix
16036 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16038 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16041 esac
16042 done # for ac_tag
16045 as_fn_exit 0
16046 _ACEOF
16047 ac_clean_files=$ac_clean_files_save
16049 test $ac_write_fail = 0 ||
16050 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16053 # configure is writing to config.log, and then calls config.status.
16054 # config.status does its own redirection, appending to config.log.
16055 # Unfortunately, on DOS this fails, as config.log is still kept open
16056 # by configure, so config.status won't be able to write to it; its
16057 # output is simply discarded. So we exec the FD to /dev/null,
16058 # effectively closing config.log, so it can be properly (re)opened and
16059 # appended to by config.status. When coming back to configure, we
16060 # need to make the FD available again.
16061 if test "$no_create" != yes; then
16062 ac_cs_success=:
16063 ac_config_status_args=
16064 test "$silent" = yes &&
16065 ac_config_status_args="$ac_config_status_args --quiet"
16066 exec 5>/dev/null
16067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16068 exec 5>>config.log
16069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16070 # would make configure fail if this is the last instruction.
16071 $ac_cs_success || as_fn_exit 1
16073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16080 #XXX compatability...
16081 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16083 if test -n "$aros_shared_cflags" ; then
16084 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16085 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg