Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / configure
blob23143205d58263b30e75b201f0371008d6366671
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_android_level
609 aros_ios_sdk
610 aros_ios_version
611 aros_ios_platform
612 aros_enable_mmu
613 aros_nesting_supervisor
614 aros_usb30_code
615 aros_palm_debug_hack
616 aros_serial_debug
617 aros_host_sdl_libs
618 aros_host_sdl_cflags
619 aros_host_x11_libdirs
620 aros_host_x11_includes
621 DO_VIDMODE_SUPPORT
622 DO_XSHM_SUPPORT
623 aros_default_wbdepth
624 aros_default_wbheight
625 aros_default_wbwidth
626 oss_library_target
627 pci_hidd_target
628 sdl_hidd_target
629 x11_hidd_target
630 crosstools_cxx_target
631 crosstools_target
632 aros_target_strip_flags
633 aros_target_genmap
634 aros_debug_ldflags
635 aros_debug_aflags
636 aros_debug_cflags
637 aros_target_cflags
638 aros_kernel_ldflags
639 aros_kernel_objcflags
640 aros_kernel_includes
641 aros_kernel_cflags
642 aros_shared_ldflags
643 aros_shared_aflags
644 aros_shared_cflags
645 aros_config_ldflags
646 aros_config_aflags
647 aros_config_cflags
648 aros_arch_libs
649 aros_compiler_libs
650 aros_object_format
651 aros_shared_ld
652 aros_shared_default
653 aros_target_nm
654 aros_target_strip
655 aros_target_objcopy
656 aros_target_objdump
657 aros_target_cc_path
658 aros_target_cc_includes
659 orig_target_ld
660 aros_target_as
661 aros_kernel_cc
662 orig_target_cc
663 aros_plain_ar
664 aros_plain_nm
665 aros_target_ranlib
666 aros_target_ar
667 aros_target_incl
668 aros_target_suffix
669 aros_target_variant
670 aros_target_cpu
671 aros_target_family
672 aros_target_arch
673 aros_target_bootloader
674 aros_target_iconset
675 aros_target_guitheme
676 aros_tools_dir
677 aros_host_lib_suffix
678 aros_host_exe_suffix
679 aros_host_mkargs
680 aros_host_mkdep
681 aros_host_debug
682 aros_host_ldflags
683 gnu89_inline
684 aros_host_cflags
685 aros_host_make
686 aros_host_cc
687 aros_host_cpu
688 aros_host_arch
689 aros_cc_pre
690 aros_amigaos_compliance
691 AROS_PORTSSRCDIR
692 AROS_CROSSTOOLSDIR
693 SRCDIR
694 AROS_BUILDDIR_UNIX
695 AROS_BUILDDIR
696 aros_flavour_uc
697 aros_flavour
698 aros_cpu
699 aros_arch
700 SDL_LIBS
701 SDL_CFLAGS
702 SDL_CONFIG
703 XMKMF
704 aros_cflags_iquote_end
705 aros_cflags_iquote
706 kernel_cflags_iquote_end
707 kernel_cflags_iquote
708 host_cflags_iquote_end
709 host_cflags_iquote
710 aros_target_nostdlib_ldflags
711 aros_target_detach_ldflags
712 aros_target_nix_ldflags
713 aros_target_nostartup_ldflags
714 aros_target_nostdinc_cflags
715 aros_target_ld
716 aros_target_cc
717 aros_target_cxx
718 aros_target_strip_ln
719 aros_target_ranlib_ln
720 aros_target_objdump_ln
721 aros_target_objcopy_ln
722 aros_target_nm_ln
723 aros_target_ar_ln
724 aros_target_as_ln
725 aros_kernel_ranlib
726 aros_kernel_ar
727 aros_kernel_ld
728 aros_kernel_rescomp
730 android_tool
731 CCACHE
732 DISTCC
733 LIBOBJS
734 EGREP
735 GREP
737 TEST
740 pkgpyexecdir
741 pyexecdir
742 pkgpythondir
743 pythondir
744 PYTHON_PLATFORM
745 PYTHON_EXEC_PREFIX
746 PYTHON_PREFIX
747 PYTHON_VERSION
748 PYTHON
749 PATCH
750 CHMOD
752 PPMTOILBM
753 PNGTOPNM
754 FLEX
755 BISON
758 UNIQ
759 SORT
760 TOUCH
761 MKDIR
762 ECHO
766 aros_host_strip
767 aros_host_ranlib
768 aros_host_ar
769 aros_host_automake
770 aros_host_autoheader
771 aros_host_autoconf
772 aros_host_aclocal
773 aros_host_ld
774 MMAKE
777 OBJEXT
778 EXEEXT
779 ac_ct_CC
780 CPPFLAGS
781 LDFLAGS
782 CFLAGS
784 host_os
785 host_vendor
786 host_cpu
787 host
788 build_os
789 build_vendor
790 build_cpu
791 build
792 target_alias
793 host_alias
794 build_alias
795 LIBS
796 ECHO_T
797 ECHO_N
798 ECHO_C
799 DEFS
800 mandir
801 localedir
802 libdir
803 psdir
804 pdfdir
805 dvidir
806 htmldir
807 infodir
808 docdir
809 oldincludedir
810 includedir
811 localstatedir
812 sharedstatedir
813 sysconfdir
814 datadir
815 datarootdir
816 libexecdir
817 sbindir
818 bindir
819 program_transform_name
820 prefix
821 exec_prefix
822 PACKAGE_URL
823 PACKAGE_BUGREPORT
824 PACKAGE_STRING
825 PACKAGE_VERSION
826 PACKAGE_TARNAME
827 PACKAGE_NAME
828 PATH_SEPARATOR
829 SHELL'
830 ac_subst_files=''
831 ac_user_opts='
832 enable_option_checking
833 enable_build_type
834 enable_debug
835 enable_crosstools
836 enable_distcc
837 enable_ccache
838 with_gcc_version
839 with_optimization
840 with_paranoia
841 enable_target_variant
842 with_xcode
843 with_ios_version
844 with_ios_sdk
845 with_sdk
846 with_ndk
847 with_sdk_version
848 with_ndk_version
849 enable_amigaos_compliance
850 with_crosstools
851 with_aros_gcc
852 with_portssources
853 with_bootloader
854 with_iconset
855 with_theme
856 enable_includes
857 with_resolution
858 with_serial_debug
859 enable_palm_debug_hack
860 enable_usb30_code
861 enable_nesting_supervisor
862 enable_mmu
863 enable_x11_hidd
864 with_x
865 enable_x11_shm
866 enable_x11_vidmode
867 enable_sdl_hidd
868 with_sdl_prefix
869 with_sdl_exec_prefix
870 enable_sdltest
871 enable_dbus
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
882 XMKMF'
885 # Initialize some variables set by options.
886 ac_init_help=
887 ac_init_version=false
888 ac_unrecognized_opts=
889 ac_unrecognized_sep=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
933 ac_prev=
934 ac_dashdash=
935 for ac_option
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\$ac_option
940 ac_prev=
941 continue
944 case $ac_option in
945 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 *=) ac_optarg= ;;
947 *) ac_optarg=yes ;;
948 esac
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
954 ac_dashdash=yes ;;
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
973 --config-cache | -C)
974 cache_file=config.cache ;;
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1218 -with-* | --with-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=\$ac_optarg ;;
1234 -without-* | --without-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=no ;;
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1268 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information"
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 case $ac_envvar in #(
1276 '' | [0-9]* | *[!_$as_cr_alnum]* )
1277 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1278 esac
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1283 # FIXME: should be removed in autoconf 3.0.
1284 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 esac
1291 done
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 as_fn_error $? "missing argument to $ac_option"
1298 if test -n "$ac_unrecognized_opts"; then
1299 case $enable_option_checking in
1300 no) ;;
1301 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 esac
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1314 case $ac_val in
1315 */ )
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1318 esac
1319 # Be sure to have absolute directory names.
1320 case $ac_val in
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 esac
1324 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used" >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error $? "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error $? "pwd does not report name of working directory"
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1377 /^X\(\/\/\)$/{
1378 s//\1/
1381 /^X\(\/\).*/{
1382 s//\1/
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1390 else
1391 ac_srcdir_defaulted=no
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400 pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1419 # Report the --help message.
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425 \`configure' configures this package to adapt to many kinds of systems.
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1432 Defaults for the options are specified in brackets.
1434 Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking ...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1456 For better control, use the options below.
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478 _ACEOF
1480 cat <<\_ACEOF
1482 X features:
1483 --x-includes=DIR X include files are in DIR
1484 --x-libraries=DIR X library files are in DIR
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1492 if test -n "$ac_init_help"; then
1494 cat <<\_ACEOF
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --enable-build-type=TYPE
1501 Select the build type. Available types are:
1502 personal, nightly, snapshot, milestone, release. Do
1503 NOT use this option unless you know what you are
1504 doing! (default=personal)
1505 --enable-debug=list Enable different types of debug. Commas or
1506 whitespaces can be used to separate the items in the
1507 list. Available types of debug are: all, none,
1508 messages, stack, mungwall, modules, symbols. If no
1509 list is provided then "all" is assumed.
1510 (default=none)
1511 --enable-crosstools Build cross-compiler toolchains if necessary
1512 (default=no).
1513 --enable-distcc Use distcc as a front end to the compiler
1514 (default=no).
1515 --enable-ccache Use ccache as a front end to the compiler
1516 (default=no).
1517 --enable-target-variant=NAME
1518 Enable a specific target variant(default=none)
1519 --enable-amigaos-compliance=VERSION
1520 Enforce userspace AmigaOS compliance to a specific
1521 KickStart version (default=none).
1522 --enable-includes=dir Alternative system include directory
1523 --enable-palm-debug-hack
1524 Enable palm debug output hack in palm native
1525 (default=no)
1526 --enable-usb30-code Enable usb3.0 code (default=no)
1527 --enable-nesting-supervisor
1528 Enable nesting supervisor support in unix
1529 (default=no)
1530 --disable-mmu Disable MMU support (default=enabled)
1531 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1532 --enable-x11-shm use X11 shared memory (default=auto)
1533 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1534 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1535 --disable-sdltest Do not try to compile and run a test SDL program
1536 --enable-dbus Enable DBUS support via dbus.library (default=no)
1538 Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-gcc-version=VERSION
1542 Use host gcc-VERSION for building AROS
1543 --with-optimization=FLAGS
1544 Use optimization flags FLAGS (default=-O2).
1545 --with-paranoia=FLAGS CC flags to enable paranoia
1546 --with-xcode=PATH Specify XCode path for iOS targets
1547 (default=/Developer).
1548 --with-ios-version=VERSION
1549 Specify minimum supported iOS version (default=3.0).
1550 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1551 --with-sdk=PATH Specify Android SDK path
1552 (default=$default_android_sdk).
1553 --with-ndk=PATH Specify Android NDK path (default=none).
1554 --with-sdk-version=LEVEL
1555 Use Android SDK for API LEVEL (default=8).
1556 --with-ndk-version=LEVEL
1557 Use Android NDK for API LEVEL (default=9).
1558 --with-crosstools=DIR Where to install or search for cross tools binaries
1559 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1560 --with-portssources=DIR Where to download sourcecode for external ports
1561 --with-bootloader=NAME Use a specific bootloader
1562 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1563 --with-theme=NAME Use a specific GUI Theme
1564 --with-resolution=XRESxYRESxDEPTH
1565 Default resolution of the initial WorkbenchScreen
1566 --with-serial-debug Enable serial debug output in native (default=no)
1567 --with-x use the X Window System
1568 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1569 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1571 Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
1577 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1579 CPP C preprocessor
1580 XMKMF Path to xmkmf, Makefile generator for X Window System
1582 Use these variables to override the choices made by `configure' or to help
1583 it to find libraries and programs with nonstandard names/locations.
1585 Report bugs to the package provider.
1586 _ACEOF
1587 ac_status=$?
1590 if test "$ac_init_help" = "recursive"; then
1591 # If there are subdirs, report their specific --help.
1592 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1593 test -d "$ac_dir" ||
1594 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1595 continue
1596 ac_builddir=.
1598 case "$ac_dir" in
1599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1602 # A ".." for each directory in $ac_dir_suffix.
1603 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1604 case $ac_top_builddir_sub in
1605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607 esac ;;
1608 esac
1609 ac_abs_top_builddir=$ac_pwd
1610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1611 # for backward compatibility:
1612 ac_top_builddir=$ac_top_build_prefix
1614 case $srcdir in
1615 .) # We are building in place.
1616 ac_srcdir=.
1617 ac_top_srcdir=$ac_top_builddir_sub
1618 ac_abs_top_srcdir=$ac_pwd ;;
1619 [\\/]* | ?:[\\/]* ) # Absolute name.
1620 ac_srcdir=$srcdir$ac_dir_suffix;
1621 ac_top_srcdir=$srcdir
1622 ac_abs_top_srcdir=$srcdir ;;
1623 *) # Relative name.
1624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1625 ac_top_srcdir=$ac_top_build_prefix$srcdir
1626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627 esac
1628 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630 cd "$ac_dir" || { ac_status=$?; continue; }
1631 # Check for guested configure.
1632 if test -f "$ac_srcdir/configure.gnu"; then
1633 echo &&
1634 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1635 elif test -f "$ac_srcdir/configure"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure" --help=recursive
1638 else
1639 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640 fi || ac_status=$?
1641 cd "$ac_pwd" || { ac_status=$?; break; }
1642 done
1645 test -n "$ac_init_help" && exit $ac_status
1646 if $ac_init_version; then
1647 cat <<\_ACEOF
1648 configure
1649 generated by GNU Autoconf 2.67
1651 Copyright (C) 2010 Free Software Foundation, Inc.
1652 This configure script is free software; the Free Software Foundation
1653 gives unlimited permission to copy, distribute and modify it.
1654 _ACEOF
1655 exit
1658 ## ------------------------ ##
1659 ## Autoconf initialization. ##
1660 ## ------------------------ ##
1662 # ac_fn_c_try_compile LINENO
1663 # --------------------------
1664 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_compile ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext
1669 if { { ac_try="$ac_compile"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_compile") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest.$ac_objext; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1693 ac_retval=1
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_c_try_compile
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_cpp ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } > conftest.i && {
1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=1
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 as_fn_set_status $ac_retval
1735 } # ac_fn_c_try_cpp
1737 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1740 # the include files in INCLUDES and setting the cache variable VAR
1741 # accordingly.
1742 ac_fn_c_check_header_mongrel ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if eval "test \"\${$3+set}\"" = set; then :
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval "test \"\${$3+set}\"" = set; then :
1749 $as_echo_n "(cached) " >&6
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 else
1755 # Is the header compilable?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1757 $as_echo_n "checking $2 usability... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_header_compiler=yes
1765 else
1766 ac_header_compiler=no
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1770 $as_echo "$ac_header_compiler" >&6; }
1772 # Is the header present?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1774 $as_echo_n "checking $2 presence... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_cpp "$LINENO"; then :
1780 ac_header_preproc=yes
1781 else
1782 ac_header_preproc=no
1784 rm -f conftest.err conftest.i conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1786 $as_echo "$ac_header_preproc" >&6; }
1788 # So? What about this header?
1789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1790 yes:no: )
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1792 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 no:yes:* )
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1798 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1800 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1802 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1804 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1806 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 esac
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval "test \"\${$3+set}\"" = set; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 eval "$3=\$ac_header_compiler"
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 } # ac_fn_c_check_header_mongrel
1824 # ac_fn_c_try_run LINENO
1825 # ----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1827 # that executables *can* be run.
1828 ac_fn_c_try_run ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1842 { { case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_try") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; }; }; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: program exited with status $ac_status" >&5
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1858 ac_retval=$ac_status
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_c_try_run
1866 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists and can be compiled using the include files in
1869 # INCLUDES, setting the cache variable VAR accordingly.
1870 ac_fn_c_check_header_compile ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval "test \"\${$3+set}\"" = set; then :
1876 $as_echo_n "(cached) " >&6
1877 else
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1881 #include <$2>
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 eval "$3=yes"
1885 else
1886 eval "$3=no"
1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895 } # ac_fn_c_check_header_compile
1897 # ac_fn_c_try_link LINENO
1898 # -----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_c_try_link ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_c_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 $as_test_x conftest$ac_exeext
1925 }; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=1
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_c_try_link
1943 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1944 # ----------------------------------------------------
1945 # Tries to find if the field MEMBER exists in type AGGR, after including
1946 # INCLUDES, setting cache variable VAR accordingly.
1947 ac_fn_c_check_member ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1951 $as_echo_n "checking for $2.$3... " >&6; }
1952 if eval "test \"\${$4+set}\"" = set; then :
1953 $as_echo_n "(cached) " >&6
1954 else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1959 main ()
1961 static $2 ac_aggr;
1962 if (ac_aggr.$3)
1963 return 0;
1965 return 0;
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 eval "$4=yes"
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1975 main ()
1977 static $2 ac_aggr;
1978 if (sizeof ac_aggr.$3)
1979 return 0;
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 eval "$4=yes"
1986 else
1987 eval "$4=no"
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 eval ac_res=\$$4
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998 } # ac_fn_c_check_member
2000 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2001 # ---------------------------------------------
2002 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2003 # accordingly.
2004 ac_fn_c_check_decl ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 as_decl_name=`echo $2|sed 's/ *(.*//'`
2008 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2010 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2011 if eval "test \"\${$3+set}\"" = set; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 main ()
2020 #ifndef $as_decl_name
2021 #ifdef __cplusplus
2022 (void) $as_decl_use;
2023 #else
2024 (void) $as_decl_name;
2025 #endif
2026 #endif
2029 return 0;
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$3=yes"
2034 else
2035 eval "$3=no"
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044 } # ac_fn_c_check_decl
2046 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2047 # -------------------------------------------
2048 # Tests whether TYPE exists after having included INCLUDES, setting cache
2049 # variable VAR accordingly.
2050 ac_fn_c_check_type ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval "test \"\${$3+set}\"" = set; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 eval "$3=no"
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 if (sizeof ($2))
2066 return 0;
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 main ()
2078 if (sizeof (($2)))
2079 return 0;
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2086 else
2087 eval "$3=yes"
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2098 } # ac_fn_c_check_type
2100 # ac_fn_c_check_func LINENO FUNC VAR
2101 # ----------------------------------
2102 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2103 ac_fn_c_check_func ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval "test \"\${$3+set}\"" = set; then :
2109 $as_echo_n "(cached) " >&6
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2115 #define $2 innocuous_$2
2117 /* System header to define __stub macros and hopefully few prototypes,
2118 which can conflict with char $2 (); below.
2119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2120 <limits.h> exists even on freestanding compilers. */
2122 #ifdef __STDC__
2123 # include <limits.h>
2124 #else
2125 # include <assert.h>
2126 #endif
2128 #undef $2
2130 /* Override any GCC internal prototype to avoid an error.
2131 Use char because int might match the return type of a GCC
2132 builtin and then its argument prototype would still apply. */
2133 #ifdef __cplusplus
2134 extern "C"
2135 #endif
2136 char $2 ();
2137 /* The GNU C library defines this for functions which it implements
2138 to always fail with ENOSYS. Some functions are actually named
2139 something starting with __ and the normal name is an alias. */
2140 #if defined __stub_$2 || defined __stub___$2
2141 choke me
2142 #endif
2145 main ()
2147 return $2 ();
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_link "$LINENO"; then :
2153 eval "$3=yes"
2154 else
2155 eval "$3=no"
2157 rm -f core conftest.err conftest.$ac_objext \
2158 conftest$ac_exeext conftest.$ac_ext
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 } # ac_fn_c_check_func
2166 cat >config.log <<_ACEOF
2167 This file contains any messages produced by compilers while
2168 running configure, to aid debugging if configure makes a mistake.
2170 It was created by $as_me, which was
2171 generated by GNU Autoconf 2.67. Invocation command line was
2173 $ $0 $@
2175 _ACEOF
2176 exec 5>>config.log
2178 cat <<_ASUNAME
2179 ## --------- ##
2180 ## Platform. ##
2181 ## --------- ##
2183 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2184 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2185 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2186 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2187 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2189 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2190 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2192 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2193 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2194 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2195 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2196 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2197 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2198 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2200 _ASUNAME
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 $as_echo "PATH: $as_dir"
2208 done
2209 IFS=$as_save_IFS
2211 } >&5
2213 cat >&5 <<_ACEOF
2216 ## ----------- ##
2217 ## Core tests. ##
2218 ## ----------- ##
2220 _ACEOF
2223 # Keep a trace of the command line.
2224 # Strip out --no-create and --no-recursion so they do not pile up.
2225 # Strip out --silent because we don't want to record it for future runs.
2226 # Also quote any args containing shell meta-characters.
2227 # Make two passes to allow for proper duplicate-argument suppression.
2228 ac_configure_args=
2229 ac_configure_args0=
2230 ac_configure_args1=
2231 ac_must_keep_next=false
2232 for ac_pass in 1 2
2234 for ac_arg
2236 case $ac_arg in
2237 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2239 | -silent | --silent | --silen | --sile | --sil)
2240 continue ;;
2241 *\'*)
2242 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2243 esac
2244 case $ac_pass in
2245 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2247 as_fn_append ac_configure_args1 " '$ac_arg'"
2248 if test $ac_must_keep_next = true; then
2249 ac_must_keep_next=false # Got value, back to normal.
2250 else
2251 case $ac_arg in
2252 *=* | --config-cache | -C | -disable-* | --disable-* \
2253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2255 | -with-* | --with-* | -without-* | --without-* | --x)
2256 case "$ac_configure_args0 " in
2257 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2258 esac
2260 -* ) ac_must_keep_next=true ;;
2261 esac
2263 as_fn_append ac_configure_args " '$ac_arg'"
2265 esac
2266 done
2267 done
2268 { ac_configure_args0=; unset ac_configure_args0;}
2269 { ac_configure_args1=; unset ac_configure_args1;}
2271 # When interrupted or exit'd, cleanup temporary files, and complete
2272 # config.log. We remove comments because anyway the quotes in there
2273 # would cause problems or look ugly.
2274 # WARNING: Use '\'' to represent an apostrophe within the trap.
2275 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2276 trap 'exit_status=$?
2277 # Save into config.log some information that might help in debugging.
2279 echo
2281 $as_echo "## ---------------- ##
2282 ## Cache variables. ##
2283 ## ---------------- ##"
2284 echo
2285 # The following way of writing the cache mishandles newlines in values,
2287 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2288 eval ac_val=\$$ac_var
2289 case $ac_val in #(
2290 *${as_nl}*)
2291 case $ac_var in #(
2292 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2293 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2294 esac
2295 case $ac_var in #(
2296 _ | IFS | as_nl) ;; #(
2297 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2298 *) { eval $ac_var=; unset $ac_var;} ;;
2299 esac ;;
2300 esac
2301 done
2302 (set) 2>&1 |
2303 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2304 *${as_nl}ac_space=\ *)
2305 sed -n \
2306 "s/'\''/'\''\\\\'\'''\''/g;
2307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2308 ;; #(
2310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2312 esac |
2313 sort
2315 echo
2317 $as_echo "## ----------------- ##
2318 ## Output variables. ##
2319 ## ----------------- ##"
2320 echo
2321 for ac_var in $ac_subst_vars
2323 eval ac_val=\$$ac_var
2324 case $ac_val in
2325 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326 esac
2327 $as_echo "$ac_var='\''$ac_val'\''"
2328 done | sort
2329 echo
2331 if test -n "$ac_subst_files"; then
2332 $as_echo "## ------------------- ##
2333 ## File substitutions. ##
2334 ## ------------------- ##"
2335 echo
2336 for ac_var in $ac_subst_files
2338 eval ac_val=\$$ac_var
2339 case $ac_val in
2340 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 esac
2342 $as_echo "$ac_var='\''$ac_val'\''"
2343 done | sort
2344 echo
2347 if test -s confdefs.h; then
2348 $as_echo "## ----------- ##
2349 ## confdefs.h. ##
2350 ## ----------- ##"
2351 echo
2352 cat confdefs.h
2353 echo
2355 test "$ac_signal" != 0 &&
2356 $as_echo "$as_me: caught signal $ac_signal"
2357 $as_echo "$as_me: exit $exit_status"
2358 } >&5
2359 rm -f core *.core core.conftest.* &&
2360 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2361 exit $exit_status
2363 for ac_signal in 1 2 13 15; do
2364 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2365 done
2366 ac_signal=0
2368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2369 rm -f -r conftest* confdefs.h
2371 $as_echo "/* confdefs.h */" > confdefs.h
2373 # Predefined preprocessor variables.
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_NAME "$PACKAGE_NAME"
2377 _ACEOF
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2381 _ACEOF
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2385 _ACEOF
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_STRING "$PACKAGE_STRING"
2389 _ACEOF
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2393 _ACEOF
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_URL "$PACKAGE_URL"
2397 _ACEOF
2400 # Let the site file select an alternate cache file if it wants to.
2401 # Prefer an explicitly selected file to automatically selected ones.
2402 ac_site_file1=NONE
2403 ac_site_file2=NONE
2404 if test -n "$CONFIG_SITE"; then
2405 # We do not want a PATH search for config.site.
2406 case $CONFIG_SITE in #((
2407 -*) ac_site_file1=./$CONFIG_SITE;;
2408 */*) ac_site_file1=$CONFIG_SITE;;
2409 *) ac_site_file1=./$CONFIG_SITE;;
2410 esac
2411 elif test "x$prefix" != xNONE; then
2412 ac_site_file1=$prefix/share/config.site
2413 ac_site_file2=$prefix/etc/config.site
2414 else
2415 ac_site_file1=$ac_default_prefix/share/config.site
2416 ac_site_file2=$ac_default_prefix/etc/config.site
2418 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2420 test "x$ac_site_file" = xNONE && continue
2421 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2423 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2424 sed 's/^/| /' "$ac_site_file" >&5
2425 . "$ac_site_file" \
2426 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 as_fn_error $? "failed to load site script $ac_site_file
2429 See \`config.log' for more details" "$LINENO" 5 ; }
2431 done
2433 if test -r "$cache_file"; then
2434 # Some versions of bash will fail to source /dev/null (special files
2435 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2436 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2438 $as_echo "$as_me: loading cache $cache_file" >&6;}
2439 case $cache_file in
2440 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2441 *) . "./$cache_file";;
2442 esac
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2446 $as_echo "$as_me: creating cache $cache_file" >&6;}
2447 >$cache_file
2450 as_fn_append ac_header_list " stdlib.h"
2451 as_fn_append ac_header_list " unistd.h"
2452 as_fn_append ac_header_list " sys/param.h"
2453 # Check that the precious variables saved in the cache have kept the same
2454 # value.
2455 ac_cache_corrupted=false
2456 for ac_var in $ac_precious_vars; do
2457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458 eval ac_new_set=\$ac_env_${ac_var}_set
2459 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460 eval ac_new_val=\$ac_env_${ac_var}_value
2461 case $ac_old_set,$ac_new_set in
2462 set,)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2466 ,set)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,);;
2472 if test "x$ac_old_val" != "x$ac_new_val"; then
2473 # differences in whitespace do not lead to failure.
2474 ac_old_val_w=`echo x $ac_old_val`
2475 ac_new_val_w=`echo x $ac_new_val`
2476 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2479 ac_cache_corrupted=:
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2482 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483 eval $ac_var=\$ac_old_val
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2486 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2488 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2489 fi;;
2490 esac
2491 # Pass precious variables to config.status.
2492 if test "$ac_new_set" = set; then
2493 case $ac_new_val in
2494 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 *) ac_arg=$ac_var=$ac_new_val ;;
2496 esac
2497 case " $ac_configure_args " in
2498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2499 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500 esac
2502 done
2503 if $ac_cache_corrupted; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2508 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2510 ## -------------------- ##
2511 ## Main body of script. ##
2512 ## -------------------- ##
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522 ac_aux_dir=
2523 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2524 if test -f "$ac_dir/install-sh"; then
2525 ac_aux_dir=$ac_dir
2526 ac_install_sh="$ac_aux_dir/install-sh -c"
2527 break
2528 elif test -f "$ac_dir/install.sh"; then
2529 ac_aux_dir=$ac_dir
2530 ac_install_sh="$ac_aux_dir/install.sh -c"
2531 break
2532 elif test -f "$ac_dir/shtool"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/shtool install -c"
2535 break
2537 done
2538 if test -z "$ac_aux_dir"; then
2539 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2542 # These three variables are undocumented and unsupported,
2543 # and are intended to be withdrawn in a future Autoconf release.
2544 # They can cause serious problems if a builder's source tree is in a directory
2545 # whose full name contains unusual characters.
2546 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2547 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2548 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2552 # Check what host we are running on.
2553 # If a target is not suggested, we use this one.
2554 # Note that what we call a target, Autoconf calls a host.
2555 # Make sure we can run config.sub.
2556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2557 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2560 $as_echo_n "checking build system type... " >&6; }
2561 if test "${ac_cv_build+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 ac_build_alias=$build_alias
2565 test "x$ac_build_alias" = x &&
2566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2567 test "x$ac_build_alias" = x &&
2568 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2574 $as_echo "$ac_cv_build" >&6; }
2575 case $ac_cv_build in
2576 *-*-*) ;;
2577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2578 esac
2579 build=$ac_cv_build
2580 ac_save_IFS=$IFS; IFS='-'
2581 set x $ac_cv_build
2582 shift
2583 build_cpu=$1
2584 build_vendor=$2
2585 shift; shift
2586 # Remember, the first character of IFS is used to create $*,
2587 # except with old shells:
2588 build_os=$*
2589 IFS=$ac_save_IFS
2590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2594 $as_echo_n "checking host system type... " >&6; }
2595 if test "${ac_cv_host+set}" = set; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test "x$host_alias" = x; then
2599 ac_cv_host=$ac_cv_build
2600 else
2601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2607 $as_echo "$ac_cv_host" >&6; }
2608 case $ac_cv_host in
2609 *-*-*) ;;
2610 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2611 esac
2612 host=$ac_cv_host
2613 ac_save_IFS=$IFS; IFS='-'
2614 set x $ac_cv_host
2615 shift
2616 host_cpu=$1
2617 host_vendor=$2
2618 shift; shift
2619 # Remember, the first character of IFS is used to create $*,
2620 # except with old shells:
2621 host_os=$*
2622 IFS=$ac_save_IFS
2623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2627 # The AROS target is slightly different to the normal GNU style
2628 # format. We don't have the middle part, and we reverse the order
2629 # of the $(CPU) and $(OS) bits.
2631 # Don't strip the version of the target yet, it might be
2632 # useful on some systems.
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2635 $as_echo_n "checking for AROS style target... " >&6; }
2637 if test "$target" = "NONE" ; then
2638 target=$host_os-$host_cpu
2639 else
2640 if test "$target" = "" ; then
2641 target=$host_os-$host_cpu
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2645 $as_echo "$target" >&6; }
2647 if test "$host_os" = "mingw32" ; then
2648 PWDCMD="pwd -W"
2651 #don't know where else to put this...
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2653 $as_echo_n "checking building AROS in... " >&6; }
2654 AROS_BUILDDIR=`${PWDCMD-pwd}`
2655 AROS_BUILDDIR_UNIX=${PWD}
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2657 $as_echo "$AROS_BUILDDIR" >&6; }
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2660 $as_echo_n "checking AROS source in... " >&6; }
2661 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2662 SRCDIR=${srcpwd}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2664 $as_echo "$SRCDIR" >&6; }
2666 # Parse the target field into something useful.
2668 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2669 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2672 aros_default_wbwidth=800
2673 aros_default_wbheight=600
2674 aros_default_wbdepth=4
2677 # The first step is to find the host binaries.
2678 # Check for a compiler.
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2686 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if test "${ac_cv_prog_CC+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2706 done
2707 done
2708 IFS=$as_save_IFS
2712 CC=$ac_cv_prog_CC
2713 if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2723 if test -z "$ac_cv_prog_CC"; then
2724 ac_ct_CC=$CC
2725 # Extract the first word of "gcc", so it can be a program name with args.
2726 set dummy gcc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$ac_ct_CC"; then
2733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_ac_ct_CC="gcc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2746 done
2747 done
2748 IFS=$as_save_IFS
2752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2753 if test -n "$ac_ct_CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2755 $as_echo "$ac_ct_CC" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2761 if test "x$ac_ct_CC" = x; then
2762 CC=""
2763 else
2764 case $cross_compiling:$ac_tool_warned in
2765 yes:)
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768 ac_tool_warned=yes ;;
2769 esac
2770 CC=$ac_ct_CC
2772 else
2773 CC="$ac_cv_prog_CC"
2776 if test -z "$CC"; then
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}cc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if test "${ac_cv_prog_CC+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CC="${ac_tool_prefix}cc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2799 done
2800 done
2801 IFS=$as_save_IFS
2805 CC=$ac_cv_prog_CC
2806 if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808 $as_echo "$CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2817 if test -z "$CC"; then
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_CC+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 else
2828 ac_prog_rejected=no
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2837 ac_prog_rejected=yes
2838 continue
2840 ac_cv_prog_CC="cc"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2844 done
2845 done
2846 IFS=$as_save_IFS
2848 if test $ac_prog_rejected = yes; then
2849 # We found a bogon in the path, so make sure we never use it.
2850 set dummy $ac_cv_prog_CC
2851 shift
2852 if test $# != 0; then
2853 # We chose a different compiler from the bogus one.
2854 # However, it has the same basename, so the bogon will be chosen
2855 # first if we set CC to just the basename; use the full file name.
2856 shift
2857 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2873 if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 for ac_prog in cl.exe
2877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878 set dummy $ac_tool_prefix$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 test "${ac_cv_prog_CC+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2914 test -n "$CC" && break
2915 done
2917 if test -z "$CC"; then
2918 ac_ct_CC=$CC
2919 for ac_prog in cl.exe
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_ac_ct_CC="$ac_prog"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2942 done
2943 done
2944 IFS=$as_save_IFS
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2958 test -n "$ac_ct_CC" && break
2959 done
2961 if test "x$ac_ct_CC" = x; then
2962 CC=""
2963 else
2964 case $cross_compiling:$ac_tool_warned in
2965 yes:)
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 ac_tool_warned=yes ;;
2969 esac
2970 CC=$ac_ct_CC
2977 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 as_fn_error $? "no acceptable C compiler found in \$PATH
2980 See \`config.log' for more details" "$LINENO" 5 ; }
2982 # Provide some information about the compiler.
2983 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2984 set X $ac_compile
2985 ac_compiler=$2
2986 for ac_option in --version -v -V -qversion; do
2987 { { ac_try="$ac_compiler $ac_option >&5"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2995 ac_status=$?
2996 if test -s conftest.err; then
2997 sed '10a\
2998 ... rest of stderr output deleted ...
2999 10q' conftest.err >conftest.er1
3000 cat conftest.er1 >&5
3002 rm -f conftest.er1 conftest.err
3003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004 test $ac_status = 0; }
3005 done
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3011 main ()
3015 return 0;
3017 _ACEOF
3018 ac_clean_files_save=$ac_clean_files
3019 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3020 # Try to create an executable without -o first, disregard a.out.
3021 # It will help us diagnose broken compilers, and finding out an intuition
3022 # of exeext.
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3024 $as_echo_n "checking whether the C compiler works... " >&6; }
3025 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3027 # The possible output files:
3028 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3030 ac_rmfiles=
3031 for ac_file in $ac_files
3033 case $ac_file in
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3035 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3036 esac
3037 done
3038 rm -f $ac_rmfiles
3040 if { { ac_try="$ac_link_default"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_link_default") 2>&5
3048 ac_status=$?
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }; then :
3051 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3052 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3053 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3054 # so that the user can short-circuit this test for compilers unknown to
3055 # Autoconf.
3056 for ac_file in $ac_files ''
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3062 [ab].out )
3063 # We found the default executable, but exeext='' is most
3064 # certainly right.
3065 break;;
3066 *.* )
3067 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3068 then :; else
3069 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # We set ac_cv_exeext here because the later test for it is not
3072 # safe: cross compilers may not add the suffix if given an `-o'
3073 # argument, so we may need to know it at that point already.
3074 # Even if this section looks crufty: it has the advantage of
3075 # actually working.
3076 break;;
3078 break;;
3079 esac
3080 done
3081 test "$ac_cv_exeext" = no && ac_cv_exeext=
3083 else
3084 ac_file=''
3086 if test -z "$ac_file"; then :
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 $as_echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error 77 "C compiler cannot create executables
3095 See \`config.log' for more details" "$LINENO" 5 ; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3101 $as_echo_n "checking for C compiler default output file name... " >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3103 $as_echo "$ac_file" >&6; }
3104 ac_exeext=$ac_cv_exeext
3106 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3107 ac_clean_files=$ac_clean_files_save
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3109 $as_echo_n "checking for suffix of executables... " >&6; }
3110 if { { ac_try="$ac_link"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_link") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; then :
3121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3122 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3123 # work properly (i.e., refer to `conftest.exe'), while it won't with
3124 # `rm'.
3125 for ac_file in conftest.exe conftest conftest.*; do
3126 test -f "$ac_file" || continue
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 break;;
3131 * ) break;;
3132 esac
3133 done
3134 else
3135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3138 See \`config.log' for more details" "$LINENO" 5 ; }
3140 rm -f conftest conftest$ac_cv_exeext
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3142 $as_echo "$ac_cv_exeext" >&6; }
3144 rm -f conftest.$ac_ext
3145 EXEEXT=$ac_cv_exeext
3146 ac_exeext=$EXEEXT
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3149 #include <stdio.h>
3151 main ()
3153 FILE *f = fopen ("conftest.out", "w");
3154 return ferror (f) || fclose (f) != 0;
3157 return 0;
3159 _ACEOF
3160 ac_clean_files="$ac_clean_files conftest.out"
3161 # Check that the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3164 $as_echo_n "checking whether we are cross compiling... " >&6; }
3165 if test "$cross_compiling" != yes; then
3166 { { ac_try="$ac_link"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_link") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }
3177 if { ac_try='./conftest$ac_cv_exeext'
3178 { { case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; }; then
3188 cross_compiling=no
3189 else
3190 if test "$cross_compiling" = maybe; then
3191 cross_compiling=yes
3192 else
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot run C compiled programs.
3196 If you meant to cross compile, use \`--host'.
3197 See \`config.log' for more details" "$LINENO" 5 ; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3202 $as_echo "$cross_compiling" >&6; }
3204 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3207 $as_echo_n "checking for suffix of object files... " >&6; }
3208 if test "${ac_cv_objext+set}" = set; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3215 main ()
3219 return 0;
3221 _ACEOF
3222 rm -f conftest.o conftest.obj
3223 if { { ac_try="$ac_compile"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_compile") 2>&5
3231 ac_status=$?
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; then :
3234 for ac_file in conftest.o conftest.obj conftest.*; do
3235 test -f "$ac_file" || continue;
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3239 break;;
3240 esac
3241 done
3242 else
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "cannot compute suffix of object files: cannot compile
3249 See \`config.log' for more details" "$LINENO" 5 ; }
3251 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3254 $as_echo "$ac_cv_objext" >&6; }
3255 OBJEXT=$ac_cv_objext
3256 ac_objext=$OBJEXT
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3258 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3259 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3266 main ()
3268 #ifndef __GNUC__
3269 choke me
3270 #endif
3273 return 0;
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277 ac_compiler_gnu=yes
3278 else
3279 ac_compiler_gnu=no
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3286 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3287 if test $ac_compiler_gnu = yes; then
3288 GCC=yes
3289 else
3290 GCC=
3292 ac_test_CFLAGS=${CFLAGS+set}
3293 ac_save_CFLAGS=$CFLAGS
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3295 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3296 if test "${ac_cv_prog_cc_g+set}" = set; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 ac_save_c_werror_flag=$ac_c_werror_flag
3300 ac_c_werror_flag=yes
3301 ac_cv_prog_cc_g=no
3302 CFLAGS="-g"
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3307 main ()
3311 return 0;
3313 _ACEOF
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_cv_prog_cc_g=yes
3316 else
3317 CFLAGS=""
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3322 main ()
3326 return 0;
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3331 else
3332 ac_c_werror_flag=$ac_save_c_werror_flag
3333 CFLAGS="-g"
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3338 main ()
3342 return 0;
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_cv_prog_cc_g=yes
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_c_werror_flag=$ac_save_c_werror_flag
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3356 $as_echo "$ac_cv_prog_cc_g" >&6; }
3357 if test "$ac_test_CFLAGS" = set; then
3358 CFLAGS=$ac_save_CFLAGS
3359 elif test $ac_cv_prog_cc_g = yes; then
3360 if test "$GCC" = yes; then
3361 CFLAGS="-g -O2"
3362 else
3363 CFLAGS="-g"
3365 else
3366 if test "$GCC" = yes; then
3367 CFLAGS="-O2"
3368 else
3369 CFLAGS=
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3373 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3374 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 ac_cv_prog_cc_c89=no
3378 ac_save_CC=$CC
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3381 #include <stdarg.h>
3382 #include <stdio.h>
3383 #include <sys/types.h>
3384 #include <sys/stat.h>
3385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3386 struct buf { int x; };
3387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3388 static char *e (p, i)
3389 char **p;
3390 int i;
3392 return p[i];
3394 static char *f (char * (*g) (char **, int), char **p, ...)
3396 char *s;
3397 va_list v;
3398 va_start (v,p);
3399 s = g (p, va_arg (v,int));
3400 va_end (v);
3401 return s;
3404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3405 function prototypes and stuff, but not '\xHH' hex character constants.
3406 These don't provoke an error unfortunately, instead are silently treated
3407 as 'x'. The following induces an error, until -std is added to get
3408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3409 array size at least. It's necessary to write '\x00'==0 to get something
3410 that's true only with -std. */
3411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3414 inside strings and character constants. */
3415 #define FOO(x) 'x'
3416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3418 int test (int i, double x);
3419 struct s1 {int (*f) (int a);};
3420 struct s2 {int (*f) (double a);};
3421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3422 int argc;
3423 char **argv;
3425 main ()
3427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3429 return 0;
3431 _ACEOF
3432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3433 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3435 CC="$ac_save_CC $ac_arg"
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_cv_prog_cc_c89=$ac_arg
3439 rm -f core conftest.err conftest.$ac_objext
3440 test "x$ac_cv_prog_cc_c89" != "xno" && break
3441 done
3442 rm -f conftest.$ac_ext
3443 CC=$ac_save_CC
3446 # AC_CACHE_VAL
3447 case "x$ac_cv_prog_cc_c89" in
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3450 $as_echo "none needed" >&6; } ;;
3451 xno)
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3453 $as_echo "unsupported" >&6; } ;;
3455 CC="$CC $ac_cv_prog_cc_c89"
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3457 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3458 esac
3459 if test "x$ac_cv_prog_cc_c89" != xno; then :
3463 ac_ext=c
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 case $ac_cv_prog_cc_stdc in #(
3470 no) :
3471 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3472 *) :
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3474 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3475 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 ac_cv_prog_cc_c99=no
3479 ac_save_CC=$CC
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482 #include <stdarg.h>
3483 #include <stdbool.h>
3484 #include <stdlib.h>
3485 #include <wchar.h>
3486 #include <stdio.h>
3488 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3489 #define debug(...) fprintf (stderr, __VA_ARGS__)
3490 #define showlist(...) puts (#__VA_ARGS__)
3491 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3492 static void
3493 test_varargs_macros (void)
3495 int x = 1234;
3496 int y = 5678;
3497 debug ("Flag");
3498 debug ("X = %d\n", x);
3499 showlist (The first, second, and third items.);
3500 report (x>y, "x is %d but y is %d", x, y);
3503 // Check long long types.
3504 #define BIG64 18446744073709551615ull
3505 #define BIG32 4294967295ul
3506 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3507 #if !BIG_OK
3508 your preprocessor is broken;
3509 #endif
3510 #if BIG_OK
3511 #else
3512 your preprocessor is broken;
3513 #endif
3514 static long long int bignum = -9223372036854775807LL;
3515 static unsigned long long int ubignum = BIG64;
3517 struct incomplete_array
3519 int datasize;
3520 double data[];
3523 struct named_init {
3524 int number;
3525 const wchar_t *name;
3526 double average;
3529 typedef const char *ccp;
3531 static inline int
3532 test_restrict (ccp restrict text)
3534 // See if C++-style comments work.
3535 // Iterate through items via the restricted pointer.
3536 // Also check for declarations in for loops.
3537 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3538 continue;
3539 return 0;
3542 // Check varargs and va_copy.
3543 static void
3544 test_varargs (const char *format, ...)
3546 va_list args;
3547 va_start (args, format);
3548 va_list args_copy;
3549 va_copy (args_copy, args);
3551 const char *str;
3552 int number;
3553 float fnumber;
3555 while (*format)
3557 switch (*format++)
3559 case 's': // string
3560 str = va_arg (args_copy, const char *);
3561 break;
3562 case 'd': // int
3563 number = va_arg (args_copy, int);
3564 break;
3565 case 'f': // float
3566 fnumber = va_arg (args_copy, double);
3567 break;
3568 default:
3569 break;
3572 va_end (args_copy);
3573 va_end (args);
3577 main ()
3580 // Check bool.
3581 _Bool success = false;
3583 // Check restrict.
3584 if (test_restrict ("String literal") == 0)
3585 success = true;
3586 char *restrict newvar = "Another string";
3588 // Check varargs.
3589 test_varargs ("s, d' f .", "string", 65, 34.234);
3590 test_varargs_macros ();
3592 // Check flexible array members.
3593 struct incomplete_array *ia =
3594 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3595 ia->datasize = 10;
3596 for (int i = 0; i < ia->datasize; ++i)
3597 ia->data[i] = i * 1.234;
3599 // Check named initializers.
3600 struct named_init ni = {
3601 .number = 34,
3602 .name = L"Test wide string",
3603 .average = 543.34343,
3606 ni.number = 58;
3608 int dynamic_array[ni.number];
3609 dynamic_array[ni.number - 1] = 543;
3611 // work around unused variable warnings
3612 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3613 || dynamic_array[ni.number - 1] != 543);
3616 return 0;
3618 _ACEOF
3619 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3621 CC="$ac_save_CC $ac_arg"
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_c99=$ac_arg
3625 rm -f core conftest.err conftest.$ac_objext
3626 test "x$ac_cv_prog_cc_c99" != "xno" && break
3627 done
3628 rm -f conftest.$ac_ext
3629 CC=$ac_save_CC
3632 # AC_CACHE_VAL
3633 case "x$ac_cv_prog_cc_c99" in
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3636 $as_echo "none needed" >&6; } ;;
3637 xno)
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3639 $as_echo "unsupported" >&6; } ;;
3641 CC="$CC $ac_cv_prog_cc_c99"
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3643 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3644 esac
3645 if test "x$ac_cv_prog_cc_c99" != xno; then :
3646 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3649 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3650 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 ac_cv_prog_cc_c89=no
3654 ac_save_CC=$CC
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657 #include <stdarg.h>
3658 #include <stdio.h>
3659 #include <sys/types.h>
3660 #include <sys/stat.h>
3661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3662 struct buf { int x; };
3663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3664 static char *e (p, i)
3665 char **p;
3666 int i;
3668 return p[i];
3670 static char *f (char * (*g) (char **, int), char **p, ...)
3672 char *s;
3673 va_list v;
3674 va_start (v,p);
3675 s = g (p, va_arg (v,int));
3676 va_end (v);
3677 return s;
3680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3681 function prototypes and stuff, but not '\xHH' hex character constants.
3682 These don't provoke an error unfortunately, instead are silently treated
3683 as 'x'. The following induces an error, until -std is added to get
3684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3685 array size at least. It's necessary to write '\x00'==0 to get something
3686 that's true only with -std. */
3687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3690 inside strings and character constants. */
3691 #define FOO(x) 'x'
3692 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694 int test (int i, double x);
3695 struct s1 {int (*f) (int a);};
3696 struct s2 {int (*f) (double a);};
3697 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 int argc;
3699 char **argv;
3701 main ()
3703 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3705 return 0;
3707 _ACEOF
3708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3709 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711 CC="$ac_save_CC $ac_arg"
3712 if ac_fn_c_try_compile "$LINENO"; then :
3713 ac_cv_prog_cc_c89=$ac_arg
3715 rm -f core conftest.err conftest.$ac_objext
3716 test "x$ac_cv_prog_cc_c89" != "xno" && break
3717 done
3718 rm -f conftest.$ac_ext
3719 CC=$ac_save_CC
3722 # AC_CACHE_VAL
3723 case "x$ac_cv_prog_cc_c89" in
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3726 $as_echo "none needed" >&6; } ;;
3727 xno)
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3729 $as_echo "unsupported" >&6; } ;;
3731 CC="$CC $ac_cv_prog_cc_c89"
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3733 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3734 esac
3735 if test "x$ac_cv_prog_cc_c89" != xno; then :
3736 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3737 else
3738 ac_cv_prog_cc_stdc=no
3743 esac
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3745 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3746 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3750 case $ac_cv_prog_cc_stdc in #(
3751 no) :
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753 $as_echo "unsupported" >&6; } ;; #(
3754 '') :
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3756 $as_echo "none needed" >&6; } ;; #(
3757 *) :
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3759 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3760 esac
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3768 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3769 # On Suns, sometimes $CPP names a directory.
3770 if test -n "$CPP" && test -d "$CPP"; then
3771 CPP=
3773 if test -z "$CPP"; then
3774 if test "${ac_cv_prog_CPP+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 # Double quotes because CPP needs to be expanded
3778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780 ac_preproc_ok=false
3781 for ac_c_preproc_warn_flag in '' yes
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791 #ifdef __STDC__
3792 # include <limits.h>
3793 #else
3794 # include <assert.h>
3795 #endif
3796 Syntax error
3797 _ACEOF
3798 if ac_fn_c_try_cpp "$LINENO"; then :
3800 else
3801 # Broken: fails on valid input.
3802 continue
3804 rm -f conftest.err conftest.i conftest.$ac_ext
3806 # OK, works on sane cases. Now check whether nonexistent headers
3807 # can be detected and how.
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810 #include <ac_nonexistent.h>
3811 _ACEOF
3812 if ac_fn_c_try_cpp "$LINENO"; then :
3813 # Broken: success on invalid input.
3814 continue
3815 else
3816 # Passes both tests.
3817 ac_preproc_ok=:
3818 break
3820 rm -f conftest.err conftest.i conftest.$ac_ext
3822 done
3823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3824 rm -f conftest.i conftest.err conftest.$ac_ext
3825 if $ac_preproc_ok; then :
3826 break
3829 done
3830 ac_cv_prog_CPP=$CPP
3833 CPP=$ac_cv_prog_CPP
3834 else
3835 ac_cv_prog_CPP=$CPP
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3838 $as_echo "$CPP" >&6; }
3839 ac_preproc_ok=false
3840 for ac_c_preproc_warn_flag in '' yes
3842 # Use a header file that comes with gcc, so configuring glibc
3843 # with a fresh cross-compiler works.
3844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3845 # <limits.h> exists even on freestanding compilers.
3846 # On the NeXT, cc -E runs the code through the compiler's parser,
3847 # not just through cpp. "Syntax error" is here to catch this case.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850 #ifdef __STDC__
3851 # include <limits.h>
3852 #else
3853 # include <assert.h>
3854 #endif
3855 Syntax error
3856 _ACEOF
3857 if ac_fn_c_try_cpp "$LINENO"; then :
3859 else
3860 # Broken: fails on valid input.
3861 continue
3863 rm -f conftest.err conftest.i conftest.$ac_ext
3865 # OK, works on sane cases. Now check whether nonexistent headers
3866 # can be detected and how.
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869 #include <ac_nonexistent.h>
3870 _ACEOF
3871 if ac_fn_c_try_cpp "$LINENO"; then :
3872 # Broken: success on invalid input.
3873 continue
3874 else
3875 # Passes both tests.
3876 ac_preproc_ok=:
3877 break
3879 rm -f conftest.err conftest.i conftest.$ac_ext
3881 done
3882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3883 rm -f conftest.i conftest.err conftest.$ac_ext
3884 if $ac_preproc_ok; then :
3886 else
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3890 See \`config.log' for more details" "$LINENO" 5 ; }
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 # Check for a compatible awk
3901 for ac_prog in gawk nawk
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904 set dummy $ac_prog; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_prog_AWK+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -n "$AWK"; then
3911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3920 ac_cv_prog_AWK="$ac_prog"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3924 done
3925 done
3926 IFS=$as_save_IFS
3930 AWK=$ac_cv_prog_AWK
3931 if test -n "$AWK"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3933 $as_echo "$AWK" >&6; }
3934 else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3940 test -n "$AWK" && break
3941 done
3943 if test "$AWK" = ""; then
3944 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3946 # Extract the first word of "mmake", so it can be a program name with args.
3947 set dummy mmake; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$MMAKE"; then
3954 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_MMAKE="mmake "
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3973 MMAKE=$ac_cv_prog_MMAKE
3974 if test -n "$MMAKE"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3976 $as_echo "$MMAKE" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3984 # Perform some default variable assignments. Note all of these will be
3985 # Regenerated from the script, so there is no need to cache them.
3987 aros_host_cc="$CC"
3988 if test "$GCC" = "yes"; then
3989 aros_gcc_ld=`$CC -print-prog-name=ld`
3990 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3991 set dummy `basename $aros_gcc_ld`; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 case $aros_host_ld in
3998 [\\/]* | ?:[\\/]*)
3999 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in `dirname $aros_gcc_ld`
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4013 done
4014 done
4015 IFS=$as_save_IFS
4018 esac
4020 aros_host_ld=$ac_cv_path_aros_host_ld
4021 if test -n "$aros_host_ld"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4023 $as_echo "$aros_host_ld" >&6; }
4024 else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4031 if test "$aros_host_ld" = ""; then
4032 # Extract the first word of "ld", so it can be a program name with args.
4033 set dummy ld; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 case $aros_host_ld in
4040 [\\/]* | ?:[\\/]*)
4041 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4055 done
4056 done
4057 IFS=$as_save_IFS
4060 esac
4062 aros_host_ld=$ac_cv_path_aros_host_ld
4063 if test -n "$aros_host_ld"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4065 $as_echo "$aros_host_ld" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4073 if test "$aros_host_ld" = ""; then
4074 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4076 aros_host_make="make"
4077 aros_host_cflags=$CFLAGS
4078 aros_host_ldflags=$LDFLAGS
4079 aros_host_debug="-g -O0"
4080 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4081 aros_host_mkargs="--no-print-directory"
4082 aros_host_incl="/usr/include"
4083 aros_host_exe_suffix="$EXEEXT"
4084 aros_host_lib_suffix=""
4086 # Ignore all compliance, AROS ROMs = 0
4087 # KickStart v1.0 = 30
4088 # KickStart v1.3 = 34
4089 # KickStart v2.0 = 37
4090 # KickStart v3.0 = 39
4091 # KickStart v3.1 = 40
4092 # AmigaOS v3.5 = 44
4093 aros_amigaos_compliance=0
4095 for ac_prog in aclocal aclocal19 aclocal-1.9
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if test -n "$aros_host_aclocal"; then
4105 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_aros_host_aclocal="$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4118 done
4119 done
4120 IFS=$as_save_IFS
4124 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4125 if test -n "$aros_host_aclocal"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4127 $as_echo "$aros_host_aclocal" >&6; }
4128 else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4134 test -n "$aros_host_aclocal" && break
4135 done
4137 for ac_prog in autoconf autoconf259 autoconf253
4139 # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if test -n "$aros_host_autoconf"; then
4147 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_aros_host_autoconf="$ac_prog"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4160 done
4161 done
4162 IFS=$as_save_IFS
4166 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4167 if test -n "$aros_host_autoconf"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4169 $as_echo "$aros_host_autoconf" >&6; }
4170 else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4176 test -n "$aros_host_autoconf" && break
4177 done
4179 for ac_prog in autoheader autoheader259 autoheader253
4181 # Extract the first word of "$ac_prog", so it can be a program name with args.
4182 set dummy $ac_prog; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -n "$aros_host_autoheader"; then
4189 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 ac_cv_prog_aros_host_autoheader="$ac_prog"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4202 done
4203 done
4204 IFS=$as_save_IFS
4208 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4209 if test -n "$aros_host_autoheader"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4211 $as_echo "$aros_host_autoheader" >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4218 test -n "$aros_host_autoheader" && break
4219 done
4221 for ac_prog in automake automake19 automake-1.9
4223 # Extract the first word of "$ac_prog", so it can be a program name with args.
4224 set dummy $ac_prog; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$aros_host_automake"; then
4231 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_aros_host_automake="$ac_prog"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 aros_host_automake=$ac_cv_prog_aros_host_automake
4251 if test -n "$aros_host_automake"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4253 $as_echo "$aros_host_automake" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4260 test -n "$aros_host_automake" && break
4261 done
4264 if test "$aros_host_aclocal" = ""; then
4265 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4267 if test "$aros_host_automake" = ""; then
4268 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4271 case "$aros_host_cc" in
4272 *gcc*)
4273 aros_host_cc_pipe="-pipe"
4275 icc)
4276 aros_host_cc_pipe=""
4279 aros_host_cc_pipe=""
4281 esac
4283 aros_kernel_cc_includes=""
4284 aros_target_cc_includes=""
4286 # ----------------------------------------------------------------------------------------
4287 # Host-specific defaults
4289 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4290 # instead of a wrapper script.
4291 # Useful for non-ELF hosts (like Windows and Darwin).
4292 # Can also be overriden in target section below
4293 use_aros_gcc="no"
4295 # This is the main host configuration section. It is where the host
4296 # can change the values of any variables it needs to change. We do
4297 # not look at anything that compiles to the target yet, we'll get
4298 # to that later.
4300 case "$host_os" in
4301 aros*)
4302 aros_host_arch="aros"
4303 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4304 case "$host_cpu" in
4305 *i?86*)
4306 aros_host_cpu="i386"
4308 *x86_64*)
4309 aros_host_cpu="x86_64"
4311 *powerpc*)
4312 aros_host_cpu="ppc"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4316 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4317 aros_host_cpu="$host_cpu"
4319 esac
4322 linux*)
4323 aros_host_arch="linux"
4324 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4325 android_build_os="linux-x86"
4326 android_tool="android"
4327 default_android_sdk="/opt/android-sdk-linux_x86"
4328 case "$host_cpu" in
4329 *i?86*)
4330 aros_host_cpu="i386"
4332 *x86_64*)
4333 aros_host_cpu="x86_64"
4335 *m68k*)
4336 aros_host_cpu="m68k"
4338 *powerpc*)
4339 aros_host_cpu="ppc"
4341 *arm*)
4342 aros_host_cpu="arm"
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4346 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4347 aros_host_cpu="$host_cpu"
4349 esac
4352 freebsd*)
4353 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4354 aros_host_make="gmake"
4355 aros_host_arch="freebsd"
4356 aros_host_cpu="i386"
4358 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4360 case $host_os in
4361 freebsd[234]*)
4362 aros_object_format="elf_i386"
4366 aros_object_format="elf_i386_fbsd"
4368 esac
4372 darwin*)
4373 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4374 aros_host_arch="darwin"
4375 use_aros_gcc="yes"
4376 android_build_os="darwin-x86"
4377 android_tool="android"
4378 default_android_sdk="/android-sdk-mac_x86"
4379 case "$host_cpu" in
4380 *i?86*)
4381 aros_host_cpu="i386"
4383 *x86_64*)
4384 aros_host_cpu="x86_64"
4386 *powerpc*)
4387 aros_host_cpu="ppc"
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4391 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4392 aros_host_cpu="$host_cpu"
4394 esac
4396 aros_host_ldflags="$aros_host_ldflags -liconv"
4400 dragonfly*)
4401 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4402 aros_host_make="gmake"
4403 aros_host_arch="dragonfly"
4404 case $host_cpu in
4405 *i?86*)
4406 aros_host_cpu="i386"
4408 *amd64*)
4409 aros_host_cpu="x86_64"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4413 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4414 aros_host_cpu="$host_cpu"
4416 esac
4419 netbsd*)
4420 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4421 aros_host_make="gmake"
4422 aros_host_arch="netbsd"
4423 case "$host_cpu" in
4424 *i?86*)
4425 aros_host_cpu="i386"
4427 *m68k*)
4428 aros_host_cpu="m68k"
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4432 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4433 aros_host_cpu="$host_cpu"
4435 esac
4436 aros_host_lib_suffix=".0.0"
4439 openbsd*)
4440 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4441 aros_host_make="gmake"
4442 aros_host_arch="openbsd"
4443 case "$host_cpu" in
4444 *i?86*)
4445 aros_host_cpu="i386"
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4449 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4450 aros_host_cpu="$host_cpu"
4452 esac
4455 solaris*)
4456 aros_host_arch="solaris"
4457 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4458 case "$host_cpu" in
4459 *i?86*)
4460 aros_host_cpu="i386"
4462 *sparc*)
4463 aros_host_cpu="sparc"
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4467 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4468 aros_host_cpu="$host_cpu"
4470 esac
4473 morphos*)
4474 aros_host_arch="morphos"
4475 aros_host_cpu="ppc"
4478 amiga*)
4479 aros_host_arch="amiga"
4480 SORT="/gg/bin/sort"
4481 TEST="/gg/bin/test"
4482 UNIQ="/gg/bin/uniq"
4483 FOR="for"
4484 TOUCH="/gg/bin/touch"
4485 case "$host_cpu" in
4486 *m68k*)
4487 aros_host_cpu="m68k"
4489 *powerpc*)
4490 aros_host_cpu="ppc"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4494 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4495 aros_host_cpu="$host_cpu"
4497 esac
4500 cygwin*)
4501 aros_host_arch="cygwin"
4502 use_aros_gcc="yes"
4503 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4504 android_build_os="windows"
4505 android_tool="android.bat"
4506 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4508 case "$host_cpu" in
4509 *i?86*)
4510 aros_host_cpu="i386"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4514 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4515 aros_host_cpu="$host_cpu"
4517 esac
4520 mingw32*)
4521 aros_host_arch="mingw32"
4522 use_aros_gcc="yes"
4523 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4524 android_build_os="windows"
4525 android_tool="android.bat"
4526 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4528 case "$host_cpu" in
4529 *i?86*)
4530 aros_host_cpu="i386"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4534 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4535 aros_host_cpu="$host_cpu"
4537 esac
4540 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4542 esac
4544 # Extract the first word of "ar", so it can be a program name with args.
4545 set dummy ar; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$aros_host_ar"; then
4552 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_aros_host_ar="ar cr"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4571 aros_host_ar=$ac_cv_prog_aros_host_ar
4572 if test -n "$aros_host_ar"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4574 $as_echo "$aros_host_ar" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4581 if test "$aros_host_ar" = ""; then
4582 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4584 # Extract the first word of "ranlib", so it can be a program name with args.
4585 set dummy ranlib; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$aros_host_ranlib"; then
4592 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_prog_aros_host_ranlib="ranlib "
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4605 done
4606 done
4607 IFS=$as_save_IFS
4611 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4612 if test -n "$aros_host_ranlib"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4614 $as_echo "$aros_host_ranlib" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4621 if test "$aros_host_ranlib" = ""; then
4622 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4624 # Extract the first word of "strip", so it can be a program name with args.
4625 set dummy strip; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$aros_host_strip"; then
4632 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_aros_host_strip="strip "
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4645 done
4646 done
4647 IFS=$as_save_IFS
4651 aros_host_strip=$ac_cv_prog_aros_host_strip
4652 if test -n "$aros_host_strip"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4654 $as_echo "$aros_host_strip" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4661 if test "$aros_host_strip" = ""; then
4662 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4665 # Extract the first word of "rm", so it can be a program name with args.
4666 set dummy rm; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if test "${ac_cv_prog_RM+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -n "$RM"; then
4673 ac_cv_prog_RM="$RM" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_RM="rm -rf"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4686 done
4687 done
4688 IFS=$as_save_IFS
4692 RM=$ac_cv_prog_RM
4693 if test -n "$RM"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4695 $as_echo "$RM" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4702 if test "$RM" = ""; then
4703 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4705 # Extract the first word of "cp", so it can be a program name with args.
4706 set dummy cp; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_prog_CP+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if test -n "$CP"; then
4713 ac_cv_prog_CP="$CP" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_CP="cp "
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4726 done
4727 done
4728 IFS=$as_save_IFS
4732 CP=$ac_cv_prog_CP
4733 if test -n "$CP"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4735 $as_echo "$CP" >&6; }
4736 else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4742 if test "$CP" = ""; then
4743 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4745 # Extract the first word of "mv", so it can be a program name with args.
4746 set dummy mv; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if test "${ac_cv_prog_MV+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$MV"; then
4753 ac_cv_prog_MV="$MV" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_MV="mv "
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4766 done
4767 done
4768 IFS=$as_save_IFS
4772 MV=$ac_cv_prog_MV
4773 if test -n "$MV"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4775 $as_echo "$MV" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4782 if test "$MV" = ""; then
4783 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4785 # Extract the first word of "echo", so it can be a program name with args.
4786 set dummy echo; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if test "${ac_cv_prog_ECHO+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 if test -n "$ECHO"; then
4793 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_prog_ECHO="echo "
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4806 done
4807 done
4808 IFS=$as_save_IFS
4812 ECHO=$ac_cv_prog_ECHO
4813 if test -n "$ECHO"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4815 $as_echo "$ECHO" >&6; }
4816 else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4822 if test "$ECHO" = ""; then
4823 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4825 # Extract the first word of "mkdir", so it can be a program name with args.
4826 set dummy mkdir; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$MKDIR"; then
4833 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_MKDIR="mkdir -p"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4848 IFS=$as_save_IFS
4852 MKDIR=$ac_cv_prog_MKDIR
4853 if test -n "$MKDIR"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4855 $as_echo "$MKDIR" >&6; }
4856 else
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4862 if test "$MKDIR" = ""; then
4863 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4865 # Extract the first word of "touch", so it can be a program name with args.
4866 set dummy touch; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$TOUCH"; then
4873 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_prog_TOUCH="touch "
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4886 done
4887 done
4888 IFS=$as_save_IFS
4892 TOUCH=$ac_cv_prog_TOUCH
4893 if test -n "$TOUCH"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4895 $as_echo "$TOUCH" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4902 if test "$TOUCH" = ""; then
4903 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4905 # Extract the first word of "sort", so it can be a program name with args.
4906 set dummy sort; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_prog_SORT+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$SORT"; then
4913 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_SORT="sort "
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
4932 SORT=$ac_cv_prog_SORT
4933 if test -n "$SORT"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4935 $as_echo "$SORT" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4942 if test "$SORT" = ""; then
4943 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4945 # Extract the first word of "uniq", so it can be a program name with args.
4946 set dummy uniq; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$UNIQ"; then
4953 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_UNIQ="uniq "
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 UNIQ=$ac_cv_prog_UNIQ
4973 if test -n "$UNIQ"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4975 $as_echo "$UNIQ" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 if test "$UNIQ" = ""; then
4983 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4985 # Extract the first word of "true", so it can be a program name with args.
4986 set dummy true; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_NOP+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$NOP"; then
4993 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_NOP="true "
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5008 IFS=$as_save_IFS
5012 NOP=$ac_cv_prog_NOP
5013 if test -n "$NOP"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5015 $as_echo "$NOP" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5022 if test "$NOP" = ""; then
5023 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5025 # Extract the first word of "cat", so it can be a program name with args.
5026 set dummy cat; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if test "${ac_cv_prog_CAT+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if test -n "$CAT"; then
5033 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_prog_CAT="cat "
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5046 done
5047 done
5048 IFS=$as_save_IFS
5052 CAT=$ac_cv_prog_CAT
5053 if test -n "$CAT"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5055 $as_echo "$CAT" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5062 if test "$CAT" = ""; then
5063 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5065 # Extract the first word of "bison", so it can be a program name with args.
5066 set dummy bison; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if test "${ac_cv_prog_BISON+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$BISON"; then
5073 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_prog_BISON="bison "
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5086 done
5087 done
5088 IFS=$as_save_IFS
5092 BISON=$ac_cv_prog_BISON
5093 if test -n "$BISON"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5095 $as_echo "$BISON" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5102 if test "$BISON" = ""; then
5103 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5105 # Extract the first word of "flex", so it can be a program name with args.
5106 set dummy flex; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if test "${ac_cv_prog_FLEX+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$FLEX"; then
5113 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_FLEX="flex "
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 FLEX=$ac_cv_prog_FLEX
5133 if test -n "$FLEX"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5135 $as_echo "$FLEX" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5142 if test "$FLEX" = ""; then
5143 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5145 # Extract the first word of "pngtopnm", so it can be a program name with args.
5146 set dummy pngtopnm; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$PNGTOPNM"; then
5153 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162 ac_cv_prog_PNGTOPNM="pngtopnm "
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5166 done
5167 done
5168 IFS=$as_save_IFS
5172 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5173 if test -n "$PNGTOPNM"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5175 $as_echo "$PNGTOPNM" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5182 if test "$PNGTOPNM" = ""; then
5183 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5185 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5186 set dummy ppmtoilbm; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$PPMTOILBM"; then
5193 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5206 done
5207 done
5208 IFS=$as_save_IFS
5212 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5213 if test -n "$PPMTOILBM"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5215 $as_echo "$PPMTOILBM" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5222 if test "$PPMTOILBM" = ""; then
5223 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5225 # Extract the first word of "sed", so it can be a program name with args.
5226 set dummy sed; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_SED+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$SED"; then
5233 ac_cv_prog_SED="$SED" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_prog_SED="sed "
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5246 done
5247 done
5248 IFS=$as_save_IFS
5252 SED=$ac_cv_prog_SED
5253 if test -n "$SED"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5255 $as_echo "$SED" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5262 if test "$SED" = ""; then
5263 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5265 # Extract the first word of "chmod", so it can be a program name with args.
5266 set dummy chmod; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$CHMOD"; then
5273 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_CHMOD="chmod "
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5288 IFS=$as_save_IFS
5292 CHMOD=$ac_cv_prog_CHMOD
5293 if test -n "$CHMOD"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5295 $as_echo "$CHMOD" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5302 if test "$CHMOD" = ""; then
5303 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5305 # Extract the first word of "patch", so it can be a program name with args.
5306 set dummy patch; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_PATCH+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$PATCH"; then
5313 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_PATCH="patch "
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5326 done
5327 done
5328 IFS=$as_save_IFS
5332 PATCH=$ac_cv_prog_PATCH
5333 if test -n "$PATCH"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5335 $as_echo "$PATCH" >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5342 if test "$PATCH" = ""; then
5343 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5350 if test -n "$PYTHON"; then
5351 # If the user set $PYTHON, use it and don't search something else.
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5353 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5354 prog="import sys, string
5355 # split strings by '.' and convert to numeric. Append some zeros
5356 # because we need at least 4 digits for the hex conversion.
5357 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5358 minverhex = 0
5359 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5360 sys.exit(sys.hexversion < minverhex)"
5361 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5362 ($PYTHON -c "$prog") >&5 2>&5
5363 ac_status=$?
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; then :
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5367 $as_echo "yes" >&6; }
5368 else
5369 as_fn_error $? "too old" "$LINENO" 5
5371 am_display_PYTHON=$PYTHON
5372 else
5373 # Otherwise, try each interpreter until we find one that satisfies
5374 # VERSION.
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5376 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5377 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5381 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
5382 test "$am_cv_pathless_PYTHON" = none && break
5383 prog="import sys, string
5384 # split strings by '.' and convert to numeric. Append some zeros
5385 # because we need at least 4 digits for the hex conversion.
5386 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5387 minverhex = 0
5388 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5389 sys.exit(sys.hexversion < minverhex)"
5390 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5391 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; then :
5395 break
5397 done
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5400 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5401 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5402 if test "$am_cv_pathless_PYTHON" = none; then
5403 PYTHON=:
5404 else
5405 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5406 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_path_PYTHON+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 case $PYTHON in
5413 [\\/]* | ?:[\\/]*)
5414 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
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
5433 esac
5435 PYTHON=$ac_cv_path_PYTHON
5436 if test -n "$PYTHON"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5438 $as_echo "$PYTHON" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5446 am_display_PYTHON=$am_cv_pathless_PYTHON
5450 if test "$PYTHON" = :; then
5451 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5452 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5456 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5457 if test "${am_cv_python_version+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5463 $as_echo "$am_cv_python_version" >&6; }
5464 PYTHON_VERSION=$am_cv_python_version
5468 PYTHON_PREFIX='${prefix}'
5470 PYTHON_EXEC_PREFIX='${exec_prefix}'
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5475 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5476 if test "${am_cv_python_platform+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5482 $as_echo "$am_cv_python_platform" >&6; }
5483 PYTHON_PLATFORM=$am_cv_python_platform
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5489 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5490 if test "${am_cv_python_pythondir+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5494 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5497 $as_echo "$am_cv_python_pythondir" >&6; }
5498 pythondir=$am_cv_python_pythondir
5502 pkgpythondir=\${pythondir}/$PACKAGE
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5506 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5507 if test "${am_cv_python_pyexecdir+set}" = set; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5511 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5514 $as_echo "$am_cv_python_pyexecdir" >&6; }
5515 pyexecdir=$am_cv_python_pyexecdir
5519 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5527 FOR=for
5529 IF=if
5531 TEST=test
5533 CMP=cmp
5537 # Check for some includes for the X11 HIDD and the kernel
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5541 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5542 if test "${ac_cv_path_GREP+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 if test -z "$GREP"; then
5546 ac_path_GREP_found=false
5547 # Loop through the user's path and test for each of PROGNAME-LIST
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_prog in grep ggrep; do
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5556 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5557 # Check for GNU ac_path_GREP and select it if it is found.
5558 # Check for GNU $ac_path_GREP
5559 case `"$ac_path_GREP" --version 2>&1` in
5560 *GNU*)
5561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5563 ac_count=0
5564 $as_echo_n 0123456789 >"conftest.in"
5565 while :
5567 cat "conftest.in" "conftest.in" >"conftest.tmp"
5568 mv "conftest.tmp" "conftest.in"
5569 cp "conftest.in" "conftest.nl"
5570 $as_echo 'GREP' >> "conftest.nl"
5571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5573 as_fn_arith $ac_count + 1 && ac_count=$as_val
5574 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5575 # Best one so far, save it but keep looking for a better one
5576 ac_cv_path_GREP="$ac_path_GREP"
5577 ac_path_GREP_max=$ac_count
5579 # 10*(2^10) chars as input seems more than enough
5580 test $ac_count -gt 10 && break
5581 done
5582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5583 esac
5585 $ac_path_GREP_found && break 3
5586 done
5587 done
5588 done
5589 IFS=$as_save_IFS
5590 if test -z "$ac_cv_path_GREP"; then
5591 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5593 else
5594 ac_cv_path_GREP=$GREP
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5599 $as_echo "$ac_cv_path_GREP" >&6; }
5600 GREP="$ac_cv_path_GREP"
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5604 $as_echo_n "checking for egrep... " >&6; }
5605 if test "${ac_cv_path_EGREP+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5609 then ac_cv_path_EGREP="$GREP -E"
5610 else
5611 if test -z "$EGREP"; then
5612 ac_path_EGREP_found=false
5613 # Loop through the user's path and test for each of PROGNAME-LIST
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_prog in egrep; do
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5622 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5623 # Check for GNU ac_path_EGREP and select it if it is found.
5624 # Check for GNU $ac_path_EGREP
5625 case `"$ac_path_EGREP" --version 2>&1` in
5626 *GNU*)
5627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5629 ac_count=0
5630 $as_echo_n 0123456789 >"conftest.in"
5631 while :
5633 cat "conftest.in" "conftest.in" >"conftest.tmp"
5634 mv "conftest.tmp" "conftest.in"
5635 cp "conftest.in" "conftest.nl"
5636 $as_echo 'EGREP' >> "conftest.nl"
5637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5639 as_fn_arith $ac_count + 1 && ac_count=$as_val
5640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5641 # Best one so far, save it but keep looking for a better one
5642 ac_cv_path_EGREP="$ac_path_EGREP"
5643 ac_path_EGREP_max=$ac_count
5645 # 10*(2^10) chars as input seems more than enough
5646 test $ac_count -gt 10 && break
5647 done
5648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5649 esac
5651 $ac_path_EGREP_found && break 3
5652 done
5653 done
5654 done
5655 IFS=$as_save_IFS
5656 if test -z "$ac_cv_path_EGREP"; then
5657 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5659 else
5660 ac_cv_path_EGREP=$EGREP
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5666 $as_echo "$ac_cv_path_EGREP" >&6; }
5667 EGREP="$ac_cv_path_EGREP"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5671 $as_echo_n "checking for ANSI C header files... " >&6; }
5672 if test "${ac_cv_header_stdc+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #include <stdlib.h>
5678 #include <stdarg.h>
5679 #include <string.h>
5680 #include <float.h>
5683 main ()
5687 return 0;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 ac_cv_header_stdc=yes
5692 else
5693 ac_cv_header_stdc=no
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 if test $ac_cv_header_stdc = yes; then
5698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include <string.h>
5703 _ACEOF
5704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5705 $EGREP "memchr" >/dev/null 2>&1; then :
5707 else
5708 ac_cv_header_stdc=no
5710 rm -f conftest*
5714 if test $ac_cv_header_stdc = yes; then
5715 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 #include <stdlib.h>
5720 _ACEOF
5721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5722 $EGREP "free" >/dev/null 2>&1; then :
5724 else
5725 ac_cv_header_stdc=no
5727 rm -f conftest*
5731 if test $ac_cv_header_stdc = yes; then
5732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5733 if test "$cross_compiling" = yes; then :
5735 else
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <ctype.h>
5739 #include <stdlib.h>
5740 #if ((' ' & 0x0FF) == 0x020)
5741 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5742 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5743 #else
5744 # define ISLOWER(c) \
5745 (('a' <= (c) && (c) <= 'i') \
5746 || ('j' <= (c) && (c) <= 'r') \
5747 || ('s' <= (c) && (c) <= 'z'))
5748 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5749 #endif
5751 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5753 main ()
5755 int i;
5756 for (i = 0; i < 256; i++)
5757 if (XOR (islower (i), ISLOWER (i))
5758 || toupper (i) != TOUPPER (i))
5759 return 2;
5760 return 0;
5762 _ACEOF
5763 if ac_fn_c_try_run "$LINENO"; then :
5765 else
5766 ac_cv_header_stdc=no
5768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5769 conftest.$ac_objext conftest.beam conftest.$ac_ext
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5775 $as_echo "$ac_cv_header_stdc" >&6; }
5776 if test $ac_cv_header_stdc = yes; then
5778 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5782 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5784 inttypes.h stdint.h unistd.h
5785 do :
5786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5787 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5789 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5790 cat >>confdefs.h <<_ACEOF
5791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5792 _ACEOF
5796 done
5799 for ac_header in sys/ipc.h sys/shm.h \
5800 sys/mmap.h sys/mman.h sysexits.h \
5801 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5803 do :
5804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5805 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5807 cat >>confdefs.h <<_ACEOF
5808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5809 _ACEOF
5813 done
5816 for ac_header in sys/mount.h
5817 do :
5818 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5820 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5821 cat >>confdefs.h <<_ACEOF
5822 #define HAVE_SYS_MOUNT_H 1
5823 _ACEOF
5827 done
5830 ac_header_dirent=no
5831 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5832 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5834 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5835 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 #include <sys/types.h>
5841 #include <$ac_hdr>
5844 main ()
5846 if ((DIR *) 0)
5847 return 0;
5849 return 0;
5851 _ACEOF
5852 if ac_fn_c_try_compile "$LINENO"; then :
5853 eval "$as_ac_Header=yes"
5854 else
5855 eval "$as_ac_Header=no"
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 eval ac_res=\$$as_ac_Header
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5861 $as_echo "$ac_res" >&6; }
5862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5863 cat >>confdefs.h <<_ACEOF
5864 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5865 _ACEOF
5867 ac_header_dirent=$ac_hdr; break
5870 done
5871 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5872 if test $ac_header_dirent = dirent.h; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5874 $as_echo_n "checking for library containing opendir... " >&6; }
5875 if test "${ac_cv_search_opendir+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 ac_func_search_save_LIBS=$LIBS
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5882 /* Override any GCC internal prototype to avoid an error.
5883 Use char because int might match the return type of a GCC
5884 builtin and then its argument prototype would still apply. */
5885 #ifdef __cplusplus
5886 extern "C"
5887 #endif
5888 char opendir ();
5890 main ()
5892 return opendir ();
5894 return 0;
5896 _ACEOF
5897 for ac_lib in '' dir; do
5898 if test -z "$ac_lib"; then
5899 ac_res="none required"
5900 else
5901 ac_res=-l$ac_lib
5902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5904 if ac_fn_c_try_link "$LINENO"; then :
5905 ac_cv_search_opendir=$ac_res
5907 rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext
5909 if test "${ac_cv_search_opendir+set}" = set; then :
5910 break
5912 done
5913 if test "${ac_cv_search_opendir+set}" = set; then :
5915 else
5916 ac_cv_search_opendir=no
5918 rm conftest.$ac_ext
5919 LIBS=$ac_func_search_save_LIBS
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5922 $as_echo "$ac_cv_search_opendir" >&6; }
5923 ac_res=$ac_cv_search_opendir
5924 if test "$ac_res" != no; then :
5925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5929 else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5931 $as_echo_n "checking for library containing opendir... " >&6; }
5932 if test "${ac_cv_search_opendir+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 ac_func_search_save_LIBS=$LIBS
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5939 /* Override any GCC internal prototype to avoid an error.
5940 Use char because int might match the return type of a GCC
5941 builtin and then its argument prototype would still apply. */
5942 #ifdef __cplusplus
5943 extern "C"
5944 #endif
5945 char opendir ();
5947 main ()
5949 return opendir ();
5951 return 0;
5953 _ACEOF
5954 for ac_lib in '' x; do
5955 if test -z "$ac_lib"; then
5956 ac_res="none required"
5957 else
5958 ac_res=-l$ac_lib
5959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5961 if ac_fn_c_try_link "$LINENO"; then :
5962 ac_cv_search_opendir=$ac_res
5964 rm -f core conftest.err conftest.$ac_objext \
5965 conftest$ac_exeext
5966 if test "${ac_cv_search_opendir+set}" = set; then :
5967 break
5969 done
5970 if test "${ac_cv_search_opendir+set}" = set; then :
5972 else
5973 ac_cv_search_opendir=no
5975 rm conftest.$ac_ext
5976 LIBS=$ac_func_search_save_LIBS
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5979 $as_echo "$ac_cv_search_opendir" >&6; }
5980 ac_res=$ac_cv_search_opendir
5981 if test "$ac_res" != no; then :
5982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5989 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5990 if test "${ac_cv_header_stat_broken+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #include <sys/types.h>
5996 #include <sys/stat.h>
5998 #if defined S_ISBLK && defined S_IFDIR
5999 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6000 #endif
6002 #if defined S_ISBLK && defined S_IFCHR
6003 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6004 #endif
6006 #if defined S_ISLNK && defined S_IFREG
6007 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6008 #endif
6010 #if defined S_ISSOCK && defined S_IFREG
6011 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6012 #endif
6014 _ACEOF
6015 if ac_fn_c_try_compile "$LINENO"; then :
6016 ac_cv_header_stat_broken=no
6017 else
6018 ac_cv_header_stat_broken=yes
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6023 $as_echo "$ac_cv_header_stat_broken" >&6; }
6024 if test $ac_cv_header_stat_broken = yes; then
6026 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6031 $as_echo_n "checking for ANSI C header files... " >&6; }
6032 if test "${ac_cv_header_stdc+set}" = set; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 #include <stdlib.h>
6038 #include <stdarg.h>
6039 #include <string.h>
6040 #include <float.h>
6043 main ()
6047 return 0;
6049 _ACEOF
6050 if ac_fn_c_try_compile "$LINENO"; then :
6051 ac_cv_header_stdc=yes
6052 else
6053 ac_cv_header_stdc=no
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 if test $ac_cv_header_stdc = yes; then
6058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 #include <string.h>
6063 _ACEOF
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "memchr" >/dev/null 2>&1; then :
6067 else
6068 ac_cv_header_stdc=no
6070 rm -f conftest*
6074 if test $ac_cv_header_stdc = yes; then
6075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6078 #include <stdlib.h>
6080 _ACEOF
6081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6082 $EGREP "free" >/dev/null 2>&1; then :
6084 else
6085 ac_cv_header_stdc=no
6087 rm -f conftest*
6091 if test $ac_cv_header_stdc = yes; then
6092 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6093 if test "$cross_compiling" = yes; then :
6095 else
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 #include <ctype.h>
6099 #include <stdlib.h>
6100 #if ((' ' & 0x0FF) == 0x020)
6101 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6102 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6103 #else
6104 # define ISLOWER(c) \
6105 (('a' <= (c) && (c) <= 'i') \
6106 || ('j' <= (c) && (c) <= 'r') \
6107 || ('s' <= (c) && (c) <= 'z'))
6108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6109 #endif
6111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6113 main ()
6115 int i;
6116 for (i = 0; i < 256; i++)
6117 if (XOR (islower (i), ISLOWER (i))
6118 || toupper (i) != TOUPPER (i))
6119 return 2;
6120 return 0;
6122 _ACEOF
6123 if ac_fn_c_try_run "$LINENO"; then :
6125 else
6126 ac_cv_header_stdc=no
6128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6129 conftest.$ac_objext conftest.beam conftest.$ac_ext
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6135 $as_echo "$ac_cv_header_stdc" >&6; }
6136 if test $ac_cv_header_stdc = yes; then
6138 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6143 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6144 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 #include <sys/types.h>
6150 #include <sys/wait.h>
6151 #ifndef WEXITSTATUS
6152 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6153 #endif
6154 #ifndef WIFEXITED
6155 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6156 #endif
6159 main ()
6161 int s;
6162 wait (&s);
6163 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6165 return 0;
6167 _ACEOF
6168 if ac_fn_c_try_compile "$LINENO"; then :
6169 ac_cv_header_sys_wait_h=yes
6170 else
6171 ac_cv_header_sys_wait_h=no
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6176 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6177 if test $ac_cv_header_sys_wait_h = yes; then
6179 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6184 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6185 if test "${ac_cv_header_time+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 #include <sys/types.h>
6191 #include <sys/time.h>
6192 #include <time.h>
6195 main ()
6197 if ((struct tm *) 0)
6198 return 0;
6200 return 0;
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6204 ac_cv_header_time=yes
6205 else
6206 ac_cv_header_time=no
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6211 $as_echo "$ac_cv_header_time" >&6; }
6212 if test $ac_cv_header_time = yes; then
6214 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6218 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6219 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6223 _ACEOF
6226 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6231 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6232 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6236 _ACEOF
6239 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6241 else
6242 case " $LIBOBJS " in
6243 *" fileblocks.$ac_objext "* ) ;;
6244 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6246 esac
6251 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6252 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6254 cat >>confdefs.h <<_ACEOF
6255 #define HAVE_STRUCT_STAT_ST_RDEV 1
6256 _ACEOF
6259 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6265 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6266 if test "${ac_cv_struct_tm+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #include <sys/types.h>
6272 #include <time.h>
6275 main ()
6277 struct tm tm;
6278 int *p = &tm.tm_sec;
6279 return !p;
6281 return 0;
6283 _ACEOF
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285 ac_cv_struct_tm=time.h
6286 else
6287 ac_cv_struct_tm=sys/time.h
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6292 $as_echo "$ac_cv_struct_tm" >&6; }
6293 if test $ac_cv_struct_tm = sys/time.h; then
6295 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6299 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6300 #include <$ac_cv_struct_tm>
6303 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6305 cat >>confdefs.h <<_ACEOF
6306 #define HAVE_STRUCT_TM_TM_ZONE 1
6307 _ACEOF
6312 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6314 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6316 else
6317 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6319 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6320 ac_have_decl=1
6321 else
6322 ac_have_decl=0
6325 cat >>confdefs.h <<_ACEOF
6326 #define HAVE_DECL_TZNAME $ac_have_decl
6327 _ACEOF
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6330 $as_echo_n "checking for tzname... " >&6; }
6331 if test "${ac_cv_var_tzname+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 #include <time.h>
6337 #if !HAVE_DECL_TZNAME
6338 extern char *tzname[];
6339 #endif
6342 main ()
6344 return tzname[0][0];
6346 return 0;
6348 _ACEOF
6349 if ac_fn_c_try_link "$LINENO"; then :
6350 ac_cv_var_tzname=yes
6351 else
6352 ac_cv_var_tzname=no
6354 rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6358 $as_echo "$ac_cv_var_tzname" >&6; }
6359 if test $ac_cv_var_tzname = yes; then
6361 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6366 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6367 if test "x$ac_cv_type_off_t" = x""yes; then :
6369 else
6371 cat >>confdefs.h <<_ACEOF
6372 #define off_t long int
6373 _ACEOF
6377 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6378 if test "x$ac_cv_type_pid_t" = x""yes; then :
6380 else
6382 cat >>confdefs.h <<_ACEOF
6383 #define pid_t int
6384 _ACEOF
6388 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6389 if test "x$ac_cv_type_size_t" = x""yes; then :
6391 else
6393 cat >>confdefs.h <<_ACEOF
6394 #define size_t unsigned int
6395 _ACEOF
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6400 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6401 if test "${ac_cv_type_uid_t+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 #include <sys/types.h>
6408 _ACEOF
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410 $EGREP "uid_t" >/dev/null 2>&1; then :
6411 ac_cv_type_uid_t=yes
6412 else
6413 ac_cv_type_uid_t=no
6415 rm -f conftest*
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6419 $as_echo "$ac_cv_type_uid_t" >&6; }
6420 if test $ac_cv_type_uid_t = no; then
6422 $as_echo "#define uid_t int" >>confdefs.h
6425 $as_echo "#define gid_t int" >>confdefs.h
6430 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6431 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6433 cat >>confdefs.h <<_ACEOF
6434 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6435 _ACEOF
6441 # Look for some functions
6442 for ac_func in getpagesize kqueue statfs statvfs \
6443 clone kse_create rfork_thread thr_create sa_register \
6444 getcontext makecontext setcontext sigaltstack swapcontext
6445 do :
6446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6449 cat >>confdefs.h <<_ACEOF
6450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6451 _ACEOF
6454 done
6460 for ac_header in $ac_header_list
6461 do :
6462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6466 cat >>confdefs.h <<_ACEOF
6467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6468 _ACEOF
6472 done
6481 for ac_func in getpagesize
6482 do :
6483 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6484 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6485 cat >>confdefs.h <<_ACEOF
6486 #define HAVE_GETPAGESIZE 1
6487 _ACEOF
6490 done
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6493 $as_echo_n "checking for working mmap... " >&6; }
6494 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test "$cross_compiling" = yes; then :
6498 ac_cv_func_mmap_fixed_mapped=no
6499 else
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 $ac_includes_default
6503 /* malloc might have been renamed as rpl_malloc. */
6504 #undef malloc
6506 /* Thanks to Mike Haertel and Jim Avera for this test.
6507 Here is a matrix of mmap possibilities:
6508 mmap private not fixed
6509 mmap private fixed at somewhere currently unmapped
6510 mmap private fixed at somewhere already mapped
6511 mmap shared not fixed
6512 mmap shared fixed at somewhere currently unmapped
6513 mmap shared fixed at somewhere already mapped
6514 For private mappings, we should verify that changes cannot be read()
6515 back from the file, nor mmap's back from the file at a different
6516 address. (There have been systems where private was not correctly
6517 implemented like the infamous i386 svr4.0, and systems where the
6518 VM page cache was not coherent with the file system buffer cache
6519 like early versions of FreeBSD and possibly contemporary NetBSD.)
6520 For shared mappings, we should conversely verify that changes get
6521 propagated back to all the places they're supposed to be.
6523 Grep wants private fixed already mapped.
6524 The main things grep needs to know about mmap are:
6525 * does it exist and is it safe to write into the mmap'd area
6526 * how to use it (BSD variants) */
6528 #include <fcntl.h>
6529 #include <sys/mman.h>
6531 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6532 char *malloc ();
6533 #endif
6535 /* This mess was copied from the GNU getpagesize.h. */
6536 #ifndef HAVE_GETPAGESIZE
6537 # ifdef _SC_PAGESIZE
6538 # define getpagesize() sysconf(_SC_PAGESIZE)
6539 # else /* no _SC_PAGESIZE */
6540 # ifdef HAVE_SYS_PARAM_H
6541 # include <sys/param.h>
6542 # ifdef EXEC_PAGESIZE
6543 # define getpagesize() EXEC_PAGESIZE
6544 # else /* no EXEC_PAGESIZE */
6545 # ifdef NBPG
6546 # define getpagesize() NBPG * CLSIZE
6547 # ifndef CLSIZE
6548 # define CLSIZE 1
6549 # endif /* no CLSIZE */
6550 # else /* no NBPG */
6551 # ifdef NBPC
6552 # define getpagesize() NBPC
6553 # else /* no NBPC */
6554 # ifdef PAGESIZE
6555 # define getpagesize() PAGESIZE
6556 # endif /* PAGESIZE */
6557 # endif /* no NBPC */
6558 # endif /* no NBPG */
6559 # endif /* no EXEC_PAGESIZE */
6560 # else /* no HAVE_SYS_PARAM_H */
6561 # define getpagesize() 8192 /* punt totally */
6562 # endif /* no HAVE_SYS_PARAM_H */
6563 # endif /* no _SC_PAGESIZE */
6565 #endif /* no HAVE_GETPAGESIZE */
6568 main ()
6570 char *data, *data2, *data3;
6571 const char *cdata2;
6572 int i, pagesize;
6573 int fd, fd2;
6575 pagesize = getpagesize ();
6577 /* First, make a file with some known garbage in it. */
6578 data = (char *) malloc (pagesize);
6579 if (!data)
6580 return 1;
6581 for (i = 0; i < pagesize; ++i)
6582 *(data + i) = rand ();
6583 umask (0);
6584 fd = creat ("conftest.mmap", 0600);
6585 if (fd < 0)
6586 return 2;
6587 if (write (fd, data, pagesize) != pagesize)
6588 return 3;
6589 close (fd);
6591 /* Next, check that the tail of a page is zero-filled. File must have
6592 non-zero length, otherwise we risk SIGBUS for entire page. */
6593 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6594 if (fd2 < 0)
6595 return 4;
6596 cdata2 = "";
6597 if (write (fd2, cdata2, 1) != 1)
6598 return 5;
6599 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6600 if (data2 == MAP_FAILED)
6601 return 6;
6602 for (i = 0; i < pagesize; ++i)
6603 if (*(data2 + i))
6604 return 7;
6605 close (fd2);
6606 if (munmap (data2, pagesize))
6607 return 8;
6609 /* Next, try to mmap the file at a fixed address which already has
6610 something else allocated at it. If we can, also make sure that
6611 we see the same garbage. */
6612 fd = open ("conftest.mmap", O_RDWR);
6613 if (fd < 0)
6614 return 9;
6615 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6616 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6617 return 10;
6618 for (i = 0; i < pagesize; ++i)
6619 if (*(data + i) != *(data2 + i))
6620 return 11;
6622 /* Finally, make sure that changes to the mapped area do not
6623 percolate back to the file as seen by read(). (This is a bug on
6624 some variants of i386 svr4.0.) */
6625 for (i = 0; i < pagesize; ++i)
6626 *(data2 + i) = *(data2 + i) + 1;
6627 data3 = (char *) malloc (pagesize);
6628 if (!data3)
6629 return 12;
6630 if (read (fd, data3, pagesize) != pagesize)
6631 return 13;
6632 for (i = 0; i < pagesize; ++i)
6633 if (*(data + i) != *(data3 + i))
6634 return 14;
6635 close (fd);
6636 return 0;
6638 _ACEOF
6639 if ac_fn_c_try_run "$LINENO"; then :
6640 ac_cv_func_mmap_fixed_mapped=yes
6641 else
6642 ac_cv_func_mmap_fixed_mapped=no
6644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6645 conftest.$ac_objext conftest.beam conftest.$ac_ext
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6650 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6651 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6653 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6656 rm -f conftest.mmap conftest.txt
6661 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6662 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6663 aros_config_ldflags=""
6665 aros_shared_default=yes
6667 aros_shared_cflags="-fPIC"
6668 aros_shared_aflags=""
6669 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6670 aros_kernel_ldflags="-Wl,-rpath,./lib"
6672 aros_kernel_ar_flags="cr"
6673 aros_target_ar_flags="cr"
6674 aros_target_nm_flags="-C -ul"
6675 aros_target_strip_flags="--strip-unneeded -R.comment"
6677 aros_compiler_libs=
6678 aros_arch_libs=
6680 aros_target_genmap="-Wl,-Map -Xlinker"
6682 # Native flavour stuff
6683 aros_serial_debug="0"
6685 # Palm native flavour stuff
6686 aros_palm_debug_hack="0"
6688 # Unix flavour stuff
6689 aros_nesting_supervisor="0"
6691 # Collect-aros stuff: "-ius" to ignore undefined symbols
6692 ignore_undefined_symbols=""
6694 # Check for X11 by default
6695 need_x11="auto"
6697 #-----------------------------------------------------------------------------
6700 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6701 # it switched on by default, and we use the host compiler, so it compiles AROS
6702 # code with this enabled resulting in link failures as we don't have support
6703 # for it.
6705 # We use two methods to disable it. For the host compiler (used to compile
6706 # some hosted modules), we test to see if the compiler supports stack
6707 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6708 # work on all platforms.
6710 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6711 # (this is done unconditionally, as it should have no effect on compilers
6712 # without the stack protection feature). This may be specific to the way that
6713 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6714 # strong enough to disable it in a generic way though, so we'll live with it
6715 # until another vendor ships GCC with it enabled in a different way, and deal
6716 # with it then.
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6720 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6721 save_cflags="$CFLAGS"
6722 CFLAGS="$CFLAGS -fno-stack-protector"
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6727 main ()
6731 return 0;
6733 _ACEOF
6734 if ac_fn_c_try_compile "$LINENO"; then :
6735 use_no_stack_protector="yes"
6736 else
6737 use_no_stack_protector="no"
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6741 $as_echo "$use_no_stack_protector" >&6; }
6742 if test "x-$use_no_stack_protector" = "x-yes" ; then
6743 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6745 CFLAGS="$save_cflags"
6747 #-----------------------------------------------------------------------------
6749 # Disable pointer-signedness warnings if the compiler recognises the option
6750 # (this only works for the host compiler at the moment)
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6753 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6754 save_cflags="$CFLAGS"
6755 CFLAGS="$CFLAGS -Wno-pointer-sign"
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6760 main ()
6764 return 0;
6766 _ACEOF
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768 use_no_sign_warning="yes"
6769 else
6770 use_no_sign_warning="no"
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6774 $as_echo "$use_no_sign_warning" >&6; }
6775 if test "x-$use_no_sign_warning" = "x-yes" ; then
6776 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6778 CFLAGS="$save_cflags"
6780 #-----------------------------------------------------------------------------
6782 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6785 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6786 save_cflags="$CFLAGS"
6787 CFLAGS="$CFLAGS -fgnu89-inline"
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6792 main ()
6796 return 0;
6798 _ACEOF
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 use_gnu89_inline="yes"
6801 else
6802 use_gnu89_inline="no"
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6806 $as_echo "$use_gnu89_inline" >&6; }
6807 if test "x-$use_gnu89_inline" = "x-yes" ; then
6808 gnu89_inline="-fgnu89-inline"
6810 CFLAGS="$save_cflags"
6812 #-----------------------------------------------------------------------------
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6815 $as_echo_n "checking for type of build... " >&6; }
6816 # Check whether --enable-build_type was given.
6817 if test "${enable_build_type+set}" = set; then :
6818 enableval=$enable_build_type; build_type=$enableval
6819 else
6820 build_type="personal"
6824 if test "$build_type" = "nightly"; then
6825 build_type_string="NIGHTLY"
6826 elif test "$build_type" = "snapshot"; then
6827 build_type_string="SNAPSHOT"
6828 elif test "$build_type" = "milestone"; then
6829 build_type_string="MILESTONE"
6830 elif test "$build_type" = "release"; then
6831 build_type_string="RELEASE"
6832 else
6833 build_type_string="PERSONAL"
6834 build_type="personal"
6837 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6840 $as_echo "$build_type" >&6; }
6842 #-----------------------------------------------------------------------------
6843 all_debug_types="messages stack modules mungwall symbols"
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6846 $as_echo_n "checking which debug types to enable... " >&6; }
6847 # Check whether --enable-debug was given.
6848 if test "${enable_debug+set}" = set; then :
6849 enableval=$enable_debug; debug="$enableval"
6850 else
6851 debug=""
6855 if test "$debug" = "" -o "$debug" = "no"; then
6856 debug="none"
6857 elif test "$debug" = "yes"; then
6858 debug="all"
6861 if test "$debug" = "all" ; then
6862 debug="messages stack modules symbols"
6863 for d in $all_debug_types; do
6864 export aros_${d}_debug="1"
6865 done
6866 else
6867 for d in $all_debug_types; do
6868 export aros_${d}_debug="0"
6869 done
6872 if test "$debug" != "none"; then
6873 debug=`echo $debug | sed s/,/\ /g`
6874 for d in $debug; do
6875 found="0"
6876 for d2 in $all_debug_types; do
6877 if test "$d2" = "$d"; then
6878 found="1"
6879 break
6881 done
6882 if test "$found" = "0"; then
6883 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6885 export aros_${d}_debug="1"
6886 done
6887 aros_debug="yes"
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6890 $as_echo "$debug" >&6; }
6892 if test "$aros_messages_debug" = "1"; then
6893 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6894 else
6895 aros_messages_debug=""
6897 if test "$aros_symbols_debug" = "1"; then
6898 aros_symbols_debug="-g"
6899 else
6900 aros_symbols_debug=""
6903 # These are the flags to pass when compiling debugged programs
6904 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6905 aros_debug_aflags=""
6906 aros_debug_ldflags="$aros_symbols_debug"
6908 #-----------------------------------------------------------------------------
6909 # Checking if we should build crosstools..
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6911 $as_echo_n "checking whether to build crosstools... " >&6; }
6912 # Check whether --enable-crosstools was given.
6913 if test "${enable_crosstools+set}" = set; then :
6914 enableval=$enable_crosstools; crosstools="$enableval"
6915 else
6916 crosstools="no"
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6920 $as_echo "$crosstools" >&6; }
6922 #-----------------------------------------------------------------------------
6923 # Checking for distcc and ccache.
6925 # Always apply the transforms in this particular order. Basically you should
6926 # always run 'ccache distcc compiler' in that order for the best performance.
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6929 $as_echo_n "checking whether to enable distcc... " >&6; }
6930 # Check whether --enable-distcc was given.
6931 if test "${enable_distcc+set}" = set; then :
6932 enableval=$enable_distcc; distcc="$enableval"
6933 else
6934 distcc="no"
6937 if test "$distcc" != "" -a "$distcc" != "no"; then
6938 # AC_CHECK_PROG will print out the result in this case
6939 # Extract the first word of "distcc", so it can be a program name with args.
6940 set dummy distcc; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_path_DISTCC+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 case $DISTCC in
6947 [\\/]* | ?:[\\/]*)
6948 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6966 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6968 esac
6970 DISTCC=$ac_cv_path_DISTCC
6971 if test -n "$DISTCC"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6973 $as_echo "$DISTCC" >&6; }
6974 else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6986 $as_echo_n "checking whether to enable ccache... " >&6; }
6987 # Check whether --enable-ccache was given.
6988 if test "${enable_ccache+set}" = set; then :
6989 enableval=$enable_ccache; ccache="$enableval"
6990 else
6991 ccache="no"
6994 if test "$ccache" != "" -a "$ccache" != "no"; then
6995 # AC_CHECK_PROG will print out the result in this case
6996 # Extract the first word of "ccache", so it can be a program name with args.
6997 set dummy ccache; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if test "${ac_cv_prog_CCACHE+set}" = set; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$CCACHE"; then
7004 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_prog_CCACHE="ccache"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7017 done
7018 done
7019 IFS=$as_save_IFS
7023 CCACHE=$ac_cv_prog_CCACHE
7024 if test -n "$CCACHE"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7026 $as_echo "$CCACHE" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7038 #-----------------------------------------------------------------------------
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7040 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7042 # Check whether --with-gcc-version was given.
7043 if test "${with_gcc_version+set}" = set; then :
7044 withval=$with_gcc_version; target_tool_version="$withval"
7045 else
7046 target_tool_version="default"
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7050 $as_echo "$target_tool_version" >&6; }
7052 #-----------------------------------------------------------------------------
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7054 $as_echo_n "checking what optimization flags to use... " >&6; }
7056 # Check whether --with-optimization was given.
7057 if test "${with_optimization+set}" = set; then :
7058 withval=$with_optimization; optimization="$withval"
7059 else
7060 optimization="unknown"
7063 if test "$optimization" = "unknown"; then
7064 if test "$debug" != "none"; then
7065 optimization="-O0"
7066 else
7067 optimization="-O2"
7070 aros_config_cflags="$aros_config_cflags $optimization"
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7072 $as_echo "$optimization" >&6; }
7074 #-----------------------------------------------------------------------------
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7076 $as_echo_n "checking what paranoia flags to use... " >&6; }
7078 # Check whether --with-paranoia was given.
7079 if test "${with_paranoia+set}" = set; then :
7080 withval=$with_paranoia; paranoia_flags="$withval"
7081 else
7082 paranoia_flags="default"
7085 if test "$paranoia_flags" = "default"; then
7086 paranoia_flags=""
7087 else if test "$paranoia_flags" = "yes"; then
7088 paranoia_flags="-Wall -Werror"
7089 fi fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7091 $as_echo "$paranoia_flags" >&6; }
7092 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7094 #-----------------------------------------------------------------------------
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7096 $as_echo_n "checking what target variant to enable... " >&6; }
7097 # Check whether --enable-target_variant was given.
7098 if test "${enable_target_variant+set}" = set; then :
7099 enableval=$enable_target_variant; target_variant=$enableval
7100 else
7101 target_variant=""
7104 if test "$target_variant" = ""; then
7105 aros_target_variant=""
7106 aros_target_suffix=""
7107 enableval="none"
7108 else
7109 aros_target_variant="$target_variant"
7110 aros_target_suffix="-$target_variant"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7113 $as_echo "$enableval" >&6; }
7115 #-----------------------------------------------------------------------------
7116 # Target-specific defaults. You can override then on a per-target basis.
7118 # Bootloader name. Currently used by PC target.
7119 target_bootloader="none"
7121 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7122 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7123 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7124 if test "$crosstools" != "yes"; then
7125 target_tool_prefix=${target_cpu}-elf-
7126 else
7127 target_tool_prefix=${target_cpu}-aros-
7130 #-----------------------------------------------------------------------------
7131 # Additional options for some specific targets
7133 case "$aros_target_variant" in
7134 ios)
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7136 $as_echo_n "checking XCode path... " >&6; }
7138 # Check whether --with-xcode was given.
7139 if test "${with_xcode+set}" = set; then :
7140 withval=$with_xcode; aros_xcode_path="$withval"
7141 else
7142 aros_xcode_path="/Developer"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7146 $as_echo "$aros_xcode_path" >&6; }
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7149 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7151 # Check whether --with-ios-version was given.
7152 if test "${with_ios_version+set}" = set; then :
7153 withval=$with_ios_version; aros_ios_version="$withval"
7154 else
7155 aros_ios_version="3.0"
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7159 $as_echo "$aros_ios_version" >&6; }
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7162 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7164 # Check whether --with-ios-sdk was given.
7165 if test "${with_ios_sdk+set}" = set; then :
7166 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7167 else
7168 aros_ios_sdk="4.1"
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7172 $as_echo "$aros_ios_sdk" >&6; }
7176 "android")
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7178 $as_echo_n "checking Android SDK path... " >&6; }
7180 # Check whether --with-sdk was given.
7181 if test "${with_sdk+set}" = set; then :
7182 withval=$with_sdk; aros_android_sdk="$withval"
7183 else
7184 aros_android_sdk=$default_android_sdk
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7188 $as_echo "$aros_android_sdk" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7191 $as_echo_n "checking Android NDK path... " >&6; }
7193 # Check whether --with-ndk was given.
7194 if test "${with_ndk+set}" = set; then :
7195 withval=$with_ndk; aros_android_ndk="$withval"
7196 else
7197 aros_android_ndk="none"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7201 $as_echo "$aros_android_ndk" >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7204 $as_echo_n "checking what Android SDK version to use... " >&6; }
7206 # Check whether --with-sdk-version was given.
7207 if test "${with_sdk_version+set}" = set; then :
7208 withval=$with_sdk_version; aros_sdk_version="$withval"
7209 else
7210 aros_sdk_version="8"
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7214 $as_echo "$aros_sdk_version" >&6; }
7216 if test "$aros_android_ndk" != "none"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7218 $as_echo_n "checking what Android NDK version to use... " >&6; }
7220 # Check whether --with-ndk-version was given.
7221 if test "${with_ndk_version+set}" = set; then :
7222 withval=$with_ndk_version; aros_ndk_version="$withval"
7223 else
7224 aros_ndk_version="9"
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7228 $as_echo "$aros_ndk_version" >&6; }
7231 export PATH="$aros_android_sdk/tools:$PATH"
7232 # Extract the first word of "$android_tool", so it can be a program name with args.
7233 set dummy $android_tool; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if test "${ac_cv_path_android_tool+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 case $android_tool in
7240 [\\/]* | ?:[\\/]*)
7241 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7255 done
7256 done
7257 IFS=$as_save_IFS
7260 esac
7262 android_tool=$ac_cv_path_android_tool
7263 if test -n "$android_tool"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7265 $as_echo "$android_tool" >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7272 if test "$android_tool" = ""; then
7273 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7276 # Extract the first word of "ant", so it can be a program name with args.
7277 set dummy ant; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if test "${ac_cv_path_ant+set}" = set; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 case $ant in
7284 [\\/]* | ?:[\\/]*)
7285 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7299 done
7300 done
7301 IFS=$as_save_IFS
7304 esac
7306 ant=$ac_cv_path_ant
7307 if test -n "$ant"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7309 $as_echo "$ant" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7316 if test "$ant" = ""; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7318 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7321 if test "$host_os" = "mingw32"; then
7322 android_tool="cmd //c $android_tool"
7326 esac
7328 #-----------------------------------------------------------------------------
7329 # This is the target configuration switch.
7330 case "$target_os" in
7331 linux*)
7332 aros_target_arch="linux"
7333 aros_target_family="unix"
7334 case "$target_cpu" in
7335 *m68k*)
7336 aros_target_cpu="m68k"
7337 aros_object_format="m68kelf"
7338 aros_flavour="emulcompat"
7339 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7340 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7341 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7342 gcc_target_cpu="mc68000"
7344 *i?86*)
7345 aros_target_cpu="i386"
7346 aros_object_format="elf_i386"
7347 aros_flavour="emulation"
7348 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7349 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7350 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7351 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7352 aros_config_ldflags="-m32 -march=i486"
7353 aros_kernel_ldflags="-melf_i386"
7354 aros_default_wbdepth=8
7355 gcc_target_cpu="i386"
7356 pci_hidd_target="hidd-pci-linux"
7357 android_tool_dir_prefix="x86"
7358 android_tool_prefix="i686-android-linux"
7359 android_ndk_arch="x86"
7361 *x86_64*)
7362 aros_target_cpu="x86_64"
7363 aros_object_format="elf_x86_64"
7364 aros_flavour="emulation"
7365 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7366 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7367 aros_default_wbdepth=8
7368 pci_hidd_target="hidd-pci-linux"
7370 *powerpc*)
7371 aros_target_cpu="ppc"
7372 aros_object_format="elf32ppc"
7373 aros_flavour="emulation"
7374 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7375 aros_default_wbdepth=8
7376 gcc_target_cpu="ppc"
7378 # TODO
7379 # Same as powerpc, but I need this for the nightly build to work again.
7380 # Actually, the nightly should be made working with powerpc target.
7381 # That just was too much work for the moment, another week or two.
7382 *ppc*)
7383 aros_target_cpu="ppc"
7384 aros_object_format="elf32ppc"
7385 aros_flavour="emulation"
7386 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7387 aros_default_wbdepth=8
7388 gcc_target_cpu="ppc"
7390 *arm*)
7391 aros_target_cpu="arm"
7392 aros_object_format="armelf_linux_eabi"
7393 aros_flavour="emulation"
7394 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7395 gcc_target_cpu="arm"
7396 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing -fno-omit-frame-pointer"
7397 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7398 aros_arch_libs="-laeabi"
7399 android_tool_dir_prefix="arm-linux-androideabi"
7400 android_tool_prefix="arm-linux-androideabi"
7401 android_ndk_arch="arm"
7404 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7406 esac
7407 case "$aros_target_variant" in
7408 android)
7410 if test "$android_ndk_arch" = ""; then
7411 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7414 aros_android_level=android-$aros_sdk_version
7415 aros_default_wbwidth=320
7416 aros_default_wbheight=480
7417 if test "$aros_android_ndk" = "none"; then
7418 aros_kernel_cflags="-mandroid"
7419 aros_kernel_ldflags="-mandroid"
7420 CFLAGS="-mandroid"
7421 else
7422 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7423 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7424 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7425 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7426 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7427 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7429 need_x11=no
7430 x11_hidd_target=kernel-hidd-androidgfx-kobj
7431 target_tool_prefix="$android_tool_prefix-"
7433 esac
7437 aros_target_arch="pc"
7438 aros_shared_default="no"
7439 target_bootloader="grub2"
7440 case "$target_cpu" in
7441 *i?86*)
7442 aros_target_cpu="i386"
7445 if test "$aros_object_format" = "" ; then
7446 aros_object_format="elf_i386"
7448 aros_flavour="standalone"
7449 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7450 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7451 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7452 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7453 aros_config_ldflags="-m32 -march=i486"
7454 aros_kernel_ldflags="-melf_i386"
7455 aros_default_wbwidth=640
7456 aros_default_wbheight=480
7457 gcc_target_cpu="i386"
7459 *x86_64*)
7460 aros_target_cpu="x86_64"
7461 aros_serial_debug=1
7462 if test "$aros_object_format" = "" ; then
7463 aros_object_format="elf_x86_64"
7465 aros_flavour="standalone"
7466 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7467 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7468 aros_kernel_ldflags=""
7469 aros_default_wbwidth=640
7470 aros_default_wbheight=480
7473 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7475 esac
7478 prep)
7479 aros_target_arch="prep"
7480 aros_shared_default="no"
7481 aros_target_cpu="ppc"
7482 aros_object_format="elf32ppc"
7483 aros_flavour="ppcnative"
7484 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7485 aros_kernel_ldflags=""
7486 aros_default_wbwidth=640
7487 aros_default_wbheight=480
7488 gcc_target_cpu="ppc"
7491 freebsd*)
7492 aros_target_arch="freebsd"
7493 aros_target_family="unix"
7494 aros_target_cpu="i386"
7495 aros_flavour="emulation"
7496 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7497 gcc_target_cpu="i386"
7499 aros_target_strip_flags="-x"
7502 darwin*)
7503 aros_target_arch="darwin"
7504 aros_target_family="unix"
7505 aros_flavour="emulation"
7506 case "$target_cpu" in
7507 *i?86*)
7508 aros_ios_platform="iPhoneSimulator"
7509 aros_target_cpu="i386"
7510 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7511 aros_kernel_ldflags=""
7512 aros_macosx_version="10.4"
7513 aros_default_wbdepth=8
7514 gcc_target_cpu="i386"
7515 aros_object_format="elf_i386"
7516 aros_kernel_ar_flags="-cr"
7517 aros_target_strip_flags="-x"
7518 target_tool_prefix="i686-apple-darwin10-"
7519 target_tool_flags="-m32"
7521 *x86_64*)
7522 aros_target_cpu="x86_64"
7523 aros_object_format="elf_x86_64"
7524 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7525 aros_macosx_version="10.6"
7526 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7527 aros_kernel_cflags="-m64"
7528 aros_kernel_ldflags="-m64"
7529 aros_target_cflags="-mcmodel=large"
7530 aros_default_wbdepth=8
7531 aros_kernel_ar="ar"
7532 aros_kernel_ar_flags="-cr"
7533 aros_kernel_ld="ld"
7534 aros_kernel_ranlib="ranlib"
7535 target_tool_prefix="i686-apple-darwin10-"
7537 *ppc*)
7538 aros_target_cpu="ppc"
7539 aros_object_format="elf32ppc"
7540 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7541 aros_kernel_ldflags=""
7542 aros_macosx_version="10.0"
7543 aros_default_wbdepth=8
7544 gcc_target_cpu="ppc"
7545 aros_kernel_ar="ar"
7546 aros_kernel_ar_flags="-cr"
7547 aros_kernel_ld="ld -arch ppc"
7548 aros_kernel_ranlib="ranlib -arch ppc"
7549 target_tool_prefix="powerpc-apple-darwin10-"
7551 *arm*)
7552 aros_ios_platform="iPhoneOS"
7553 aros_target_cpu="arm"
7554 aros_object_format="armelf_linux_eabi"
7555 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7556 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7557 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7558 aros_arch_libs="-laeabi"
7559 aros_default_wbdepth=8
7560 gcc_target_cpu="arm"
7561 aros_kernel_ar="ar"
7562 aros_kernel_ar_flags="-cr"
7563 aros_kernel_ld="ld -arch arm"
7564 aros_kernel_ranlib="ranlib -arch arm"
7565 target_tool_prefix="arm-apple-darwin10-"
7566 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7569 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7571 esac
7572 case "$aros_target_variant" in
7573 ios)
7574 aros_default_wbwidth=320
7575 aros_default_wbheight=480
7576 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7577 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7578 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7579 need_x11=no
7580 # This is here because it may depend on iOS or SDK version
7581 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7582 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7583 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7586 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7587 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7589 esac
7592 dragonfly*)
7593 aros_target_arch="dragonfly"
7594 aros_target_family="unix"
7595 aros_flavour="emulation"
7596 case "$target_cpu" in
7597 *i?86*)
7598 aros_target_cpu="i386"
7599 aros_object_format="elf_i386"
7600 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7602 *x86_64*)
7603 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7604 aros_target_cpu="x86_64"
7605 aros_object_format="elf_x86_64"
7606 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7609 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7611 esac
7614 netbsd*)
7615 aros_target_arch="netbsd"
7616 aros_target_family="unix"
7617 case "$target_cpu" in
7618 *m68k*)
7619 aros_target_cpu="m68k"
7620 aros_object_format="m68kelf"
7621 aros_flavour="emulcompat"
7622 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7623 gcc_target_cpu="mc68000"
7625 *i?86*)
7626 aros_target_cpu="i386"
7627 aros_object_format="elf_i386"
7628 aros_flavour="emulation"
7629 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7630 aros_default_wbdepth=8
7631 gcc_target_cpu="i386"
7634 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7636 esac
7637 aros_target_genmap="-Wl,-M -Xlinker >"
7638 aros_flavour="emulation"
7639 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7642 openbsd*)
7643 aros_target_arch="openbsd"
7644 aros_target_family="unix"
7645 case "$target_cpu" in
7646 *i?86*)
7647 aros_target_cpu="i386"
7648 aros_object_format="elf_i386"
7649 aros_flavour="emulation"
7650 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7651 gcc_target_cpu="i386"
7654 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7656 esac
7657 aros_target_genmap="-Wl,-M -Xlinker >"
7658 aros_target_nm_flags="-u"
7659 aros_flavour="emulation"
7662 solaris*)
7663 aros_target_arch="solaris"
7664 aros_target_family="unix"
7665 case "$target_cpu" in
7666 *i?86*)
7667 aros_target_cpu="i386"
7668 aros_object_format="elf_i386"
7669 aros_flavour="emulation"
7670 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7671 aros_default_wbdepth=8
7672 gcc_target_cpu="i386"
7674 *sparc*)
7675 aros_target_cpu="sparc"
7676 aros_object_format="elf_sparc"
7677 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7678 gcc_target_cpu="sparc"
7681 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7683 esac
7684 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7685 aros_flavour="emulation"
7688 morphos*)
7689 aros_target_arch="morphos"
7690 aros_shared_default="no"
7691 aros_target_cpu="ppc"
7692 aros_object_format="elf_ppc"
7693 aros_flavour="nativecompat"
7694 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7695 gcc_target_cpu="ppc"
7698 sam440)
7699 aros_target_arch="sam440"
7700 aros_shared_default="no"
7701 aros_target_cpu="ppc"
7702 aros_object_format="elf32ppc"
7703 aros_flavour="ppcnative"
7704 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7705 aros_kernel_ldflags=""
7706 aros_default_wbwidth=1024
7707 aros_default_wbheight=768
7708 aros_default_wbdepth=24
7709 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7710 gcc_target_cpu="powerpc"
7713 efika)
7714 aros_target_arch="efika"
7715 aros_shared_default="no"
7716 aros_target_cpu="arm"
7717 aros_object_format="armelf_linux_eabi"
7718 aros_flavour="standalone"
7719 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7720 aros_kernel_ldflags=""
7721 aros_default_wbwidth=1024
7722 aros_default_wbheight=600
7723 aros_arch_libs="-laeabi"
7724 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7725 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7728 chrp)
7729 aros_target_arch="chrp"
7730 aros_shared_default="no"
7731 aros_target_cpu="ppc"
7732 aros_object_format="elf32ppc"
7733 aros_flavour="ppcnative"
7734 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7735 aros_kernel_ldflags=""
7736 aros_default_wbwidth=640
7737 aros_default_wbheight=480
7738 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7739 gcc_target_cpu="powerpc"
7740 case "$aros_target_variant" in
7741 efika)
7742 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7744 esac
7747 amiga*)
7748 aros_target_arch="amiga"
7749 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7750 aros_shared_default="no"
7752 case "$target_cpu" in
7753 *m68k*)
7754 # Check whether --enable-amigaos_compliance was given.
7755 if test "${enable_amigaos_compliance+set}" = set; then :
7756 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7759 aros_enable_mmu=no
7760 aros_target_cpu="m68k"
7761 aros_object_format="m68kelf"
7762 aros_flavour="standcompat"
7763 gcc_target_cpu="m68000"
7764 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7765 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7766 target_tool_prefix="m68k-elf-"
7767 # Needed to get the correct multilib
7768 aros_config_ldflags="-${gcc_target_cpu}"
7769 aros_shared_ldflags="-${gcc_target_cpu}"
7770 aros_kernel_ldflags="-${gcc_target_cpu}"
7771 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7772 aros_target_strip_flags="-R.comment --strip-debug"
7773 aros_default_wbwidth=640
7774 aros_default_wbheight=256
7775 aros_default_wbdepth=2
7777 *ppc*)
7778 aros_cpu="ppc"
7779 aros_flavour="native"
7780 gcc_target_cpu="ppc"
7783 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7785 esac
7788 mingw*)
7789 aros_target_arch="mingw32"
7790 aros_shared_default="no"
7791 aros_flavour="emulation"
7792 aros_shared_cflags=""
7793 need_dlopen="no"
7794 rescomp="windres"
7795 case "$target_cpu" in
7796 *i?86*)
7797 aros_target_cpu="i386"
7798 aros_object_format="elf_i386"
7799 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7800 aros_default_wbdepth=8
7801 gcc_target_cpu="i386"
7803 aros_target_as="i386-aros-as"
7804 aros_target_ar="i386-aros-ar"
7805 aros_target_ranlib="i386-aros-ranlib"
7806 aros_target_nm="i386-aros-nm"
7807 aros_target_strip="i386-aros-strip"
7808 aros_target_objcopy="i386-aros-objcopy"
7809 aros_target_objdump="i386-aros-objdump"
7811 target_tool_prefix="i386-mingw32-"
7813 *x86_64*)
7814 aros_target_cpu="x86_64"
7815 aros_object_format="elf_x86_64"
7816 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7817 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7818 aros_default_wbdepth=8
7819 target_tool_prefix="x86_64-w64-mingw32-"
7821 *arm*)
7822 aros_target_cpu="arm"
7823 aros_object_format="armelf_linux_eabi"
7824 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7825 aros_arch_libs="-laeabi"
7826 aros_default_wbdepth=8
7827 gcc_target_cpu="arm"
7828 target_tool_prefix="arm-mingw32ce-"
7829 aros_default_wbwidth=160
7830 aros_default_wbheight=160
7833 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7835 esac
7836 if test $host_os = "cygwin"; then
7837 aros_kernel_cflags="-mno-cygwin"
7840 pp*)
7841 aros_target_arch="pp"
7842 aros_shared_default="no"
7843 case "$target_cpu" in
7844 *m68k*)
7845 aros_target_cpu="m68k"
7846 aros_object_format="m68kelf"
7847 aros_flavour="palmnative"
7848 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7849 aros_default_wbwidth=160
7850 aros_default_wbheight=160
7851 aros_default_wbdepth=1
7852 aros_target_ar_flags="cru"
7853 aros_compiler_libs="-lgcc1"
7854 aros_shared_default=no
7855 aros_shared_cflags="-fpic"
7856 aros_shared_aflags=""
7857 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7858 aros_kernel_ldflags="-Wl,-rpath,./lib"
7859 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7860 aros_debug_aflags=""
7861 aros_debug_ldflags="$aros_symbols_debug"
7862 aros_mungwall_debug="0"
7863 aros_modules_debug="0"
7864 gcc_target_cpu="mc68000"
7865 ignore_undefined_symbols="-ius"
7868 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7870 esac
7873 mac*)
7874 aros_target_arch="mac"
7875 aros_shared_default="no"
7876 case "$target_cpu" in
7877 *m68k*)
7878 aros_target_cpu="m68k"
7879 aros_object_format="m68kelf"
7880 aros_flavour="mac68knative"
7881 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7882 aros_default_wbwidth=512
7883 aros_default_wbheight=384
7884 aros_default_wbdepth=8
7885 aros_target_ar_flags="cru"
7886 aros_compiler_libs="-lgcc1"
7887 aros_shared_default=no
7888 aros_shared_cflags="-fpic"
7889 aros_shared_aflags=""
7890 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7891 aros_kernel_ldflags="-Wl,-rpath,./lib"
7892 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7893 aros_debug_aflags=""
7894 aros_debug_ldflags="$aros_symbols_debug"
7895 aros_mungwall_debug="0"
7896 aros_modules_debug="0"
7897 gcc_target_cpu="mc68000"
7898 ignore_undefined_symbols="-ius"
7901 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7903 esac
7907 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7909 esac
7911 # Some formats need custom ELF specs.
7912 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
7913 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
7914 elf_specs_in=config/${aros_object_format}-specs.in
7915 else
7916 elf_specs_in=config/elf-specs.in
7919 #-----------------------------------------------------------------------------
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7921 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7923 # Check whether --with-crosstools was given.
7924 if test "${with_crosstools+set}" = set; then :
7925 withval=$with_crosstools; with_crosstools=$withval
7926 else
7927 with_crosstools="default"
7930 if test "$with_crosstools" = "default"; then
7931 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7932 else
7933 AROS_CROSSTOOLSDIR="$with_crosstools"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7936 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7938 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
7941 use_aros_gcc=yes
7942 PATH=$AROS_CROSSTOOLSDIR:$PATH
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7946 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7948 # Check whether --with-aros-gcc was given.
7949 if test "${with_aros_gcc+set}" = set; then :
7950 withval=$with_aros_gcc; aros_gcc_version="$withval"
7951 else
7952 aros_gcc_version="$use_aros_gcc"
7955 case "$aros_gcc_version" in
7956 yes)
7957 aros_gcc_version="default"
7960 aros_gcc_version="none"
7962 esac
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7964 $as_echo "$aros_gcc_version" >&6; }
7966 if test "$aros_gcc_version" != "none"; then
7969 if test "$aros_gcc_version" != "default"; then
7970 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7971 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7972 else
7973 aros_target_cc="$aros_target_cpu-aros-gcc"
7974 aros_target_cxx="$aros_target_cpu-aros-g++"
7977 aros_target_ld="$aros_target_cpu-aros-ld"
7978 aros_target_as="$aros_target_cpu-aros-as"
7979 aros_target_ar="$aros_target_cpu-aros-ar"
7980 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7981 aros_target_nm="$aros_target_cpu-aros-nm"
7982 aros_target_strip="$aros_target_cpu-aros-strip"
7983 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7984 aros_target_objdump="$aros_target_cpu-aros-objdump"
7987 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7988 # Since we override specs, we may need to put these defines there
7989 if test "$gcc_target_cpu" != ""; then
7990 gcc_target_cpu="-D__${gcc_target_cpu}__"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7994 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7996 # Check whether --with-portssources was given.
7997 if test "${with_portssources+set}" = set; then :
7998 withval=$with_portssources; with_portssrcdir=$withval
7999 else
8000 with_portssrcdir="default"
8003 if test "$with_portssrcdir" = "default"; then
8004 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8005 else
8006 AROS_PORTSSRCDIR="$with_portssrcdir"
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8009 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8012 $as_echo_n "checking which bootloader to use... " >&6; }
8014 # Check whether --with-bootloader was given.
8015 if test "${with_bootloader+set}" = set; then :
8016 withval=$with_bootloader; target_bootloader=$withval
8017 else
8018 target_bootloader=$target_bootloader
8021 if test "$target_bootloader" = "none"; then
8022 aros_target_bootloader=""
8023 else
8024 aros_target_bootloader="$target_bootloader"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8027 $as_echo "$target_bootloader" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8030 $as_echo_n "checking which icon-set to use... " >&6; }
8032 # Check whether --with-iconset was given.
8033 if test "${with_iconset+set}" = set; then :
8034 withval=$with_iconset; target_iconset=$withval
8035 else
8036 target_iconset="default"
8039 if test "$target_iconset" = "default"; then
8040 aros_target_iconset="Gorilla"
8041 target_iconset="default (Gorilla)"
8042 else
8043 aros_target_iconset="$target_iconset"
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8046 $as_echo "$target_iconset" >&6; }
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8049 $as_echo_n "checking which GUI Theme to use... " >&6; }
8051 # Check whether --with-theme was given.
8052 if test "${with_theme+set}" = set; then :
8053 withval=$with_theme; target_guitheme=$withval
8054 else
8055 target_guitheme="default"
8058 if test "$target_guitheme" = "default"; then
8059 aros_target_guitheme="Ice"
8060 else
8061 aros_target_guitheme="$target_guitheme"
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8064 $as_echo "$aros_target_guitheme" >&6; }
8066 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8067 # for target code)
8068 cross_compiling=no
8069 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8070 cross_compiling=yes
8073 if test "$aros_host_cpu" == "x86_64" ; then
8074 if test "$aros_target_cpu" == "i386" ; then
8075 if test "$aros_target_arch" != "mingw32"; then
8076 cross_compiling=no
8081 if test "$aros_host_arch" == "darwin" ; then
8082 if test "$aros_target_arch" != "darwin" ; then
8083 cross_compiling=yes
8087 if test "$aros_host_arch" == "mingw32" ; then
8088 if test "$aros_target_arch" != "mingw32" ; then
8089 cross_compiling=yes
8093 # I want to have this information in configure output, although it might be
8094 # misleading, e.g. for darwin hosted you cannot compile target code without a
8095 # cross compiler, but here it says no.
8097 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8098 # Target code is a little bit different thing.
8099 # sonic
8100 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8102 # Set prefix for target compiler etc. if we're cross-compiling
8103 # (should possibly be earlier but needs to be after AC_PROG_CC)
8104 if test "$cross_compiling" = "yes" ; then
8106 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8107 if test "$aros_gcc_version" != "none"; then
8110 target_tool_prefix=${target_cpu}-aros-
8111 target_tool_version=$aros_gcc_version
8112 use_kernel_cc_wrapper=yes
8114 aros_target_cc=
8115 aros_target_ld=
8116 aros_target_as=
8117 aros_target_ar=
8118 aros_target_ranlib=
8119 aros_target_nm=
8120 aros_target_strip=
8121 aros_target_objcopy=
8122 aros_target_objdump=
8126 CC=${target_tool_prefix}gcc
8127 CPP=${target_tool_prefix}cpp
8128 if test "$target_tool_version" != "default"; then
8129 CC="$CC-$target_tool_version"
8130 CPP="$CC-$target_tool_version"
8132 if test "$crosstools" != "yes" ; then
8133 # Extract the first word of "$CC", so it can be a program name with args.
8134 set dummy $CC; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if test "${ac_cv_path_CC+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 case $CC in
8141 [\\/]* | ?:[\\/]*)
8142 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8152 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8156 done
8157 done
8158 IFS=$as_save_IFS
8161 esac
8163 CC=$ac_cv_path_CC
8164 if test -n "$CC"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8166 $as_echo "$CC" >&6; }
8167 else
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 $as_echo "no" >&6; }
8173 if test "$CC" = ""; then
8174 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8176 else
8177 CC=$AROS_CROSSTOOLSDIR/$CC
8180 CC="$CC $target_tool_flags"
8182 #-----------------------------------------------------------------------------
8184 # Disable pointer-signedness warnings if the compiler recognises the option
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8187 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8188 save_cflags="$CFLAGS"
8189 if test "$crosstools" != "yes" ; then
8190 CFLAGS="$CFLAGS -Wno-pointer-sign"
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8195 main ()
8199 return 0;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203 use_no_sign_warning="yes"
8204 else
8205 use_no_sign_warning="no"
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 else
8209 # we do know it is supported for the smallest version of gcc we are going to build
8210 # we assume it's also supported by later versions
8211 use_no_sign_warning=yes
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8214 $as_echo "$use_no_sign_warning" >&6; }
8215 if test "x-$use_no_sign_warning" = "x-yes" ; then
8216 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8218 CFLAGS="$save_cflags"
8220 #-----------------------------------------------------------------------------
8222 # Find all the tools we need to compile. This could be cross-compiling
8223 # though! If that is the case we use the GNU form of the target and
8224 # simply add this to the front of the binary name. This is rather simple,
8225 # but it should work under most circumstances.
8227 # The default tools are to use the same as the host, but only if the
8228 # host and target CPU are the same. With GCC this is normally enough.
8231 aros_cc_pre=""
8232 aros_shared_ld="$aros_host_ld"
8234 aros_target_mkdep="$aros_host_mkdep"
8235 aros_target_incl_def="$aros_host_incl"
8237 aros_kernel_cc="$CC"
8239 # The default tools executables to be linked to.
8240 if test "$rescomp" != ""; then
8241 if test "$cross_compiling" = "yes" ; then
8242 rescomp=${target_tool_prefix}${rescomp}
8244 # Extract the first word of "$rescomp", so it can be a program name with args.
8245 set dummy $rescomp; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 case $aros_kernel_rescomp in
8252 [\\/]* | ?:[\\/]*)
8253 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8267 done
8268 done
8269 IFS=$as_save_IFS
8272 esac
8274 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8275 if test -n "$aros_kernel_rescomp"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8277 $as_echo "$aros_kernel_rescomp" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8284 if test "$aros_kernel_rescomp" = ""; then
8285 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8289 if test "$crosstools" != "yes"; then
8291 if test "$aros_kernel_ld" = ""; then
8292 if test "$cross_compiling" = "yes" ; then
8293 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8294 set dummy ${target_tool_prefix}ld; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 case $aros_kernel_ld in
8301 [\\/]* | ?:[\\/]*)
8302 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8316 done
8317 done
8318 IFS=$as_save_IFS
8321 esac
8323 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8324 if test -n "$aros_kernel_ld"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8326 $as_echo "$aros_kernel_ld" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8333 else
8334 if test "$GCC" = "yes"; then
8335 aros_gcc_ld=`$CC -print-prog-name=ld`
8336 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8337 set dummy `basename $aros_gcc_ld`; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 case $aros_kernel_ld in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in `dirname $aros_gcc_ld`
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8359 done
8360 done
8361 IFS=$as_save_IFS
8364 esac
8366 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8367 if test -n "$aros_kernel_ld"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8369 $as_echo "$aros_kernel_ld" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8377 if test "$aros_kernel_ld" = ""; then
8378 # Extract the first word of "ld", so it can be a program name with args.
8379 set dummy ld; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 case $aros_kernel_ld in
8386 [\\/]* | ?:[\\/]*)
8387 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8401 done
8402 done
8403 IFS=$as_save_IFS
8406 esac
8408 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8409 if test -n "$aros_kernel_ld"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8411 $as_echo "$aros_kernel_ld" >&6; }
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8420 else
8421 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8422 set dummy $aros_kernel_ld; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 case $aros_kernel_ld in
8429 [\\/]* | ?:[\\/]*)
8430 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8440 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8444 done
8445 done
8446 IFS=$as_save_IFS
8449 esac
8451 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8452 if test -n "$aros_kernel_ld"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8454 $as_echo "$aros_kernel_ld" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8463 if test "$aros_kernel_ld" = ""; then
8464 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8467 if test "$aros_kernel_ar" = ""; then
8468 if test "$cross_compiling" = "yes" ; then
8469 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8470 set dummy ${target_tool_prefix}ar; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 case $aros_kernel_ar in
8477 [\\/]* | ?:[\\/]*)
8478 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8488 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8492 done
8493 done
8494 IFS=$as_save_IFS
8497 esac
8499 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8500 if test -n "$aros_kernel_ar"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8502 $as_echo "$aros_kernel_ar" >&6; }
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8509 else
8510 if test "$GCC" = "yes"; then
8511 aros_gcc_ar=`$CC -print-prog-name=ar`
8512 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8513 set dummy `basename $aros_gcc_ar`; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 case $aros_kernel_ar in
8520 [\\/]* | ?:[\\/]*)
8521 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in `dirname $aros_gcc_ar`
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8540 esac
8542 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8543 if test -n "$aros_kernel_ar"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8545 $as_echo "$aros_kernel_ar" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8553 if test "$aros_kernel_ar" = ""; then
8554 # Extract the first word of "ar", so it can be a program name with args.
8555 set dummy ar; ac_word=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 case $aros_kernel_ar in
8562 [\\/]* | ?:[\\/]*)
8563 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8573 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 break 2
8577 done
8578 done
8579 IFS=$as_save_IFS
8582 esac
8584 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8585 if test -n "$aros_kernel_ar"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8587 $as_echo "$aros_kernel_ar" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8596 else
8597 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8598 set dummy $aros_kernel_ar; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 case $aros_kernel_ar in
8605 [\\/]* | ?:[\\/]*)
8606 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8616 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 break 2
8620 done
8621 done
8622 IFS=$as_save_IFS
8625 esac
8627 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8628 if test -n "$aros_kernel_ar"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8630 $as_echo "$aros_kernel_ar" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8639 if test "$aros_kernel_ar" = ""; then
8640 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8643 if test "$aros_kernel_ranlib" = ""; then
8644 if test "$cross_compiling" = "yes" ; then
8645 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8646 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 case $aros_kernel_ranlib in
8653 [\\/]* | ?:[\\/]*)
8654 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8664 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8668 done
8669 done
8670 IFS=$as_save_IFS
8673 esac
8675 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8676 if test -n "$aros_kernel_ranlib"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8678 $as_echo "$aros_kernel_ranlib" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8685 else
8686 if test "$GCC" = "yes"; then
8687 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8688 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8689 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 case $aros_kernel_ranlib in
8696 [\\/]* | ?:[\\/]*)
8697 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in `dirname $aros_gcc_ranlib`
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8716 esac
8718 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8719 if test -n "$aros_kernel_ranlib"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8721 $as_echo "$aros_kernel_ranlib" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8729 if test "$aros_kernel_ranlib" = ""; then
8730 # Extract the first word of "ranlib", so it can be a program name with args.
8731 set dummy ranlib; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 case $aros_kernel_ranlib in
8738 [\\/]* | ?:[\\/]*)
8739 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8753 done
8754 done
8755 IFS=$as_save_IFS
8758 esac
8760 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8761 if test -n "$aros_kernel_ranlib"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8763 $as_echo "$aros_kernel_ranlib" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8772 else
8773 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8774 set dummy $aros_kernel_ranlib; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 case $aros_kernel_ranlib in
8781 [\\/]* | ?:[\\/]*)
8782 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8796 done
8797 done
8798 IFS=$as_save_IFS
8801 esac
8803 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8804 if test -n "$aros_kernel_ranlib"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8806 $as_echo "$aros_kernel_ranlib" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8815 if test "$aros_kernel_ranlib" = ""; then
8816 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8819 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8820 target_tool_prefix=${target_cpu}-elf-
8821 if test "$aros_target_cc" == ""; then
8822 aros_target_cc="${target_tool_prefix}gcc"
8824 if test "$aros_target_ld" == ""; then
8825 aros_target_ld="${target_tool_prefix}ld"
8829 if test "$aros_target_as" = ""; then
8830 if test "$cross_compiling" = "yes" ; then
8831 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8832 set dummy ${target_tool_prefix}as; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 case $aros_target_as_ln in
8839 [\\/]* | ?:[\\/]*)
8840 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 for as_dir in $PATH
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8850 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 break 2
8854 done
8855 done
8856 IFS=$as_save_IFS
8859 esac
8861 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8862 if test -n "$aros_target_as_ln"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8864 $as_echo "$aros_target_as_ln" >&6; }
8865 else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8871 else
8872 if test "$GCC" = "yes"; then
8873 aros_gcc_as=`$CC -print-prog-name=as`
8874 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8875 set dummy `basename $aros_gcc_as`; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 case $aros_target_as_ln in
8882 [\\/]* | ?:[\\/]*)
8883 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in `dirname $aros_gcc_as`
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8897 done
8898 done
8899 IFS=$as_save_IFS
8902 esac
8904 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8905 if test -n "$aros_target_as_ln"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8907 $as_echo "$aros_target_as_ln" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8915 if test "$aros_target_as_ln" = ""; then
8916 # Extract the first word of "as", so it can be a program name with args.
8917 set dummy as; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 case $aros_target_as_ln in
8924 [\\/]* | ?:[\\/]*)
8925 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8935 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8939 done
8940 done
8941 IFS=$as_save_IFS
8944 esac
8946 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8947 if test -n "$aros_target_as_ln"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8949 $as_echo "$aros_target_as_ln" >&6; }
8950 else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8958 else
8959 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8960 set dummy $aros_target_as; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 case $aros_target_as_ln in
8967 [\\/]* | ?:[\\/]*)
8968 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8982 done
8983 done
8984 IFS=$as_save_IFS
8987 esac
8989 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8990 if test -n "$aros_target_as_ln"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8992 $as_echo "$aros_target_as_ln" >&6; }
8993 else
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
9001 if test "$aros_target_as_ln" = ""; then
9002 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9005 if test "$aros_target_ar" = ""; then
9006 if test "$cross_compiling" = "yes" ; then
9007 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9008 set dummy ${target_tool_prefix}ar; ac_word=$2
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 $as_echo_n "checking for $ac_word... " >&6; }
9011 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 case $aros_target_ar_ln in
9015 [\\/]* | ?:[\\/]*)
9016 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9026 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028 break 2
9030 done
9031 done
9032 IFS=$as_save_IFS
9035 esac
9037 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9038 if test -n "$aros_target_ar_ln"; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9040 $as_echo "$aros_target_ar_ln" >&6; }
9041 else
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 $as_echo "no" >&6; }
9047 else
9048 if test "$GCC" = "yes"; then
9049 aros_gcc_ar=`$CC -print-prog-name=ar`
9050 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9051 set dummy `basename $aros_gcc_ar`; ac_word=$2
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053 $as_echo_n "checking for $ac_word... " >&6; }
9054 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 case $aros_target_ar_ln in
9058 [\\/]* | ?:[\\/]*)
9059 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063 for as_dir in `dirname $aros_gcc_ar`
9065 IFS=$as_save_IFS
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9069 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 break 2
9073 done
9074 done
9075 IFS=$as_save_IFS
9078 esac
9080 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9081 if test -n "$aros_target_ar_ln"; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9083 $as_echo "$aros_target_ar_ln" >&6; }
9084 else
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086 $as_echo "no" >&6; }
9091 if test "$aros_target_ar_ln" = ""; then
9092 # Extract the first word of "ar", so it can be a program name with args.
9093 set dummy ar; ac_word=$2
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9095 $as_echo_n "checking for $ac_word... " >&6; }
9096 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 case $aros_target_ar_ln in
9100 [\\/]* | ?:[\\/]*)
9101 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9107 IFS=$as_save_IFS
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9111 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 break 2
9115 done
9116 done
9117 IFS=$as_save_IFS
9120 esac
9122 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9123 if test -n "$aros_target_ar_ln"; then
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9125 $as_echo "$aros_target_ar_ln" >&6; }
9126 else
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128 $as_echo "no" >&6; }
9134 else
9135 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9136 set dummy $aros_target_ar; ac_word=$2
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138 $as_echo_n "checking for $ac_word... " >&6; }
9139 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 case $aros_target_ar_ln in
9143 [\\/]* | ?:[\\/]*)
9144 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in $PATH
9150 IFS=$as_save_IFS
9151 test -z "$as_dir" && as_dir=.
9152 for ac_exec_ext in '' $ac_executable_extensions; do
9153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9156 break 2
9158 done
9159 done
9160 IFS=$as_save_IFS
9163 esac
9165 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9166 if test -n "$aros_target_ar_ln"; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9168 $as_echo "$aros_target_ar_ln" >&6; }
9169 else
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9177 if test "$aros_target_ar_ln" = ""; then
9178 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9181 if test "$aros_target_nm" = ""; then
9182 if test "$cross_compiling" = "yes" ; then
9183 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9184 set dummy ${target_tool_prefix}nm; ac_word=$2
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186 $as_echo_n "checking for $ac_word... " >&6; }
9187 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 case $aros_target_nm_ln in
9191 [\\/]* | ?:[\\/]*)
9192 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196 for as_dir in $PATH
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9202 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9204 break 2
9206 done
9207 done
9208 IFS=$as_save_IFS
9211 esac
9213 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9214 if test -n "$aros_target_nm_ln"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9216 $as_echo "$aros_target_nm_ln" >&6; }
9217 else
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9223 else
9224 if test "$GCC" = "yes"; then
9225 aros_gcc_nm=`$CC -print-prog-name=nm`
9226 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9227 set dummy `basename $aros_gcc_nm`; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 case $aros_target_nm_ln in
9234 [\\/]* | ?:[\\/]*)
9235 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239 for as_dir in `dirname $aros_gcc_nm`
9241 IFS=$as_save_IFS
9242 test -z "$as_dir" && as_dir=.
9243 for ac_exec_ext in '' $ac_executable_extensions; do
9244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9245 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9247 break 2
9249 done
9250 done
9251 IFS=$as_save_IFS
9254 esac
9256 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9257 if test -n "$aros_target_nm_ln"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9259 $as_echo "$aros_target_nm_ln" >&6; }
9260 else
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9267 if test "$aros_target_nm_ln" = ""; then
9268 # Extract the first word of "nm", so it can be a program name with args.
9269 set dummy nm; ac_word=$2
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271 $as_echo_n "checking for $ac_word... " >&6; }
9272 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 case $aros_target_nm_ln in
9276 [\\/]* | ?:[\\/]*)
9277 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $PATH
9283 IFS=$as_save_IFS
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9287 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 break 2
9291 done
9292 done
9293 IFS=$as_save_IFS
9296 esac
9298 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9299 if test -n "$aros_target_nm_ln"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9301 $as_echo "$aros_target_nm_ln" >&6; }
9302 else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9310 else
9311 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9312 set dummy $aros_target_nm; ac_word=$2
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314 $as_echo_n "checking for $ac_word... " >&6; }
9315 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 case $aros_target_nm_ln in
9319 [\\/]* | ?:[\\/]*)
9320 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 for as_dir in $PATH
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9330 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9334 done
9335 done
9336 IFS=$as_save_IFS
9339 esac
9341 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9342 if test -n "$aros_target_nm_ln"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9344 $as_echo "$aros_target_nm_ln" >&6; }
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9353 if test "$aros_target_nm_ln" = ""; then
9354 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9357 if test "$aros_target_objcopy" = ""; then
9358 if test "$cross_compiling" = "yes" ; then
9359 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9360 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 case $aros_target_objcopy_ln in
9367 [\\/]* | ?:[\\/]*)
9368 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 for as_dir in $PATH
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9378 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9382 done
9383 done
9384 IFS=$as_save_IFS
9387 esac
9389 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9390 if test -n "$aros_target_objcopy_ln"; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9392 $as_echo "$aros_target_objcopy_ln" >&6; }
9393 else
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 $as_echo "no" >&6; }
9399 else
9400 if test "$GCC" = "yes"; then
9401 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9402 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9403 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 case $aros_target_objcopy_ln in
9410 [\\/]* | ?:[\\/]*)
9411 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in `dirname $aros_gcc_objcopy`
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9425 done
9426 done
9427 IFS=$as_save_IFS
9430 esac
9432 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9433 if test -n "$aros_target_objcopy_ln"; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9435 $as_echo "$aros_target_objcopy_ln" >&6; }
9436 else
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9438 $as_echo "no" >&6; }
9443 if test "$aros_target_objcopy_ln" = ""; then
9444 # Extract the first word of "objcopy", so it can be a program name with args.
9445 set dummy objcopy; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 case $aros_target_objcopy_ln in
9452 [\\/]* | ?:[\\/]*)
9453 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9467 done
9468 done
9469 IFS=$as_save_IFS
9472 esac
9474 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9475 if test -n "$aros_target_objcopy_ln"; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9477 $as_echo "$aros_target_objcopy_ln" >&6; }
9478 else
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480 $as_echo "no" >&6; }
9486 else
9487 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9488 set dummy $aros_target_objcopy; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 case $aros_target_objcopy_ln in
9495 [\\/]* | ?:[\\/]*)
9496 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9510 done
9511 done
9512 IFS=$as_save_IFS
9515 esac
9517 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9518 if test -n "$aros_target_objcopy_ln"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9520 $as_echo "$aros_target_objcopy_ln" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9529 if test "$aros_target_objcopy_ln" = ""; then
9530 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9533 if test "$aros_target_objdump" = ""; then
9534 if test "$cross_compiling" = "yes" ; then
9535 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9536 set dummy ${target_tool_prefix}objdump; ac_word=$2
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538 $as_echo_n "checking for $ac_word... " >&6; }
9539 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 case $aros_target_objdump_ln in
9543 [\\/]* | ?:[\\/]*)
9544 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in $PATH
9550 IFS=$as_save_IFS
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
9553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9554 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9556 break 2
9558 done
9559 done
9560 IFS=$as_save_IFS
9563 esac
9565 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9566 if test -n "$aros_target_objdump_ln"; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9568 $as_echo "$aros_target_objdump_ln" >&6; }
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571 $as_echo "no" >&6; }
9575 else
9576 if test "$GCC" = "yes"; then
9577 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9578 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9579 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 case $aros_target_objdump_ln in
9586 [\\/]* | ?:[\\/]*)
9587 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 for as_dir in `dirname $aros_gcc_objdump`
9593 IFS=$as_save_IFS
9594 test -z "$as_dir" && as_dir=.
9595 for ac_exec_ext in '' $ac_executable_extensions; do
9596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9597 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 break 2
9601 done
9602 done
9603 IFS=$as_save_IFS
9606 esac
9608 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9609 if test -n "$aros_target_objdump_ln"; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9611 $as_echo "$aros_target_objdump_ln" >&6; }
9612 else
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 $as_echo "no" >&6; }
9619 if test "$aros_target_objdump_ln" = ""; then
9620 # Extract the first word of "objdump", so it can be a program name with args.
9621 set dummy objdump; ac_word=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 case $aros_target_objdump_ln in
9628 [\\/]* | ?:[\\/]*)
9629 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9639 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9643 done
9644 done
9645 IFS=$as_save_IFS
9648 esac
9650 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9651 if test -n "$aros_target_objdump_ln"; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9653 $as_echo "$aros_target_objdump_ln" >&6; }
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9662 else
9663 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9664 set dummy $aros_target_objdump; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 case $aros_target_objdump_ln in
9671 [\\/]* | ?:[\\/]*)
9672 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9676 for as_dir in $PATH
9678 IFS=$as_save_IFS
9679 test -z "$as_dir" && as_dir=.
9680 for ac_exec_ext in '' $ac_executable_extensions; do
9681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9682 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9684 break 2
9686 done
9687 done
9688 IFS=$as_save_IFS
9691 esac
9693 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9694 if test -n "$aros_target_objdump_ln"; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9696 $as_echo "$aros_target_objdump_ln" >&6; }
9697 else
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9699 $as_echo "no" >&6; }
9705 if test "$aros_target_objdump_ln" = ""; then
9706 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9709 if test "$aros_target_ranlib" = ""; then
9710 if test "$cross_compiling" = "yes" ; then
9711 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9712 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 case $aros_target_ranlib_ln in
9719 [\\/]* | ?:[\\/]*)
9720 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 break 2
9734 done
9735 done
9736 IFS=$as_save_IFS
9739 esac
9741 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9742 if test -n "$aros_target_ranlib_ln"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9744 $as_echo "$aros_target_ranlib_ln" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9751 else
9752 if test "$GCC" = "yes"; then
9753 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9754 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9755 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757 $as_echo_n "checking for $ac_word... " >&6; }
9758 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 case $aros_target_ranlib_ln in
9762 [\\/]* | ?:[\\/]*)
9763 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in `dirname $aros_gcc_ranlib`
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9777 done
9778 done
9779 IFS=$as_save_IFS
9782 esac
9784 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9785 if test -n "$aros_target_ranlib_ln"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9787 $as_echo "$aros_target_ranlib_ln" >&6; }
9788 else
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9795 if test "$aros_target_ranlib_ln" = ""; then
9796 # Extract the first word of "ranlib", so it can be a program name with args.
9797 set dummy ranlib; ac_word=$2
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799 $as_echo_n "checking for $ac_word... " >&6; }
9800 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 case $aros_target_ranlib_ln in
9804 [\\/]* | ?:[\\/]*)
9805 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9815 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9819 done
9820 done
9821 IFS=$as_save_IFS
9824 esac
9826 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9827 if test -n "$aros_target_ranlib_ln"; then
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9829 $as_echo "$aros_target_ranlib_ln" >&6; }
9830 else
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9838 else
9839 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9840 set dummy $aros_target_ranlib; ac_word=$2
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842 $as_echo_n "checking for $ac_word... " >&6; }
9843 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 case $aros_target_ranlib_ln in
9847 [\\/]* | ?:[\\/]*)
9848 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in $PATH
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9858 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 break 2
9862 done
9863 done
9864 IFS=$as_save_IFS
9867 esac
9869 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9870 if test -n "$aros_target_ranlib_ln"; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9872 $as_echo "$aros_target_ranlib_ln" >&6; }
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9881 if test "$aros_target_ranlib_ln" = ""; then
9882 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9885 if test "$aros_target_strip" = ""; then
9886 if test "$cross_compiling" = "yes" ; then
9887 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9888 set dummy ${target_tool_prefix}strip; ac_word=$2
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9890 $as_echo_n "checking for $ac_word... " >&6; }
9891 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 case $aros_target_strip_ln in
9895 [\\/]* | ?:[\\/]*)
9896 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 for as_dir in $PATH
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9906 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 break 2
9910 done
9911 done
9912 IFS=$as_save_IFS
9915 esac
9917 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9918 if test -n "$aros_target_strip_ln"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9920 $as_echo "$aros_target_strip_ln" >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9927 else
9928 if test "$GCC" = "yes"; then
9929 aros_gcc_strip=`$CC -print-prog-name=strip`
9930 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9931 set dummy `basename $aros_gcc_strip`; ac_word=$2
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933 $as_echo_n "checking for $ac_word... " >&6; }
9934 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 case $aros_target_strip_ln in
9938 [\\/]* | ?:[\\/]*)
9939 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in `dirname $aros_gcc_strip`
9945 IFS=$as_save_IFS
9946 test -z "$as_dir" && as_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9949 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 break 2
9953 done
9954 done
9955 IFS=$as_save_IFS
9958 esac
9960 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9961 if test -n "$aros_target_strip_ln"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9963 $as_echo "$aros_target_strip_ln" >&6; }
9964 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9971 if test "$aros_target_strip_ln" = ""; then
9972 # Extract the first word of "strip", so it can be a program name with args.
9973 set dummy strip; ac_word=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9978 else
9979 case $aros_target_strip_ln in
9980 [\\/]* | ?:[\\/]*)
9981 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9995 done
9996 done
9997 IFS=$as_save_IFS
10000 esac
10002 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10003 if test -n "$aros_target_strip_ln"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10005 $as_echo "$aros_target_strip_ln" >&6; }
10006 else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10014 else
10015 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10016 set dummy $aros_target_strip; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 case $aros_target_strip_ln in
10023 [\\/]* | ?:[\\/]*)
10024 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10038 done
10039 done
10040 IFS=$as_save_IFS
10043 esac
10045 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10046 if test -n "$aros_target_strip_ln"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10048 $as_echo "$aros_target_strip_ln" >&6; }
10049 else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10057 if test "$aros_target_strip_ln" = ""; then
10058 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10060 if test "$aros_target_cxx" != ""; then
10061 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10062 set dummy $aros_target_cxx; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 case $aros_target_cxx in
10069 [\\/]* | ?:[\\/]*)
10070 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in $PATH
10076 IFS=$as_save_IFS
10077 test -z "$as_dir" && as_dir=.
10078 for ac_exec_ext in '' $ac_executable_extensions; do
10079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10080 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 break 2
10084 done
10085 done
10086 IFS=$as_save_IFS
10089 esac
10091 aros_target_cxx=$ac_cv_path_aros_target_cxx
10092 if test -n "$aros_target_cxx"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10094 $as_echo "$aros_target_cxx" >&6; }
10095 else
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10101 if test "$aros_target_cxx" = ""; then
10102 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10105 else
10106 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10107 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10108 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10109 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10110 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10111 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10112 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10113 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10114 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10116 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
10118 if test "$aros_kernel_ld" = ""; then
10119 if test "$cross_compiling" = "yes" ; then
10120 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10121 set dummy ${target_tool_prefix}ld; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 case $aros_kernel_ld in
10128 [\\/]* | ?:[\\/]*)
10129 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10139 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10143 done
10144 done
10145 IFS=$as_save_IFS
10148 esac
10150 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10151 if test -n "$aros_kernel_ld"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10153 $as_echo "$aros_kernel_ld" >&6; }
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10160 else
10161 if test "$GCC" = "yes"; then
10162 aros_gcc_ld=`$CC -print-prog-name=ld`
10163 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10164 set dummy `basename $aros_gcc_ld`; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 case $aros_kernel_ld in
10171 [\\/]* | ?:[\\/]*)
10172 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in `dirname $aros_gcc_ld`
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10182 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 break 2
10186 done
10187 done
10188 IFS=$as_save_IFS
10191 esac
10193 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10194 if test -n "$aros_kernel_ld"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10196 $as_echo "$aros_kernel_ld" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10204 if test "$aros_kernel_ld" = ""; then
10205 # Extract the first word of "ld", so it can be a program name with args.
10206 set dummy ld; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 case $aros_kernel_ld in
10213 [\\/]* | ?:[\\/]*)
10214 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10224 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10228 done
10229 done
10230 IFS=$as_save_IFS
10233 esac
10235 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10236 if test -n "$aros_kernel_ld"; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10238 $as_echo "$aros_kernel_ld" >&6; }
10239 else
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10247 else
10248 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10249 set dummy $aros_kernel_ld; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 case $aros_kernel_ld in
10256 [\\/]* | ?:[\\/]*)
10257 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10261 for as_dir in $PATH
10263 IFS=$as_save_IFS
10264 test -z "$as_dir" && as_dir=.
10265 for ac_exec_ext in '' $ac_executable_extensions; do
10266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10267 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 break 2
10271 done
10272 done
10273 IFS=$as_save_IFS
10276 esac
10278 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10279 if test -n "$aros_kernel_ld"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10281 $as_echo "$aros_kernel_ld" >&6; }
10282 else
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284 $as_echo "no" >&6; }
10290 if test "$aros_kernel_ld" = ""; then
10291 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10294 if test "$aros_kernel_ar" = ""; then
10295 if test "$cross_compiling" = "yes" ; then
10296 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10297 set dummy ${target_tool_prefix}ar; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 case $aros_kernel_ar in
10304 [\\/]* | ?:[\\/]*)
10305 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10315 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10319 done
10320 done
10321 IFS=$as_save_IFS
10324 esac
10326 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10327 if test -n "$aros_kernel_ar"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10329 $as_echo "$aros_kernel_ar" >&6; }
10330 else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10336 else
10337 if test "$GCC" = "yes"; then
10338 aros_gcc_ar=`$CC -print-prog-name=ar`
10339 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10340 set dummy `basename $aros_gcc_ar`; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 case $aros_kernel_ar in
10347 [\\/]* | ?:[\\/]*)
10348 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in `dirname $aros_gcc_ar`
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10360 break 2
10362 done
10363 done
10364 IFS=$as_save_IFS
10367 esac
10369 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10370 if test -n "$aros_kernel_ar"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10372 $as_echo "$aros_kernel_ar" >&6; }
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10380 if test "$aros_kernel_ar" = ""; then
10381 # Extract the first word of "ar", so it can be a program name with args.
10382 set dummy ar; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 case $aros_kernel_ar in
10389 [\\/]* | ?:[\\/]*)
10390 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in $PATH
10396 IFS=$as_save_IFS
10397 test -z "$as_dir" && as_dir=.
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10400 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 break 2
10404 done
10405 done
10406 IFS=$as_save_IFS
10409 esac
10411 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10412 if test -n "$aros_kernel_ar"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10414 $as_echo "$aros_kernel_ar" >&6; }
10415 else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10423 else
10424 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10425 set dummy $aros_kernel_ar; ac_word=$2
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10427 $as_echo_n "checking for $ac_word... " >&6; }
10428 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10430 else
10431 case $aros_kernel_ar in
10432 [\\/]* | ?:[\\/]*)
10433 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10443 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10447 done
10448 done
10449 IFS=$as_save_IFS
10452 esac
10454 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10455 if test -n "$aros_kernel_ar"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10457 $as_echo "$aros_kernel_ar" >&6; }
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10466 if test "$aros_kernel_ar" = ""; then
10467 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10470 if test "$aros_kernel_ranlib" = ""; then
10471 if test "$cross_compiling" = "yes" ; then
10472 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10473 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 case $aros_kernel_ranlib in
10480 [\\/]* | ?:[\\/]*)
10481 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485 for as_dir in $PATH
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
10489 for ac_exec_ext in '' $ac_executable_extensions; do
10490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10491 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 break 2
10495 done
10496 done
10497 IFS=$as_save_IFS
10500 esac
10502 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10503 if test -n "$aros_kernel_ranlib"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10505 $as_echo "$aros_kernel_ranlib" >&6; }
10506 else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10512 else
10513 if test "$GCC" = "yes"; then
10514 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10515 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10516 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518 $as_echo_n "checking for $ac_word... " >&6; }
10519 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 case $aros_kernel_ranlib in
10523 [\\/]* | ?:[\\/]*)
10524 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in `dirname $aros_gcc_ranlib`
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10534 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10538 done
10539 done
10540 IFS=$as_save_IFS
10543 esac
10545 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10546 if test -n "$aros_kernel_ranlib"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10548 $as_echo "$aros_kernel_ranlib" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10556 if test "$aros_kernel_ranlib" = ""; then
10557 # Extract the first word of "ranlib", so it can be a program name with args.
10558 set dummy ranlib; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 case $aros_kernel_ranlib in
10565 [\\/]* | ?:[\\/]*)
10566 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10580 done
10581 done
10582 IFS=$as_save_IFS
10585 esac
10587 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10588 if test -n "$aros_kernel_ranlib"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10590 $as_echo "$aros_kernel_ranlib" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10599 else
10600 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10601 set dummy $aros_kernel_ranlib; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 case $aros_kernel_ranlib in
10608 [\\/]* | ?:[\\/]*)
10609 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10619 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10623 done
10624 done
10625 IFS=$as_save_IFS
10628 esac
10630 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10631 if test -n "$aros_kernel_ranlib"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10633 $as_echo "$aros_kernel_ranlib" >&6; }
10634 else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10642 if test "$aros_kernel_ranlib" = ""; then
10643 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10645 else
10646 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10647 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10648 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10651 crosstools_target=tools-crosstools
10654 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10656 orig_target_cc=$aros_kernel_cc
10657 orig_target_ld=$aros_kernel_ld
10659 if test "$crosstools" != "yes"; then
10660 if test "$aros_target_cc" != ""; then
10661 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10662 set dummy $aros_target_cc; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 case $aros_target_cc in
10669 [\\/]* | ?:[\\/]*)
10670 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in $PATH
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10680 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10684 done
10685 done
10686 IFS=$as_save_IFS
10689 esac
10691 aros_target_cc=$ac_cv_path_aros_target_cc
10692 if test -n "$aros_target_cc"; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10694 $as_echo "$aros_target_cc" >&6; }
10695 else
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; }
10701 if test "$aros_target_cc" = ""; then
10702 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10704 orig_target_cc=$aros_target_cc
10706 if test "$aros_target_ld" != ""; then
10707 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10708 set dummy $aros_target_ld; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710 $as_echo_n "checking for $ac_word... " >&6; }
10711 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 case $aros_target_ld in
10715 [\\/]* | ?:[\\/]*)
10716 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10726 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10730 done
10731 done
10732 IFS=$as_save_IFS
10735 esac
10737 aros_target_ld=$ac_cv_path_aros_target_ld
10738 if test -n "$aros_target_ld"; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10740 $as_echo "$aros_target_ld" >&6; }
10741 else
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10747 if test "$aros_target_ld" = ""; then
10748 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10750 orig_target_ld=$aros_target_ld
10752 else
10753 orig_target_cc=$aros_target_cc
10754 orig_target_ld=$aros_target_ld
10757 # Build crosstools if we have no C++ - temporary thing
10758 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10759 crosstools_cxx_target=tools-crosstools
10762 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10763 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10764 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10765 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10766 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10767 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10768 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10770 # aros_cc_pre is a variable that is added to the front of the compiler name
10771 # in the generated aros-gcc shell script. We need this to enable the cache
10772 # to work across cleaned builds. Also, support DISTCC using the correct
10773 # environment variable.
10776 if test "x${DISTCC}" != "x" ; then
10777 if test "x${CCACHE}" != "x" ; then
10778 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10779 else
10780 aros_cc_pre="${DISTCC} "
10782 else
10783 if test "x${CCACHE}" != "x" ; then
10784 aros_cc_pre="${CCACHE} "
10788 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10790 aros_target_nostdinc_cflags=-nostdinc
10792 aros_target_nostartup_ldflags=-nostartfiles
10794 aros_target_nix_ldflags=-nix
10796 aros_target_detach_ldflags=-detach
10798 aros_target_nostdlib_ldflags=-nostdlib
10801 # Target tools
10802 if test "$crosstools" != "yes"; then
10803 if test "$GCC" = "yes"; then
10804 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10806 else
10807 # We do not know which gcc version we are going to build and what we need to know
10808 # here is different for different versions so this will be set later during the
10809 # build of crosstools.
10810 aros_target_cc_path=@aros_target_cc_path@
10812 aros_target_cc="${prefix}-gcc"
10813 aros_target_as="${prefix}-as"
10814 aros_target_ld="${prefix}-ld"
10815 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10816 aros_target_objcopy=${prefix}-objcopy
10817 aros_target_objdump=${prefix}-objdump
10818 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10819 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10820 aros_target_strip=${prefix}-strip
10821 aros_plain_nm="${prefix}-nm"
10822 aros_plain_ar="${prefix}-ar"
10824 # Find the system include path. We can suggest that an alternative is
10825 # used if we don't get it correct. The default is to use /usr/include.
10826 # Which is set in the aros_target_incl_def variable.
10828 # Check whether --enable-includes was given.
10829 if test "${enable_includes+set}" = set; then :
10830 enableval=$enable_includes; aros_target_incl=$enable_includes
10831 else
10832 aros_target_incl=$aros_target_incl_def
10836 if test "$aros_kernel_includes" = ""; then
10837 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10838 # FIXME: for cross-compiling this should point to another location
10839 aros_kernel_includes="-isystem $aros_target_incl"
10843 if test "$aros_kernel_includes" != "" ; then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10845 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10846 if test "$aros_kernel_cc_includes" = "" ; then
10847 # Try to guess where the directory is.
10848 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10849 if test -d $aros_kernel_cc_includes; then
10850 # Check if there is also an include-fixed directory and add it
10851 # to kernel compiler's include path as it may contain some of
10852 # the headers we need.
10853 if test -d "$aros_kernel_cc_includes"-fixed; then
10854 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10856 else
10857 # The directory doesn't exist, we need to do some more work.
10858 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10860 # These are the headers we're looking for.
10861 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10862 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10863 zutil.h"
10865 dirs=
10866 for h in $headers; do
10867 # Which other headers are needed by each of the above?
10868 deps=$(echo "#include <$h>" | \
10869 $aros_kernel_cc -E -M - 2>/dev/null | \
10870 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10872 # Copy all the needed headers to a directory beneath gendir.
10873 for d in $deps; do
10874 h=$(basename $d)
10875 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10876 sed -n "s,^.*/include\(/.*\),\1,p")
10877 ! test -d $dir && mkdir -p $dir
10878 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10879 done
10880 done
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10884 $as_echo "$aros_kernel_cc_includes" >&6; }
10885 # Adding -nostdinc to kernel includes as they are always used together.
10886 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10889 if test "$crosstools" != "yes"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10891 $as_echo_n "checking for the target compiler's include path... " >&6; }
10892 if test "$aros_target_cc_includes" = "" ; then
10893 #try to guess where the directory is
10894 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10895 if ! test -d $aros_target_cc_includes; then
10896 #the directory doesn't exist, we need to do some more work
10897 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10899 #these are the headers we're looking for
10900 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10901 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10902 zutil.h"
10904 dirs=
10905 for h in $headers; do
10906 #which other headers each of the above headers needs?
10907 deps=$(echo "#include <$h>" | \
10908 $orig_target_cc -E -M - 2>/dev/null | \
10909 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10911 #copy all the needed headers to a directory beneath gendir
10912 for d in $deps; do
10913 h=$(basename $d)
10914 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10915 sed -n "s,^.*/include\(/.*\),\1,p")
10916 ! test -d $dir && mkdir -p $dir
10917 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10918 done
10919 done
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10923 $as_echo "$aros_target_cc_includes" >&6; }
10924 else
10925 # We do not know which gcc version we are going to build and what we need to know
10926 # here is different for different versions so this will be set later during the
10927 # build of crosstools.
10928 aros_target_cc_includes=@aros_target_cc_includes@
10932 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10933 # On GCC >= 4.0 -iquote should be used
10936 save_cc="$CC"
10937 save_cflags="$CFLAGS"
10938 CFLAGS="-iquote."
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10940 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10941 if test "x-$crosstools" != "x-yes"; then
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10946 main ()
10950 return 0;
10952 _ACEOF
10953 if ac_fn_c_try_compile "$LINENO"; then :
10954 has_iquote="yes"
10955 else
10956 has_iquote="no"
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 else
10960 # we do know it is supported for the smallest version of gcc we are going to build
10961 # we assume it's also supported by later versions
10962 has_iquote=yes
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10965 $as_echo "$has_iquote" >&6; }
10966 if test "x-$has_iquote" = "x-yes" ; then
10967 host_cflags_iquote=-iquote
10968 host_cflags_iquote_end=
10969 else
10970 host_cflags_iquote=-I
10971 host_cflags_iquote_end=-I-
10973 kernel_cflags_iquote=$host_cflags_iquote
10974 kernel_cflags_iquote_end=$host_cflags_iquote_end
10975 if test "x-$cross_compiling" = "x-yes"; then
10976 CC="$aros_kernel_cc"
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
10978 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
10979 if test "x-$crosstools" != "x-yes"; then
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10984 main ()
10988 return 0;
10990 _ACEOF
10991 if ac_fn_c_try_compile "$LINENO"; then :
10992 use_no_stack_protector="yes"
10993 else
10994 use_no_stack_protector="no"
10996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10997 else
10998 # we do know it is supported for the smallest version of gcc we are going to build
10999 # we assume it's also supported by later versions
11000 use_no_stack_protector=yes
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11003 $as_echo "$use_no_stack_protector" >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11005 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11006 if test "x-$crosstools" != "x-yes"; then
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11011 main ()
11015 return 0;
11017 _ACEOF
11018 if ac_fn_c_try_compile "$LINENO"; then :
11019 has_iquote="yes"
11020 else
11021 has_iquote="no"
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 else
11025 # we do know it is supported for the smallest version of gcc we are going to build
11026 # we assume it's also supported by later versions
11027 has_iquote=yes
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11030 $as_echo "$has_iquote" >&6; }
11031 if test "x-$has_iquote" = "x-yes" ; then
11032 kernel_cflags_iquote=-iquote
11033 kernel_cflags_iquote_end=
11034 else
11035 kernel_cflags_iquote=-I
11036 kernel_cflags_iquote_end=-I-
11039 aros_cflags_iquote=$kernel_cflags_iquote
11040 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11041 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11042 CC="$orig_target_cc"
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11044 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11045 if test "x-$crosstools" != "x-yes"; then
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11050 main ()
11054 return 0;
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"; then :
11058 has_iquote="yes"
11059 else
11060 has_iquote="no"
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 else
11064 # we do know it is supported for the smallest version of gcc we are going to build
11065 # we assume it's also supported by later versions
11066 has_iquote=yes
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11069 $as_echo "$has_iquote" >&6; }
11070 if test "x-$has_iquote" = "x-yes" ; then
11071 aros_cflags_iquote=-iquote
11072 aros_cflags_iquote_end=
11073 else
11074 aros_cflags_iquote=-I
11075 aros_cflags_iquote_end=-I-
11078 if test "x-$use_no_stack_protector" = "x-yes" ; then
11079 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11082 #-----------------------------------------------------------------------------
11084 # Check if we can explicitly choose older version of symbol hashing
11086 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11087 CC="$aros_kernel_cc"
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11089 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11094 main ()
11098 return 0;
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102 use_hash_style="yes"
11103 else
11104 use_hash_style="no"
11106 rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11109 $as_echo "$use_hash_style" >&6; }
11110 if test "x-$use_hash_style" = "x-yes" ; then
11111 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11113 CC="$save_cc"
11114 CFLAGS="$save_cflags"
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11125 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11127 # Check whether --with-resolution was given.
11128 if test "${with_resolution+set}" = set; then :
11129 withval=$with_resolution; resolution=$withval
11130 else
11131 resolution=none
11134 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11135 if test "$resolution" = "yes" ; then
11136 resolution="none"
11138 if test "$resolution" = "no" ; then
11139 resolution="none"
11141 if test "$resolution" != "none" ; then
11142 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11143 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11144 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11147 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11148 aros_cv_default_wbwidth=$aros_default_wbwidth
11149 aros_cv_default_wbheight=$aros_default_wbheight
11150 aros_cv_default_wbdepth=$aros_default_wbdepth
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11153 $as_echo_n "checking if serial debug is enabled... " >&6; }
11155 # Check whether --with-serial-debug was given.
11156 if test "${with_serial_debug+set}" = set; then :
11157 withval=$with_serial_debug; serial_debug=$withval
11158 else
11159 serial_debug=none
11162 if test "$aros_serial_debug" = 0 ; then
11163 serial_debug_forced=""
11164 if test "$serial_debug" = "yes" ; then
11165 serial_debug="1"
11167 if test "$serial_debug" = "no" ; then
11168 serial_debug="none"
11170 else
11171 serial_debug_forced="(forced)"
11172 serial_debug=$aros_serial_debug
11174 if test "$serial_debug" != "none" ; then
11175 aros_serial_debug=$serial_debug
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11177 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11184 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11185 # Check whether --enable-palm_debug_hack was given.
11186 if test "${enable_palm_debug_hack+set}" = set; then :
11187 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11188 else
11189 palm_debug_hack="no"
11192 if test "$palm_debug_hack" = "yes" ; then
11193 aros_palm_debug_hack="1"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11196 $as_echo "$palm_debug_hack" >&6; }
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11199 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11200 # Check whether --enable-usb30_code was given.
11201 if test "${enable_usb30_code+set}" = set; then :
11202 enableval=$enable_usb30_code; usb30_code="yes"
11203 else
11204 usb30_code="no"
11207 if test "$usb30_code" = "yes" ; then
11208 aros_usb30_code="1"
11209 else
11210 aros_usb30_code="0"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11213 $as_echo "$usb30_code" >&6; }
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11216 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11217 # Check whether --enable-nesting_supervisor was given.
11218 if test "${enable_nesting_supervisor+set}" = set; then :
11219 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11220 else
11221 nesting_supervisor="no"
11224 if test "$nesting_supervisor" = "yes" ; then
11225 aros_nesting_supervisor="1"
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11228 $as_echo "$nesting_supervisor" >&6; }
11230 if test "$aros_enable_mmu" = "" ; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11232 $as_echo_n "checking if MMU support is enabled... " >&6; }
11233 # Check whether --enable-mmu was given.
11234 if test "${enable_mmu+set}" = set; then :
11235 enableval=$enable_mmu; aros_enable_mmu=$enableval
11236 else
11237 aros_enable_mmu="yes"
11240 if test "$aros_enable_mmu" = "" ; then
11241 aros_enable_mmu="yes"
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11244 $as_echo "$aros_enable_mmu" >&6; }
11246 if test "$aros_enable_mmu" = "no" ; then
11247 aros_enable_mmu="0"
11248 else
11249 aros_enable_mmu="1"
11253 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11255 if test "x-$need_dlopen" != "x-no" ; then
11256 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11257 if test "x$ac_cv_func_dlopen" = x""yes; then :
11258 have_dl="yes"
11259 else
11260 have_dl="no"
11263 if test "x-$have_dl" = "x-no" ; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11265 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 ac_check_lib_save_LIBS=$LIBS
11270 LIBS="-ldl $LIBS"
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 char dlopen ();
11282 main ()
11284 return dlopen ();
11286 return 0;
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11290 ac_cv_lib_dl_dlopen=yes
11291 else
11292 ac_cv_lib_dl_dlopen=no
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LIBS=$ac_check_lib_save_LIBS
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11299 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11300 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11301 have_dl="yes"
11302 aros_host_ldflags="$aros_host_ldflags -ldl"
11303 else
11304 have_dl="no"
11308 if test "x-$have_dl" = "x-no" ; then
11309 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11314 # Check whether --enable-x11_hidd was given.
11315 if test "${enable_x11_hidd+set}" = set; then :
11316 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11317 else
11318 x11_hidd="$need_x11"
11321 case "x-$x11_hidd" in
11322 x-yes|x-no|x-auto) ;;
11323 *) x11_hidd="$need_x11" ;;
11324 esac
11326 ENABLE_X11=0
11328 if test "x-$x11_hidd" != "x-no" ; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11331 $as_echo_n "checking for X... " >&6; }
11334 # Check whether --with-x was given.
11335 if test "${with_x+set}" = set; then :
11336 withval=$with_x;
11339 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11340 if test "x$with_x" = xno; then
11341 # The user explicitly disabled X.
11342 have_x=disabled
11343 else
11344 case $x_includes,$x_libraries in #(
11345 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
11346 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 # One or both of the vars are not set, and there is no cached value.
11350 ac_x_includes=no ac_x_libraries=no
11351 rm -f -r conftest.dir
11352 if mkdir conftest.dir; then
11353 cd conftest.dir
11354 cat >Imakefile <<'_ACEOF'
11355 incroot:
11356 @echo incroot='${INCROOT}'
11357 usrlibdir:
11358 @echo usrlibdir='${USRLIBDIR}'
11359 libdir:
11360 @echo libdir='${LIBDIR}'
11361 _ACEOF
11362 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11363 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11364 for ac_var in incroot usrlibdir libdir; do
11365 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11366 done
11367 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11368 for ac_extension in a so sl dylib la dll; do
11369 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11370 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11371 ac_im_usrlibdir=$ac_im_libdir; break
11373 done
11374 # Screen out bogus values from the imake configuration. They are
11375 # bogus both because they are the default anyway, and because
11376 # using them would break gcc on systems where it needs fixed includes.
11377 case $ac_im_incroot in
11378 /usr/include) ac_x_includes= ;;
11379 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11380 esac
11381 case $ac_im_usrlibdir in
11382 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11383 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11384 esac
11386 cd ..
11387 rm -f -r conftest.dir
11390 # Standard set of common directories for X headers.
11391 # Check X11 before X11Rn because it is often a symlink to the current release.
11392 ac_x_header_dirs='
11393 /usr/X11/include
11394 /usr/X11R7/include
11395 /usr/X11R6/include
11396 /usr/X11R5/include
11397 /usr/X11R4/include
11399 /usr/include/X11
11400 /usr/include/X11R7
11401 /usr/include/X11R6
11402 /usr/include/X11R5
11403 /usr/include/X11R4
11405 /usr/local/X11/include
11406 /usr/local/X11R7/include
11407 /usr/local/X11R6/include
11408 /usr/local/X11R5/include
11409 /usr/local/X11R4/include
11411 /usr/local/include/X11
11412 /usr/local/include/X11R7
11413 /usr/local/include/X11R6
11414 /usr/local/include/X11R5
11415 /usr/local/include/X11R4
11417 /usr/X386/include
11418 /usr/x386/include
11419 /usr/XFree86/include/X11
11421 /usr/include
11422 /usr/local/include
11423 /usr/unsupported/include
11424 /usr/athena/include
11425 /usr/local/x11r5/include
11426 /usr/lpp/Xamples/include
11428 /usr/openwin/include
11429 /usr/openwin/share/include'
11431 if test "$ac_x_includes" = no; then
11432 # Guess where to find include files, by looking for Xlib.h.
11433 # First, try using that file with no special directory specified.
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11436 #include <X11/Xlib.h>
11437 _ACEOF
11438 if ac_fn_c_try_cpp "$LINENO"; then :
11439 # We can compile using X headers with no special include directory.
11440 ac_x_includes=
11441 else
11442 for ac_dir in $ac_x_header_dirs; do
11443 if test -r "$ac_dir/X11/Xlib.h"; then
11444 ac_x_includes=$ac_dir
11445 break
11447 done
11449 rm -f conftest.err conftest.i conftest.$ac_ext
11450 fi # $ac_x_includes = no
11452 if test "$ac_x_libraries" = no; then
11453 # Check for the libraries.
11454 # See if we find them without any special options.
11455 # Don't add to $LIBS permanently.
11456 ac_save_LIBS=$LIBS
11457 LIBS="-lX11 $LIBS"
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460 #include <X11/Xlib.h>
11462 main ()
11464 XrmInitialize ()
11466 return 0;
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 LIBS=$ac_save_LIBS
11471 # We can link X programs with no special library path.
11472 ac_x_libraries=
11473 else
11474 LIBS=$ac_save_LIBS
11475 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11477 # Don't even attempt the hair of trying to link an X program!
11478 for ac_extension in a so sl dylib la dll; do
11479 if test -r "$ac_dir/libX11.$ac_extension"; then
11480 ac_x_libraries=$ac_dir
11481 break 2
11483 done
11484 done
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 fi # $ac_x_libraries = no
11490 case $ac_x_includes,$ac_x_libraries in #(
11491 no,* | *,no | *\'*)
11492 # Didn't find X, or a directory has "'" in its name.
11493 ac_cv_have_x="have_x=no";; #(
11495 # Record where we found X for the cache.
11496 ac_cv_have_x="have_x=yes\
11497 ac_x_includes='$ac_x_includes'\
11498 ac_x_libraries='$ac_x_libraries'"
11499 esac
11501 ;; #(
11502 *) have_x=yes;;
11503 esac
11504 eval "$ac_cv_have_x"
11505 fi # $with_x != no
11507 if test "$have_x" != yes; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11509 $as_echo "$have_x" >&6; }
11510 no_x=yes
11511 else
11512 # If each of the values was on the command line, it overrides each guess.
11513 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11514 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11515 # Update the cache value to reflect the command line values.
11516 ac_cv_have_x="have_x=yes\
11517 ac_x_includes='$x_includes'\
11518 ac_x_libraries='$x_libraries'"
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11520 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11524 x_cflags=
11525 for path in $x_libraries
11527 x_cflags="$x_cflags -L$path"
11528 done
11530 for path in $x_includes
11532 x_cflags="$x_cflags -I$path"
11533 done
11535 if test "x-$no_x" = "x-yes" ; then
11537 if test "x-$x11_hidd" != "x-auto" ; then
11538 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11541 else
11542 x11_hidd_target=kernel-x11gfx-kobj
11543 ENABLE_X11=1
11545 # Check whether --enable-x11_shm was given.
11546 if test "${enable_x11_shm+set}" = set; then :
11547 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11548 else
11549 x11_hidd_shm="auto"
11552 case "x-$x11_hidd_shm" in
11553 x-yes|x-no|x-auto) ;;
11554 *) x11_hidd_shm="auto" ;;
11555 esac
11557 have_xshm=no
11559 if test "x-$x11_hidd_shm" != "x-no" ; then
11561 for ac_header in sys/ipc.h
11562 do :
11563 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11564 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
11565 cat >>confdefs.h <<_ACEOF
11566 #define HAVE_SYS_IPC_H 1
11567 _ACEOF
11571 done
11573 for ac_header in sys/shm.h
11574 do :
11575 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11576 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
11577 cat >>confdefs.h <<_ACEOF
11578 #define HAVE_SYS_SHM_H 1
11579 _ACEOF
11583 done
11586 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11588 save_cflags="$CFLAGS"
11589 CFLAGS="$CFLAGS $x_cflags"
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11591 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11592 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-lXext $LIBS"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11600 /* Override any GCC internal prototype to avoid an error.
11601 Use char because int might match the return type of a GCC
11602 builtin and then its argument prototype would still apply. */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 char XShmQueryExtension ();
11608 main ()
11610 return XShmQueryExtension ();
11612 return 0;
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616 ac_cv_lib_Xext_XShmQueryExtension=yes
11617 else
11618 ac_cv_lib_Xext_XShmQueryExtension=no
11620 rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11625 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11626 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
11627 have_xshm=yes
11630 CFLAGS="$save_cflags"
11634 if test "x-$have_xshm" = "x-yes" ; then
11635 DO_XSHM_SUPPORT="1"
11636 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11637 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11638 else
11639 DO_XSHM_SUPPORT="0"
11643 # Check whether --enable-x11_vidmode was given.
11644 if test "${enable_x11_vidmode+set}" = set; then :
11645 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11646 else
11647 x11_hidd_vidmode="auto"
11650 case "x-$x11_hidd_vidmode" in
11651 x-yes|x-no|x-auto) ;;
11652 *) x11_hidd_vidmode="auto" ;;
11653 esac
11655 have_vidmode=no
11657 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11659 save_cflags="$CFLAGS"
11660 CFLAGS="$CFLAGS $x_cflags"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11662 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11663 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lXxf86vm $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char XF86VidModeQueryExtension ();
11679 main ()
11681 return XF86VidModeQueryExtension ();
11683 return 0;
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11688 else
11689 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11696 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11697 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
11698 have_vidmode=yes
11701 CFLAGS="$save_cflags"
11704 if test "x-$have_vidmode" = "x-yes" ; then
11705 DO_VIDMODE_SUPPORT="1"
11706 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11707 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11708 else
11709 DO_VIDMODE_SUPPORT="0"
11713 aros_host_x11_includes=$x_includes
11714 aros_host_x11_libdirs=$x_libraries
11718 # Check whether --enable-sdl_hidd was given.
11719 if test "${enable_sdl_hidd+set}" = set; then :
11720 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11721 else
11722 sdl_hidd="auto"
11725 case "x-$sdl_hidd" in
11726 x-yes|x-no|x-auto) ;;
11727 *) sdl_hidd="auto" ;;
11728 esac
11730 if test "x-$sdl_hidd" != "x-no" ; then
11733 # Check whether --with-sdl-prefix was given.
11734 if test "${with_sdl_prefix+set}" = set; then :
11735 withval=$with_sdl_prefix; sdl_prefix="$withval"
11736 else
11737 sdl_prefix=""
11741 # Check whether --with-sdl-exec-prefix was given.
11742 if test "${with_sdl_exec_prefix+set}" = set; then :
11743 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11744 else
11745 sdl_exec_prefix=""
11748 # Check whether --enable-sdltest was given.
11749 if test "${enable_sdltest+set}" = set; then :
11750 enableval=$enable_sdltest;
11751 else
11752 enable_sdltest=yes
11756 if test x$sdl_exec_prefix != x ; then
11757 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11758 if test x${SDL_CONFIG+set} != xset ; then
11759 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11762 if test x$sdl_prefix != x ; then
11763 sdl_args="$sdl_args --prefix=$sdl_prefix"
11764 if test x${SDL_CONFIG+set} != xset ; then
11765 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11769 if test "x$prefix" != xNONE; then
11770 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11772 # Extract the first word of "sdl-config", so it can be a program name with args.
11773 set dummy sdl-config; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 case $SDL_CONFIG in
11780 [\\/]* | ?:[\\/]*)
11781 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11791 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11795 done
11796 done
11797 IFS=$as_save_IFS
11799 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11801 esac
11803 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11804 if test -n "$SDL_CONFIG"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11806 $as_echo "$SDL_CONFIG" >&6; }
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11813 min_sdl_version=1.2.10
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11815 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11816 no_sdl=""
11817 if test "$SDL_CONFIG" = "no" ; then
11818 no_sdl=yes
11819 else
11820 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11821 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11823 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11824 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11825 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11826 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11827 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11828 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11829 if test "x$enable_sdltest" = "xyes" ; then
11830 ac_save_CFLAGS="$CFLAGS"
11831 ac_save_CXXFLAGS="$CXXFLAGS"
11832 ac_save_LIBS="$LIBS"
11833 CFLAGS="$CFLAGS $SDL_CFLAGS"
11834 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11835 LIBS="$LIBS $SDL_LIBS"
11836 rm -f conf.sdltest
11837 if test "$cross_compiling" = yes; then :
11838 echo $ac_n "cross compiling; assumed OK... $ac_c"
11839 else
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11843 #include <stdio.h>
11844 #include <stdlib.h>
11845 #include <string.h>
11846 #include "SDL.h"
11848 char*
11849 my_strdup (char *str)
11851 char *new_str;
11853 if (str)
11855 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11856 strcpy (new_str, str);
11858 else
11859 new_str = NULL;
11861 return new_str;
11864 int main (int argc, char *argv[])
11866 int major, minor, micro;
11867 char *tmp_version;
11869 /* This hangs on some systems (?)
11870 system ("touch conf.sdltest");
11872 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11874 /* HP/UX 9 (%@#!) writes to sscanf strings */
11875 tmp_version = my_strdup("$min_sdl_version");
11876 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11877 printf("%s, bad version string\n", "$min_sdl_version");
11878 exit(1);
11881 if (($sdl_major_version > major) ||
11882 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11883 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11885 return 0;
11887 else
11889 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11890 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11891 printf("*** best to upgrade to the required version.\n");
11892 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11893 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11894 printf("*** config.cache before re-running configure\n");
11895 return 1;
11900 _ACEOF
11901 if ac_fn_c_try_run "$LINENO"; then :
11903 else
11904 no_sdl=yes
11906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11907 conftest.$ac_objext conftest.beam conftest.$ac_ext
11910 CFLAGS="$ac_save_CFLAGS"
11911 CXXFLAGS="$ac_save_CXXFLAGS"
11912 LIBS="$ac_save_LIBS"
11915 if test "x$no_sdl" = x ; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11917 $as_echo "yes" >&6; }
11918 have_sdl="yes"
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 if test "$SDL_CONFIG" = "no" ; then
11923 echo "*** The sdl-config script installed by SDL could not be found"
11924 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11925 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11926 echo "*** full path to sdl-config."
11927 else
11928 if test -f conf.sdltest ; then
11930 else
11931 echo "*** Could not run SDL test program, checking why..."
11932 CFLAGS="$CFLAGS $SDL_CFLAGS"
11933 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11934 LIBS="$LIBS $SDL_LIBS"
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11938 #include <stdio.h>
11939 #include "SDL.h"
11941 int main(int argc, char *argv[])
11942 { return 0; }
11943 #undef main
11944 #define main K_and_R_C_main
11947 main ()
11949 return 0;
11951 return 0;
11953 _ACEOF
11954 if ac_fn_c_try_link "$LINENO"; then :
11955 echo "*** The test program compiled, but did not run. This usually means"
11956 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11957 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11958 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11959 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11960 echo "*** is required on your system"
11961 echo "***"
11962 echo "*** If you have an old version installed, it is best to remove it, although"
11963 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11964 else
11965 echo "*** The test program failed to compile or link. See the file config.log for the"
11966 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11967 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11968 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11970 rm -f core conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 CFLAGS="$ac_save_CFLAGS"
11973 CXXFLAGS="$ac_save_CXXFLAGS"
11974 LIBS="$ac_save_LIBS"
11977 SDL_CFLAGS=""
11978 SDL_LIBS=""
11979 have_sdl="no"
11983 rm -f conf.sdltest
11986 if test "x-$have_sdl" != "x-yes" ; then
11988 if test "x-$sdl_hidd" != "x-auto" ; then
11989 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
11992 else
11993 sdl_hidd_target=kernel-hidd-sdl
11994 aros_host_sdl_cflags=SDL_CFLAGS
11995 aros_host_sdl_libs=SDL_LIBS
11999 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12000 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
12005 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12006 oss_library_target=workbench-libs-oss-unix
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12012 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12013 # Check whether --enable-dbus was given.
12014 if test "${enable_dbus+set}" = set; then :
12015 enableval=$enable_dbus; dbus="yes"
12016 else
12017 dbus="no"
12020 if test "$dbus" = "yes" ; then
12021 ENABLE_DBUS=1
12022 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12023 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12024 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12025 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12026 else
12027 ENABLE_DBUS=0
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12030 $as_echo "$dbus" >&6; }
12032 if test "$use_kernel_cc_wrapper" = "yes" ; then
12033 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12037 # Generic
12048 # Compatability with other Amiga-like operation systems
12051 # Host related
12076 # Target Related
12134 # Graphics Related
12151 # Native version related
12154 # Palm native version related
12157 # USB3.0 code
12160 # Unix/Hosted version related
12163 # MMU related
12166 # Apple iOS related
12171 # Android related
12175 # DBUS related
12182 #X11 related
12185 # Debug related
12191 # Collect-aros stuff: "-ius" to ignore undefined symbols
12194 # C compiler related
12197 case "$aros_flavour" in
12198 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12199 aros_flavour="emulation" ;;
12200 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12201 aros_flavour="emulation" ;;
12202 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12203 aros_flavour="standalone";;
12204 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12205 aros_flavour="standalone";;
12206 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12207 aros_flavour="native" ;;
12208 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12209 aros_flavour="native" ;;
12210 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12211 aros_flavour="linklib" ;;
12212 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12213 aros_flavour="palmnative" ;;
12214 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12215 aros_flavour="mac68knative" ;;
12216 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12217 aros_flavour="ppcnative" ;;
12218 esac
12220 if test ! -d ${aros_inc_dir} ; then
12221 ${MKDIR} ${aros_inc_dir}
12223 if test ! -d ${aros_geninc_dir} ; then
12224 ${MKDIR} ${aros_geninc_dir}
12226 if test ! -d ${aros_hostcfg_dir} ; then
12227 ${MKDIR} ${aros_hostcfg_dir}
12229 if test ! -d ${aros_targetcfg_dir} ; then
12230 ${MKDIR} ${aros_targetcfg_dir}
12232 if test ! -d ${aros_tools_dir} ; then
12233 ${MKDIR} ${aros_tools_dir}
12235 if test ! -d ${aros_scripts_dir} ; then
12236 ${MKDIR} ${aros_scripts_dir}
12239 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12242 ac_config_commands="$ac_config_commands compiler_executable"
12244 ac_config_commands="$ac_config_commands genmf_executable"
12247 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
12250 cat >confcache <<\_ACEOF
12251 # This file is a shell script that caches the results of configure
12252 # tests run on this system so they can be shared between configure
12253 # scripts and configure runs, see configure's option --config-cache.
12254 # It is not useful on other systems. If it contains results you don't
12255 # want to keep, you may remove or edit it.
12257 # config.status only pays attention to the cache file if you give it
12258 # the --recheck option to rerun configure.
12260 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12261 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12262 # following values.
12264 _ACEOF
12266 # The following way of writing the cache mishandles newlines in values,
12267 # but we know of no workaround that is simple, portable, and efficient.
12268 # So, we kill variables containing newlines.
12269 # Ultrix sh set writes to stderr and can't be redirected directly,
12270 # and sets the high bit in the cache file unless we assign to the vars.
12272 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12273 eval ac_val=\$$ac_var
12274 case $ac_val in #(
12275 *${as_nl}*)
12276 case $ac_var in #(
12277 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12278 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12279 esac
12280 case $ac_var in #(
12281 _ | IFS | as_nl) ;; #(
12282 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12283 *) { eval $ac_var=; unset $ac_var;} ;;
12284 esac ;;
12285 esac
12286 done
12288 (set) 2>&1 |
12289 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12290 *${as_nl}ac_space=\ *)
12291 # `set' does not quote correctly, so add quotes: double-quote
12292 # substitution turns \\\\ into \\, and sed turns \\ into \.
12293 sed -n \
12294 "s/'/'\\\\''/g;
12295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12296 ;; #(
12298 # `set' quotes correctly as required by POSIX, so do not add quotes.
12299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12301 esac |
12302 sort
12304 sed '
12305 /^ac_cv_env_/b end
12306 t clear
12307 :clear
12308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12309 t end
12310 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12311 :end' >>confcache
12312 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12313 if test -w "$cache_file"; then
12314 test "x$cache_file" != "x/dev/null" &&
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12316 $as_echo "$as_me: updating cache $cache_file" >&6;}
12317 cat confcache >$cache_file
12318 else
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12320 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12323 rm -f confcache
12325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12326 # Let make expand exec_prefix.
12327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12329 DEFS=-DHAVE_CONFIG_H
12331 ac_libobjs=
12332 ac_ltlibobjs=
12334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12335 # 1. Remove the extension, and $U if already installed.
12336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12337 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12339 # will be set to the directory where LIBOBJS objects are built.
12340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12342 done
12343 LIBOBJS=$ac_libobjs
12345 LTLIBOBJS=$ac_ltlibobjs
12349 : ${CONFIG_STATUS=./config.status}
12350 ac_write_fail=0
12351 ac_clean_files_save=$ac_clean_files
12352 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12354 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12355 as_write_fail=0
12356 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12357 #! $SHELL
12358 # Generated by $as_me.
12359 # Run this file to recreate the current configuration.
12360 # Compiler output produced by configure, useful for debugging
12361 # configure, is in config.log if it exists.
12363 debug=false
12364 ac_cs_recheck=false
12365 ac_cs_silent=false
12367 SHELL=\${CONFIG_SHELL-$SHELL}
12368 export SHELL
12369 _ASEOF
12370 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12371 ## -------------------- ##
12372 ## M4sh Initialization. ##
12373 ## -------------------- ##
12375 # Be more Bourne compatible
12376 DUALCASE=1; export DUALCASE # for MKS sh
12377 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12378 emulate sh
12379 NULLCMD=:
12380 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12381 # is contrary to our usage. Disable this feature.
12382 alias -g '${1+"$@"}'='"$@"'
12383 setopt NO_GLOB_SUBST
12384 else
12385 case `(set -o) 2>/dev/null` in #(
12386 *posix*) :
12387 set -o posix ;; #(
12388 *) :
12390 esac
12394 as_nl='
12396 export as_nl
12397 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12398 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12399 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12400 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12401 # Prefer a ksh shell builtin over an external printf program on Solaris,
12402 # but without wasting forks for bash or zsh.
12403 if test -z "$BASH_VERSION$ZSH_VERSION" \
12404 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12405 as_echo='print -r --'
12406 as_echo_n='print -rn --'
12407 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12408 as_echo='printf %s\n'
12409 as_echo_n='printf %s'
12410 else
12411 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12412 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12413 as_echo_n='/usr/ucb/echo -n'
12414 else
12415 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12416 as_echo_n_body='eval
12417 arg=$1;
12418 case $arg in #(
12419 *"$as_nl"*)
12420 expr "X$arg" : "X\\(.*\\)$as_nl";
12421 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12422 esac;
12423 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12425 export as_echo_n_body
12426 as_echo_n='sh -c $as_echo_n_body as_echo'
12428 export as_echo_body
12429 as_echo='sh -c $as_echo_body as_echo'
12432 # The user is always right.
12433 if test "${PATH_SEPARATOR+set}" != set; then
12434 PATH_SEPARATOR=:
12435 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12436 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12437 PATH_SEPARATOR=';'
12442 # IFS
12443 # We need space, tab and new line, in precisely that order. Quoting is
12444 # there to prevent editors from complaining about space-tab.
12445 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12446 # splitting by setting IFS to empty value.)
12447 IFS=" "" $as_nl"
12449 # Find who we are. Look in the path if we contain no directory separator.
12450 case $0 in #((
12451 *[\\/]* ) as_myself=$0 ;;
12452 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453 for as_dir in $PATH
12455 IFS=$as_save_IFS
12456 test -z "$as_dir" && as_dir=.
12457 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12458 done
12459 IFS=$as_save_IFS
12462 esac
12463 # We did not find ourselves, most probably we were run as `sh COMMAND'
12464 # in which case we are not to be found in the path.
12465 if test "x$as_myself" = x; then
12466 as_myself=$0
12468 if test ! -f "$as_myself"; then
12469 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12470 exit 1
12473 # Unset variables that we do not need and which cause bugs (e.g. in
12474 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12475 # suppresses any "Segmentation fault" message there. '((' could
12476 # trigger a bug in pdksh 5.2.14.
12477 for as_var in BASH_ENV ENV MAIL MAILPATH
12478 do eval test x\${$as_var+set} = xset \
12479 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12480 done
12481 PS1='$ '
12482 PS2='> '
12483 PS4='+ '
12485 # NLS nuisances.
12486 LC_ALL=C
12487 export LC_ALL
12488 LANGUAGE=C
12489 export LANGUAGE
12491 # CDPATH.
12492 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12495 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12496 # ----------------------------------------
12497 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12498 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12499 # script with STATUS, using 1 if that was 0.
12500 as_fn_error ()
12502 as_status=$1; test $as_status -eq 0 && as_status=1
12503 if test "$4"; then
12504 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12505 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12507 $as_echo "$as_me: error: $2" >&2
12508 as_fn_exit $as_status
12509 } # as_fn_error
12512 # as_fn_set_status STATUS
12513 # -----------------------
12514 # Set $? to STATUS, without forking.
12515 as_fn_set_status ()
12517 return $1
12518 } # as_fn_set_status
12520 # as_fn_exit STATUS
12521 # -----------------
12522 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12523 as_fn_exit ()
12525 set +e
12526 as_fn_set_status $1
12527 exit $1
12528 } # as_fn_exit
12530 # as_fn_unset VAR
12531 # ---------------
12532 # Portably unset VAR.
12533 as_fn_unset ()
12535 { eval $1=; unset $1;}
12537 as_unset=as_fn_unset
12538 # as_fn_append VAR VALUE
12539 # ----------------------
12540 # Append the text in VALUE to the end of the definition contained in VAR. Take
12541 # advantage of any shell optimizations that allow amortized linear growth over
12542 # repeated appends, instead of the typical quadratic growth present in naive
12543 # implementations.
12544 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12545 eval 'as_fn_append ()
12547 eval $1+=\$2
12549 else
12550 as_fn_append ()
12552 eval $1=\$$1\$2
12554 fi # as_fn_append
12556 # as_fn_arith ARG...
12557 # ------------------
12558 # Perform arithmetic evaluation on the ARGs, and store the result in the
12559 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12560 # must be portable across $(()) and expr.
12561 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12562 eval 'as_fn_arith ()
12564 as_val=$(( $* ))
12566 else
12567 as_fn_arith ()
12569 as_val=`expr "$@" || test $? -eq 1`
12571 fi # as_fn_arith
12574 if expr a : '\(a\)' >/dev/null 2>&1 &&
12575 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12576 as_expr=expr
12577 else
12578 as_expr=false
12581 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12582 as_basename=basename
12583 else
12584 as_basename=false
12587 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12588 as_dirname=dirname
12589 else
12590 as_dirname=false
12593 as_me=`$as_basename -- "$0" ||
12594 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12595 X"$0" : 'X\(//\)$' \| \
12596 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12597 $as_echo X/"$0" |
12598 sed '/^.*\/\([^/][^/]*\)\/*$/{
12599 s//\1/
12602 /^X\/\(\/\/\)$/{
12603 s//\1/
12606 /^X\/\(\/\).*/{
12607 s//\1/
12610 s/.*/./; q'`
12612 # Avoid depending upon Character Ranges.
12613 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12614 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12615 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12616 as_cr_digits='0123456789'
12617 as_cr_alnum=$as_cr_Letters$as_cr_digits
12619 ECHO_C= ECHO_N= ECHO_T=
12620 case `echo -n x` in #(((((
12621 -n*)
12622 case `echo 'xy\c'` in
12623 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12624 xy) ECHO_C='\c';;
12625 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12626 ECHO_T=' ';;
12627 esac;;
12629 ECHO_N='-n';;
12630 esac
12632 rm -f conf$$ conf$$.exe conf$$.file
12633 if test -d conf$$.dir; then
12634 rm -f conf$$.dir/conf$$.file
12635 else
12636 rm -f conf$$.dir
12637 mkdir conf$$.dir 2>/dev/null
12639 if (echo >conf$$.file) 2>/dev/null; then
12640 if ln -s conf$$.file conf$$ 2>/dev/null; then
12641 as_ln_s='ln -s'
12642 # ... but there are two gotchas:
12643 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12644 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12645 # In both cases, we have to default to `cp -p'.
12646 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12647 as_ln_s='cp -p'
12648 elif ln conf$$.file conf$$ 2>/dev/null; then
12649 as_ln_s=ln
12650 else
12651 as_ln_s='cp -p'
12653 else
12654 as_ln_s='cp -p'
12656 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12657 rmdir conf$$.dir 2>/dev/null
12660 # as_fn_mkdir_p
12661 # -------------
12662 # Create "$as_dir" as a directory, including parents if necessary.
12663 as_fn_mkdir_p ()
12666 case $as_dir in #(
12667 -*) as_dir=./$as_dir;;
12668 esac
12669 test -d "$as_dir" || eval $as_mkdir_p || {
12670 as_dirs=
12671 while :; do
12672 case $as_dir in #(
12673 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12674 *) as_qdir=$as_dir;;
12675 esac
12676 as_dirs="'$as_qdir' $as_dirs"
12677 as_dir=`$as_dirname -- "$as_dir" ||
12678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12679 X"$as_dir" : 'X\(//\)[^/]' \| \
12680 X"$as_dir" : 'X\(//\)$' \| \
12681 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12682 $as_echo X"$as_dir" |
12683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12684 s//\1/
12687 /^X\(\/\/\)[^/].*/{
12688 s//\1/
12691 /^X\(\/\/\)$/{
12692 s//\1/
12695 /^X\(\/\).*/{
12696 s//\1/
12699 s/.*/./; q'`
12700 test -d "$as_dir" && break
12701 done
12702 test -z "$as_dirs" || eval "mkdir $as_dirs"
12703 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12706 } # as_fn_mkdir_p
12707 if mkdir -p . 2>/dev/null; then
12708 as_mkdir_p='mkdir -p "$as_dir"'
12709 else
12710 test -d ./-p && rmdir ./-p
12711 as_mkdir_p=false
12714 if test -x / >/dev/null 2>&1; then
12715 as_test_x='test -x'
12716 else
12717 if ls -dL / >/dev/null 2>&1; then
12718 as_ls_L_option=L
12719 else
12720 as_ls_L_option=
12722 as_test_x='
12723 eval sh -c '\''
12724 if test -d "$1"; then
12725 test -d "$1/.";
12726 else
12727 case $1 in #(
12728 -*)set "./$1";;
12729 esac;
12730 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12731 ???[sx]*):;;*)false;;esac;fi
12732 '\'' sh
12735 as_executable_p=$as_test_x
12737 # Sed expression to map a string onto a valid CPP name.
12738 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12740 # Sed expression to map a string onto a valid variable name.
12741 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12744 exec 6>&1
12745 ## ----------------------------------- ##
12746 ## Main body of $CONFIG_STATUS script. ##
12747 ## ----------------------------------- ##
12748 _ASEOF
12749 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12752 # Save the log message, to keep $0 and so on meaningful, and to
12753 # report actual input values of CONFIG_FILES etc. instead of their
12754 # values after options handling.
12755 ac_log="
12756 This file was extended by $as_me, which was
12757 generated by GNU Autoconf 2.67. Invocation command line was
12759 CONFIG_FILES = $CONFIG_FILES
12760 CONFIG_HEADERS = $CONFIG_HEADERS
12761 CONFIG_LINKS = $CONFIG_LINKS
12762 CONFIG_COMMANDS = $CONFIG_COMMANDS
12763 $ $0 $@
12765 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12768 _ACEOF
12770 case $ac_config_files in *"
12771 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12772 esac
12774 case $ac_config_headers in *"
12775 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12776 esac
12779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12780 # Files that config.status was made for.
12781 config_files="$ac_config_files"
12782 config_headers="$ac_config_headers"
12783 config_commands="$ac_config_commands"
12785 _ACEOF
12787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12788 ac_cs_usage="\
12789 \`$as_me' instantiates files and other configuration actions
12790 from templates according to the current configuration. Unless the files
12791 and actions are specified as TAGs, all are instantiated by default.
12793 Usage: $0 [OPTION]... [TAG]...
12795 -h, --help print this help, then exit
12796 -V, --version print version number and configuration settings, then exit
12797 --config print configuration, then exit
12798 -q, --quiet, --silent
12799 do not print progress messages
12800 -d, --debug don't remove temporary files
12801 --recheck update $as_me by reconfiguring in the same conditions
12802 --file=FILE[:TEMPLATE]
12803 instantiate the configuration file FILE
12804 --header=FILE[:TEMPLATE]
12805 instantiate the configuration header FILE
12807 Configuration files:
12808 $config_files
12810 Configuration headers:
12811 $config_headers
12813 Configuration commands:
12814 $config_commands
12816 Report bugs to the package provider."
12818 _ACEOF
12819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12820 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12821 ac_cs_version="\\
12822 config.status
12823 configured by $0, generated by GNU Autoconf 2.67,
12824 with options \\"\$ac_cs_config\\"
12826 Copyright (C) 2010 Free Software Foundation, Inc.
12827 This config.status script is free software; the Free Software Foundation
12828 gives unlimited permission to copy, distribute and modify it."
12830 ac_pwd='$ac_pwd'
12831 srcdir='$srcdir'
12832 test -n "\$AWK" || AWK=awk
12833 _ACEOF
12835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12836 # The default lists apply if the user does not specify any file.
12837 ac_need_defaults=:
12838 while test $# != 0
12840 case $1 in
12841 --*=?*)
12842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12844 ac_shift=:
12846 --*=)
12847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12848 ac_optarg=
12849 ac_shift=:
12852 ac_option=$1
12853 ac_optarg=$2
12854 ac_shift=shift
12856 esac
12858 case $ac_option in
12859 # Handling of the options.
12860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12861 ac_cs_recheck=: ;;
12862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12863 $as_echo "$ac_cs_version"; exit ;;
12864 --config | --confi | --conf | --con | --co | --c )
12865 $as_echo "$ac_cs_config"; exit ;;
12866 --debug | --debu | --deb | --de | --d | -d )
12867 debug=: ;;
12868 --file | --fil | --fi | --f )
12869 $ac_shift
12870 case $ac_optarg in
12871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12872 '') as_fn_error $? "missing file argument" ;;
12873 esac
12874 as_fn_append CONFIG_FILES " '$ac_optarg'"
12875 ac_need_defaults=false;;
12876 --header | --heade | --head | --hea )
12877 $ac_shift
12878 case $ac_optarg in
12879 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12880 esac
12881 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12882 ac_need_defaults=false;;
12883 --he | --h)
12884 # Conflict between --help and --header
12885 as_fn_error $? "ambiguous option: \`$1'
12886 Try \`$0 --help' for more information.";;
12887 --help | --hel | -h )
12888 $as_echo "$ac_cs_usage"; exit ;;
12889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12891 ac_cs_silent=: ;;
12893 # This is an error.
12894 -*) as_fn_error $? "unrecognized option: \`$1'
12895 Try \`$0 --help' for more information." ;;
12897 *) as_fn_append ac_config_targets " $1"
12898 ac_need_defaults=false ;;
12900 esac
12901 shift
12902 done
12904 ac_configure_extra_args=
12906 if $ac_cs_silent; then
12907 exec 6>/dev/null
12908 ac_configure_extra_args="$ac_configure_extra_args --silent"
12911 _ACEOF
12912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12913 if \$ac_cs_recheck; then
12914 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12915 shift
12916 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12917 CONFIG_SHELL='$SHELL'
12918 export CONFIG_SHELL
12919 exec "\$@"
12922 _ACEOF
12923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12924 exec 5>>config.log
12926 echo
12927 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12928 ## Running $as_me. ##
12929 _ASBOX
12930 $as_echo "$ac_log"
12931 } >&5
12933 _ACEOF
12934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12936 # INIT-COMMANDS
12939 aros_host_exe_suffix=${aros_host_exe_suffix}
12940 aros_tools_dir=${aros_tools_dir}
12941 aros_target_cpu=${aros_target_cpu}
12942 aros_target_arch=${aros_target_arch}
12943 aros_target_suffix=${aros_target_suffix}
12944 aros_target_nm_ln=${aros_target_nm_ln}
12945 aros_target_as_ln=${aros_target_as_ln}
12946 aros_target_ar_ln=${aros_target_ar_ln}
12947 aros_target_ranlib_ln=${aros_target_ranlib_ln}
12948 aros_target_objdump_ln=${aros_target_objdump_ln}
12949 aros_target_objcopy_ln=${aros_target_objcopy_ln}
12950 aros_target_strip_ln=${aros_target_strip_ln}
12951 aros_kernel_ld=${aros_kernel_ld}
12954 aros_tools_dir=${aros_tools_dir}
12957 _ACEOF
12959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12961 # Handling of arguments.
12962 for ac_config_target in $ac_config_targets
12964 case $ac_config_target in
12965 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12966 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
12967 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
12968 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12969 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
12970 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
12971 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
12972 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
12973 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
12974 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
12975 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
12976 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
12977 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
12978 "${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" ;;
12979 "${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" ;;
12980 "${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" ;;
12981 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
12982 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
12983 "${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" ;;
12985 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12986 esac
12987 done
12990 # If the user did not use the arguments to specify the items to instantiate,
12991 # then the envvar interface is used. Set only those that are not.
12992 # We use the long form for the default assignment because of an extremely
12993 # bizarre bug on SunOS 4.1.3.
12994 if $ac_need_defaults; then
12995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12997 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13000 # Have a temporary directory for convenience. Make it in the build tree
13001 # simply because there is no reason against having it here, and in addition,
13002 # creating and moving files from /tmp can sometimes cause problems.
13003 # Hook for its removal unless debugging.
13004 # Note that there is a small window in which the directory will not be cleaned:
13005 # after its creation but before its name has been assigned to `$tmp'.
13006 $debug ||
13008 tmp=
13009 trap 'exit_status=$?
13010 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13012 trap 'as_fn_exit 1' 1 2 13 15
13014 # Create a (secure) tmp directory for tmp files.
13017 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13018 test -n "$tmp" && test -d "$tmp"
13019 } ||
13021 tmp=./conf$$-$RANDOM
13022 (umask 077 && mkdir "$tmp")
13023 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13025 # Set up the scripts for CONFIG_FILES section.
13026 # No need to generate them if there are no CONFIG_FILES.
13027 # This happens for instance with `./config.status config.h'.
13028 if test -n "$CONFIG_FILES"; then
13031 ac_cr=`echo X | tr X '\015'`
13032 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13033 # But we know of no other shell where ac_cr would be empty at this
13034 # point, so we can use a bashism as a fallback.
13035 if test "x$ac_cr" = x; then
13036 eval ac_cr=\$\'\\r\'
13038 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13039 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13040 ac_cs_awk_cr='\\r'
13041 else
13042 ac_cs_awk_cr=$ac_cr
13045 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13046 _ACEOF
13050 echo "cat >conf$$subs.awk <<_ACEOF" &&
13051 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13052 echo "_ACEOF"
13053 } >conf$$subs.sh ||
13054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13055 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13056 ac_delim='%!_!# '
13057 for ac_last_try in false false false false false :; do
13058 . ./conf$$subs.sh ||
13059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13061 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13062 if test $ac_delim_n = $ac_delim_num; then
13063 break
13064 elif $ac_last_try; then
13065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13066 else
13067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13069 done
13070 rm -f conf$$subs.sh
13072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13074 _ACEOF
13075 sed -n '
13077 s/^/S["/; s/!.*/"]=/
13080 s/^[^!]*!//
13081 :repl
13082 t repl
13083 s/'"$ac_delim"'$//
13084 t delim
13087 s/\(.\{148\}\)..*/\1/
13088 t more1
13089 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13092 b repl
13093 :more1
13094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13097 s/.\{148\}//
13098 t nl
13099 :delim
13101 s/\(.\{148\}\)..*/\1/
13102 t more2
13103 s/["\\]/\\&/g; s/^/"/; s/$/"/
13106 :more2
13107 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13110 s/.\{148\}//
13111 t delim
13112 ' <conf$$subs.awk | sed '
13113 /^[^""]/{
13115 s/\n//
13117 ' >>$CONFIG_STATUS || ac_write_fail=1
13118 rm -f conf$$subs.awk
13119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13120 _ACAWK
13121 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13122 for (key in S) S_is_set[key] = 1
13123 FS = "\a"
13127 line = $ 0
13128 nfields = split(line, field, "@")
13129 substed = 0
13130 len = length(field[1])
13131 for (i = 2; i < nfields; i++) {
13132 key = field[i]
13133 keylen = length(key)
13134 if (S_is_set[key]) {
13135 value = S[key]
13136 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13137 len += length(value) + length(field[++i])
13138 substed = 1
13139 } else
13140 len += 1 + keylen
13143 print line
13146 _ACAWK
13147 _ACEOF
13148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13149 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13150 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13151 else
13153 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13154 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13155 _ACEOF
13157 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13158 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13159 # trailing colons and then remove the whole line if VPATH becomes empty
13160 # (actually we leave an empty line to preserve line numbers).
13161 if test "x$srcdir" = x.; then
13162 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13164 s///
13165 s/^/:/
13166 s/[ ]*$/:/
13167 s/:\$(srcdir):/:/g
13168 s/:\${srcdir}:/:/g
13169 s/:@srcdir@:/:/g
13170 s/^:*//
13171 s/:*$//
13173 s/\(=[ ]*\).*/\1/
13175 s/\n//
13176 s/^[^=]*=[ ]*$//
13180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13181 fi # test -n "$CONFIG_FILES"
13183 # Set up the scripts for CONFIG_HEADERS section.
13184 # No need to generate them if there are no CONFIG_HEADERS.
13185 # This happens for instance with `./config.status Makefile'.
13186 if test -n "$CONFIG_HEADERS"; then
13187 cat >"$tmp/defines.awk" <<\_ACAWK ||
13188 BEGIN {
13189 _ACEOF
13191 # Transform confdefs.h into an awk script `defines.awk', embedded as
13192 # here-document in config.status, that substitutes the proper values into
13193 # config.h.in to produce config.h.
13195 # Create a delimiter string that does not exist in confdefs.h, to ease
13196 # handling of long lines.
13197 ac_delim='%!_!# '
13198 for ac_last_try in false false :; do
13199 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13200 if test -z "$ac_t"; then
13201 break
13202 elif $ac_last_try; then
13203 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13204 else
13205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13207 done
13209 # For the awk script, D is an array of macro values keyed by name,
13210 # likewise P contains macro parameters if any. Preserve backslash
13211 # newline sequences.
13213 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13214 sed -n '
13215 s/.\{148\}/&'"$ac_delim"'/g
13216 t rset
13217 :rset
13218 s/^[ ]*#[ ]*define[ ][ ]*/ /
13219 t def
13221 :def
13222 s/\\$//
13223 t bsnl
13224 s/["\\]/\\&/g
13225 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13226 D["\1"]=" \3"/p
13227 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13229 :bsnl
13230 s/["\\]/\\&/g
13231 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13232 D["\1"]=" \3\\\\\\n"\\/p
13233 t cont
13234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13235 t cont
13237 :cont
13239 s/.\{148\}/&'"$ac_delim"'/g
13240 t clear
13241 :clear
13242 s/\\$//
13243 t bsnlc
13244 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13246 :bsnlc
13247 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13248 b cont
13249 ' <confdefs.h | sed '
13250 s/'"$ac_delim"'/"\\\
13251 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254 for (key in D) D_is_set[key] = 1
13255 FS = "\a"
13257 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13258 line = \$ 0
13259 split(line, arg, " ")
13260 if (arg[1] == "#") {
13261 defundef = arg[2]
13262 mac1 = arg[3]
13263 } else {
13264 defundef = substr(arg[1], 2)
13265 mac1 = arg[2]
13267 split(mac1, mac2, "(") #)
13268 macro = mac2[1]
13269 prefix = substr(line, 1, index(line, defundef) - 1)
13270 if (D_is_set[macro]) {
13271 # Preserve the white space surrounding the "#".
13272 print prefix "define", macro P[macro] D[macro]
13273 next
13274 } else {
13275 # Replace #undef with comments. This is necessary, for example,
13276 # in the case of _POSIX_SOURCE, which is predefined and required
13277 # on some systems where configure will not decide to define it.
13278 if (defundef == "undef") {
13279 print "/*", prefix defundef, macro, "*/"
13280 next
13284 { print }
13285 _ACAWK
13286 _ACEOF
13287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13288 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13289 fi # test -n "$CONFIG_HEADERS"
13292 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13293 shift
13294 for ac_tag
13296 case $ac_tag in
13297 :[FHLC]) ac_mode=$ac_tag; continue;;
13298 esac
13299 case $ac_mode$ac_tag in
13300 :[FHL]*:*);;
13301 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13302 :[FH]-) ac_tag=-:-;;
13303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13304 esac
13305 ac_save_IFS=$IFS
13306 IFS=:
13307 set x $ac_tag
13308 IFS=$ac_save_IFS
13309 shift
13310 ac_file=$1
13311 shift
13313 case $ac_mode in
13314 :L) ac_source=$1;;
13315 :[FH])
13316 ac_file_inputs=
13317 for ac_f
13319 case $ac_f in
13320 -) ac_f="$tmp/stdin";;
13321 *) # Look for the file first in the build tree, then in the source tree
13322 # (if the path is not absolute). The absolute path cannot be DOS-style,
13323 # because $ac_f cannot contain `:'.
13324 test -f "$ac_f" ||
13325 case $ac_f in
13326 [\\/$]*) false;;
13327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13328 esac ||
13329 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13330 esac
13331 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13332 as_fn_append ac_file_inputs " '$ac_f'"
13333 done
13335 # Let's still pretend it is `configure' which instantiates (i.e., don't
13336 # use $as_me), people would be surprised to read:
13337 # /* config.h. Generated by config.status. */
13338 configure_input='Generated from '`
13339 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13340 `' by configure.'
13341 if test x"$ac_file" != x-; then
13342 configure_input="$ac_file. $configure_input"
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13344 $as_echo "$as_me: creating $ac_file" >&6;}
13346 # Neutralize special characters interpreted by sed in replacement strings.
13347 case $configure_input in #(
13348 *\&* | *\|* | *\\* )
13349 ac_sed_conf_input=`$as_echo "$configure_input" |
13350 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13351 *) ac_sed_conf_input=$configure_input;;
13352 esac
13354 case $ac_tag in
13355 *:-:* | *:-) cat >"$tmp/stdin" \
13356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13357 esac
13359 esac
13361 ac_dir=`$as_dirname -- "$ac_file" ||
13362 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13363 X"$ac_file" : 'X\(//\)[^/]' \| \
13364 X"$ac_file" : 'X\(//\)$' \| \
13365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13366 $as_echo X"$ac_file" |
13367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13368 s//\1/
13371 /^X\(\/\/\)[^/].*/{
13372 s//\1/
13375 /^X\(\/\/\)$/{
13376 s//\1/
13379 /^X\(\/\).*/{
13380 s//\1/
13383 s/.*/./; q'`
13384 as_dir="$ac_dir"; as_fn_mkdir_p
13385 ac_builddir=.
13387 case "$ac_dir" in
13388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13391 # A ".." for each directory in $ac_dir_suffix.
13392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13393 case $ac_top_builddir_sub in
13394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13396 esac ;;
13397 esac
13398 ac_abs_top_builddir=$ac_pwd
13399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13400 # for backward compatibility:
13401 ac_top_builddir=$ac_top_build_prefix
13403 case $srcdir in
13404 .) # We are building in place.
13405 ac_srcdir=.
13406 ac_top_srcdir=$ac_top_builddir_sub
13407 ac_abs_top_srcdir=$ac_pwd ;;
13408 [\\/]* | ?:[\\/]* ) # Absolute name.
13409 ac_srcdir=$srcdir$ac_dir_suffix;
13410 ac_top_srcdir=$srcdir
13411 ac_abs_top_srcdir=$srcdir ;;
13412 *) # Relative name.
13413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13414 ac_top_srcdir=$ac_top_build_prefix$srcdir
13415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13416 esac
13417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13420 case $ac_mode in
13423 # CONFIG_FILE
13426 _ACEOF
13428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13429 # If the template does not know about datarootdir, expand it.
13430 # FIXME: This hack should be removed a few years after 2.60.
13431 ac_datarootdir_hack=; ac_datarootdir_seen=
13432 ac_sed_dataroot='
13433 /datarootdir/ {
13437 /@datadir@/p
13438 /@docdir@/p
13439 /@infodir@/p
13440 /@localedir@/p
13441 /@mandir@/p'
13442 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13443 *datarootdir*) ac_datarootdir_seen=yes;;
13444 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13446 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13447 _ACEOF
13448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13449 ac_datarootdir_hack='
13450 s&@datadir@&$datadir&g
13451 s&@docdir@&$docdir&g
13452 s&@infodir@&$infodir&g
13453 s&@localedir@&$localedir&g
13454 s&@mandir@&$mandir&g
13455 s&\\\${datarootdir}&$datarootdir&g' ;;
13456 esac
13457 _ACEOF
13459 # Neutralize VPATH when `$srcdir' = `.'.
13460 # Shell code in configure.ac might set extrasub.
13461 # FIXME: do we really want to maintain this feature?
13462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13463 ac_sed_extra="$ac_vpsub
13464 $extrasub
13465 _ACEOF
13466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13469 s|@configure_input@|$ac_sed_conf_input|;t t
13470 s&@top_builddir@&$ac_top_builddir_sub&;t t
13471 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13472 s&@srcdir@&$ac_srcdir&;t t
13473 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13474 s&@top_srcdir@&$ac_top_srcdir&;t t
13475 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13476 s&@builddir@&$ac_builddir&;t t
13477 s&@abs_builddir@&$ac_abs_builddir&;t t
13478 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13479 $ac_datarootdir_hack
13481 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13484 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13485 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13486 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13488 which seems to be undefined. Please make sure it is defined" >&5
13489 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13490 which seems to be undefined. Please make sure it is defined" >&2;}
13492 rm -f "$tmp/stdin"
13493 case $ac_file in
13494 -) cat "$tmp/out" && rm -f "$tmp/out";;
13495 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13496 esac \
13497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13501 # CONFIG_HEADER
13503 if test x"$ac_file" != x-; then
13505 $as_echo "/* $configure_input */" \
13506 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13507 } >"$tmp/config.h" \
13508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13509 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13511 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13512 else
13513 rm -f "$ac_file"
13514 mv "$tmp/config.h" "$ac_file" \
13515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13517 else
13518 $as_echo "/* $configure_input */" \
13519 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13520 || as_fn_error $? "could not create -" "$LINENO" 5
13524 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13525 $as_echo "$as_me: executing $ac_file commands" >&6;}
13527 esac
13530 case $ac_file$ac_mode in
13531 "compiler_executable":C)
13532 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13533 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13535 echo ${prefix2}
13536 echo ${prefix3}
13537 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
13539 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13540 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13541 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13542 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13543 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13544 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13545 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13547 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13549 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13551 esac
13552 done # for ac_tag
13555 as_fn_exit 0
13556 _ACEOF
13557 ac_clean_files=$ac_clean_files_save
13559 test $ac_write_fail = 0 ||
13560 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13563 # configure is writing to config.log, and then calls config.status.
13564 # config.status does its own redirection, appending to config.log.
13565 # Unfortunately, on DOS this fails, as config.log is still kept open
13566 # by configure, so config.status won't be able to write to it; its
13567 # output is simply discarded. So we exec the FD to /dev/null,
13568 # effectively closing config.log, so it can be properly (re)opened and
13569 # appended to by config.status. When coming back to configure, we
13570 # need to make the FD available again.
13571 if test "$no_create" != yes; then
13572 ac_cs_success=:
13573 ac_config_status_args=
13574 test "$silent" = yes &&
13575 ac_config_status_args="$ac_config_status_args --quiet"
13576 exec 5>/dev/null
13577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13578 exec 5>>config.log
13579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13580 # would make configure fail if this is the last instruction.
13581 $ac_cs_success || as_fn_exit 1
13583 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13585 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13590 #XXX compatability...
13591 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13593 if test -n "$aros_shared_cflags" ; then
13594 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13595 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg