Set nr_FullName to NULL to avoid crashes when EndNotify()
[AROS.git] / configure
blob1c5d7c68fc86425bb030908a173c4e722070bbb2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_usb30_code
623 aros_palm_debug_hack
624 aros_serial_debug
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_libdirs
628 aros_host_x11_includes
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 aros_default_wbdepth
632 aros_default_wbheight
633 aros_default_wbwidth
634 oss_library_target
635 pci_hidd_target
636 sdl_hidd_target
637 x11_hidd_target
638 aros_cflags_enum_compare
639 aros_cflags_array_bounds
640 aros_cflags_unused_but_set_variable
641 crosstools_cxx_target
642 crosstools_target
643 aros_target_strip_flags
644 aros_target_genmap
645 aros_debug_ldflags
646 aros_debug_aflags
647 aros_debug_cflags
648 aros_target_cflags
649 aros_kernel_ldflags
650 aros_kernel_objcflags
651 aros_kernel_includes
652 aros_kernel_cflags
653 aros_shared_ldflags
654 aros_shared_aflags
655 aros_shared_cflags
656 aros_config_ldflags
657 aros_config_aflags
658 aros_config_cflags
659 aros_arch_libs
660 aros_compiler_libs
661 aros_object_format
662 aros_shared_ld
663 aros_shared_default
664 aros_target_nm
665 aros_target_strip
666 aros_target_objcopy
667 aros_target_objdump
668 aros_target_cc_path
669 aros_target_cc_includes
670 orig_target_ld
671 aros_target_as
672 aros_kernel_cc
673 orig_target_cc
674 aros_plain_ar
675 aros_plain_nm
676 aros_target_ranlib
677 aros_target_ar
678 aros_target_incl
679 aros_target_suffix
680 aros_target_variant
681 aros_target_cpu
682 aros_target_family
683 aros_target_arch
684 aros_target_bootloader
685 aros_target_iconset
686 aros_target_guitheme
687 aros_tools_dir
688 aros_host_lib_suffix
689 aros_host_exe_suffix
690 aros_host_mkargs
691 aros_host_mkdep
692 aros_host_debug
693 aros_host_ldflags
694 gnu89_inline
695 aros_host_cflags
696 aros_host_make
697 aros_host_cc
698 aros_host_cpu
699 aros_host_arch
700 aros_cc_pre
701 aros_amigaos_compliance
702 AROS_PORTSSRCDIR
703 AROS_CROSSTOOLSDIR
704 SRCDIR
705 AROS_BUILDDIR_UNIX
706 AROS_BUILDDIR
707 aros_flavour_uc
708 aros_flavour
709 aros_cpu
710 aros_arch
711 SDL_LIBS
712 SDL_CFLAGS
713 SDL_CONFIG
714 XMKMF
715 aros_cflags_iquote_end
716 aros_cflags_iquote
717 kernel_cflags_iquote_end
718 kernel_cflags_iquote
719 host_cflags_iquote_end
720 host_cflags_iquote
721 aros_target_nostdlib_ldflags
722 aros_target_detach_ldflags
723 aros_target_nix_ldflags
724 aros_target_nostartup_ldflags
725 aros_target_nostdinc_cflags
726 aros_target_ld
727 aros_target_cc
728 aros_target_cxx
729 aros_target_strip_ln
730 aros_target_ranlib_ln
731 aros_target_objdump_ln
732 aros_target_objcopy_ln
733 aros_target_nm_ln
734 aros_target_ar_ln
735 aros_target_as_ln
736 aros_kernel_ranlib
737 aros_kernel_ar
738 aros_kernel_ld
739 aros_kernel_rescomp
741 android_tool
742 CCACHE
743 DISTCC
744 LIBOBJS
745 EGREP
746 GREP
748 TEST
751 pkgpyexecdir
752 pyexecdir
753 pkgpythondir
754 pythondir
755 PYTHON_PLATFORM
756 PYTHON_EXEC_PREFIX
757 PYTHON_PREFIX
758 PYTHON_VERSION
759 PYTHON
760 PATCH
761 CHMOD
763 PPMTOILBM
764 PNGTOPNM
765 FLEX
766 BISON
769 UNIQ
770 SORT
771 TOUCH
772 MKDIR
773 ECHO
777 aros_host_strip
778 aros_host_ranlib
779 aros_host_ar
780 aros_host_automake
781 aros_host_autoheader
782 aros_host_autoconf
783 aros_host_aclocal
784 aros_host_ld
785 MMAKE
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
795 host_os
796 host_vendor
797 host_cpu
798 host
799 build_os
800 build_vendor
801 build_cpu
802 build
803 target_alias
804 host_alias
805 build_alias
806 LIBS
807 ECHO_T
808 ECHO_N
809 ECHO_C
810 DEFS
811 mandir
812 localedir
813 libdir
814 psdir
815 pdfdir
816 dvidir
817 htmldir
818 infodir
819 docdir
820 oldincludedir
821 includedir
822 localstatedir
823 sharedstatedir
824 sysconfdir
825 datadir
826 datarootdir
827 libexecdir
828 sbindir
829 bindir
830 program_transform_name
831 prefix
832 exec_prefix
833 PACKAGE_URL
834 PACKAGE_BUGREPORT
835 PACKAGE_STRING
836 PACKAGE_VERSION
837 PACKAGE_TARNAME
838 PACKAGE_NAME
839 PATH_SEPARATOR
840 SHELL'
841 ac_subst_files=''
842 ac_user_opts='
843 enable_option_checking
844 enable_build_type
845 enable_debug
846 enable_crosstools
847 enable_distcc
848 enable_ccache
849 with_gcc_version
850 with_optimization
851 with_paranoia
852 enable_target_variant
853 with_xcode
854 with_sdk_version
855 with_sdk
856 with_ndk
857 with_ndk_version
858 enable_amigaos_compliance
859 with_cpu
860 with_fpu
861 with_float
862 with_crosstools
863 with_aros_gcc
864 with_portssources
865 with_bootloader
866 with_iconset
867 with_theme
868 enable_includes
869 with_resolution
870 with_serial_debug
871 enable_palm_debug_hack
872 enable_usb30_code
873 enable_nesting_supervisor
874 enable_mmu
875 enable_x11_hidd
876 with_x
877 enable_x11_shm
878 enable_x11_vidmode
879 enable_sdl_hidd
880 with_sdl_prefix
881 with_sdl_exec_prefix
882 enable_sdltest
883 enable_dbus
885 ac_precious_vars='build_alias
886 host_alias
887 target_alias
889 CFLAGS
890 LDFLAGS
891 LIBS
892 CPPFLAGS
894 XMKMF'
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 ac_unrecognized_opts=
901 ac_unrecognized_sep=
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
945 ac_prev=
946 ac_dashdash=
947 for ac_option
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
952 ac_prev=
953 continue
956 case $ac_option in
957 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *=) ac_optarg= ;;
959 *) ac_optarg=yes ;;
960 esac
962 # Accept the important Cygnus configure options, so we can diagnose typos.
964 case $ac_dashdash$ac_option in
966 ac_dashdash=yes ;;
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 bindir=$ac_optarg ;;
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
985 --config-cache | -C)
986 cache_file=config.cache ;;
988 -datadir | --datadir | --datadi | --datad)
989 ac_prev=datadir ;;
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
1000 -disable-* | --disable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1009 "enable_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=no ;;
1016 -docdir | --docdir | --docdi | --doc | --do)
1017 ac_prev=docdir ;;
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022 ac_prev=dvidir ;;
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1026 -enable-* | --enable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=\$ac_optarg ;;
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1120 no_create=yes ;;
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1189 sbindir=$ac_optarg ;;
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1200 sharedstatedir=$ac_optarg ;;
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1205 site=$ac_optarg ;;
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1230 -with-* | --with-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=\$ac_optarg ;;
1246 -without-* | --without-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250 as_fn_error $? "invalid package name: $ac_useropt"
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1255 "with_$ac_useropt"
1256 "*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=no ;;
1262 --x)
1263 # Obsolete; use --with-x.
1264 with_x=yes ;;
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1280 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1284 *=*)
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
1289 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1290 esac
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 esac
1303 done
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error $? "missing argument to $ac_option"
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1312 no) ;;
1313 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 esac
1318 # Check all directory arguments for consistency.
1319 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1326 case $ac_val in
1327 */ )
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1330 esac
1331 # Be sure to have absolute directory names.
1332 case $ac_val in
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335 esac
1336 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 done
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1351 If a cross compiler is detected then cross compile mode will be used" >&2
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360 test "$silent" = yes && exec 6>/dev/null
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1389 /^X\(\/\/\)$/{
1390 s//\1/
1393 /^X\(\/\).*/{
1394 s//\1/
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1402 else
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1431 # Report the --help message.
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437 \`configure' configures this package to adapt to many kinds of systems.
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1444 Defaults for the options are specified in brackets.
1446 Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking ...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 [PREFIX]
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1468 For better control, use the options below.
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1492 cat <<\_ACEOF
1494 X features:
1495 --x-includes=DIR X include files are in DIR
1496 --x-libraries=DIR X library files are in DIR
1498 System types:
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501 _ACEOF
1504 if test -n "$ac_init_help"; then
1506 cat <<\_ACEOF
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-build-type=TYPE
1513 Select the build type. Available types are:
1514 personal, nightly, snapshot, milestone, release. Do
1515 NOT use this option unless you know what you are
1516 doing! (default=personal)
1517 --enable-debug=list Enable different types of debug. Commas or
1518 whitespaces can be used to separate the items in the
1519 list. Available types of debug are: all, none,
1520 messages, stack, mungwall, modules, symbols. If no
1521 list is provided then "all" is assumed.
1522 (default=none)
1523 --enable-crosstools Build cross-compiler toolchains if necessary
1524 (default=no).
1525 --enable-distcc Use distcc as a front end to the compiler
1526 (default=no).
1527 --enable-ccache Use ccache as a front end to the compiler
1528 (default=no).
1529 --enable-target-variant=NAME
1530 Enable a specific target variant(default=none)
1531 --enable-amigaos-compliance=VERSION
1532 Enforce userspace AmigaOS compliance to a specific
1533 KickStart version (default=none).
1534 --enable-includes=dir Alternative system include directory
1535 --enable-palm-debug-hack
1536 Enable palm debug output hack in palm native
1537 (default=no)
1538 --enable-usb30-code Enable usb3.0 code (default=no)
1539 --enable-nesting-supervisor
1540 Enable nesting supervisor support in unix
1541 (default=no)
1542 --disable-mmu Disable MMU support (default=enabled)
1543 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1544 --enable-x11-shm use X11 shared memory (default=auto)
1545 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1546 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1547 --disable-sdltest Do not try to compile and run a test SDL program
1548 --enable-dbus Enable DBUS support via dbus.library (default=no)
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-gcc-version=VERSION
1554 Use host gcc-VERSION for building AROS
1555 --with-optimization=FLAGS
1556 Use optimization flags FLAGS (default=-O2).
1557 --with-paranoia=FLAGS CC flags to enable paranoia
1558 --with-xcode=PATH Specify XCode path for iOS targets
1559 (default=/Developer).
1560 --with-sdk-version=VERSION
1561 Use iOS SDK version VERSION (default=4.1).
1562 --with-sdk=PATH Specify Android SDK path
1563 (default=$default_android_sdk).
1564 --with-ndk=PATH Specify Android NDK path (default=none).
1565 --with-sdk-version=LEVEL
1566 Use Android SDK for API LEVEL (default=12).
1567 --with-ndk-version=LEVEL
1568 Use Android NDK for API LEVEL (default=9).
1569 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1570 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1571 --with-float=<spec> Specify floating point ABI
1572 (default=$gcc_default_float_abi).
1573 --with-crosstools=DIR Where to install or search for cross tools binaries
1574 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1575 --with-portssources=DIR Where to download sourcecode for external ports
1576 --with-bootloader=NAME Use a specific bootloader
1577 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1578 --with-theme=NAME Use a specific GUI Theme
1579 --with-resolution=XRESxYRESxDEPTH
1580 Default resolution of the initial WorkbenchScreen
1581 --with-serial-debug Enable serial debug output in native (default=no)
1582 --with-x use the X Window System
1583 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1584 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1586 Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
1591 LIBS libraries to pass to the linker, e.g. -l<library>
1592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
1594 CPP C preprocessor
1595 XMKMF Path to xmkmf, Makefile generator for X Window System
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1600 Report bugs to the package provider.
1601 _ACEOF
1602 ac_status=$?
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
1611 ac_builddir=.
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 configure
1664 generated by GNU Autoconf 2.68
1666 Copyright (C) 2010 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669 _ACEOF
1670 exit
1673 ## ------------------------ ##
1674 ## Autoconf initialization. ##
1675 ## ------------------------ ##
1677 # ac_fn_c_try_compile LINENO
1678 # --------------------------
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_compile ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext
1684 if { { ac_try="$ac_compile"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1708 ac_retval=1
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1713 } # ac_fn_c_try_compile
1715 # ac_fn_c_try_cpp LINENO
1716 # ----------------------
1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_cpp ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } > conftest.i && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1745 ac_retval=1
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1750 } # ac_fn_c_try_cpp
1752 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755 # the include files in INCLUDES and setting the cache variable VAR
1756 # accordingly.
1757 ac_fn_c_check_header_mongrel ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if eval \${$3+:} false; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 else
1770 # Is the header compilable?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772 $as_echo_n "checking $2 usability... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780 else
1781 ac_header_compiler=no
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785 $as_echo "$ac_header_compiler" >&6; }
1787 # Is the header present?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789 $as_echo_n "checking $2 presence... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796 else
1797 ac_header_preproc=no
1799 rm -f conftest.err conftest.i conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801 $as_echo "$ac_header_preproc" >&6; }
1803 # So? What about this header?
1804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 yes:no: )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811 no:yes:* )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 esac
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 eval "$3=\$ac_header_compiler"
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 } # ac_fn_c_check_header_mongrel
1839 # ac_fn_c_try_run LINENO
1840 # ----------------------
1841 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1842 # that executables *can* be run.
1843 ac_fn_c_try_run ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_link"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>&5
1854 ac_status=$?
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857 { { case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_try") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; }; }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: program exited with status $ac_status" >&5
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 ac_retval=$ac_status
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_run
1881 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1882 # -------------------------------------------------------
1883 # Tests whether HEADER exists and can be compiled using the include files in
1884 # INCLUDES, setting the cache variable VAR accordingly.
1885 ac_fn_c_check_header_compile ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899 eval "$3=yes"
1900 else
1901 eval "$3=no"
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_header_compile
1912 # ac_fn_c_try_link LINENO
1913 # -----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_c_try_link ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 rm -f conftest.$ac_objext conftest$ac_exeext
1919 if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>conftest.err
1927 ac_status=$?
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && {
1935 test -z "$ac_c_werror_flag" ||
1936 test ! -s conftest.err
1937 } && test -s conftest$ac_exeext && {
1938 test "$cross_compiling" = yes ||
1939 $as_test_x conftest$ac_exeext
1940 }; then :
1941 ac_retval=0
1942 else
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=1
1948 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1949 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1950 # interfere with the next link command; also delete a directory that is
1951 # left behind by Apple's compiler. We do this before executing the actions.
1952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1956 } # ac_fn_c_try_link
1958 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1959 # ----------------------------------------------------
1960 # Tries to find if the field MEMBER exists in type AGGR, after including
1961 # INCLUDES, setting cache variable VAR accordingly.
1962 ac_fn_c_check_member ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1966 $as_echo_n "checking for $2.$3... " >&6; }
1967 if eval \${$4+:} false; then :
1968 $as_echo_n "(cached) " >&6
1969 else
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1974 main ()
1976 static $2 ac_aggr;
1977 if (ac_aggr.$3)
1978 return 0;
1980 return 0;
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 eval "$4=yes"
1985 else
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1990 main ()
1992 static $2 ac_aggr;
1993 if (sizeof ac_aggr.$3)
1994 return 0;
1996 return 0;
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 eval "$4=yes"
2001 else
2002 eval "$4=no"
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 eval ac_res=\$$4
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_member
2015 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2016 # ---------------------------------------------
2017 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2018 # accordingly.
2019 ac_fn_c_check_decl ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 as_decl_name=`echo $2|sed 's/ *(.*//'`
2023 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2025 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2026 if eval \${$3+:} false; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2033 main ()
2035 #ifndef $as_decl_name
2036 #ifdef __cplusplus
2037 (void) $as_decl_use;
2038 #else
2039 (void) $as_decl_name;
2040 #endif
2041 #endif
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 eval "$3=yes"
2049 else
2050 eval "$3=no"
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_decl
2061 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2062 # -------------------------------------------
2063 # Tests whether TYPE exists after having included INCLUDES, setting cache
2064 # variable VAR accordingly.
2065 ac_fn_c_check_type ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 eval "$3=no"
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2078 main ()
2080 if (sizeof ($2))
2081 return 0;
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2091 main ()
2093 if (sizeof (($2)))
2094 return 0;
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2101 else
2102 eval "$3=yes"
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_type
2115 # ac_fn_c_check_func LINENO FUNC VAR
2116 # ----------------------------------
2117 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2118 ac_fn_c_check_func ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2130 #define $2 innocuous_$2
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $2 (); below.
2134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2135 <limits.h> exists even on freestanding compilers. */
2137 #ifdef __STDC__
2138 # include <limits.h>
2139 #else
2140 # include <assert.h>
2141 #endif
2143 #undef $2
2145 /* Override any GCC internal prototype to avoid an error.
2146 Use char because int might match the return type of a GCC
2147 builtin and then its argument prototype would still apply. */
2148 #ifdef __cplusplus
2149 extern "C"
2150 #endif
2151 char $2 ();
2152 /* The GNU C library defines this for functions which it implements
2153 to always fail with ENOSYS. Some functions are actually named
2154 something starting with __ and the normal name is an alias. */
2155 #if defined __stub_$2 || defined __stub___$2
2156 choke me
2157 #endif
2160 main ()
2162 return $2 ();
2164 return 0;
2166 _ACEOF
2167 if ac_fn_c_try_link "$LINENO"; then :
2168 eval "$3=yes"
2169 else
2170 eval "$3=no"
2172 rm -f core conftest.err conftest.$ac_objext \
2173 conftest$ac_exeext conftest.$ac_ext
2175 eval ac_res=\$$3
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 } # ac_fn_c_check_func
2181 cat >config.log <<_ACEOF
2182 This file contains any messages produced by compilers while
2183 running configure, to aid debugging if configure makes a mistake.
2185 It was created by $as_me, which was
2186 generated by GNU Autoconf 2.68. Invocation command line was
2188 $ $0 $@
2190 _ACEOF
2191 exec 5>>config.log
2193 cat <<_ASUNAME
2194 ## --------- ##
2195 ## Platform. ##
2196 ## --------- ##
2198 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2199 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2200 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2201 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2202 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2204 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2205 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2207 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2208 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2209 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2210 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2211 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2212 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2213 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2215 _ASUNAME
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 $as_echo "PATH: $as_dir"
2223 done
2224 IFS=$as_save_IFS
2226 } >&5
2228 cat >&5 <<_ACEOF
2231 ## ----------- ##
2232 ## Core tests. ##
2233 ## ----------- ##
2235 _ACEOF
2238 # Keep a trace of the command line.
2239 # Strip out --no-create and --no-recursion so they do not pile up.
2240 # Strip out --silent because we don't want to record it for future runs.
2241 # Also quote any args containing shell meta-characters.
2242 # Make two passes to allow for proper duplicate-argument suppression.
2243 ac_configure_args=
2244 ac_configure_args0=
2245 ac_configure_args1=
2246 ac_must_keep_next=false
2247 for ac_pass in 1 2
2249 for ac_arg
2251 case $ac_arg in
2252 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2254 | -silent | --silent | --silen | --sile | --sil)
2255 continue ;;
2256 *\'*)
2257 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 esac
2259 case $ac_pass in
2260 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2262 as_fn_append ac_configure_args1 " '$ac_arg'"
2263 if test $ac_must_keep_next = true; then
2264 ac_must_keep_next=false # Got value, back to normal.
2265 else
2266 case $ac_arg in
2267 *=* | --config-cache | -C | -disable-* | --disable-* \
2268 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2269 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2270 | -with-* | --with-* | -without-* | --without-* | --x)
2271 case "$ac_configure_args0 " in
2272 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2273 esac
2275 -* ) ac_must_keep_next=true ;;
2276 esac
2278 as_fn_append ac_configure_args " '$ac_arg'"
2280 esac
2281 done
2282 done
2283 { ac_configure_args0=; unset ac_configure_args0;}
2284 { ac_configure_args1=; unset ac_configure_args1;}
2286 # When interrupted or exit'd, cleanup temporary files, and complete
2287 # config.log. We remove comments because anyway the quotes in there
2288 # would cause problems or look ugly.
2289 # WARNING: Use '\'' to represent an apostrophe within the trap.
2290 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2291 trap 'exit_status=$?
2292 # Save into config.log some information that might help in debugging.
2294 echo
2296 $as_echo "## ---------------- ##
2297 ## Cache variables. ##
2298 ## ---------------- ##"
2299 echo
2300 # The following way of writing the cache mishandles newlines in values,
2302 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2303 eval ac_val=\$$ac_var
2304 case $ac_val in #(
2305 *${as_nl}*)
2306 case $ac_var in #(
2307 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2308 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2309 esac
2310 case $ac_var in #(
2311 _ | IFS | as_nl) ;; #(
2312 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2313 *) { eval $ac_var=; unset $ac_var;} ;;
2314 esac ;;
2315 esac
2316 done
2317 (set) 2>&1 |
2318 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2319 *${as_nl}ac_space=\ *)
2320 sed -n \
2321 "s/'\''/'\''\\\\'\'''\''/g;
2322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2323 ;; #(
2325 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2327 esac |
2328 sort
2330 echo
2332 $as_echo "## ----------------- ##
2333 ## Output variables. ##
2334 ## ----------------- ##"
2335 echo
2336 for ac_var in $ac_subst_vars
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
2346 if test -n "$ac_subst_files"; then
2347 $as_echo "## ------------------- ##
2348 ## File substitutions. ##
2349 ## ------------------- ##"
2350 echo
2351 for ac_var in $ac_subst_files
2353 eval ac_val=\$$ac_var
2354 case $ac_val in
2355 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2356 esac
2357 $as_echo "$ac_var='\''$ac_val'\''"
2358 done | sort
2359 echo
2362 if test -s confdefs.h; then
2363 $as_echo "## ----------- ##
2364 ## confdefs.h. ##
2365 ## ----------- ##"
2366 echo
2367 cat confdefs.h
2368 echo
2370 test "$ac_signal" != 0 &&
2371 $as_echo "$as_me: caught signal $ac_signal"
2372 $as_echo "$as_me: exit $exit_status"
2373 } >&5
2374 rm -f core *.core core.conftest.* &&
2375 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2376 exit $exit_status
2378 for ac_signal in 1 2 13 15; do
2379 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2380 done
2381 ac_signal=0
2383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2384 rm -f -r conftest* confdefs.h
2386 $as_echo "/* confdefs.h */" > confdefs.h
2388 # Predefined preprocessor variables.
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_NAME "$PACKAGE_NAME"
2392 _ACEOF
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2396 _ACEOF
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2400 _ACEOF
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_STRING "$PACKAGE_STRING"
2404 _ACEOF
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2408 _ACEOF
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_URL "$PACKAGE_URL"
2412 _ACEOF
2415 # Let the site file select an alternate cache file if it wants to.
2416 # Prefer an explicitly selected file to automatically selected ones.
2417 ac_site_file1=NONE
2418 ac_site_file2=NONE
2419 if test -n "$CONFIG_SITE"; then
2420 # We do not want a PATH search for config.site.
2421 case $CONFIG_SITE in #((
2422 -*) ac_site_file1=./$CONFIG_SITE;;
2423 */*) ac_site_file1=$CONFIG_SITE;;
2424 *) ac_site_file1=./$CONFIG_SITE;;
2425 esac
2426 elif test "x$prefix" != xNONE; then
2427 ac_site_file1=$prefix/share/config.site
2428 ac_site_file2=$prefix/etc/config.site
2429 else
2430 ac_site_file1=$ac_default_prefix/share/config.site
2431 ac_site_file2=$ac_default_prefix/etc/config.site
2433 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2435 test "x$ac_site_file" = xNONE && continue
2436 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2438 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2439 sed 's/^/| /' "$ac_site_file" >&5
2440 . "$ac_site_file" \
2441 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 as_fn_error $? "failed to load site script $ac_site_file
2444 See \`config.log' for more details" "$LINENO" 5; }
2446 done
2448 if test -r "$cache_file"; then
2449 # Some versions of bash will fail to source /dev/null (special files
2450 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2451 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2453 $as_echo "$as_me: loading cache $cache_file" >&6;}
2454 case $cache_file in
2455 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2456 *) . "./$cache_file";;
2457 esac
2459 else
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2461 $as_echo "$as_me: creating cache $cache_file" >&6;}
2462 >$cache_file
2465 as_fn_append ac_header_list " stdlib.h"
2466 as_fn_append ac_header_list " unistd.h"
2467 as_fn_append ac_header_list " sys/param.h"
2468 # Check that the precious variables saved in the cache have kept the same
2469 # value.
2470 ac_cache_corrupted=false
2471 for ac_var in $ac_precious_vars; do
2472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2473 eval ac_new_set=\$ac_env_${ac_var}_set
2474 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2475 eval ac_new_val=\$ac_env_${ac_var}_value
2476 case $ac_old_set,$ac_new_set in
2477 set,)
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2479 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2480 ac_cache_corrupted=: ;;
2481 ,set)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,);;
2487 if test "x$ac_old_val" != "x$ac_new_val"; then
2488 # differences in whitespace do not lead to failure.
2489 ac_old_val_w=`echo x $ac_old_val`
2490 ac_new_val_w=`echo x $ac_new_val`
2491 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2493 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2494 ac_cache_corrupted=:
2495 else
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2497 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2498 eval $ac_var=\$ac_old_val
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2501 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2503 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2504 fi;;
2505 esac
2506 # Pass precious variables to config.status.
2507 if test "$ac_new_set" = set; then
2508 case $ac_new_val in
2509 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2510 *) ac_arg=$ac_var=$ac_new_val ;;
2511 esac
2512 case " $ac_configure_args " in
2513 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2514 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2515 esac
2517 done
2518 if $ac_cache_corrupted; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2522 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2523 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2525 ## -------------------- ##
2526 ## Main body of script. ##
2527 ## -------------------- ##
2529 ac_ext=c
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537 ac_aux_dir=
2538 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2539 if test -f "$ac_dir/install-sh"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/install-sh -c"
2542 break
2543 elif test -f "$ac_dir/install.sh"; then
2544 ac_aux_dir=$ac_dir
2545 ac_install_sh="$ac_aux_dir/install.sh -c"
2546 break
2547 elif test -f "$ac_dir/shtool"; then
2548 ac_aux_dir=$ac_dir
2549 ac_install_sh="$ac_aux_dir/shtool install -c"
2550 break
2552 done
2553 if test -z "$ac_aux_dir"; then
2554 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2557 # These three variables are undocumented and unsupported,
2558 # and are intended to be withdrawn in a future Autoconf release.
2559 # They can cause serious problems if a builder's source tree is in a directory
2560 # whose full name contains unusual characters.
2561 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2567 # Check what host we are running on.
2568 # If a target is not suggested, we use this one.
2569 # Note that what we call a target, Autoconf calls a host.
2570 # Make sure we can run config.sub.
2571 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2572 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2575 $as_echo_n "checking build system type... " >&6; }
2576 if ${ac_cv_build+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 ac_build_alias=$build_alias
2580 test "x$ac_build_alias" = x &&
2581 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2582 test "x$ac_build_alias" = x &&
2583 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2584 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2589 $as_echo "$ac_cv_build" >&6; }
2590 case $ac_cv_build in
2591 *-*-*) ;;
2592 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2593 esac
2594 build=$ac_cv_build
2595 ac_save_IFS=$IFS; IFS='-'
2596 set x $ac_cv_build
2597 shift
2598 build_cpu=$1
2599 build_vendor=$2
2600 shift; shift
2601 # Remember, the first character of IFS is used to create $*,
2602 # except with old shells:
2603 build_os=$*
2604 IFS=$ac_save_IFS
2605 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2609 $as_echo_n "checking host system type... " >&6; }
2610 if ${ac_cv_host+:} false; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test "x$host_alias" = x; then
2614 ac_cv_host=$ac_cv_build
2615 else
2616 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2617 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2622 $as_echo "$ac_cv_host" >&6; }
2623 case $ac_cv_host in
2624 *-*-*) ;;
2625 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2626 esac
2627 host=$ac_cv_host
2628 ac_save_IFS=$IFS; IFS='-'
2629 set x $ac_cv_host
2630 shift
2631 host_cpu=$1
2632 host_vendor=$2
2633 shift; shift
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2636 host_os=$*
2637 IFS=$ac_save_IFS
2638 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2642 # The AROS target is slightly different to the normal GNU style
2643 # format. We don't have the middle part, and we reverse the order
2644 # of the $(CPU) and $(OS) bits.
2646 # Don't strip the version of the target yet, it might be
2647 # useful on some systems.
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2650 $as_echo_n "checking for AROS style target... " >&6; }
2652 if test "$target" = "NONE" ; then
2653 target=$host_os-$host_cpu
2654 else
2655 if test "$target" = "" ; then
2656 target=$host_os-$host_cpu
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2660 $as_echo "$target" >&6; }
2662 if test "$host_os" = "mingw32" ; then
2663 PWDCMD="pwd -W"
2666 #don't know where else to put this...
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2668 $as_echo_n "checking building AROS in... " >&6; }
2669 AROS_BUILDDIR=`${PWDCMD-pwd}`
2670 AROS_BUILDDIR_UNIX=${PWD}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2672 $as_echo "$AROS_BUILDDIR" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2675 $as_echo_n "checking AROS source in... " >&6; }
2676 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2677 SRCDIR=${srcpwd}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2679 $as_echo "$SRCDIR" >&6; }
2681 # Parse the target field into something useful.
2683 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2684 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2687 aros_default_wbwidth=800
2688 aros_default_wbheight=600
2689 aros_default_wbdepth=4
2692 # The first step is to find the host binaries.
2693 # Check for a compiler.
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_CC+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2721 done
2722 done
2723 IFS=$as_save_IFS
2727 CC=$ac_cv_prog_CC
2728 if test -n "$CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2738 if test -z "$ac_cv_prog_CC"; then
2739 ac_ct_CC=$CC
2740 # Extract the first word of "gcc", so it can be a program name with args.
2741 set dummy gcc; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$ac_ct_CC"; then
2748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_ac_ct_CC="gcc"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2761 done
2762 done
2763 IFS=$as_save_IFS
2767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2768 if test -n "$ac_ct_CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2770 $as_echo "$ac_ct_CC" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2776 if test "x$ac_ct_CC" = x; then
2777 CC=""
2778 else
2779 case $cross_compiling:$ac_tool_warned in
2780 yes:)
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2783 ac_tool_warned=yes ;;
2784 esac
2785 CC=$ac_ct_CC
2787 else
2788 CC="$ac_cv_prog_CC"
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}cc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_CC+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_CC="${ac_tool_prefix}cc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2814 done
2815 done
2816 IFS=$as_save_IFS
2820 CC=$ac_cv_prog_CC
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2832 if test -z "$CC"; then
2833 # Extract the first word of "cc", so it can be a program name with args.
2834 set dummy cc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 ac_prog_rejected=no
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2852 ac_prog_rejected=yes
2853 continue
2855 ac_cv_prog_CC="cc"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2859 done
2860 done
2861 IFS=$as_save_IFS
2863 if test $ac_prog_rejected = yes; then
2864 # We found a bogon in the path, so make sure we never use it.
2865 set dummy $ac_cv_prog_CC
2866 shift
2867 if test $# != 0; then
2868 # We chose a different compiler from the bogus one.
2869 # However, it has the same basename, so the bogon will be chosen
2870 # first if we set CC to just the basename; use the full file name.
2871 shift
2872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2877 CC=$ac_cv_prog_CC
2878 if test -n "$CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880 $as_echo "$CC" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2888 if test -z "$CC"; then
2889 if test -n "$ac_tool_prefix"; then
2890 for ac_prog in cl.exe
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2915 IFS=$as_save_IFS
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$CC" && break
2930 done
2932 if test -z "$CC"; then
2933 ac_ct_CC=$CC
2934 for ac_prog in cl.exe
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$ac_ct_CC"; then
2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_ac_ct_CC="$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2959 IFS=$as_save_IFS
2963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964 if test -n "$ac_ct_CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2966 $as_echo "$ac_ct_CC" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2973 test -n "$ac_ct_CC" && break
2974 done
2976 if test "x$ac_ct_CC" = x; then
2977 CC=""
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2984 esac
2985 CC=$ac_ct_CC
2992 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details" "$LINENO" 5; }
2997 # Provide some information about the compiler.
2998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2999 set X $ac_compile
3000 ac_compiler=$2
3001 for ac_option in --version -v -V -qversion; do
3002 { { ac_try="$ac_compiler $ac_option >&5"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 $as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3010 ac_status=$?
3011 if test -s conftest.err; then
3012 sed '10a\
3013 ... rest of stderr output deleted ...
3014 10q' conftest.err >conftest.er1
3015 cat conftest.er1 >&5
3017 rm -f conftest.er1 conftest.err
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }
3020 done
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3026 main ()
3030 return 0;
3032 _ACEOF
3033 ac_clean_files_save=$ac_clean_files
3034 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3035 # Try to create an executable without -o first, disregard a.out.
3036 # It will help us diagnose broken compilers, and finding out an intuition
3037 # of exeext.
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3039 $as_echo_n "checking whether the C compiler works... " >&6; }
3040 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3042 # The possible output files:
3043 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3045 ac_rmfiles=
3046 for ac_file in $ac_files
3048 case $ac_file in
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3050 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3051 esac
3052 done
3053 rm -f $ac_rmfiles
3055 if { { ac_try="$ac_link_default"
3056 case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059 esac
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_link_default") 2>&5
3063 ac_status=$?
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }; then :
3066 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3067 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3068 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3069 # so that the user can short-circuit this test for compilers unknown to
3070 # Autoconf.
3071 for ac_file in $ac_files ''
3073 test -f "$ac_file" || continue
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3077 [ab].out )
3078 # We found the default executable, but exeext='' is most
3079 # certainly right.
3080 break;;
3081 *.* )
3082 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3083 then :; else
3084 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086 # We set ac_cv_exeext here because the later test for it is not
3087 # safe: cross compilers may not add the suffix if given an `-o'
3088 # argument, so we may need to know it at that point already.
3089 # Even if this section looks crufty: it has the advantage of
3090 # actually working.
3091 break;;
3093 break;;
3094 esac
3095 done
3096 test "$ac_cv_exeext" = no && ac_cv_exeext=
3098 else
3099 ac_file=''
3101 if test -z "$ac_file"; then :
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error 77 "C compiler cannot create executables
3110 See \`config.log' for more details" "$LINENO" 5; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3116 $as_echo_n "checking for C compiler default output file name... " >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3118 $as_echo "$ac_file" >&6; }
3119 ac_exeext=$ac_cv_exeext
3121 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3122 ac_clean_files=$ac_clean_files_save
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3124 $as_echo_n "checking for suffix of executables... " >&6; }
3125 if { { ac_try="$ac_link"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }; then :
3136 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3137 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3138 # work properly (i.e., refer to `conftest.exe'), while it won't with
3139 # `rm'.
3140 for ac_file in conftest.exe conftest conftest.*; do
3141 test -f "$ac_file" || continue
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 break;;
3146 * ) break;;
3147 esac
3148 done
3149 else
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3153 See \`config.log' for more details" "$LINENO" 5; }
3155 rm -f conftest conftest$ac_cv_exeext
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3157 $as_echo "$ac_cv_exeext" >&6; }
3159 rm -f conftest.$ac_ext
3160 EXEEXT=$ac_cv_exeext
3161 ac_exeext=$EXEEXT
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3164 #include <stdio.h>
3166 main ()
3168 FILE *f = fopen ("conftest.out", "w");
3169 return ferror (f) || fclose (f) != 0;
3172 return 0;
3174 _ACEOF
3175 ac_clean_files="$ac_clean_files conftest.out"
3176 # Check that the compiler produces executables we can run. If not, either
3177 # the compiler is broken, or we cross compile.
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3179 $as_echo_n "checking whether we are cross compiling... " >&6; }
3180 if test "$cross_compiling" != yes; then
3181 { { ac_try="$ac_link"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_link") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }
3192 if { ac_try='./conftest$ac_cv_exeext'
3193 { { case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; }; then
3203 cross_compiling=no
3204 else
3205 if test "$cross_compiling" = maybe; then
3206 cross_compiling=yes
3207 else
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "cannot run C compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details" "$LINENO" 5; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3217 $as_echo "$cross_compiling" >&6; }
3219 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3220 ac_clean_files=$ac_clean_files_save
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3222 $as_echo_n "checking for suffix of object files... " >&6; }
3223 if ${ac_cv_objext+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3230 main ()
3234 return 0;
3236 _ACEOF
3237 rm -f conftest.o conftest.obj
3238 if { { ac_try="$ac_compile"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compile") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 for ac_file in conftest.o conftest.obj conftest.*; do
3250 test -f "$ac_file" || continue;
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3254 break;;
3255 esac
3256 done
3257 else
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error $? "cannot compute suffix of object files: cannot compile
3264 See \`config.log' for more details" "$LINENO" 5; }
3266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3269 $as_echo "$ac_cv_objext" >&6; }
3270 OBJEXT=$ac_cv_objext
3271 ac_objext=$OBJEXT
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3273 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3274 if ${ac_cv_c_compiler_gnu+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3281 main ()
3283 #ifndef __GNUC__
3284 choke me
3285 #endif
3288 return 0;
3290 _ACEOF
3291 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_compiler_gnu=yes
3293 else
3294 ac_compiler_gnu=no
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3301 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3302 if test $ac_compiler_gnu = yes; then
3303 GCC=yes
3304 else
3305 GCC=
3307 ac_test_CFLAGS=${CFLAGS+set}
3308 ac_save_CFLAGS=$CFLAGS
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3310 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3311 if ${ac_cv_prog_cc_g+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 ac_save_c_werror_flag=$ac_c_werror_flag
3315 ac_c_werror_flag=yes
3316 ac_cv_prog_cc_g=no
3317 CFLAGS="-g"
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 :
3330 ac_cv_prog_cc_g=yes
3331 else
3332 CFLAGS=""
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3337 main ()
3341 return 0;
3343 _ACEOF
3344 if ac_fn_c_try_compile "$LINENO"; then :
3346 else
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3348 CFLAGS="-g"
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3353 main ()
3357 return 0;
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"; then :
3361 ac_cv_prog_cc_g=yes
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3371 $as_echo "$ac_cv_prog_cc_g" >&6; }
3372 if test "$ac_test_CFLAGS" = set; then
3373 CFLAGS=$ac_save_CFLAGS
3374 elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3376 CFLAGS="-g -O2"
3377 else
3378 CFLAGS="-g"
3380 else
3381 if test "$GCC" = yes; then
3382 CFLAGS="-O2"
3383 else
3384 CFLAGS=
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3388 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3389 if ${ac_cv_prog_cc_c89+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 ac_cv_prog_cc_c89=no
3393 ac_save_CC=$CC
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396 #include <stdarg.h>
3397 #include <stdio.h>
3398 #include <sys/types.h>
3399 #include <sys/stat.h>
3400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3401 struct buf { int x; };
3402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403 static char *e (p, i)
3404 char **p;
3405 int i;
3407 return p[i];
3409 static char *f (char * (*g) (char **, int), char **p, ...)
3411 char *s;
3412 va_list v;
3413 va_start (v,p);
3414 s = g (p, va_arg (v,int));
3415 va_end (v);
3416 return s;
3419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3420 function prototypes and stuff, but not '\xHH' hex character constants.
3421 These don't provoke an error unfortunately, instead are silently treated
3422 as 'x'. The following induces an error, until -std is added to get
3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3424 array size at least. It's necessary to write '\x00'==0 to get something
3425 that's true only with -std. */
3426 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3429 inside strings and character constants. */
3430 #define FOO(x) 'x'
3431 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3437 int argc;
3438 char **argv;
3440 main ()
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3444 return 0;
3446 _ACEOF
3447 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3448 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 CC="$ac_save_CC $ac_arg"
3451 if ac_fn_c_try_compile "$LINENO"; then :
3452 ac_cv_prog_cc_c89=$ac_arg
3454 rm -f core conftest.err conftest.$ac_objext
3455 test "x$ac_cv_prog_cc_c89" != "xno" && break
3456 done
3457 rm -f conftest.$ac_ext
3458 CC=$ac_save_CC
3461 # AC_CACHE_VAL
3462 case "x$ac_cv_prog_cc_c89" in
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3465 $as_echo "none needed" >&6; } ;;
3466 xno)
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3468 $as_echo "unsupported" >&6; } ;;
3470 CC="$CC $ac_cv_prog_cc_c89"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3472 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3473 esac
3474 if test "x$ac_cv_prog_cc_c89" != xno; then :
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 case $ac_cv_prog_cc_stdc in #(
3485 no) :
3486 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3487 *) :
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3489 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3490 if ${ac_cv_prog_cc_c99+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 ac_cv_prog_cc_c99=no
3494 ac_save_CC=$CC
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497 #include <stdarg.h>
3498 #include <stdbool.h>
3499 #include <stdlib.h>
3500 #include <wchar.h>
3501 #include <stdio.h>
3503 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3504 #define debug(...) fprintf (stderr, __VA_ARGS__)
3505 #define showlist(...) puts (#__VA_ARGS__)
3506 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3507 static void
3508 test_varargs_macros (void)
3510 int x = 1234;
3511 int y = 5678;
3512 debug ("Flag");
3513 debug ("X = %d\n", x);
3514 showlist (The first, second, and third items.);
3515 report (x>y, "x is %d but y is %d", x, y);
3518 // Check long long types.
3519 #define BIG64 18446744073709551615ull
3520 #define BIG32 4294967295ul
3521 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3522 #if !BIG_OK
3523 your preprocessor is broken;
3524 #endif
3525 #if BIG_OK
3526 #else
3527 your preprocessor is broken;
3528 #endif
3529 static long long int bignum = -9223372036854775807LL;
3530 static unsigned long long int ubignum = BIG64;
3532 struct incomplete_array
3534 int datasize;
3535 double data[];
3538 struct named_init {
3539 int number;
3540 const wchar_t *name;
3541 double average;
3544 typedef const char *ccp;
3546 static inline int
3547 test_restrict (ccp restrict text)
3549 // See if C++-style comments work.
3550 // Iterate through items via the restricted pointer.
3551 // Also check for declarations in for loops.
3552 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3553 continue;
3554 return 0;
3557 // Check varargs and va_copy.
3558 static void
3559 test_varargs (const char *format, ...)
3561 va_list args;
3562 va_start (args, format);
3563 va_list args_copy;
3564 va_copy (args_copy, args);
3566 const char *str;
3567 int number;
3568 float fnumber;
3570 while (*format)
3572 switch (*format++)
3574 case 's': // string
3575 str = va_arg (args_copy, const char *);
3576 break;
3577 case 'd': // int
3578 number = va_arg (args_copy, int);
3579 break;
3580 case 'f': // float
3581 fnumber = va_arg (args_copy, double);
3582 break;
3583 default:
3584 break;
3587 va_end (args_copy);
3588 va_end (args);
3592 main ()
3595 // Check bool.
3596 _Bool success = false;
3598 // Check restrict.
3599 if (test_restrict ("String literal") == 0)
3600 success = true;
3601 char *restrict newvar = "Another string";
3603 // Check varargs.
3604 test_varargs ("s, d' f .", "string", 65, 34.234);
3605 test_varargs_macros ();
3607 // Check flexible array members.
3608 struct incomplete_array *ia =
3609 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3610 ia->datasize = 10;
3611 for (int i = 0; i < ia->datasize; ++i)
3612 ia->data[i] = i * 1.234;
3614 // Check named initializers.
3615 struct named_init ni = {
3616 .number = 34,
3617 .name = L"Test wide string",
3618 .average = 543.34343,
3621 ni.number = 58;
3623 int dynamic_array[ni.number];
3624 dynamic_array[ni.number - 1] = 543;
3626 // work around unused variable warnings
3627 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3628 || dynamic_array[ni.number - 1] != 543);
3631 return 0;
3633 _ACEOF
3634 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3636 CC="$ac_save_CC $ac_arg"
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_c99=$ac_arg
3640 rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c99" != "xno" && break
3642 done
3643 rm -f conftest.$ac_ext
3644 CC=$ac_save_CC
3647 # AC_CACHE_VAL
3648 case "x$ac_cv_prog_cc_c99" in
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 $as_echo "none needed" >&6; } ;;
3652 xno)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;;
3656 CC="$CC $ac_cv_prog_cc_c99"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3658 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3659 esac
3660 if test "x$ac_cv_prog_cc_c99" != xno; then :
3661 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3664 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3665 if ${ac_cv_prog_cc_c89+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 ac_cv_prog_cc_c89=no
3669 ac_save_CC=$CC
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672 #include <stdarg.h>
3673 #include <stdio.h>
3674 #include <sys/types.h>
3675 #include <sys/stat.h>
3676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3677 struct buf { int x; };
3678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3679 static char *e (p, i)
3680 char **p;
3681 int i;
3683 return p[i];
3685 static char *f (char * (*g) (char **, int), char **p, ...)
3687 char *s;
3688 va_list v;
3689 va_start (v,p);
3690 s = g (p, va_arg (v,int));
3691 va_end (v);
3692 return s;
3695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3696 function prototypes and stuff, but not '\xHH' hex character constants.
3697 These don't provoke an error unfortunately, instead are silently treated
3698 as 'x'. The following induces an error, until -std is added to get
3699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3700 array size at least. It's necessary to write '\x00'==0 to get something
3701 that's true only with -std. */
3702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3705 inside strings and character constants. */
3706 #define FOO(x) 'x'
3707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3709 int test (int i, double x);
3710 struct s1 {int (*f) (int a);};
3711 struct s2 {int (*f) (double a);};
3712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713 int argc;
3714 char **argv;
3716 main ()
3718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3720 return 0;
3722 _ACEOF
3723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3726 CC="$ac_save_CC $ac_arg"
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728 ac_cv_prog_cc_c89=$ac_arg
3730 rm -f core conftest.err conftest.$ac_objext
3731 test "x$ac_cv_prog_cc_c89" != "xno" && break
3732 done
3733 rm -f conftest.$ac_ext
3734 CC=$ac_save_CC
3737 # AC_CACHE_VAL
3738 case "x$ac_cv_prog_cc_c89" in
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3741 $as_echo "none needed" >&6; } ;;
3742 xno)
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3744 $as_echo "unsupported" >&6; } ;;
3746 CC="$CC $ac_cv_prog_cc_c89"
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3748 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3749 esac
3750 if test "x$ac_cv_prog_cc_c89" != xno; then :
3751 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3752 else
3753 ac_cv_prog_cc_stdc=no
3758 esac
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3760 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3761 if ${ac_cv_prog_cc_stdc+:} false; then :
3762 $as_echo_n "(cached) " >&6
3765 case $ac_cv_prog_cc_stdc in #(
3766 no) :
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3768 $as_echo "unsupported" >&6; } ;; #(
3769 '') :
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3771 $as_echo "none needed" >&6; } ;; #(
3772 *) :
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3774 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3775 esac
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3783 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3784 # On Suns, sometimes $CPP names a directory.
3785 if test -n "$CPP" && test -d "$CPP"; then
3786 CPP=
3788 if test -z "$CPP"; then
3789 if ${ac_cv_prog_CPP+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 # Double quotes because CPP needs to be expanded
3793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3795 ac_preproc_ok=false
3796 for ac_c_preproc_warn_flag in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806 #ifdef __STDC__
3807 # include <limits.h>
3808 #else
3809 # include <assert.h>
3810 #endif
3811 Syntax error
3812 _ACEOF
3813 if ac_fn_c_try_cpp "$LINENO"; then :
3815 else
3816 # Broken: fails on valid input.
3817 continue
3819 rm -f conftest.err conftest.i conftest.$ac_ext
3821 # OK, works on sane cases. Now check whether nonexistent headers
3822 # can be detected and how.
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <ac_nonexistent.h>
3826 _ACEOF
3827 if ac_fn_c_try_cpp "$LINENO"; then :
3828 # Broken: success on invalid input.
3829 continue
3830 else
3831 # Passes both tests.
3832 ac_preproc_ok=:
3833 break
3835 rm -f conftest.err conftest.i conftest.$ac_ext
3837 done
3838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839 rm -f conftest.i conftest.err conftest.$ac_ext
3840 if $ac_preproc_ok; then :
3841 break
3844 done
3845 ac_cv_prog_CPP=$CPP
3848 CPP=$ac_cv_prog_CPP
3849 else
3850 ac_cv_prog_CPP=$CPP
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3853 $as_echo "$CPP" >&6; }
3854 ac_preproc_ok=false
3855 for ac_c_preproc_warn_flag in '' yes
3857 # Use a header file that comes with gcc, so configuring glibc
3858 # with a fresh cross-compiler works.
3859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 # <limits.h> exists even on freestanding compilers.
3861 # On the NeXT, cc -E runs the code through the compiler's parser,
3862 # not just through cpp. "Syntax error" is here to catch this case.
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865 #ifdef __STDC__
3866 # include <limits.h>
3867 #else
3868 # include <assert.h>
3869 #endif
3870 Syntax error
3871 _ACEOF
3872 if ac_fn_c_try_cpp "$LINENO"; then :
3874 else
3875 # Broken: fails on valid input.
3876 continue
3878 rm -f conftest.err conftest.i conftest.$ac_ext
3880 # OK, works on sane cases. Now check whether nonexistent headers
3881 # can be detected and how.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #include <ac_nonexistent.h>
3885 _ACEOF
3886 if ac_fn_c_try_cpp "$LINENO"; then :
3887 # Broken: success on invalid input.
3888 continue
3889 else
3890 # Passes both tests.
3891 ac_preproc_ok=:
3892 break
3894 rm -f conftest.err conftest.i conftest.$ac_ext
3896 done
3897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3898 rm -f conftest.i conftest.err conftest.$ac_ext
3899 if $ac_preproc_ok; then :
3901 else
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3905 See \`config.log' for more details" "$LINENO" 5; }
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 # Check for a compatible awk
3916 for ac_prog in gawk nawk
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if ${ac_cv_prog_AWK+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -n "$AWK"; then
3926 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935 ac_cv_prog_AWK="$ac_prog"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3939 done
3940 done
3941 IFS=$as_save_IFS
3945 AWK=$ac_cv_prog_AWK
3946 if test -n "$AWK"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3948 $as_echo "$AWK" >&6; }
3949 else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3955 test -n "$AWK" && break
3956 done
3958 if test "$AWK" = ""; then
3959 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3961 # Extract the first word of "mmake", so it can be a program name with args.
3962 set dummy mmake; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if ${ac_cv_prog_MMAKE+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$MMAKE"; then
3969 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 ac_cv_prog_MMAKE="mmake "
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3984 IFS=$as_save_IFS
3988 MMAKE=$ac_cv_prog_MMAKE
3989 if test -n "$MMAKE"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3991 $as_echo "$MMAKE" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3999 # Perform some default variable assignments. Note all of these will be
4000 # Regenerated from the script, so there is no need to cache them.
4002 aros_host_cc="$CC"
4003 if test "$GCC" = "yes"; then
4004 aros_gcc_ld=`$CC -print-prog-name=ld`
4005 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4006 set dummy `basename $aros_gcc_ld`; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if ${ac_cv_path_aros_host_ld+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 case $aros_host_ld in
4013 [\\/]* | ?:[\\/]*)
4014 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in `dirname $aros_gcc_ld`
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4028 done
4029 done
4030 IFS=$as_save_IFS
4033 esac
4035 aros_host_ld=$ac_cv_path_aros_host_ld
4036 if test -n "$aros_host_ld"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4038 $as_echo "$aros_host_ld" >&6; }
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4046 if test "$aros_host_ld" = ""; then
4047 # Extract the first word of "ld", so it can be a program name with args.
4048 set dummy ld; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_path_aros_host_ld+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 case $aros_host_ld in
4055 [\\/]* | ?:[\\/]*)
4056 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068 break 2
4070 done
4071 done
4072 IFS=$as_save_IFS
4075 esac
4077 aros_host_ld=$ac_cv_path_aros_host_ld
4078 if test -n "$aros_host_ld"; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4080 $as_echo "$aros_host_ld" >&6; }
4081 else
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4088 if test "$aros_host_ld" = ""; then
4089 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4091 aros_host_make="make"
4092 aros_host_cflags=$CFLAGS
4093 aros_host_ldflags=$LDFLAGS
4094 aros_host_debug="-g -O0"
4095 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4096 aros_host_mkargs="--no-print-directory"
4097 aros_host_incl="/usr/include"
4098 aros_host_exe_suffix="$EXEEXT"
4099 aros_host_lib_suffix=""
4101 # Ignore all compliance, AROS ROMs = 0
4102 # KickStart v1.0 = 30
4103 # KickStart v1.3 = 34
4104 # KickStart v2.0 = 37
4105 # KickStart v3.0 = 39
4106 # KickStart v3.1 = 40
4107 # AmigaOS v3.5 = 44
4108 aros_amigaos_compliance=0
4110 for ac_prog in aclocal aclocal19 aclocal-1.9
4112 # Extract the first word of "$ac_prog", so it can be a program name with args.
4113 set dummy $ac_prog; ac_word=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 if test -n "$aros_host_aclocal"; then
4120 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129 ac_cv_prog_aros_host_aclocal="$ac_prog"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 break 2
4133 done
4134 done
4135 IFS=$as_save_IFS
4139 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4140 if test -n "$aros_host_aclocal"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4142 $as_echo "$aros_host_aclocal" >&6; }
4143 else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4149 test -n "$aros_host_aclocal" && break
4150 done
4152 for ac_prog in autoconf autoconf259 autoconf253
4154 # Extract the first word of "$ac_prog", so it can be a program name with args.
4155 set dummy $ac_prog; ac_word=$2
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157 $as_echo_n "checking for $ac_word... " >&6; }
4158 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test -n "$aros_host_autoconf"; then
4162 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_aros_host_autoconf="$ac_prog"
4172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4175 done
4176 done
4177 IFS=$as_save_IFS
4181 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4182 if test -n "$aros_host_autoconf"; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4184 $as_echo "$aros_host_autoconf" >&6; }
4185 else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4191 test -n "$aros_host_autoconf" && break
4192 done
4194 for ac_prog in autoheader autoheader259 autoheader253
4196 # Extract the first word of "$ac_prog", so it can be a program name with args.
4197 set dummy $ac_prog; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -n "$aros_host_autoheader"; then
4204 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_aros_host_autoheader="$ac_prog"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4223 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4224 if test -n "$aros_host_autoheader"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4226 $as_echo "$aros_host_autoheader" >&6; }
4227 else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 test -n "$aros_host_autoheader" && break
4234 done
4236 for ac_prog in automake automake19 automake-1.9
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_aros_host_automake+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$aros_host_automake"; then
4246 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_aros_host_automake="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 aros_host_automake=$ac_cv_prog_aros_host_automake
4266 if test -n "$aros_host_automake"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4268 $as_echo "$aros_host_automake" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$aros_host_automake" && break
4276 done
4279 if test "$aros_host_aclocal" = ""; then
4280 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4282 if test "$aros_host_automake" = ""; then
4283 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4286 case "$aros_host_cc" in
4287 *gcc*)
4288 aros_host_cc_pipe="-pipe"
4290 icc)
4291 aros_host_cc_pipe=""
4294 aros_host_cc_pipe=""
4296 esac
4298 aros_kernel_cc_includes=""
4299 aros_target_cc_includes=""
4301 # ----------------------------------------------------------------------------------------
4302 # Host-specific defaults
4304 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4305 # instead of a wrapper script.
4306 # Useful for non-ELF hosts (like Windows and Darwin).
4307 # Can also be overriden in target section below
4308 use_aros_gcc="no"
4310 # This is the main host configuration section. It is where the host
4311 # can change the values of any variables it needs to change. We do
4312 # not look at anything that compiles to the target yet, we'll get
4313 # to that later.
4315 case "$host_os" in
4316 aros*)
4317 aros_host_arch="aros"
4318 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4319 case "$host_cpu" in
4320 *i?86*)
4321 aros_host_cpu="i386"
4323 *x86_64*)
4324 aros_host_cpu="x86_64"
4326 *powerpc*)
4327 aros_host_cpu="ppc"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4331 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4332 aros_host_cpu="$host_cpu"
4334 esac
4337 linux*)
4338 aros_host_arch="linux"
4339 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4340 android_build_os="linux-x86"
4341 android_tool="android"
4342 default_android_sdk="/opt/android-sdk-linux_x86"
4343 case "$host_cpu" in
4344 *i?86*)
4345 aros_host_cpu="i386"
4347 *x86_64*)
4348 aros_host_cpu="x86_64"
4350 *m68k*)
4351 aros_host_cpu="m68k"
4353 *powerpc*)
4354 aros_host_cpu="ppc"
4356 *arm*)
4357 aros_host_cpu="arm"
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4361 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4362 aros_host_cpu="$host_cpu"
4364 esac
4367 freebsd*)
4368 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4369 aros_host_make="gmake"
4370 aros_host_arch="freebsd"
4371 aros_host_cpu="i386"
4373 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4375 case $host_os in
4376 freebsd[234]*)
4377 aros_object_format="elf_i386"
4381 aros_object_format="elf_i386_fbsd"
4383 esac
4387 darwin*)
4388 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4389 aros_host_arch="darwin"
4390 use_aros_gcc="yes"
4391 android_build_os="darwin-x86"
4392 android_tool="android"
4393 default_android_sdk="/android-sdk-mac_x86"
4394 case "$host_cpu" in
4395 *i?86*)
4396 aros_host_cpu="i386"
4398 *x86_64*)
4399 aros_host_cpu="x86_64"
4401 *powerpc*)
4402 aros_host_cpu="ppc"
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4406 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4407 aros_host_cpu="$host_cpu"
4409 esac
4411 aros_host_ldflags="$aros_host_ldflags -liconv"
4415 dragonfly*)
4416 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4417 aros_host_make="gmake"
4418 aros_host_arch="dragonfly"
4419 case $host_cpu in
4420 *i?86*)
4421 aros_host_cpu="i386"
4423 *amd64*)
4424 aros_host_cpu="x86_64"
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4428 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4429 aros_host_cpu="$host_cpu"
4431 esac
4434 netbsd*)
4435 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4436 aros_host_make="gmake"
4437 aros_host_arch="netbsd"
4438 case "$host_cpu" in
4439 *i?86*)
4440 aros_host_cpu="i386"
4442 *m68k*)
4443 aros_host_cpu="m68k"
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4447 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4448 aros_host_cpu="$host_cpu"
4450 esac
4451 aros_host_lib_suffix=".0.0"
4454 openbsd*)
4455 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4456 aros_host_make="gmake"
4457 aros_host_arch="openbsd"
4458 case "$host_cpu" in
4459 *i?86*)
4460 aros_host_cpu="i386"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4464 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4465 aros_host_cpu="$host_cpu"
4467 esac
4470 solaris*)
4471 aros_host_arch="solaris"
4472 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4473 case "$host_cpu" in
4474 *i?86*)
4475 aros_host_cpu="i386"
4477 *sparc*)
4478 aros_host_cpu="sparc"
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4482 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4483 aros_host_cpu="$host_cpu"
4485 esac
4488 morphos*)
4489 aros_host_arch="morphos"
4490 aros_host_cpu="ppc"
4493 amiga*)
4494 aros_host_arch="amiga"
4495 SORT="/gg/bin/sort"
4496 TEST="/gg/bin/test"
4497 UNIQ="/gg/bin/uniq"
4498 FOR="for"
4499 TOUCH="/gg/bin/touch"
4500 case "$host_cpu" in
4501 *m68k*)
4502 aros_host_cpu="m68k"
4504 *powerpc*)
4505 aros_host_cpu="ppc"
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4509 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4510 aros_host_cpu="$host_cpu"
4512 esac
4515 cygwin*)
4516 aros_host_arch="cygwin"
4517 use_aros_gcc="yes"
4518 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4519 android_build_os="windows"
4520 android_tool="android.bat"
4521 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4523 case "$host_cpu" in
4524 *i?86*)
4525 aros_host_cpu="i386"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4529 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4530 aros_host_cpu="$host_cpu"
4532 esac
4535 mingw32*)
4536 aros_host_arch="mingw32"
4537 use_aros_gcc="yes"
4538 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4539 android_build_os="windows"
4540 android_tool="android.bat"
4541 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4543 case "$host_cpu" in
4544 *i?86*)
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4547 $as_echo_n "checking for Windows native gcc target... " >&6; }
4548 host_cpu=`gcc -dumpmachine`
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4550 $as_echo "$host_cpu" >&6; }
4553 esac
4555 case "$host_cpu" in
4556 *i?86*)
4557 aros_host_cpu="i386"
4560 *x86_64*)
4561 aros_host_cpu="x86_64"
4562 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4567 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4568 aros_host_cpu="$host_cpu"
4570 esac
4573 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4575 esac
4577 # Extract the first word of "ar", so it can be a program name with args.
4578 set dummy ar; ac_word=$2
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580 $as_echo_n "checking for $ac_word... " >&6; }
4581 if ${ac_cv_prog_aros_host_ar+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if test -n "$aros_host_ar"; then
4585 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_aros_host_ar="ar cr"
4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4598 done
4599 done
4600 IFS=$as_save_IFS
4604 aros_host_ar=$ac_cv_prog_aros_host_ar
4605 if test -n "$aros_host_ar"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4607 $as_echo "$aros_host_ar" >&6; }
4608 else
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4614 if test "$aros_host_ar" = ""; then
4615 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4617 # Extract the first word of "ranlib", so it can be a program name with args.
4618 set dummy ranlib; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 if test -n "$aros_host_ranlib"; then
4625 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_aros_host_ranlib="ranlib "
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4638 done
4639 done
4640 IFS=$as_save_IFS
4644 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4645 if test -n "$aros_host_ranlib"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4647 $as_echo "$aros_host_ranlib" >&6; }
4648 else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4654 if test "$aros_host_ranlib" = ""; then
4655 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4657 # Extract the first word of "strip", so it can be a program name with args.
4658 set dummy strip; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if ${ac_cv_prog_aros_host_strip+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -n "$aros_host_strip"; then
4665 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_aros_host_strip="strip "
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4678 done
4679 done
4680 IFS=$as_save_IFS
4684 aros_host_strip=$ac_cv_prog_aros_host_strip
4685 if test -n "$aros_host_strip"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4687 $as_echo "$aros_host_strip" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4694 if test "$aros_host_strip" = ""; then
4695 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4698 # Extract the first word of "rm", so it can be a program name with args.
4699 set dummy rm; ac_word=$2
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701 $as_echo_n "checking for $ac_word... " >&6; }
4702 if ${ac_cv_prog_RM+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 if test -n "$RM"; then
4706 ac_cv_prog_RM="$RM" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_prog_RM="rm -rf"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4719 done
4720 done
4721 IFS=$as_save_IFS
4725 RM=$ac_cv_prog_RM
4726 if test -n "$RM"; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4728 $as_echo "$RM" >&6; }
4729 else
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731 $as_echo "no" >&6; }
4735 if test "$RM" = ""; then
4736 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4738 # Extract the first word of "cp", so it can be a program name with args.
4739 set dummy cp; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_prog_CP+:} false; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 if test -n "$CP"; then
4746 ac_cv_prog_CP="$CP" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_prog_CP="cp "
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4759 done
4760 done
4761 IFS=$as_save_IFS
4765 CP=$ac_cv_prog_CP
4766 if test -n "$CP"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4768 $as_echo "$CP" >&6; }
4769 else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4775 if test "$CP" = ""; then
4776 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4778 # Extract the first word of "mv", so it can be a program name with args.
4779 set dummy mv; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_MV+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test -n "$MV"; then
4786 ac_cv_prog_MV="$MV" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_MV="mv "
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4799 done
4800 done
4801 IFS=$as_save_IFS
4805 MV=$ac_cv_prog_MV
4806 if test -n "$MV"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4808 $as_echo "$MV" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4815 if test "$MV" = ""; then
4816 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4818 # Extract the first word of "echo", so it can be a program name with args.
4819 set dummy echo; ac_word=$2
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if ${ac_cv_prog_ECHO+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -n "$ECHO"; then
4826 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_ECHO="echo "
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4841 IFS=$as_save_IFS
4845 ECHO=$ac_cv_prog_ECHO
4846 if test -n "$ECHO"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4848 $as_echo "$ECHO" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4855 if test "$ECHO" = ""; then
4856 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4858 # Extract the first word of "mkdir", so it can be a program name with args.
4859 set dummy mkdir; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_prog_MKDIR+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$MKDIR"; then
4866 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_MKDIR="mkdir -p"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4881 IFS=$as_save_IFS
4885 MKDIR=$ac_cv_prog_MKDIR
4886 if test -n "$MKDIR"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4888 $as_echo "$MKDIR" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4895 if test "$MKDIR" = ""; then
4896 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4898 # Extract the first word of "touch", so it can be a program name with args.
4899 set dummy touch; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_prog_TOUCH+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 if test -n "$TOUCH"; then
4906 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_prog_TOUCH="touch "
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4919 done
4920 done
4921 IFS=$as_save_IFS
4925 TOUCH=$ac_cv_prog_TOUCH
4926 if test -n "$TOUCH"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4928 $as_echo "$TOUCH" >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4935 if test "$TOUCH" = ""; then
4936 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4938 # Extract the first word of "sort", so it can be a program name with args.
4939 set dummy sort; ac_word=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if ${ac_cv_prog_SORT+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 if test -n "$SORT"; then
4946 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_prog_SORT="sort "
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4959 done
4960 done
4961 IFS=$as_save_IFS
4965 SORT=$ac_cv_prog_SORT
4966 if test -n "$SORT"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4968 $as_echo "$SORT" >&6; }
4969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4975 if test "$SORT" = ""; then
4976 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4978 # Extract the first word of "uniq", so it can be a program name with args.
4979 set dummy uniq; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_prog_UNIQ+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 if test -n "$UNIQ"; then
4986 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_UNIQ="uniq "
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4999 done
5000 done
5001 IFS=$as_save_IFS
5005 UNIQ=$ac_cv_prog_UNIQ
5006 if test -n "$UNIQ"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5008 $as_echo "$UNIQ" >&6; }
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5015 if test "$UNIQ" = ""; then
5016 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5018 # Extract the first word of "true", so it can be a program name with args.
5019 set dummy true; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_NOP+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 if test -n "$NOP"; then
5026 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_prog_NOP="true "
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5039 done
5040 done
5041 IFS=$as_save_IFS
5045 NOP=$ac_cv_prog_NOP
5046 if test -n "$NOP"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5048 $as_echo "$NOP" >&6; }
5049 else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5055 if test "$NOP" = ""; then
5056 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5058 # Extract the first word of "cat", so it can be a program name with args.
5059 set dummy cat; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_CAT+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$CAT"; then
5066 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_CAT="cat "
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5079 done
5080 done
5081 IFS=$as_save_IFS
5085 CAT=$ac_cv_prog_CAT
5086 if test -n "$CAT"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5088 $as_echo "$CAT" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 if test "$CAT" = ""; then
5096 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5098 # Extract the first word of "bison", so it can be a program name with args.
5099 set dummy bison; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_BISON+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$BISON"; then
5106 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_BISON="bison "
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5121 IFS=$as_save_IFS
5125 BISON=$ac_cv_prog_BISON
5126 if test -n "$BISON"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5128 $as_echo "$BISON" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5135 if test "$BISON" = ""; then
5136 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5138 # Extract the first word of "flex", so it can be a program name with args.
5139 set dummy flex; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_FLEX+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$FLEX"; then
5146 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_FLEX="flex "
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5161 IFS=$as_save_IFS
5165 FLEX=$ac_cv_prog_FLEX
5166 if test -n "$FLEX"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5168 $as_echo "$FLEX" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5175 if test "$FLEX" = ""; then
5176 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5178 # Extract the first word of "pngtopnm", so it can be a program name with args.
5179 set dummy pngtopnm; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$PNGTOPNM"; then
5186 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_PNGTOPNM="pngtopnm "
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5206 if test -n "$PNGTOPNM"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5208 $as_echo "$PNGTOPNM" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5215 if test "$PNGTOPNM" = ""; then
5216 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5218 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5219 set dummy ppmtoilbm; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -n "$PPMTOILBM"; then
5226 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5239 done
5240 done
5241 IFS=$as_save_IFS
5245 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5246 if test -n "$PPMTOILBM"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5248 $as_echo "$PPMTOILBM" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5255 if test "$PPMTOILBM" = ""; then
5256 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5258 # Extract the first word of "sed", so it can be a program name with args.
5259 set dummy sed; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if ${ac_cv_prog_SED+:} false; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 if test -n "$SED"; then
5266 ac_cv_prog_SED="$SED" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_SED="sed "
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5279 done
5280 done
5281 IFS=$as_save_IFS
5285 SED=$ac_cv_prog_SED
5286 if test -n "$SED"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5288 $as_echo "$SED" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5295 if test "$SED" = ""; then
5296 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5298 # Extract the first word of "chmod", so it can be a program name with args.
5299 set dummy chmod; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_CHMOD+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 if test -n "$CHMOD"; then
5306 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315 ac_cv_prog_CHMOD="chmod "
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 break 2
5319 done
5320 done
5321 IFS=$as_save_IFS
5325 CHMOD=$ac_cv_prog_CHMOD
5326 if test -n "$CHMOD"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5328 $as_echo "$CHMOD" >&6; }
5329 else
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5335 if test "$CHMOD" = ""; then
5336 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5338 # Extract the first word of "patch", so it can be a program name with args.
5339 set dummy patch; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_PATCH+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -n "$PATCH"; then
5346 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_prog_PATCH="patch "
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5359 done
5360 done
5361 IFS=$as_save_IFS
5365 PATCH=$ac_cv_prog_PATCH
5366 if test -n "$PATCH"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5368 $as_echo "$PATCH" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5375 if test "$PATCH" = ""; then
5376 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5383 if test -n "$PYTHON"; then
5384 # If the user set $PYTHON, use it and don't search something else.
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5386 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5387 prog="import sys, string
5388 # split strings by '.' and convert to numeric. Append some zeros
5389 # because we need at least 4 digits for the hex conversion.
5390 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5391 minverhex = 0
5392 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5393 sys.exit(sys.hexversion < minverhex)"
5394 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5395 ($PYTHON -c "$prog") >&5 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; then :
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 $as_echo "yes" >&6; }
5401 else
5402 as_fn_error $? "too old" "$LINENO" 5
5404 am_display_PYTHON=$PYTHON
5405 else
5406 # Otherwise, try each interpreter until we find one that satisfies
5407 # VERSION.
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5409 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5410 if ${am_cv_pathless_PYTHON+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5414 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
5415 test "$am_cv_pathless_PYTHON" = none && break
5416 prog="import sys, string
5417 # split strings by '.' and convert to numeric. Append some zeros
5418 # because we need at least 4 digits for the hex conversion.
5419 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5420 minverhex = 0
5421 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5422 sys.exit(sys.hexversion < minverhex)"
5423 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5424 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; then :
5428 break
5430 done
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5433 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5434 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5435 if test "$am_cv_pathless_PYTHON" = none; then
5436 PYTHON=:
5437 else
5438 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5439 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_path_PYTHON+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 case $PYTHON in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5461 done
5462 done
5463 IFS=$as_save_IFS
5466 esac
5468 PYTHON=$ac_cv_path_PYTHON
5469 if test -n "$PYTHON"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5471 $as_echo "$PYTHON" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5479 am_display_PYTHON=$am_cv_pathless_PYTHON
5483 if test "$PYTHON" = :; then
5484 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5485 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5489 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5490 if ${am_cv_python_version+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5496 $as_echo "$am_cv_python_version" >&6; }
5497 PYTHON_VERSION=$am_cv_python_version
5501 PYTHON_PREFIX='${prefix}'
5503 PYTHON_EXEC_PREFIX='${exec_prefix}'
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5508 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5509 if ${am_cv_python_platform+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5515 $as_echo "$am_cv_python_platform" >&6; }
5516 PYTHON_PLATFORM=$am_cv_python_platform
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5522 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5523 if ${am_cv_python_pythondir+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5527 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5530 $as_echo "$am_cv_python_pythondir" >&6; }
5531 pythondir=$am_cv_python_pythondir
5535 pkgpythondir=\${pythondir}/$PACKAGE
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5539 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5540 if ${am_cv_python_pyexecdir+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5544 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5547 $as_echo "$am_cv_python_pyexecdir" >&6; }
5548 pyexecdir=$am_cv_python_pyexecdir
5552 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5560 FOR=for
5562 IF=if
5564 TEST=test
5566 CMP=cmp
5570 # Check for some includes for the X11 HIDD and the kernel
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5574 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5575 if ${ac_cv_path_GREP+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -z "$GREP"; then
5579 ac_path_GREP_found=false
5580 # Loop through the user's path and test for each of PROGNAME-LIST
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_prog in grep ggrep; do
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5589 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5590 # Check for GNU ac_path_GREP and select it if it is found.
5591 # Check for GNU $ac_path_GREP
5592 case `"$ac_path_GREP" --version 2>&1` in
5593 *GNU*)
5594 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5596 ac_count=0
5597 $as_echo_n 0123456789 >"conftest.in"
5598 while :
5600 cat "conftest.in" "conftest.in" >"conftest.tmp"
5601 mv "conftest.tmp" "conftest.in"
5602 cp "conftest.in" "conftest.nl"
5603 $as_echo 'GREP' >> "conftest.nl"
5604 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5606 as_fn_arith $ac_count + 1 && ac_count=$as_val
5607 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5608 # Best one so far, save it but keep looking for a better one
5609 ac_cv_path_GREP="$ac_path_GREP"
5610 ac_path_GREP_max=$ac_count
5612 # 10*(2^10) chars as input seems more than enough
5613 test $ac_count -gt 10 && break
5614 done
5615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5616 esac
5618 $ac_path_GREP_found && break 3
5619 done
5620 done
5621 done
5622 IFS=$as_save_IFS
5623 if test -z "$ac_cv_path_GREP"; then
5624 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5626 else
5627 ac_cv_path_GREP=$GREP
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5632 $as_echo "$ac_cv_path_GREP" >&6; }
5633 GREP="$ac_cv_path_GREP"
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5637 $as_echo_n "checking for egrep... " >&6; }
5638 if ${ac_cv_path_EGREP+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5642 then ac_cv_path_EGREP="$GREP -E"
5643 else
5644 if test -z "$EGREP"; then
5645 ac_path_EGREP_found=false
5646 # Loop through the user's path and test for each of PROGNAME-LIST
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_prog in egrep; do
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5655 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5656 # Check for GNU ac_path_EGREP and select it if it is found.
5657 # Check for GNU $ac_path_EGREP
5658 case `"$ac_path_EGREP" --version 2>&1` in
5659 *GNU*)
5660 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5662 ac_count=0
5663 $as_echo_n 0123456789 >"conftest.in"
5664 while :
5666 cat "conftest.in" "conftest.in" >"conftest.tmp"
5667 mv "conftest.tmp" "conftest.in"
5668 cp "conftest.in" "conftest.nl"
5669 $as_echo 'EGREP' >> "conftest.nl"
5670 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5672 as_fn_arith $ac_count + 1 && ac_count=$as_val
5673 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5674 # Best one so far, save it but keep looking for a better one
5675 ac_cv_path_EGREP="$ac_path_EGREP"
5676 ac_path_EGREP_max=$ac_count
5678 # 10*(2^10) chars as input seems more than enough
5679 test $ac_count -gt 10 && break
5680 done
5681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5682 esac
5684 $ac_path_EGREP_found && break 3
5685 done
5686 done
5687 done
5688 IFS=$as_save_IFS
5689 if test -z "$ac_cv_path_EGREP"; then
5690 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5692 else
5693 ac_cv_path_EGREP=$EGREP
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5699 $as_echo "$ac_cv_path_EGREP" >&6; }
5700 EGREP="$ac_cv_path_EGREP"
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5704 $as_echo_n "checking for ANSI C header files... " >&6; }
5705 if ${ac_cv_header_stdc+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 #include <stdlib.h>
5711 #include <stdarg.h>
5712 #include <string.h>
5713 #include <float.h>
5716 main ()
5720 return 0;
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 ac_cv_header_stdc=yes
5725 else
5726 ac_cv_header_stdc=no
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 if test $ac_cv_header_stdc = yes; then
5731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 #include <string.h>
5736 _ACEOF
5737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738 $EGREP "memchr" >/dev/null 2>&1; then :
5740 else
5741 ac_cv_header_stdc=no
5743 rm -f conftest*
5747 if test $ac_cv_header_stdc = yes; then
5748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <stdlib.h>
5753 _ACEOF
5754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5755 $EGREP "free" >/dev/null 2>&1; then :
5757 else
5758 ac_cv_header_stdc=no
5760 rm -f conftest*
5764 if test $ac_cv_header_stdc = yes; then
5765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5766 if test "$cross_compiling" = yes; then :
5768 else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #include <ctype.h>
5772 #include <stdlib.h>
5773 #if ((' ' & 0x0FF) == 0x020)
5774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5776 #else
5777 # define ISLOWER(c) \
5778 (('a' <= (c) && (c) <= 'i') \
5779 || ('j' <= (c) && (c) <= 'r') \
5780 || ('s' <= (c) && (c) <= 'z'))
5781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5782 #endif
5784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5786 main ()
5788 int i;
5789 for (i = 0; i < 256; i++)
5790 if (XOR (islower (i), ISLOWER (i))
5791 || toupper (i) != TOUPPER (i))
5792 return 2;
5793 return 0;
5795 _ACEOF
5796 if ac_fn_c_try_run "$LINENO"; then :
5798 else
5799 ac_cv_header_stdc=no
5801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5802 conftest.$ac_objext conftest.beam conftest.$ac_ext
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5808 $as_echo "$ac_cv_header_stdc" >&6; }
5809 if test $ac_cv_header_stdc = yes; then
5811 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5817 inttypes.h stdint.h unistd.h
5818 do :
5819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5822 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5823 cat >>confdefs.h <<_ACEOF
5824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5825 _ACEOF
5829 done
5832 for ac_header in sys/ipc.h sys/shm.h \
5833 sys/mmap.h sys/mman.h sysexits.h \
5834 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5836 do :
5837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5838 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5840 cat >>confdefs.h <<_ACEOF
5841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5842 _ACEOF
5846 done
5849 for ac_header in sys/mount.h
5850 do :
5851 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5853 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5854 cat >>confdefs.h <<_ACEOF
5855 #define HAVE_SYS_MOUNT_H 1
5856 _ACEOF
5860 done
5863 ac_header_dirent=no
5864 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5865 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5867 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5868 if eval \${$as_ac_Header+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873 #include <sys/types.h>
5874 #include <$ac_hdr>
5877 main ()
5879 if ((DIR *) 0)
5880 return 0;
5882 return 0;
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 eval "$as_ac_Header=yes"
5887 else
5888 eval "$as_ac_Header=no"
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 eval ac_res=\$$as_ac_Header
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5894 $as_echo "$ac_res" >&6; }
5895 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5896 cat >>confdefs.h <<_ACEOF
5897 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5898 _ACEOF
5900 ac_header_dirent=$ac_hdr; break
5903 done
5904 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5905 if test $ac_header_dirent = dirent.h; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5907 $as_echo_n "checking for library containing opendir... " >&6; }
5908 if ${ac_cv_search_opendir+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 ac_func_search_save_LIBS=$LIBS
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5915 /* Override any GCC internal prototype to avoid an error.
5916 Use char because int might match the return type of a GCC
5917 builtin and then its argument prototype would still apply. */
5918 #ifdef __cplusplus
5919 extern "C"
5920 #endif
5921 char opendir ();
5923 main ()
5925 return opendir ();
5927 return 0;
5929 _ACEOF
5930 for ac_lib in '' dir; do
5931 if test -z "$ac_lib"; then
5932 ac_res="none required"
5933 else
5934 ac_res=-l$ac_lib
5935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5937 if ac_fn_c_try_link "$LINENO"; then :
5938 ac_cv_search_opendir=$ac_res
5940 rm -f core conftest.err conftest.$ac_objext \
5941 conftest$ac_exeext
5942 if ${ac_cv_search_opendir+:} false; then :
5943 break
5945 done
5946 if ${ac_cv_search_opendir+:} false; then :
5948 else
5949 ac_cv_search_opendir=no
5951 rm conftest.$ac_ext
5952 LIBS=$ac_func_search_save_LIBS
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5955 $as_echo "$ac_cv_search_opendir" >&6; }
5956 ac_res=$ac_cv_search_opendir
5957 if test "$ac_res" != no; then :
5958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5962 else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5964 $as_echo_n "checking for library containing opendir... " >&6; }
5965 if ${ac_cv_search_opendir+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 ac_func_search_save_LIBS=$LIBS
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5972 /* Override any GCC internal prototype to avoid an error.
5973 Use char because int might match the return type of a GCC
5974 builtin and then its argument prototype would still apply. */
5975 #ifdef __cplusplus
5976 extern "C"
5977 #endif
5978 char opendir ();
5980 main ()
5982 return opendir ();
5984 return 0;
5986 _ACEOF
5987 for ac_lib in '' x; do
5988 if test -z "$ac_lib"; then
5989 ac_res="none required"
5990 else
5991 ac_res=-l$ac_lib
5992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5994 if ac_fn_c_try_link "$LINENO"; then :
5995 ac_cv_search_opendir=$ac_res
5997 rm -f core conftest.err conftest.$ac_objext \
5998 conftest$ac_exeext
5999 if ${ac_cv_search_opendir+:} false; then :
6000 break
6002 done
6003 if ${ac_cv_search_opendir+:} false; then :
6005 else
6006 ac_cv_search_opendir=no
6008 rm conftest.$ac_ext
6009 LIBS=$ac_func_search_save_LIBS
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6012 $as_echo "$ac_cv_search_opendir" >&6; }
6013 ac_res=$ac_cv_search_opendir
6014 if test "$ac_res" != no; then :
6015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6022 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6023 if ${ac_cv_header_stat_broken+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 #include <sys/types.h>
6029 #include <sys/stat.h>
6031 #if defined S_ISBLK && defined S_IFDIR
6032 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6033 #endif
6035 #if defined S_ISBLK && defined S_IFCHR
6036 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6037 #endif
6039 #if defined S_ISLNK && defined S_IFREG
6040 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6041 #endif
6043 #if defined S_ISSOCK && defined S_IFREG
6044 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6045 #endif
6047 _ACEOF
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049 ac_cv_header_stat_broken=no
6050 else
6051 ac_cv_header_stat_broken=yes
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6056 $as_echo "$ac_cv_header_stat_broken" >&6; }
6057 if test $ac_cv_header_stat_broken = yes; then
6059 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6064 $as_echo_n "checking for ANSI C header files... " >&6; }
6065 if ${ac_cv_header_stdc+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <stdlib.h>
6071 #include <stdarg.h>
6072 #include <string.h>
6073 #include <float.h>
6076 main ()
6080 return 0;
6082 _ACEOF
6083 if ac_fn_c_try_compile "$LINENO"; then :
6084 ac_cv_header_stdc=yes
6085 else
6086 ac_cv_header_stdc=no
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 if test $ac_cv_header_stdc = yes; then
6091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 #include <string.h>
6096 _ACEOF
6097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6098 $EGREP "memchr" >/dev/null 2>&1; then :
6100 else
6101 ac_cv_header_stdc=no
6103 rm -f conftest*
6107 if test $ac_cv_header_stdc = yes; then
6108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 #include <stdlib.h>
6113 _ACEOF
6114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6115 $EGREP "free" >/dev/null 2>&1; then :
6117 else
6118 ac_cv_header_stdc=no
6120 rm -f conftest*
6124 if test $ac_cv_header_stdc = yes; then
6125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6126 if test "$cross_compiling" = yes; then :
6128 else
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 #include <ctype.h>
6132 #include <stdlib.h>
6133 #if ((' ' & 0x0FF) == 0x020)
6134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6136 #else
6137 # define ISLOWER(c) \
6138 (('a' <= (c) && (c) <= 'i') \
6139 || ('j' <= (c) && (c) <= 'r') \
6140 || ('s' <= (c) && (c) <= 'z'))
6141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6142 #endif
6144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6146 main ()
6148 int i;
6149 for (i = 0; i < 256; i++)
6150 if (XOR (islower (i), ISLOWER (i))
6151 || toupper (i) != TOUPPER (i))
6152 return 2;
6153 return 0;
6155 _ACEOF
6156 if ac_fn_c_try_run "$LINENO"; then :
6158 else
6159 ac_cv_header_stdc=no
6161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6162 conftest.$ac_objext conftest.beam conftest.$ac_ext
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6168 $as_echo "$ac_cv_header_stdc" >&6; }
6169 if test $ac_cv_header_stdc = yes; then
6171 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6176 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6177 if ${ac_cv_header_sys_wait_h+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 #include <sys/types.h>
6183 #include <sys/wait.h>
6184 #ifndef WEXITSTATUS
6185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6186 #endif
6187 #ifndef WIFEXITED
6188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6189 #endif
6192 main ()
6194 int s;
6195 wait (&s);
6196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6198 return 0;
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202 ac_cv_header_sys_wait_h=yes
6203 else
6204 ac_cv_header_sys_wait_h=no
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6209 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6210 if test $ac_cv_header_sys_wait_h = yes; then
6212 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6217 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6218 if ${ac_cv_header_time+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 #include <sys/types.h>
6224 #include <sys/time.h>
6225 #include <time.h>
6228 main ()
6230 if ((struct tm *) 0)
6231 return 0;
6233 return 0;
6235 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237 ac_cv_header_time=yes
6238 else
6239 ac_cv_header_time=no
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6244 $as_echo "$ac_cv_header_time" >&6; }
6245 if test $ac_cv_header_time = yes; then
6247 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6251 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6252 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6254 cat >>confdefs.h <<_ACEOF
6255 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6256 _ACEOF
6259 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6264 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6265 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6267 cat >>confdefs.h <<_ACEOF
6268 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6269 _ACEOF
6272 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6274 else
6275 case " $LIBOBJS " in
6276 *" fileblocks.$ac_objext "* ) ;;
6277 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6279 esac
6284 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6285 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6287 cat >>confdefs.h <<_ACEOF
6288 #define HAVE_STRUCT_STAT_ST_RDEV 1
6289 _ACEOF
6292 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6298 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6299 if ${ac_cv_struct_tm+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 #include <sys/types.h>
6305 #include <time.h>
6308 main ()
6310 struct tm tm;
6311 int *p = &tm.tm_sec;
6312 return !p;
6314 return 0;
6316 _ACEOF
6317 if ac_fn_c_try_compile "$LINENO"; then :
6318 ac_cv_struct_tm=time.h
6319 else
6320 ac_cv_struct_tm=sys/time.h
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6325 $as_echo "$ac_cv_struct_tm" >&6; }
6326 if test $ac_cv_struct_tm = sys/time.h; then
6328 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6332 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6333 #include <$ac_cv_struct_tm>
6336 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6338 cat >>confdefs.h <<_ACEOF
6339 #define HAVE_STRUCT_TM_TM_ZONE 1
6340 _ACEOF
6345 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6347 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6349 else
6350 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6352 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6353 ac_have_decl=1
6354 else
6355 ac_have_decl=0
6358 cat >>confdefs.h <<_ACEOF
6359 #define HAVE_DECL_TZNAME $ac_have_decl
6360 _ACEOF
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6363 $as_echo_n "checking for tzname... " >&6; }
6364 if ${ac_cv_var_tzname+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 #include <time.h>
6370 #if !HAVE_DECL_TZNAME
6371 extern char *tzname[];
6372 #endif
6375 main ()
6377 return tzname[0][0];
6379 return 0;
6381 _ACEOF
6382 if ac_fn_c_try_link "$LINENO"; then :
6383 ac_cv_var_tzname=yes
6384 else
6385 ac_cv_var_tzname=no
6387 rm -f core conftest.err conftest.$ac_objext \
6388 conftest$ac_exeext conftest.$ac_ext
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6391 $as_echo "$ac_cv_var_tzname" >&6; }
6392 if test $ac_cv_var_tzname = yes; then
6394 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6399 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6400 if test "x$ac_cv_type_off_t" = xyes; then :
6402 else
6404 cat >>confdefs.h <<_ACEOF
6405 #define off_t long int
6406 _ACEOF
6410 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6411 if test "x$ac_cv_type_pid_t" = xyes; then :
6413 else
6415 cat >>confdefs.h <<_ACEOF
6416 #define pid_t int
6417 _ACEOF
6421 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6422 if test "x$ac_cv_type_size_t" = xyes; then :
6424 else
6426 cat >>confdefs.h <<_ACEOF
6427 #define size_t unsigned int
6428 _ACEOF
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6433 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6434 if ${ac_cv_type_uid_t+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 #include <sys/types.h>
6441 _ACEOF
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443 $EGREP "uid_t" >/dev/null 2>&1; then :
6444 ac_cv_type_uid_t=yes
6445 else
6446 ac_cv_type_uid_t=no
6448 rm -f conftest*
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6452 $as_echo "$ac_cv_type_uid_t" >&6; }
6453 if test $ac_cv_type_uid_t = no; then
6455 $as_echo "#define uid_t int" >>confdefs.h
6458 $as_echo "#define gid_t int" >>confdefs.h
6463 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6464 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6466 cat >>confdefs.h <<_ACEOF
6467 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6468 _ACEOF
6474 # Look for some functions
6475 for ac_func in getpagesize kqueue statfs statvfs \
6476 clone kse_create rfork_thread thr_create sa_register \
6477 getcontext makecontext setcontext sigaltstack swapcontext
6478 do :
6479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6481 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6482 cat >>confdefs.h <<_ACEOF
6483 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6484 _ACEOF
6487 done
6493 for ac_header in $ac_header_list
6494 do :
6495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6496 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6498 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6499 cat >>confdefs.h <<_ACEOF
6500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6505 done
6514 for ac_func in getpagesize
6515 do :
6516 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6517 if test "x$ac_cv_func_getpagesize" = xyes; then :
6518 cat >>confdefs.h <<_ACEOF
6519 #define HAVE_GETPAGESIZE 1
6520 _ACEOF
6523 done
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6526 $as_echo_n "checking for working mmap... " >&6; }
6527 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if test "$cross_compiling" = yes; then :
6531 ac_cv_func_mmap_fixed_mapped=no
6532 else
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 $ac_includes_default
6536 /* malloc might have been renamed as rpl_malloc. */
6537 #undef malloc
6539 /* Thanks to Mike Haertel and Jim Avera for this test.
6540 Here is a matrix of mmap possibilities:
6541 mmap private not fixed
6542 mmap private fixed at somewhere currently unmapped
6543 mmap private fixed at somewhere already mapped
6544 mmap shared not fixed
6545 mmap shared fixed at somewhere currently unmapped
6546 mmap shared fixed at somewhere already mapped
6547 For private mappings, we should verify that changes cannot be read()
6548 back from the file, nor mmap's back from the file at a different
6549 address. (There have been systems where private was not correctly
6550 implemented like the infamous i386 svr4.0, and systems where the
6551 VM page cache was not coherent with the file system buffer cache
6552 like early versions of FreeBSD and possibly contemporary NetBSD.)
6553 For shared mappings, we should conversely verify that changes get
6554 propagated back to all the places they're supposed to be.
6556 Grep wants private fixed already mapped.
6557 The main things grep needs to know about mmap are:
6558 * does it exist and is it safe to write into the mmap'd area
6559 * how to use it (BSD variants) */
6561 #include <fcntl.h>
6562 #include <sys/mman.h>
6564 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6565 char *malloc ();
6566 #endif
6568 /* This mess was copied from the GNU getpagesize.h. */
6569 #ifndef HAVE_GETPAGESIZE
6570 # ifdef _SC_PAGESIZE
6571 # define getpagesize() sysconf(_SC_PAGESIZE)
6572 # else /* no _SC_PAGESIZE */
6573 # ifdef HAVE_SYS_PARAM_H
6574 # include <sys/param.h>
6575 # ifdef EXEC_PAGESIZE
6576 # define getpagesize() EXEC_PAGESIZE
6577 # else /* no EXEC_PAGESIZE */
6578 # ifdef NBPG
6579 # define getpagesize() NBPG * CLSIZE
6580 # ifndef CLSIZE
6581 # define CLSIZE 1
6582 # endif /* no CLSIZE */
6583 # else /* no NBPG */
6584 # ifdef NBPC
6585 # define getpagesize() NBPC
6586 # else /* no NBPC */
6587 # ifdef PAGESIZE
6588 # define getpagesize() PAGESIZE
6589 # endif /* PAGESIZE */
6590 # endif /* no NBPC */
6591 # endif /* no NBPG */
6592 # endif /* no EXEC_PAGESIZE */
6593 # else /* no HAVE_SYS_PARAM_H */
6594 # define getpagesize() 8192 /* punt totally */
6595 # endif /* no HAVE_SYS_PARAM_H */
6596 # endif /* no _SC_PAGESIZE */
6598 #endif /* no HAVE_GETPAGESIZE */
6601 main ()
6603 char *data, *data2, *data3;
6604 const char *cdata2;
6605 int i, pagesize;
6606 int fd, fd2;
6608 pagesize = getpagesize ();
6610 /* First, make a file with some known garbage in it. */
6611 data = (char *) malloc (pagesize);
6612 if (!data)
6613 return 1;
6614 for (i = 0; i < pagesize; ++i)
6615 *(data + i) = rand ();
6616 umask (0);
6617 fd = creat ("conftest.mmap", 0600);
6618 if (fd < 0)
6619 return 2;
6620 if (write (fd, data, pagesize) != pagesize)
6621 return 3;
6622 close (fd);
6624 /* Next, check that the tail of a page is zero-filled. File must have
6625 non-zero length, otherwise we risk SIGBUS for entire page. */
6626 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6627 if (fd2 < 0)
6628 return 4;
6629 cdata2 = "";
6630 if (write (fd2, cdata2, 1) != 1)
6631 return 5;
6632 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6633 if (data2 == MAP_FAILED)
6634 return 6;
6635 for (i = 0; i < pagesize; ++i)
6636 if (*(data2 + i))
6637 return 7;
6638 close (fd2);
6639 if (munmap (data2, pagesize))
6640 return 8;
6642 /* Next, try to mmap the file at a fixed address which already has
6643 something else allocated at it. If we can, also make sure that
6644 we see the same garbage. */
6645 fd = open ("conftest.mmap", O_RDWR);
6646 if (fd < 0)
6647 return 9;
6648 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6649 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6650 return 10;
6651 for (i = 0; i < pagesize; ++i)
6652 if (*(data + i) != *(data2 + i))
6653 return 11;
6655 /* Finally, make sure that changes to the mapped area do not
6656 percolate back to the file as seen by read(). (This is a bug on
6657 some variants of i386 svr4.0.) */
6658 for (i = 0; i < pagesize; ++i)
6659 *(data2 + i) = *(data2 + i) + 1;
6660 data3 = (char *) malloc (pagesize);
6661 if (!data3)
6662 return 12;
6663 if (read (fd, data3, pagesize) != pagesize)
6664 return 13;
6665 for (i = 0; i < pagesize; ++i)
6666 if (*(data + i) != *(data3 + i))
6667 return 14;
6668 close (fd);
6669 return 0;
6671 _ACEOF
6672 if ac_fn_c_try_run "$LINENO"; then :
6673 ac_cv_func_mmap_fixed_mapped=yes
6674 else
6675 ac_cv_func_mmap_fixed_mapped=no
6677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6678 conftest.$ac_objext conftest.beam conftest.$ac_ext
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6683 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6684 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6686 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6689 rm -f conftest.mmap conftest.txt
6694 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6695 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6696 aros_config_ldflags=""
6698 aros_shared_default=yes
6700 aros_shared_cflags="-fPIC"
6701 aros_shared_aflags=""
6702 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6703 aros_kernel_ldflags="-Wl,-rpath,./lib"
6705 aros_kernel_ar_flags="cr"
6706 aros_target_ar_flags="cr"
6707 aros_target_nm_flags="-C -ul"
6708 aros_target_strip_flags="--strip-unneeded -R.comment"
6710 aros_compiler_libs=
6711 aros_arch_libs=
6713 aros_target_genmap="-Wl,-Map -Xlinker"
6715 # Native flavour stuff
6716 aros_serial_debug="0"
6718 # Palm native flavour stuff
6719 aros_palm_debug_hack="0"
6721 # Unix flavour stuff
6722 aros_nesting_supervisor="0"
6724 # Collect-aros stuff: "-ius" to ignore undefined symbols
6725 ignore_undefined_symbols=""
6727 # Check for X11 by default
6728 need_x11="auto"
6730 #-----------------------------------------------------------------------------
6733 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6734 # it switched on by default, and we use the host compiler, so it compiles AROS
6735 # code with this enabled resulting in link failures as we don't have support
6736 # for it.
6738 # We use two methods to disable it. For the host compiler (used to compile
6739 # some hosted modules), we test to see if the compiler supports stack
6740 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6741 # work on all platforms.
6743 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6744 # (this is done unconditionally, as it should have no effect on compilers
6745 # without the stack protection feature). This may be specific to the way that
6746 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6747 # strong enough to disable it in a generic way though, so we'll live with it
6748 # until another vendor ships GCC with it enabled in a different way, and deal
6749 # with it then.
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6753 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6754 save_cflags="$CFLAGS"
6755 CFLAGS="$CFLAGS -fno-stack-protector"
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_stack_protector="yes"
6769 else
6770 use_no_stack_protector="no"
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6774 $as_echo "$use_no_stack_protector" >&6; }
6775 if test "x-$use_no_stack_protector" = "x-yes" ; then
6776 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6778 CFLAGS="$save_cflags"
6780 #-----------------------------------------------------------------------------
6782 # Disable pointer-signedness warnings if the compiler recognises the option
6783 # (this only works for the host compiler at the moment)
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6786 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6787 save_cflags="$CFLAGS"
6788 CFLAGS="$CFLAGS -Wno-pointer-sign"
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6793 main ()
6797 return 0;
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 use_no_sign_warning="yes"
6802 else
6803 use_no_sign_warning="no"
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6807 $as_echo "$use_no_sign_warning" >&6; }
6808 if test "x-$use_no_sign_warning" = "x-yes" ; then
6809 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6811 CFLAGS="$save_cflags"
6813 #-----------------------------------------------------------------------------
6815 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6818 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6819 save_cflags="$CFLAGS"
6820 CFLAGS="$CFLAGS -fgnu89-inline"
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6825 main ()
6829 return 0;
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 use_gnu89_inline="yes"
6834 else
6835 use_gnu89_inline="no"
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6839 $as_echo "$use_gnu89_inline" >&6; }
6840 if test "x-$use_gnu89_inline" = "x-yes" ; then
6841 gnu89_inline="-fgnu89-inline"
6843 CFLAGS="$save_cflags"
6845 #-----------------------------------------------------------------------------
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6848 $as_echo_n "checking for type of build... " >&6; }
6849 # Check whether --enable-build_type was given.
6850 if test "${enable_build_type+set}" = set; then :
6851 enableval=$enable_build_type; build_type=$enableval
6852 else
6853 build_type="personal"
6857 if test "$build_type" = "nightly"; then
6858 build_type_string="NIGHTLY"
6859 elif test "$build_type" = "snapshot"; then
6860 build_type_string="SNAPSHOT"
6861 elif test "$build_type" = "milestone"; then
6862 build_type_string="MILESTONE"
6863 elif test "$build_type" = "release"; then
6864 build_type_string="RELEASE"
6865 else
6866 build_type_string="PERSONAL"
6867 build_type="personal"
6870 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6873 $as_echo "$build_type" >&6; }
6875 #-----------------------------------------------------------------------------
6876 all_debug_types="messages stack modules mungwall symbols"
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6879 $as_echo_n "checking which debug types to enable... " >&6; }
6880 # Check whether --enable-debug was given.
6881 if test "${enable_debug+set}" = set; then :
6882 enableval=$enable_debug; debug="$enableval"
6883 else
6884 debug=""
6888 if test "$debug" = "" -o "$debug" = "no"; then
6889 debug="none"
6890 elif test "$debug" = "yes"; then
6891 debug="all"
6894 if test "$debug" = "all" ; then
6895 debug="messages stack modules symbols"
6896 for d in $all_debug_types; do
6897 export aros_${d}_debug="1"
6898 done
6899 else
6900 for d in $all_debug_types; do
6901 export aros_${d}_debug="0"
6902 done
6905 if test "$debug" != "none"; then
6906 debug=`echo $debug | sed s/,/\ /g`
6907 for d in $debug; do
6908 found="0"
6909 for d2 in $all_debug_types; do
6910 if test "$d2" = "$d"; then
6911 found="1"
6912 break
6914 done
6915 if test "$found" = "0"; then
6916 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6918 export aros_${d}_debug="1"
6919 done
6920 aros_debug="yes"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6923 $as_echo "$debug" >&6; }
6925 if test "$aros_messages_debug" = "1"; then
6926 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6927 else
6928 aros_messages_debug=""
6930 if test "$aros_symbols_debug" = "1"; then
6931 aros_symbols_debug="-g"
6932 else
6933 aros_symbols_debug=""
6936 # These are the flags to pass when compiling debugged programs
6937 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6938 aros_debug_aflags=""
6939 aros_debug_ldflags="$aros_symbols_debug"
6941 #-----------------------------------------------------------------------------
6942 # Checking if we should build crosstools..
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6944 $as_echo_n "checking whether to build crosstools... " >&6; }
6945 # Check whether --enable-crosstools was given.
6946 if test "${enable_crosstools+set}" = set; then :
6947 enableval=$enable_crosstools; crosstools="$enableval"
6948 else
6949 crosstools="no"
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6953 $as_echo "$crosstools" >&6; }
6955 #-----------------------------------------------------------------------------
6956 # Checking for distcc and ccache.
6958 # Always apply the transforms in this particular order. Basically you should
6959 # always run 'ccache distcc compiler' in that order for the best performance.
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6962 $as_echo_n "checking whether to enable distcc... " >&6; }
6963 # Check whether --enable-distcc was given.
6964 if test "${enable_distcc+set}" = set; then :
6965 enableval=$enable_distcc; distcc="$enableval"
6966 else
6967 distcc="no"
6970 if test "$distcc" != "" -a "$distcc" != "no"; then
6971 # AC_CHECK_PROG will print out the result in this case
6972 # Extract the first word of "distcc", so it can be a program name with args.
6973 set dummy distcc; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_path_DISTCC+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 case $DISTCC in
6980 [\\/]* | ?:[\\/]*)
6981 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6995 done
6996 done
6997 IFS=$as_save_IFS
6999 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7001 esac
7003 DISTCC=$ac_cv_path_DISTCC
7004 if test -n "$DISTCC"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7006 $as_echo "$DISTCC" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7019 $as_echo_n "checking whether to enable ccache... " >&6; }
7020 # Check whether --enable-ccache was given.
7021 if test "${enable_ccache+set}" = set; then :
7022 enableval=$enable_ccache; ccache="$enableval"
7023 else
7024 ccache="no"
7027 if test "$ccache" != "" -a "$ccache" != "no"; then
7028 # AC_CHECK_PROG will print out the result in this case
7029 # Extract the first word of "ccache", so it can be a program name with args.
7030 set dummy ccache; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_CCACHE+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$CCACHE"; then
7037 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_CCACHE="ccache"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7050 done
7051 done
7052 IFS=$as_save_IFS
7056 CCACHE=$ac_cv_prog_CCACHE
7057 if test -n "$CCACHE"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7059 $as_echo "$CCACHE" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7066 else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7071 #-----------------------------------------------------------------------------
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7073 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7075 # Check whether --with-gcc-version was given.
7076 if test "${with_gcc_version+set}" = set; then :
7077 withval=$with_gcc_version; target_tool_version="$withval"
7078 else
7079 target_tool_version="default"
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7083 $as_echo "$target_tool_version" >&6; }
7085 #-----------------------------------------------------------------------------
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7087 $as_echo_n "checking what optimization flags to use... " >&6; }
7089 # Check whether --with-optimization was given.
7090 if test "${with_optimization+set}" = set; then :
7091 withval=$with_optimization; optimization="$withval"
7092 else
7093 optimization="unknown"
7096 if test "$optimization" = "unknown"; then
7097 if test "$debug" != "none"; then
7098 optimization="-O0"
7099 else
7100 optimization="-O2"
7103 aros_config_cflags="$aros_config_cflags $optimization"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7105 $as_echo "$optimization" >&6; }
7107 #-----------------------------------------------------------------------------
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7109 $as_echo_n "checking what paranoia flags to use... " >&6; }
7111 # Check whether --with-paranoia was given.
7112 if test "${with_paranoia+set}" = set; then :
7113 withval=$with_paranoia; paranoia_flags="$withval"
7114 else
7115 paranoia_flags="default"
7118 if test "$paranoia_flags" = "default"; then
7119 paranoia_flags=""
7120 else if test "$paranoia_flags" = "yes"; then
7121 paranoia_flags="-Wall -Werror"
7122 fi fi
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7124 $as_echo "$paranoia_flags" >&6; }
7125 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7127 #-----------------------------------------------------------------------------
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7129 $as_echo_n "checking what target variant to enable... " >&6; }
7130 # Check whether --enable-target_variant was given.
7131 if test "${enable_target_variant+set}" = set; then :
7132 enableval=$enable_target_variant; target_variant=$enableval
7133 else
7134 target_variant=""
7137 if test "$target_variant" = ""; then
7138 aros_target_variant=""
7139 aros_target_suffix=""
7140 enableval="none"
7141 else
7142 aros_target_variant="$target_variant"
7143 aros_target_suffix="-$target_variant"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7146 $as_echo "$enableval" >&6; }
7148 #-----------------------------------------------------------------------------
7149 # Target-specific defaults. You can override then on a per-target basis.
7151 # Bootloader name. Currently used by PC target.
7152 target_bootloader="none"
7154 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7155 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7156 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7157 if test "$crosstools" != "yes"; then
7158 target_tool_prefix=${target_cpu}-elf-
7159 else
7160 target_tool_prefix=${target_cpu}-aros-
7163 #-----------------------------------------------------------------------------
7164 # Additional options for some specific targets
7166 case "$aros_target_variant" in
7167 ios)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7169 $as_echo_n "checking XCode path... " >&6; }
7171 # Check whether --with-xcode was given.
7172 if test "${with_xcode+set}" = set; then :
7173 withval=$with_xcode; aros_xcode_path="$withval"
7174 else
7175 aros_xcode_path="/Developer"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7179 $as_echo "$aros_xcode_path" >&6; }
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7182 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7184 # Check whether --with-sdk-version was given.
7185 if test "${with_sdk_version+set}" = set; then :
7186 withval=$with_sdk_version; aros_sdk_version="$withval"
7187 else
7188 aros_sdk_version="4.1"
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7192 $as_echo "$aros_sdk_version" >&6; }
7196 "android")
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7198 $as_echo_n "checking Android SDK path... " >&6; }
7200 # Check whether --with-sdk was given.
7201 if test "${with_sdk+set}" = set; then :
7202 withval=$with_sdk; aros_android_sdk="$withval"
7203 else
7204 aros_android_sdk=$default_android_sdk
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7208 $as_echo "$aros_android_sdk" >&6; }
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7211 $as_echo_n "checking Android NDK path... " >&6; }
7213 # Check whether --with-ndk was given.
7214 if test "${with_ndk+set}" = set; then :
7215 withval=$with_ndk; aros_android_ndk="$withval"
7216 else
7217 aros_android_ndk="none"
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7221 $as_echo "$aros_android_ndk" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7224 $as_echo_n "checking what Android SDK version to use... " >&6; }
7226 # Check whether --with-sdk-version was given.
7227 if test "${with_sdk_version+set}" = set; then :
7228 withval=$with_sdk_version; aros_sdk_version="$withval"
7229 else
7230 aros_sdk_version="12"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7234 $as_echo "$aros_sdk_version" >&6; }
7236 if test "$aros_android_ndk" != "none"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7238 $as_echo_n "checking what Android NDK version to use... " >&6; }
7240 # Check whether --with-ndk-version was given.
7241 if test "${with_ndk_version+set}" = set; then :
7242 withval=$with_ndk_version; aros_ndk_version="$withval"
7243 else
7244 aros_ndk_version="9"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7248 $as_echo "$aros_ndk_version" >&6; }
7251 export PATH="$aros_android_sdk/tools:$PATH"
7252 # Extract the first word of "$android_tool", so it can be a program name with args.
7253 set dummy $android_tool; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_path_android_tool+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 case $android_tool in
7260 [\\/]* | ?:[\\/]*)
7261 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7275 done
7276 done
7277 IFS=$as_save_IFS
7280 esac
7282 android_tool=$ac_cv_path_android_tool
7283 if test -n "$android_tool"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7285 $as_echo "$android_tool" >&6; }
7286 else
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7292 if test "$android_tool" = ""; then
7293 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7296 aros_android_level=android-$aros_sdk_version
7297 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7298 echo "Platform $aros_android_level is not installed in your SDK"
7299 echo "Use --with-sdk-version=<API level number> to select another platform version"
7300 echo "You can check what plaform versions are installed in your SDK"
7301 echo "by examining contents of $aros_android_sdk/platforms directory"
7302 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7305 # Extract the first word of "ant", so it can be a program name with args.
7306 set dummy ant; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_path_ant+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 case $ant in
7313 [\\/]* | ?:[\\/]*)
7314 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7328 done
7329 done
7330 IFS=$as_save_IFS
7333 esac
7335 ant=$ac_cv_path_ant
7336 if test -n "$ant"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7338 $as_echo "$ant" >&6; }
7339 else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7345 if test "$ant" = ""; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7347 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7350 if test "$host_os" = "mingw32"; then
7351 android_tool="cmd //c $android_tool"
7355 esac
7357 #-----------------------------------------------------------------------------
7359 # This is the target configuration switch.
7360 case "$target_os" in
7361 linux*)
7362 aros_target_arch="linux"
7363 aros_target_family="unix"
7364 case "$target_cpu" in
7365 *m68k*)
7366 aros_target_cpu="m68k"
7367 aros_object_format="m68kelf"
7368 aros_flavour="emulcompat"
7369 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7370 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7371 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7372 gcc_target_cpu="mc68000"
7374 *i?86*)
7375 aros_target_cpu="i386"
7376 aros_object_format="elf_i386"
7377 aros_flavour="emulation"
7378 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7379 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7380 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7381 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7382 aros_config_ldflags="-m32 -march=i486"
7383 aros_kernel_ldflags="-melf_i386"
7384 aros_default_wbdepth=8
7385 gcc_target_cpu="i386"
7386 pci_hidd_target="hidd-pci-linux"
7387 android_tool_dir_prefix="x86"
7388 android_tool_prefix="i686-android-linux"
7389 android_ndk_arch="x86"
7391 *x86_64*)
7392 aros_target_cpu="x86_64"
7393 aros_object_format="elf_x86_64"
7394 aros_flavour="emulation"
7395 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7396 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7397 aros_default_wbdepth=8
7398 pci_hidd_target="hidd-pci-linux"
7400 *powerpc*)
7401 aros_target_cpu="ppc"
7402 aros_object_format="elf32ppc"
7403 aros_flavour="emulation"
7404 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7405 aros_default_wbdepth=8
7406 gcc_target_cpu="ppc"
7408 # TODO
7409 # Same as powerpc, but I need this for the nightly build to work again.
7410 # Actually, the nightly should be made working with powerpc target.
7411 # That just was too much work for the moment, another week or two.
7412 *ppc*)
7413 aros_target_cpu="ppc"
7414 aros_object_format="elf32ppc"
7415 aros_flavour="emulation"
7416 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7417 aros_default_wbdepth=8
7418 gcc_target_cpu="ppc"
7420 *arm*)
7421 aros_target_cpu="arm"
7422 aros_object_format="armelf_linux_eabi"
7423 aros_flavour="emulation"
7424 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7425 gcc_target_cpu="arm"
7426 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7427 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7428 aros_arch_libs="-laeabi"
7429 android_tool_dir_prefix="arm-linux-androideabi"
7430 android_tool_prefix="arm-linux-androideabi"
7431 android_ndk_arch="arm"
7434 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7436 esac
7437 case "$aros_target_variant" in
7438 android)
7440 if test "$android_ndk_arch" = ""; then
7441 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7444 aros_default_wbwidth=320
7445 aros_default_wbheight=480
7446 if test "$aros_android_ndk" = "none"; then
7447 aros_kernel_cflags="-mandroid"
7448 aros_kernel_ldflags="-mandroid"
7449 CFLAGS="-mandroid"
7450 else
7451 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7452 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7453 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7454 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7455 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7456 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7458 need_x11=no
7459 x11_hidd_target=kernel-hidd-androidgfx-kobj
7460 target_tool_prefix="$android_tool_prefix-"
7462 esac
7466 aros_target_arch="pc"
7467 aros_shared_default="no"
7468 target_bootloader="grub2"
7469 case "$target_cpu" in
7470 *i?86*)
7471 aros_target_cpu="i386"
7474 if test "$aros_object_format" = "" ; then
7475 aros_object_format="elf_i386"
7477 aros_flavour="standalone"
7478 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7479 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7480 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7481 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7482 aros_config_ldflags="-m32 -march=i486"
7483 aros_kernel_ldflags="-melf_i386"
7484 aros_default_wbwidth=640
7485 aros_default_wbheight=480
7486 gcc_target_cpu="i386"
7488 *x86_64*)
7489 aros_target_cpu="x86_64"
7490 aros_serial_debug=1
7491 if test "$aros_object_format" = "" ; then
7492 aros_object_format="elf_x86_64"
7494 aros_flavour="standalone"
7495 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7496 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7497 aros_kernel_ldflags=""
7498 aros_default_wbwidth=640
7499 aros_default_wbheight=480
7502 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7504 esac
7507 prep)
7508 aros_target_arch="prep"
7509 aros_shared_default="no"
7510 aros_target_cpu="ppc"
7511 aros_object_format="elf32ppc"
7512 aros_flavour="ppcnative"
7513 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7514 aros_kernel_ldflags=""
7515 aros_default_wbwidth=640
7516 aros_default_wbheight=480
7517 gcc_target_cpu="ppc"
7520 freebsd*)
7521 aros_target_arch="freebsd"
7522 aros_target_family="unix"
7523 aros_target_cpu="i386"
7524 aros_flavour="emulation"
7525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7526 gcc_target_cpu="i386"
7528 aros_target_strip_flags="-x"
7531 darwin*)
7532 aros_target_arch="darwin"
7533 aros_target_family="unix"
7534 aros_flavour="emulation"
7535 case "$target_cpu" in
7536 *i?86*)
7537 aros_ios_platform="iPhoneSimulator"
7538 aros_target_cpu="i386"
7539 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7540 aros_kernel_ldflags=""
7541 aros_macosx_version="10.4"
7542 aros_default_wbdepth=8
7543 gcc_target_cpu="i386"
7544 aros_object_format="elf_i386"
7545 aros_kernel_ar_flags="-cr"
7546 aros_target_strip_flags="-x"
7547 target_tool_prefix="i686-apple-darwin10-"
7548 target_tool_flags="-m32"
7550 *x86_64*)
7551 aros_target_cpu="x86_64"
7552 aros_object_format="elf_x86_64"
7553 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7554 aros_macosx_version="10.6"
7555 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7556 aros_kernel_cflags="-m64"
7557 aros_kernel_ldflags="-m64"
7558 aros_target_cflags="-mcmodel=large"
7559 aros_default_wbdepth=8
7560 aros_kernel_ar="ar"
7561 aros_kernel_ar_flags="-cr"
7562 aros_kernel_ld="ld"
7563 aros_kernel_ranlib="ranlib"
7564 target_tool_prefix="i686-apple-darwin10-"
7566 *ppc*)
7567 aros_target_cpu="ppc"
7568 aros_object_format="elf32ppc"
7569 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7570 aros_kernel_ldflags=""
7571 aros_macosx_version="10.0"
7572 aros_default_wbdepth=8
7573 gcc_target_cpu="ppc"
7574 aros_kernel_ar="ar"
7575 aros_kernel_ar_flags="-cr"
7576 aros_kernel_ld="ld -arch ppc"
7577 aros_kernel_ranlib="ranlib -arch ppc"
7578 target_tool_prefix="powerpc-apple-darwin10-"
7580 *arm*)
7581 aros_ios_platform="iPhoneOS"
7582 aros_target_cpu="arm"
7583 aros_object_format="armelf_linux_eabi"
7584 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7585 aros_arch_libs="-laeabi"
7586 aros_default_wbdepth=8
7587 gcc_target_cpu="arm"
7588 aros_kernel_ar="ar"
7589 aros_kernel_ar_flags="-cr"
7590 aros_kernel_ld="ld -arch arm"
7591 aros_kernel_ranlib="ranlib -arch arm"
7592 target_tool_prefix="arm-apple-darwin10-"
7593 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7596 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7598 esac
7599 case "$aros_target_variant" in
7600 ios)
7601 aros_ios_version="3.0"
7602 aros_default_wbwidth=320
7603 aros_default_wbheight=480
7604 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7605 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7606 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7607 need_x11=no
7608 # This is here because it may depend on iOS or SDK version
7609 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7610 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7611 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7614 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7615 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7617 esac
7620 dragonfly*)
7621 aros_target_arch="dragonfly"
7622 aros_target_family="unix"
7623 aros_flavour="emulation"
7624 case "$target_cpu" in
7625 *i?86*)
7626 aros_target_cpu="i386"
7627 aros_object_format="elf_i386"
7628 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7630 *x86_64*)
7631 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7632 aros_target_cpu="x86_64"
7633 aros_object_format="elf_x86_64"
7634 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7637 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7639 esac
7642 netbsd*)
7643 aros_target_arch="netbsd"
7644 aros_target_family="unix"
7645 case "$target_cpu" in
7646 *m68k*)
7647 aros_target_cpu="m68k"
7648 aros_object_format="m68kelf"
7649 aros_flavour="emulcompat"
7650 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7651 gcc_target_cpu="mc68000"
7653 *i?86*)
7654 aros_target_cpu="i386"
7655 aros_object_format="elf_i386"
7656 aros_flavour="emulation"
7657 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7658 aros_default_wbdepth=8
7659 gcc_target_cpu="i386"
7662 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7664 esac
7665 aros_target_genmap="-Wl,-M -Xlinker >"
7666 aros_flavour="emulation"
7667 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7670 openbsd*)
7671 aros_target_arch="openbsd"
7672 aros_target_family="unix"
7673 case "$target_cpu" in
7674 *i?86*)
7675 aros_target_cpu="i386"
7676 aros_object_format="elf_i386"
7677 aros_flavour="emulation"
7678 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7679 gcc_target_cpu="i386"
7682 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7684 esac
7685 aros_target_genmap="-Wl,-M -Xlinker >"
7686 aros_target_nm_flags="-u"
7687 aros_flavour="emulation"
7690 solaris*)
7691 aros_target_arch="solaris"
7692 aros_target_family="unix"
7693 case "$target_cpu" in
7694 *i?86*)
7695 aros_target_cpu="i386"
7696 aros_object_format="elf_i386"
7697 aros_flavour="emulation"
7698 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7699 aros_default_wbdepth=8
7700 gcc_target_cpu="i386"
7702 *sparc*)
7703 aros_target_cpu="sparc"
7704 aros_object_format="elf_sparc"
7705 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7706 gcc_target_cpu="sparc"
7709 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7711 esac
7712 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7713 aros_flavour="emulation"
7716 morphos*)
7717 aros_target_arch="morphos"
7718 aros_shared_default="no"
7719 aros_target_cpu="ppc"
7720 aros_object_format="elf_ppc"
7721 aros_flavour="nativecompat"
7722 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7723 gcc_target_cpu="ppc"
7726 sam440)
7727 aros_target_arch="sam440"
7728 aros_shared_default="no"
7729 aros_target_cpu="ppc"
7730 aros_object_format="elf32ppc"
7731 aros_flavour="ppcnative"
7732 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7733 aros_kernel_ldflags=""
7734 aros_default_wbwidth=1024
7735 aros_default_wbheight=768
7736 aros_default_wbdepth=24
7737 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7738 gcc_target_cpu="powerpc"
7741 efika)
7742 aros_target_arch="efika"
7743 aros_shared_default="no"
7744 aros_target_cpu="arm"
7745 aros_object_format="armelf_linux_eabi"
7746 aros_flavour="standalone"
7747 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7748 aros_kernel_ldflags=""
7749 aros_default_wbwidth=1024
7750 aros_default_wbheight=600
7751 aros_arch_libs="-laeabi"
7752 gcc_default_cpu="armv7-a"
7753 gcc_default_fpu="vfpv3"
7754 gcc_default_float_abi="hard"
7755 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
7756 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
7759 chrp)
7760 aros_target_arch="chrp"
7761 aros_shared_default="no"
7762 aros_target_cpu="ppc"
7763 aros_object_format="elf32ppc"
7764 aros_flavour="ppcnative"
7765 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7766 aros_kernel_ldflags=""
7767 aros_default_wbwidth=640
7768 aros_default_wbheight=480
7769 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7770 gcc_target_cpu="powerpc"
7771 case "$aros_target_variant" in
7772 efika)
7773 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7775 esac
7778 amiga*)
7779 aros_target_arch="amiga"
7780 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7781 aros_shared_default="no"
7783 case "$target_cpu" in
7784 *m68k*)
7785 # Check whether --enable-amigaos_compliance was given.
7786 if test "${enable_amigaos_compliance+set}" = set; then :
7787 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7790 aros_enable_mmu=no
7791 aros_target_cpu="m68k"
7792 aros_object_format="m68kelf"
7793 aros_flavour="standcompat"
7794 gcc_target_cpu="m68000"
7795 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7796 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7797 target_tool_prefix="m68k-elf-"
7798 # Needed to get the correct multilib
7799 aros_config_ldflags="-${gcc_target_cpu}"
7800 aros_shared_ldflags="-${gcc_target_cpu}"
7801 aros_kernel_ldflags="-${gcc_target_cpu}"
7802 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7803 aros_target_strip_flags="-R.comment --strip-debug"
7804 aros_default_wbwidth=640
7805 aros_default_wbheight=256
7806 aros_default_wbdepth=2
7808 *ppc*)
7809 aros_cpu="ppc"
7810 aros_flavour="native"
7811 gcc_target_cpu="ppc"
7814 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7816 esac
7819 mingw*)
7820 aros_target_arch="mingw32"
7821 aros_shared_default="no"
7822 aros_flavour="emulation"
7823 aros_shared_cflags=""
7824 need_dlopen="no"
7825 rescomp="windres"
7826 case "$target_cpu" in
7827 *i?86*)
7828 aros_target_cpu="i386"
7829 aros_object_format="elf_i386"
7830 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7831 aros_default_wbdepth=8
7832 gcc_target_cpu="i386"
7834 aros_target_as="i386-aros-as"
7835 aros_target_ar="i386-aros-ar"
7836 aros_target_ranlib="i386-aros-ranlib"
7837 aros_target_nm="i386-aros-nm"
7838 aros_target_strip="i386-aros-strip"
7839 aros_target_objcopy="i386-aros-objcopy"
7840 aros_target_objdump="i386-aros-objdump"
7842 target_tool_prefix="i386-mingw32-"
7844 *x86_64*)
7845 aros_target_cpu="x86_64"
7846 aros_object_format="elf_x86_64"
7847 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7848 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7849 aros_default_wbdepth=8
7850 target_tool_prefix="x86_64-w64-mingw32-"
7852 *arm*)
7853 aros_target_cpu="arm"
7854 aros_object_format="armelf_linux_eabi"
7855 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7856 aros_arch_libs="-laeabi"
7857 aros_default_wbdepth=8
7858 gcc_target_cpu="arm"
7859 gcc_default_float_abi="soft"
7860 target_tool_prefix="arm-mingw32ce-"
7861 aros_default_wbwidth=160
7862 aros_default_wbheight=160
7865 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7867 esac
7868 if test $host_os = "cygwin"; then
7869 aros_kernel_cflags="-mno-cygwin"
7872 pp*)
7873 aros_target_arch="pp"
7874 aros_shared_default="no"
7875 case "$target_cpu" in
7876 *m68k*)
7877 aros_target_cpu="m68k"
7878 aros_object_format="m68kelf"
7879 aros_flavour="palmnative"
7880 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7881 aros_default_wbwidth=160
7882 aros_default_wbheight=160
7883 aros_default_wbdepth=1
7884 aros_target_ar_flags="cru"
7885 aros_compiler_libs="-lgcc1"
7886 aros_shared_default=no
7887 aros_shared_cflags="-fpic"
7888 aros_shared_aflags=""
7889 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7890 aros_kernel_ldflags="-Wl,-rpath,./lib"
7891 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7892 aros_debug_aflags=""
7893 aros_debug_ldflags="$aros_symbols_debug"
7894 aros_mungwall_debug="0"
7895 aros_modules_debug="0"
7896 gcc_target_cpu="mc68000"
7897 ignore_undefined_symbols="-ius"
7900 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7902 esac
7905 mac*)
7906 aros_target_arch="mac"
7907 aros_shared_default="no"
7908 case "$target_cpu" in
7909 *m68k*)
7910 aros_target_cpu="m68k"
7911 aros_object_format="m68kelf"
7912 aros_flavour="mac68knative"
7913 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7914 aros_default_wbwidth=512
7915 aros_default_wbheight=384
7916 aros_default_wbdepth=8
7917 aros_target_ar_flags="cru"
7918 aros_compiler_libs="-lgcc1"
7919 aros_shared_default=no
7920 aros_shared_cflags="-fpic"
7921 aros_shared_aflags=""
7922 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7923 aros_kernel_ldflags="-Wl,-rpath,./lib"
7924 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7925 aros_debug_aflags=""
7926 aros_debug_ldflags="$aros_symbols_debug"
7927 aros_mungwall_debug="0"
7928 aros_modules_debug="0"
7929 gcc_target_cpu="mc68000"
7930 ignore_undefined_symbols="-ius"
7933 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7935 esac
7939 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7941 esac
7943 # Now process extra architecture-specific options.
7944 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
7945 # as well as floating-point ABI.
7946 case "$aros_target_cpu" in
7947 arm)
7948 if test "$gcc_default_cpu" = ""; then
7949 gcc_default_cpu="armv6"
7951 if test "$gcc_default_fpu" = ""; then
7952 gcc_default_fpu="vfp"
7954 if test "$gcc_default_float_abi" = ""; then
7955 gcc_default_float_abi="softfp"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
7959 $as_echo_n "checking Which minimum CPU to use... " >&6; }
7961 # Check whether --with-cpu was given.
7962 if test "${with_cpu+set}" = set; then :
7963 withval=$with_cpu; aros_gcc_cpu="$withval"
7964 else
7965 aros_gcc_cpu=$gcc_default_cpu
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
7969 $as_echo "$aros_gcc_cpu" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
7972 $as_echo_n "checking Which minimum FPU to use... " >&6; }
7974 # Check whether --with-fpu was given.
7975 if test "${with_fpu+set}" = set; then :
7976 withval=$with_fpu; aros_gcc_fpu="$withval"
7977 else
7978 aros_gcc_fpu=$gcc_default_fpu
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
7982 $as_echo "$aros_gcc_fpu" >&6; }
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
7985 $as_echo_n "checking Which floating point ABI to use... " >&6; }
7987 # Check whether --with-float was given.
7988 if test "${with_float+set}" = set; then :
7989 withval=$with_float; aros_gcc_float_abi="$withval"
7990 else
7991 aros_gcc_float_abi=$gcc_default_float_abi
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
7995 $as_echo "$aros_gcc_float_abi" >&6; }
7997 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
7998 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8000 esac
8002 # Some formats need custom ELF specs.
8003 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8004 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8005 elf_specs_in=config/${aros_object_format}-specs.in
8006 else
8007 elf_specs_in=config/elf-specs.in
8010 #-----------------------------------------------------------------------------
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8012 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8014 # Check whether --with-crosstools was given.
8015 if test "${with_crosstools+set}" = set; then :
8016 withval=$with_crosstools; with_crosstools=$withval
8017 else
8018 with_crosstools="default"
8021 if test "$with_crosstools" = "default"; then
8022 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8023 else
8024 AROS_CROSSTOOLSDIR="$with_crosstools"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8027 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8029 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
8032 use_aros_gcc=yes
8033 PATH=$AROS_CROSSTOOLSDIR:$PATH
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8037 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8039 # Check whether --with-aros-gcc was given.
8040 if test "${with_aros_gcc+set}" = set; then :
8041 withval=$with_aros_gcc; aros_gcc_version="$withval"
8042 else
8043 aros_gcc_version="$use_aros_gcc"
8046 case "$aros_gcc_version" in
8047 yes)
8048 aros_gcc_version="default"
8051 aros_gcc_version="none"
8053 esac
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8055 $as_echo "$aros_gcc_version" >&6; }
8057 if test "$aros_gcc_version" != "none"; then
8060 if test "$aros_gcc_version" != "default"; then
8061 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
8062 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
8063 else
8064 aros_target_cc="$aros_target_cpu-aros-gcc"
8065 aros_target_cxx="$aros_target_cpu-aros-g++"
8068 aros_target_ld="$aros_target_cpu-aros-ld"
8069 aros_target_as="$aros_target_cpu-aros-as"
8070 aros_target_ar="$aros_target_cpu-aros-ar"
8071 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
8072 aros_target_nm="$aros_target_cpu-aros-nm"
8073 aros_target_strip="$aros_target_cpu-aros-strip"
8074 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
8075 aros_target_objdump="$aros_target_cpu-aros-objdump"
8078 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8079 # Since we override specs, we may need to put these defines there
8080 if test "$gcc_target_cpu" != ""; then
8081 gcc_target_cpu="-D__${gcc_target_cpu}__"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8085 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8087 # Check whether --with-portssources was given.
8088 if test "${with_portssources+set}" = set; then :
8089 withval=$with_portssources; with_portssrcdir=$withval
8090 else
8091 with_portssrcdir="default"
8094 if test "$with_portssrcdir" = "default"; then
8095 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8096 else
8097 AROS_PORTSSRCDIR="$with_portssrcdir"
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8100 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8103 $as_echo_n "checking which bootloader to use... " >&6; }
8105 # Check whether --with-bootloader was given.
8106 if test "${with_bootloader+set}" = set; then :
8107 withval=$with_bootloader; target_bootloader=$withval
8108 else
8109 target_bootloader=$target_bootloader
8112 if test "$target_bootloader" = "none"; then
8113 aros_target_bootloader=""
8114 else
8115 aros_target_bootloader="$target_bootloader"
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8118 $as_echo "$target_bootloader" >&6; }
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8121 $as_echo_n "checking which icon-set to use... " >&6; }
8123 # Check whether --with-iconset was given.
8124 if test "${with_iconset+set}" = set; then :
8125 withval=$with_iconset; target_iconset=$withval
8126 else
8127 target_iconset="default"
8130 if test "$target_iconset" = "default"; then
8131 aros_target_iconset="Gorilla"
8132 target_iconset="default (Gorilla)"
8133 else
8134 aros_target_iconset="$target_iconset"
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8137 $as_echo "$target_iconset" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8140 $as_echo_n "checking which GUI Theme to use... " >&6; }
8142 # Check whether --with-theme was given.
8143 if test "${with_theme+set}" = set; then :
8144 withval=$with_theme; target_guitheme=$withval
8145 else
8146 target_guitheme="default"
8149 if test "$target_guitheme" = "default"; then
8150 aros_target_guitheme="Ice"
8151 else
8152 aros_target_guitheme="$target_guitheme"
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8155 $as_echo "$aros_target_guitheme" >&6; }
8157 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8158 # for target code)
8159 cross_compiling=no
8160 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8161 cross_compiling=yes
8164 if test "$aros_host_cpu" == "x86_64" ; then
8165 if test "$aros_target_cpu" == "i386" ; then
8166 if test "$aros_target_arch" != "mingw32"; then
8167 cross_compiling=no
8172 if test "$aros_host_arch" == "darwin" ; then
8173 if test "$aros_target_arch" != "darwin" ; then
8174 cross_compiling=yes
8178 if test "$aros_host_arch" == "mingw32" ; then
8179 if test "$aros_target_arch" != "mingw32" ; then
8180 cross_compiling=yes
8184 # I want to have this information in configure output, although it might be
8185 # misleading, e.g. for darwin hosted you cannot compile target code without a
8186 # cross compiler, but here it says no.
8188 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8189 # Target code is a little bit different thing.
8190 # sonic
8191 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8193 # Set prefix for target compiler etc. if we're cross-compiling
8194 # (should possibly be earlier but needs to be after AC_PROG_CC)
8195 if test "$cross_compiling" = "yes" ; then
8197 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8198 if test "$aros_gcc_version" != "none"; then
8201 target_tool_prefix=${target_cpu}-aros-
8202 target_tool_version=$aros_gcc_version
8203 use_kernel_cc_wrapper=yes
8205 aros_target_cc=
8206 aros_target_ld=
8207 aros_target_as=
8208 aros_target_ar=
8209 aros_target_ranlib=
8210 aros_target_nm=
8211 aros_target_strip=
8212 aros_target_objcopy=
8213 aros_target_objdump=
8217 CC=${target_tool_prefix}gcc
8218 CPP=${target_tool_prefix}cpp
8219 if test "$target_tool_version" != "default"; then
8220 CC="$CC-$target_tool_version"
8221 CPP="$CC-$target_tool_version"
8223 if test "$crosstools" != "yes" ; then
8224 # Extract the first word of "$CC", so it can be a program name with args.
8225 set dummy $CC; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if ${ac_cv_path_CC+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 case $CC in
8232 [\\/]* | ?:[\\/]*)
8233 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8247 done
8248 done
8249 IFS=$as_save_IFS
8252 esac
8254 CC=$ac_cv_path_CC
8255 if test -n "$CC"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8257 $as_echo "$CC" >&6; }
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8264 if test "$CC" = ""; then
8265 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8267 else
8268 CC=$AROS_CROSSTOOLSDIR/$CC
8271 CC="$CC $target_tool_flags"
8273 #-----------------------------------------------------------------------------
8275 # Disable pointer-signedness warnings if the compiler recognises the option
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8278 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8279 save_cflags="$CFLAGS"
8280 if test "$crosstools" != "yes" ; then
8281 CFLAGS="$CFLAGS -Wno-pointer-sign"
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8286 main ()
8290 return 0;
8292 _ACEOF
8293 if ac_fn_c_try_compile "$LINENO"; then :
8294 use_no_sign_warning="yes"
8295 else
8296 use_no_sign_warning="no"
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 else
8300 # we do know it is supported for the smallest version of gcc we are going to build
8301 # we assume it's also supported by later versions
8302 use_no_sign_warning=yes
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8305 $as_echo "$use_no_sign_warning" >&6; }
8306 if test "x-$use_no_sign_warning" = "x-yes" ; then
8307 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8309 CFLAGS="$save_cflags"
8311 #-----------------------------------------------------------------------------
8313 # Find all the tools we need to compile. This could be cross-compiling
8314 # though! If that is the case we use the GNU form of the target and
8315 # simply add this to the front of the binary name. This is rather simple,
8316 # but it should work under most circumstances.
8318 # The default tools are to use the same as the host, but only if the
8319 # host and target CPU are the same. With GCC this is normally enough.
8322 aros_cc_pre=""
8323 aros_shared_ld="$aros_host_ld"
8325 aros_target_mkdep="$aros_host_mkdep"
8326 aros_target_incl_def="$aros_host_incl"
8328 aros_kernel_cc="$CC"
8330 # The default tools executables to be linked to.
8331 if test "$rescomp" != ""; then
8332 if test "$cross_compiling" = "yes" ; then
8333 rescomp=${target_tool_prefix}${rescomp}
8335 # Extract the first word of "$rescomp", so it can be a program name with args.
8336 set dummy $rescomp; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 case $aros_kernel_rescomp in
8343 [\\/]* | ?:[\\/]*)
8344 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8358 done
8359 done
8360 IFS=$as_save_IFS
8363 esac
8365 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8366 if test -n "$aros_kernel_rescomp"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8368 $as_echo "$aros_kernel_rescomp" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8375 if test "$aros_kernel_rescomp" = ""; then
8376 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8380 if test "$crosstools" != "yes"; then
8382 if test "$aros_kernel_ld" = ""; then
8383 if test "$cross_compiling" = "yes" ; then
8384 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8385 set dummy ${target_tool_prefix}ld; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 case $aros_kernel_ld in
8392 [\\/]* | ?:[\\/]*)
8393 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8407 done
8408 done
8409 IFS=$as_save_IFS
8412 esac
8414 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8415 if test -n "$aros_kernel_ld"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8417 $as_echo "$aros_kernel_ld" >&6; }
8418 else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8424 else
8425 if test "$GCC" = "yes"; then
8426 aros_gcc_ld=`$CC -print-prog-name=ld`
8427 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8428 set dummy `basename $aros_gcc_ld`; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 case $aros_kernel_ld in
8435 [\\/]* | ?:[\\/]*)
8436 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in `dirname $aros_gcc_ld`
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8450 done
8451 done
8452 IFS=$as_save_IFS
8455 esac
8457 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8458 if test -n "$aros_kernel_ld"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8460 $as_echo "$aros_kernel_ld" >&6; }
8461 else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8468 if test "$aros_kernel_ld" = ""; then
8469 # Extract the first word of "ld", so it can be a program name with args.
8470 set dummy ld; 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 ${ac_cv_path_aros_kernel_ld+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 case $aros_kernel_ld in
8477 [\\/]* | ?:[\\/]*)
8478 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
8500 if test -n "$aros_kernel_ld"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8502 $as_echo "$aros_kernel_ld" >&6; }
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8511 else
8512 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8513 set dummy $aros_kernel_ld; 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 ${ac_cv_path_aros_kernel_ld+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 case $aros_kernel_ld in
8520 [\\/]* | ?:[\\/]*)
8521 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
8543 if test -n "$aros_kernel_ld"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8545 $as_echo "$aros_kernel_ld" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8554 if test "$aros_kernel_ld" = ""; then
8555 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8558 if test "$aros_kernel_ar" = ""; then
8559 if test "$cross_compiling" = "yes" ; then
8560 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8561 set dummy ${target_tool_prefix}ar; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 case $aros_kernel_ar in
8568 [\\/]* | ?:[\\/]*)
8569 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8579 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8583 done
8584 done
8585 IFS=$as_save_IFS
8588 esac
8590 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8591 if test -n "$aros_kernel_ar"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8593 $as_echo "$aros_kernel_ar" >&6; }
8594 else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8600 else
8601 if test "$GCC" = "yes"; then
8602 aros_gcc_ar=`$CC -print-prog-name=ar`
8603 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8604 set dummy `basename $aros_gcc_ar`; ac_word=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 case $aros_kernel_ar in
8611 [\\/]* | ?:[\\/]*)
8612 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in `dirname $aros_gcc_ar`
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8622 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8626 done
8627 done
8628 IFS=$as_save_IFS
8631 esac
8633 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8634 if test -n "$aros_kernel_ar"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8636 $as_echo "$aros_kernel_ar" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8644 if test "$aros_kernel_ar" = ""; then
8645 # Extract the first word of "ar", so it can be a program name with args.
8646 set dummy ar; 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 ${ac_cv_path_aros_kernel_ar+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 case $aros_kernel_ar in
8653 [\\/]* | ?:[\\/]*)
8654 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # 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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
8676 if test -n "$aros_kernel_ar"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8678 $as_echo "$aros_kernel_ar" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8687 else
8688 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8689 set dummy $aros_kernel_ar; 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 ${ac_cv_path_aros_kernel_ar+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 case $aros_kernel_ar in
8696 [\\/]* | ?:[\\/]*)
8697 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
8719 if test -n "$aros_kernel_ar"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8721 $as_echo "$aros_kernel_ar" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8730 if test "$aros_kernel_ar" = ""; then
8731 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8734 if test "$aros_kernel_ranlib" = ""; then
8735 if test "$cross_compiling" = "yes" ; then
8736 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8737 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 case $aros_kernel_ranlib in
8744 [\\/]* | ?:[\\/]*)
8745 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8751 IFS=$as_save_IFS
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8755 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8757 break 2
8759 done
8760 done
8761 IFS=$as_save_IFS
8764 esac
8766 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8767 if test -n "$aros_kernel_ranlib"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8769 $as_echo "$aros_kernel_ranlib" >&6; }
8770 else
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8776 else
8777 if test "$GCC" = "yes"; then
8778 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8779 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8780 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 case $aros_kernel_ranlib in
8787 [\\/]* | ?:[\\/]*)
8788 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 for as_dir in `dirname $aros_gcc_ranlib`
8794 IFS=$as_save_IFS
8795 test -z "$as_dir" && as_dir=.
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8798 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 break 2
8802 done
8803 done
8804 IFS=$as_save_IFS
8807 esac
8809 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8810 if test -n "$aros_kernel_ranlib"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8812 $as_echo "$aros_kernel_ranlib" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8820 if test "$aros_kernel_ranlib" = ""; then
8821 # Extract the first word of "ranlib", so it can be a program name with args.
8822 set dummy ranlib; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8826 $as_echo_n "(cached) " >&6
8827 else
8828 case $aros_kernel_ranlib in
8829 [\\/]* | ?:[\\/]*)
8830 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8844 done
8845 done
8846 IFS=$as_save_IFS
8849 esac
8851 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8852 if test -n "$aros_kernel_ranlib"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8854 $as_echo "$aros_kernel_ranlib" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8863 else
8864 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8865 set dummy $aros_kernel_ranlib; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 case $aros_kernel_ranlib in
8872 [\\/]* | ?:[\\/]*)
8873 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8887 done
8888 done
8889 IFS=$as_save_IFS
8892 esac
8894 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8895 if test -n "$aros_kernel_ranlib"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8897 $as_echo "$aros_kernel_ranlib" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8906 if test "$aros_kernel_ranlib" = ""; then
8907 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8910 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8911 target_tool_prefix=${target_cpu}-elf-
8912 if test "$aros_target_cc" == ""; then
8913 aros_target_cc="${target_tool_prefix}gcc"
8915 if test "$aros_target_ld" == ""; then
8916 aros_target_ld="${target_tool_prefix}ld"
8920 if test "$aros_target_as" = ""; then
8921 if test "$cross_compiling" = "yes" ; then
8922 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8923 set dummy ${target_tool_prefix}as; ac_word=$2
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925 $as_echo_n "checking for $ac_word... " >&6; }
8926 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 case $aros_target_as_ln in
8930 [\\/]* | ?:[\\/]*)
8931 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8937 IFS=$as_save_IFS
8938 test -z "$as_dir" && as_dir=.
8939 for ac_exec_ext in '' $ac_executable_extensions; do
8940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8941 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 break 2
8945 done
8946 done
8947 IFS=$as_save_IFS
8950 esac
8952 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8953 if test -n "$aros_target_as_ln"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8955 $as_echo "$aros_target_as_ln" >&6; }
8956 else
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 $as_echo "no" >&6; }
8962 else
8963 if test "$GCC" = "yes"; then
8964 aros_gcc_as=`$CC -print-prog-name=as`
8965 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8966 set dummy `basename $aros_gcc_as`; ac_word=$2
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968 $as_echo_n "checking for $ac_word... " >&6; }
8969 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 case $aros_target_as_ln in
8973 [\\/]* | ?:[\\/]*)
8974 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 for as_dir in `dirname $aros_gcc_as`
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8988 done
8989 done
8990 IFS=$as_save_IFS
8993 esac
8995 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8996 if test -n "$aros_target_as_ln"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8998 $as_echo "$aros_target_as_ln" >&6; }
8999 else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9006 if test "$aros_target_as_ln" = ""; then
9007 # Extract the first word of "as", so it can be a program name with args.
9008 set dummy as; 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 ${ac_cv_path_aros_target_as_ln+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 case $aros_target_as_ln in
9015 [\\/]* | ?:[\\/]*)
9016 ac_cv_path_aros_target_as_ln="$aros_target_as_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_as_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_as_ln=$ac_cv_path_aros_target_as_ln
9038 if test -n "$aros_target_as_ln"; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9040 $as_echo "$aros_target_as_ln" >&6; }
9041 else
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 $as_echo "no" >&6; }
9049 else
9050 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9051 set dummy $aros_target_as; 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 ${ac_cv_path_aros_target_as_ln+:} false; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 case $aros_target_as_ln in
9058 [\\/]* | ?:[\\/]*)
9059 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063 for as_dir in $PATH
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_as_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_as_ln=$ac_cv_path_aros_target_as_ln
9081 if test -n "$aros_target_as_ln"; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9083 $as_echo "$aros_target_as_ln" >&6; }
9084 else
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086 $as_echo "no" >&6; }
9092 if test "$aros_target_as_ln" = ""; then
9093 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9096 if test "$aros_target_ar" = ""; then
9097 if test "$cross_compiling" = "yes" ; then
9098 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9099 set dummy ${target_tool_prefix}ar; ac_word=$2
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101 $as_echo_n "checking for $ac_word... " >&6; }
9102 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 case $aros_target_ar_ln in
9106 [\\/]* | ?:[\\/]*)
9107 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9117 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 break 2
9121 done
9122 done
9123 IFS=$as_save_IFS
9126 esac
9128 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9129 if test -n "$aros_target_ar_ln"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9131 $as_echo "$aros_target_ar_ln" >&6; }
9132 else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9138 else
9139 if test "$GCC" = "yes"; then
9140 aros_gcc_ar=`$CC -print-prog-name=ar`
9141 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9142 set dummy `basename $aros_gcc_ar`; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 $as_echo_n "checking for $ac_word... " >&6; }
9145 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 case $aros_target_ar_ln in
9149 [\\/]* | ?:[\\/]*)
9150 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in `dirname $aros_gcc_ar`
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9160 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 break 2
9164 done
9165 done
9166 IFS=$as_save_IFS
9169 esac
9171 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9172 if test -n "$aros_target_ar_ln"; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9174 $as_echo "$aros_target_ar_ln" >&6; }
9175 else
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177 $as_echo "no" >&6; }
9182 if test "$aros_target_ar_ln" = ""; then
9183 # Extract the first word of "ar", so it can be a program name with args.
9184 set dummy ar; 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 ${ac_cv_path_aros_target_ar_ln+:} false; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 case $aros_target_ar_ln in
9191 [\\/]* | ?:[\\/]*)
9192 ac_cv_path_aros_target_ar_ln="$aros_target_ar_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_ar_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_ar_ln=$ac_cv_path_aros_target_ar_ln
9214 if test -n "$aros_target_ar_ln"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9216 $as_echo "$aros_target_ar_ln" >&6; }
9217 else
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9225 else
9226 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9227 set dummy $aros_target_ar; 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 ${ac_cv_path_aros_target_ar_ln+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 case $aros_target_ar_ln in
9234 [\\/]* | ?:[\\/]*)
9235 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239 for as_dir in $PATH
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_ar_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_ar_ln=$ac_cv_path_aros_target_ar_ln
9257 if test -n "$aros_target_ar_ln"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9259 $as_echo "$aros_target_ar_ln" >&6; }
9260 else
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9268 if test "$aros_target_ar_ln" = ""; then
9269 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9272 if test "$aros_target_nm" = ""; then
9273 if test "$cross_compiling" = "yes" ; then
9274 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9275 set dummy ${target_tool_prefix}nm; ac_word=$2
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9277 $as_echo_n "checking for $ac_word... " >&6; }
9278 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 case $aros_target_nm_ln in
9282 [\\/]* | ?:[\\/]*)
9283 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9289 IFS=$as_save_IFS
9290 test -z "$as_dir" && as_dir=.
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9293 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295 break 2
9297 done
9298 done
9299 IFS=$as_save_IFS
9302 esac
9304 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9305 if test -n "$aros_target_nm_ln"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9307 $as_echo "$aros_target_nm_ln" >&6; }
9308 else
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9314 else
9315 if test "$GCC" = "yes"; then
9316 aros_gcc_nm=`$CC -print-prog-name=nm`
9317 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9318 set dummy `basename $aros_gcc_nm`; ac_word=$2
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320 $as_echo_n "checking for $ac_word... " >&6; }
9321 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 case $aros_target_nm_ln in
9325 [\\/]* | ?:[\\/]*)
9326 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in `dirname $aros_gcc_nm`
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 break 2
9340 done
9341 done
9342 IFS=$as_save_IFS
9345 esac
9347 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9348 if test -n "$aros_target_nm_ln"; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9350 $as_echo "$aros_target_nm_ln" >&6; }
9351 else
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9358 if test "$aros_target_nm_ln" = ""; then
9359 # Extract the first word of "nm", so it can be a program name with args.
9360 set dummy nm; 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 ${ac_cv_path_aros_target_nm_ln+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 case $aros_target_nm_ln in
9367 [\\/]* | ?:[\\/]*)
9368 ac_cv_path_aros_target_nm_ln="$aros_target_nm_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_nm_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_nm_ln=$ac_cv_path_aros_target_nm_ln
9390 if test -n "$aros_target_nm_ln"; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9392 $as_echo "$aros_target_nm_ln" >&6; }
9393 else
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 $as_echo "no" >&6; }
9401 else
9402 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9403 set dummy $aros_target_nm; 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 ${ac_cv_path_aros_target_nm_ln+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 case $aros_target_nm_ln in
9410 [\\/]* | ?:[\\/]*)
9411 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
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_nm_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_nm_ln=$ac_cv_path_aros_target_nm_ln
9433 if test -n "$aros_target_nm_ln"; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9435 $as_echo "$aros_target_nm_ln" >&6; }
9436 else
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9438 $as_echo "no" >&6; }
9444 if test "$aros_target_nm_ln" = ""; then
9445 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9448 if test "$aros_target_objcopy" = ""; then
9449 if test "$cross_compiling" = "yes" ; then
9450 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9451 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456 else
9457 case $aros_target_objcopy_ln in
9458 [\\/]* | ?:[\\/]*)
9459 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 for as_dir in $PATH
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9469 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9473 done
9474 done
9475 IFS=$as_save_IFS
9478 esac
9480 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9481 if test -n "$aros_target_objcopy_ln"; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9483 $as_echo "$aros_target_objcopy_ln" >&6; }
9484 else
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9490 else
9491 if test "$GCC" = "yes"; then
9492 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9493 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9494 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496 $as_echo_n "checking for $ac_word... " >&6; }
9497 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 case $aros_target_objcopy_ln in
9501 [\\/]* | ?:[\\/]*)
9502 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in `dirname $aros_gcc_objcopy`
9508 IFS=$as_save_IFS
9509 test -z "$as_dir" && as_dir=.
9510 for ac_exec_ext in '' $ac_executable_extensions; do
9511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9512 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9514 break 2
9516 done
9517 done
9518 IFS=$as_save_IFS
9521 esac
9523 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9524 if test -n "$aros_target_objcopy_ln"; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9526 $as_echo "$aros_target_objcopy_ln" >&6; }
9527 else
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 $as_echo "no" >&6; }
9534 if test "$aros_target_objcopy_ln" = ""; then
9535 # Extract the first word of "objcopy", so it can be a program name with args.
9536 set dummy objcopy; 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 ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 case $aros_target_objcopy_ln in
9543 [\\/]* | ?:[\\/]*)
9544 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_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_objcopy_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_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9566 if test -n "$aros_target_objcopy_ln"; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9568 $as_echo "$aros_target_objcopy_ln" >&6; }
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571 $as_echo "no" >&6; }
9577 else
9578 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9579 set dummy $aros_target_objcopy; 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 ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 case $aros_target_objcopy_ln in
9586 [\\/]* | ?:[\\/]*)
9587 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 for as_dir in $PATH
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_objcopy_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_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9609 if test -n "$aros_target_objcopy_ln"; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9611 $as_echo "$aros_target_objcopy_ln" >&6; }
9612 else
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 $as_echo "no" >&6; }
9620 if test "$aros_target_objcopy_ln" = ""; then
9621 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9624 if test "$aros_target_objdump" = ""; then
9625 if test "$cross_compiling" = "yes" ; then
9626 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9627 set dummy ${target_tool_prefix}objdump; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 case $aros_target_objdump_ln in
9634 [\\/]* | ?:[\\/]*)
9635 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 for as_dir in $PATH
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9645 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 break 2
9649 done
9650 done
9651 IFS=$as_save_IFS
9654 esac
9656 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9657 if test -n "$aros_target_objdump_ln"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9659 $as_echo "$aros_target_objdump_ln" >&6; }
9660 else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9666 else
9667 if test "$GCC" = "yes"; then
9668 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9669 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9670 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 case $aros_target_objdump_ln in
9677 [\\/]* | ?:[\\/]*)
9678 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in `dirname $aros_gcc_objdump`
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9692 done
9693 done
9694 IFS=$as_save_IFS
9697 esac
9699 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9700 if test -n "$aros_target_objdump_ln"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9702 $as_echo "$aros_target_objdump_ln" >&6; }
9703 else
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9710 if test "$aros_target_objdump_ln" = ""; then
9711 # Extract the first word of "objdump", so it can be a program name with args.
9712 set dummy objdump; 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 ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 case $aros_target_objdump_ln in
9719 [\\/]* | ?:[\\/]*)
9720 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_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_objdump_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_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9742 if test -n "$aros_target_objdump_ln"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9744 $as_echo "$aros_target_objdump_ln" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9753 else
9754 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9755 set dummy $aros_target_objdump; 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 ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 case $aros_target_objdump_ln in
9762 [\\/]* | ?:[\\/]*)
9763 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in $PATH
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_objdump_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_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9785 if test -n "$aros_target_objdump_ln"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9787 $as_echo "$aros_target_objdump_ln" >&6; }
9788 else
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9796 if test "$aros_target_objdump_ln" = ""; then
9797 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9800 if test "$aros_target_ranlib" = ""; then
9801 if test "$cross_compiling" = "yes" ; then
9802 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9803 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 $as_echo_n "checking for $ac_word... " >&6; }
9806 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 case $aros_target_ranlib_ln in
9810 [\\/]* | ?:[\\/]*)
9811 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9821 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9825 done
9826 done
9827 IFS=$as_save_IFS
9830 esac
9832 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9833 if test -n "$aros_target_ranlib_ln"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9835 $as_echo "$aros_target_ranlib_ln" >&6; }
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9842 else
9843 if test "$GCC" = "yes"; then
9844 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9845 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9846 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 case $aros_target_ranlib_ln in
9853 [\\/]* | ?:[\\/]*)
9854 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in `dirname $aros_gcc_ranlib`
9860 IFS=$as_save_IFS
9861 test -z "$as_dir" && as_dir=.
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866 break 2
9868 done
9869 done
9870 IFS=$as_save_IFS
9873 esac
9875 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9876 if test -n "$aros_target_ranlib_ln"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9878 $as_echo "$aros_target_ranlib_ln" >&6; }
9879 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; }
9886 if test "$aros_target_ranlib_ln" = ""; then
9887 # Extract the first word of "ranlib", so it can be a program name with args.
9888 set dummy ranlib; 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 ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 case $aros_target_ranlib_ln in
9895 [\\/]* | ?:[\\/]*)
9896 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_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_ranlib_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_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9918 if test -n "$aros_target_ranlib_ln"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9920 $as_echo "$aros_target_ranlib_ln" >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9929 else
9930 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9931 set dummy $aros_target_ranlib; 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 ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 case $aros_target_ranlib_ln in
9938 [\\/]* | ?:[\\/]*)
9939 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in $PATH
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_ranlib_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_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9961 if test -n "$aros_target_ranlib_ln"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9963 $as_echo "$aros_target_ranlib_ln" >&6; }
9964 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9972 if test "$aros_target_ranlib_ln" = ""; then
9973 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9976 if test "$aros_target_strip" = ""; then
9977 if test "$cross_compiling" = "yes" ; then
9978 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9979 set dummy ${target_tool_prefix}strip; ac_word=$2
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981 $as_echo_n "checking for $ac_word... " >&6; }
9982 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 case $aros_target_strip_ln in
9986 [\\/]* | ?:[\\/]*)
9987 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9997 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999 break 2
10001 done
10002 done
10003 IFS=$as_save_IFS
10006 esac
10008 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10009 if test -n "$aros_target_strip_ln"; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10011 $as_echo "$aros_target_strip_ln" >&6; }
10012 else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10018 else
10019 if test "$GCC" = "yes"; then
10020 aros_gcc_strip=`$CC -print-prog-name=strip`
10021 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10022 set dummy `basename $aros_gcc_strip`; ac_word=$2
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10024 $as_echo_n "checking for $ac_word... " >&6; }
10025 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 case $aros_target_strip_ln in
10029 [\\/]* | ?:[\\/]*)
10030 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in `dirname $aros_gcc_strip`
10036 IFS=$as_save_IFS
10037 test -z "$as_dir" && as_dir=.
10038 for ac_exec_ext in '' $ac_executable_extensions; do
10039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 break 2
10044 done
10045 done
10046 IFS=$as_save_IFS
10049 esac
10051 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10052 if test -n "$aros_target_strip_ln"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10054 $as_echo "$aros_target_strip_ln" >&6; }
10055 else
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10062 if test "$aros_target_strip_ln" = ""; then
10063 # Extract the first word of "strip", so it can be a program name with args.
10064 set dummy strip; ac_word=$2
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10066 $as_echo_n "checking for $ac_word... " >&6; }
10067 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 case $aros_target_strip_ln in
10071 [\\/]* | ?:[\\/]*)
10072 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076 for as_dir in $PATH
10078 IFS=$as_save_IFS
10079 test -z "$as_dir" && as_dir=.
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10082 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10084 break 2
10086 done
10087 done
10088 IFS=$as_save_IFS
10091 esac
10093 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10094 if test -n "$aros_target_strip_ln"; then
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10096 $as_echo "$aros_target_strip_ln" >&6; }
10097 else
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099 $as_echo "no" >&6; }
10105 else
10106 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10107 set dummy $aros_target_strip; ac_word=$2
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10109 $as_echo_n "checking for $ac_word... " >&6; }
10110 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 case $aros_target_strip_ln in
10114 [\\/]* | ?:[\\/]*)
10115 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10125 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 break 2
10129 done
10130 done
10131 IFS=$as_save_IFS
10134 esac
10136 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10137 if test -n "$aros_target_strip_ln"; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10139 $as_echo "$aros_target_strip_ln" >&6; }
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142 $as_echo "no" >&6; }
10148 if test "$aros_target_strip_ln" = ""; then
10149 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10151 if test "$aros_target_cxx" != ""; then
10152 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10153 set dummy $aros_target_cxx; ac_word=$2
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155 $as_echo_n "checking for $ac_word... " >&6; }
10156 if ${ac_cv_path_aros_target_cxx+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 case $aros_target_cxx in
10160 [\\/]* | ?:[\\/]*)
10161 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165 for as_dir in $PATH
10167 IFS=$as_save_IFS
10168 test -z "$as_dir" && as_dir=.
10169 for ac_exec_ext in '' $ac_executable_extensions; do
10170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10171 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173 break 2
10175 done
10176 done
10177 IFS=$as_save_IFS
10180 esac
10182 aros_target_cxx=$ac_cv_path_aros_target_cxx
10183 if test -n "$aros_target_cxx"; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10185 $as_echo "$aros_target_cxx" >&6; }
10186 else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10192 if test "$aros_target_cxx" = ""; then
10193 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10196 else
10197 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10198 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10199 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10200 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10201 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10202 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10203 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10204 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10205 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10207 if test "$target_tool_prefix" != "${target_cpu}-aros-" ; then
10209 if test "$aros_kernel_ld" = ""; then
10210 if test "$cross_compiling" = "yes" ; then
10211 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10212 set dummy ${target_tool_prefix}ld; ac_word=$2
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10214 $as_echo_n "checking for $ac_word... " >&6; }
10215 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 case $aros_kernel_ld in
10219 [\\/]* | ?:[\\/]*)
10220 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10226 IFS=$as_save_IFS
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10230 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 break 2
10234 done
10235 done
10236 IFS=$as_save_IFS
10239 esac
10241 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10242 if test -n "$aros_kernel_ld"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10244 $as_echo "$aros_kernel_ld" >&6; }
10245 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10251 else
10252 if test "$GCC" = "yes"; then
10253 aros_gcc_ld=`$CC -print-prog-name=ld`
10254 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10255 set dummy `basename $aros_gcc_ld`; ac_word=$2
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 case $aros_kernel_ld in
10262 [\\/]* | ?:[\\/]*)
10263 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in `dirname $aros_gcc_ld`
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10273 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10277 done
10278 done
10279 IFS=$as_save_IFS
10282 esac
10284 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10285 if test -n "$aros_kernel_ld"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10287 $as_echo "$aros_kernel_ld" >&6; }
10288 else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10295 if test "$aros_kernel_ld" = ""; then
10296 # Extract the first word of "ld", so it can be a program name with args.
10297 set dummy ld; 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 ${ac_cv_path_aros_kernel_ld+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 case $aros_kernel_ld in
10304 [\\/]* | ?:[\\/]*)
10305 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
10327 if test -n "$aros_kernel_ld"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10329 $as_echo "$aros_kernel_ld" >&6; }
10330 else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10338 else
10339 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10340 set dummy $aros_kernel_ld; 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 ${ac_cv_path_aros_kernel_ld+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 case $aros_kernel_ld in
10347 [\\/]* | ?:[\\/]*)
10348 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
10370 if test -n "$aros_kernel_ld"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10372 $as_echo "$aros_kernel_ld" >&6; }
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10381 if test "$aros_kernel_ld" = ""; then
10382 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10385 if test "$aros_kernel_ar" = ""; then
10386 if test "$cross_compiling" = "yes" ; then
10387 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10388 set dummy ${target_tool_prefix}ar; ac_word=$2
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390 $as_echo_n "checking for $ac_word... " >&6; }
10391 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 case $aros_kernel_ar in
10395 [\\/]* | ?:[\\/]*)
10396 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400 for as_dir in $PATH
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10406 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 break 2
10410 done
10411 done
10412 IFS=$as_save_IFS
10415 esac
10417 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10418 if test -n "$aros_kernel_ar"; then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10420 $as_echo "$aros_kernel_ar" >&6; }
10421 else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423 $as_echo "no" >&6; }
10427 else
10428 if test "$GCC" = "yes"; then
10429 aros_gcc_ar=`$CC -print-prog-name=ar`
10430 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10431 set dummy `basename $aros_gcc_ar`; ac_word=$2
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10433 $as_echo_n "checking for $ac_word... " >&6; }
10434 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 case $aros_kernel_ar in
10438 [\\/]* | ?:[\\/]*)
10439 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443 for as_dir in `dirname $aros_gcc_ar`
10445 IFS=$as_save_IFS
10446 test -z "$as_dir" && as_dir=.
10447 for ac_exec_ext in '' $ac_executable_extensions; do
10448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10449 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 break 2
10453 done
10454 done
10455 IFS=$as_save_IFS
10458 esac
10460 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10461 if test -n "$aros_kernel_ar"; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10463 $as_echo "$aros_kernel_ar" >&6; }
10464 else
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10471 if test "$aros_kernel_ar" = ""; then
10472 # Extract the first word of "ar", so it can be a program name with args.
10473 set dummy ar; 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 ${ac_cv_path_aros_kernel_ar+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 case $aros_kernel_ar in
10480 [\\/]* | ?:[\\/]*)
10481 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # 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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
10503 if test -n "$aros_kernel_ar"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10505 $as_echo "$aros_kernel_ar" >&6; }
10506 else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10514 else
10515 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10516 set dummy $aros_kernel_ar; 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 ${ac_cv_path_aros_kernel_ar+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 case $aros_kernel_ar in
10523 [\\/]* | ?:[\\/]*)
10524 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
10546 if test -n "$aros_kernel_ar"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10548 $as_echo "$aros_kernel_ar" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10557 if test "$aros_kernel_ar" = ""; then
10558 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10561 if test "$aros_kernel_ranlib" = ""; then
10562 if test "$cross_compiling" = "yes" ; then
10563 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10564 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566 $as_echo_n "checking for $ac_word... " >&6; }
10567 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10568 $as_echo_n "(cached) " >&6
10569 else
10570 case $aros_kernel_ranlib in
10571 [\\/]* | ?:[\\/]*)
10572 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10582 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 break 2
10586 done
10587 done
10588 IFS=$as_save_IFS
10591 esac
10593 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10594 if test -n "$aros_kernel_ranlib"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10596 $as_echo "$aros_kernel_ranlib" >&6; }
10597 else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10603 else
10604 if test "$GCC" = "yes"; then
10605 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10606 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10607 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609 $as_echo_n "checking for $ac_word... " >&6; }
10610 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10611 $as_echo_n "(cached) " >&6
10612 else
10613 case $aros_kernel_ranlib in
10614 [\\/]* | ?:[\\/]*)
10615 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in `dirname $aros_gcc_ranlib`
10621 IFS=$as_save_IFS
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10625 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10629 done
10630 done
10631 IFS=$as_save_IFS
10634 esac
10636 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10637 if test -n "$aros_kernel_ranlib"; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10639 $as_echo "$aros_kernel_ranlib" >&6; }
10640 else
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10647 if test "$aros_kernel_ranlib" = ""; then
10648 # Extract the first word of "ranlib", so it can be a program name with args.
10649 set dummy ranlib; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 case $aros_kernel_ranlib in
10656 [\\/]* | ?:[\\/]*)
10657 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10671 done
10672 done
10673 IFS=$as_save_IFS
10676 esac
10678 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10679 if test -n "$aros_kernel_ranlib"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10681 $as_echo "$aros_kernel_ranlib" >&6; }
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10690 else
10691 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10692 set dummy $aros_kernel_ranlib; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10696 $as_echo_n "(cached) " >&6
10697 else
10698 case $aros_kernel_ranlib in
10699 [\\/]* | ?:[\\/]*)
10700 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704 for as_dir in $PATH
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
10709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10714 done
10715 done
10716 IFS=$as_save_IFS
10719 esac
10721 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10722 if test -n "$aros_kernel_ranlib"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10724 $as_echo "$aros_kernel_ranlib" >&6; }
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10733 if test "$aros_kernel_ranlib" = ""; then
10734 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10736 else
10737 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10738 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10739 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10742 crosstools_target=tools-crosstools
10745 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10747 orig_target_cc=$aros_kernel_cc
10748 orig_target_ld=$aros_kernel_ld
10750 if test "$crosstools" != "yes"; then
10751 if test "$aros_target_cc" != ""; then
10752 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10753 set dummy $aros_target_cc; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if ${ac_cv_path_aros_target_cc+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 case $aros_target_cc in
10760 [\\/]* | ?:[\\/]*)
10761 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10771 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 break 2
10775 done
10776 done
10777 IFS=$as_save_IFS
10780 esac
10782 aros_target_cc=$ac_cv_path_aros_target_cc
10783 if test -n "$aros_target_cc"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10785 $as_echo "$aros_target_cc" >&6; }
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10792 if test "$aros_target_cc" = ""; then
10793 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10795 orig_target_cc=$aros_target_cc
10797 if test "$aros_target_ld" != ""; then
10798 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10799 set dummy $aros_target_ld; ac_word=$2
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801 $as_echo_n "checking for $ac_word... " >&6; }
10802 if ${ac_cv_path_aros_target_ld+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 case $aros_target_ld in
10806 [\\/]* | ?:[\\/]*)
10807 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10817 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10821 done
10822 done
10823 IFS=$as_save_IFS
10826 esac
10828 aros_target_ld=$ac_cv_path_aros_target_ld
10829 if test -n "$aros_target_ld"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10831 $as_echo "$aros_target_ld" >&6; }
10832 else
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10838 if test "$aros_target_ld" = ""; then
10839 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10841 orig_target_ld=$aros_target_ld
10843 else
10844 orig_target_cc=$aros_target_cc
10845 orig_target_ld=$aros_target_ld
10848 # Build crosstools if we have no C++ - temporary thing
10849 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10850 crosstools_cxx_target=tools-crosstools
10853 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10854 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10855 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10856 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10857 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10858 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10859 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10861 # aros_cc_pre is a variable that is added to the front of the compiler name
10862 # in the generated aros-gcc shell script. We need this to enable the cache
10863 # to work across cleaned builds. Also, support DISTCC using the correct
10864 # environment variable.
10867 if test "x${DISTCC}" != "x" ; then
10868 if test "x${CCACHE}" != "x" ; then
10869 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10870 else
10871 aros_cc_pre="${DISTCC} "
10873 else
10874 if test "x${CCACHE}" != "x" ; then
10875 aros_cc_pre="${CCACHE} "
10879 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10881 aros_target_nostdinc_cflags=-nostdinc
10883 aros_target_nostartup_ldflags=-nostartfiles
10885 aros_target_nix_ldflags=-nix
10887 aros_target_detach_ldflags=-detach
10889 aros_target_nostdlib_ldflags=-nostdlib
10892 # Target tools
10893 if test "$crosstools" != "yes"; then
10894 if test "$GCC" = "yes"; then
10895 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10897 else
10898 # We do not know which gcc version we are going to build and what we need to know
10899 # here is different for different versions so this will be set later during the
10900 # build of crosstools.
10901 aros_target_cc_path=@aros_target_cc_path@
10903 aros_target_cc="${prefix}-gcc"
10904 aros_target_as="${prefix}-as"
10905 aros_target_ld="${prefix}-ld"
10906 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10907 aros_target_objcopy=${prefix}-objcopy
10908 aros_target_objdump=${prefix}-objdump
10909 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10910 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10911 aros_target_strip=${prefix}-strip
10912 aros_plain_nm="${prefix}-nm"
10913 aros_plain_ar="${prefix}-ar"
10915 # Find the system include path. We can suggest that an alternative is
10916 # used if we don't get it correct. The default is to use /usr/include.
10917 # Which is set in the aros_target_incl_def variable.
10919 # Check whether --enable-includes was given.
10920 if test "${enable_includes+set}" = set; then :
10921 enableval=$enable_includes; aros_target_incl=$enable_includes
10922 else
10923 aros_target_incl=$aros_target_incl_def
10927 if test "$aros_kernel_includes" = ""; then
10928 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10929 # FIXME: for cross-compiling this should point to another location
10930 aros_kernel_includes="-isystem $aros_target_incl"
10934 if test "$aros_kernel_includes" != "" ; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10936 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10937 if test "$aros_kernel_cc_includes" = "" ; then
10938 # Try to guess where the directory is.
10939 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10940 if test -d $aros_kernel_cc_includes; then
10941 # Check if there is also an include-fixed directory and add it
10942 # to kernel compiler's include path as it may contain some of
10943 # the headers we need.
10944 if test -d "$aros_kernel_cc_includes"-fixed; then
10945 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10947 # Check for specific includes directory. Neede for Ubuntu 11.10
10948 if test -d "/usr/include/i386-linux-gnu"; then
10949 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
10951 else
10952 # The directory doesn't exist, we need to do some more work.
10953 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10955 # These are the headers we're looking for.
10956 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10957 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10958 zutil.h"
10960 if test ! -f $aros_target_incl/stdint.h; then
10961 headers="$headers stdint.h"
10964 dirs=
10965 for h in $headers; do
10966 # Which other headers are needed by each of the above?
10967 deps=$(echo "#include <$h>" | \
10968 $aros_kernel_cc -E -M - 2>/dev/null | \
10969 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10971 # Copy all the needed headers to a directory beneath gendir.
10972 for d in $deps; do
10973 h=$(basename $d)
10974 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10975 sed -n "s,^.*/include\(/.*\),\1,p")
10976 ! test -d $dir && mkdir -p $dir
10977 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10978 done
10979 done
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10983 $as_echo "$aros_kernel_cc_includes" >&6; }
10984 # Adding -nostdinc to kernel includes as they are always used together.
10985 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10988 if test "$crosstools" != "yes"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10990 $as_echo_n "checking for the target compiler's include path... " >&6; }
10991 if test "$aros_target_cc_includes" = "" ; then
10992 #try to guess where the directory is
10993 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10994 if ! test -d $aros_target_cc_includes; then
10995 #the directory doesn't exist, we need to do some more work
10996 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10998 #these are the headers we're looking for
10999 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11000 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11001 zutil.h"
11003 dirs=
11004 for h in $headers; do
11005 #which other headers each of the above headers needs?
11006 deps=$(echo "#include <$h>" | \
11007 $orig_target_cc -E -M - 2>/dev/null | \
11008 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11010 #copy all the needed headers to a directory beneath gendir
11011 for d in $deps; do
11012 h=$(basename $d)
11013 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11014 sed -n "s,^.*/include\(/.*\),\1,p")
11015 ! test -d $dir && mkdir -p $dir
11016 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11017 done
11018 done
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
11022 $as_echo "$aros_target_cc_includes" >&6; }
11023 else
11024 # We do not know which gcc version we are going to build and what we need to know
11025 # here is different for different versions so this will be set later during the
11026 # build of crosstools.
11027 aros_target_cc_includes=@aros_target_cc_includes@
11031 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11032 # On GCC >= 4.0 -iquote should be used
11035 save_cc="$CC"
11036 save_cflags="$CFLAGS"
11037 CFLAGS="-iquote."
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11039 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11040 if test "x-$crosstools" != "x-yes"; then
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11045 main ()
11049 return 0;
11051 _ACEOF
11052 if ac_fn_c_try_compile "$LINENO"; then :
11053 has_iquote="yes"
11054 else
11055 has_iquote="no"
11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11058 else
11059 # we do know it is supported for the smallest version of gcc we are going to build
11060 # we assume it's also supported by later versions
11061 has_iquote=yes
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11064 $as_echo "$has_iquote" >&6; }
11065 if test "x-$has_iquote" = "x-yes" ; then
11066 host_cflags_iquote=-iquote
11067 host_cflags_iquote_end=
11068 else
11069 host_cflags_iquote=-I
11070 host_cflags_iquote_end=-I-
11072 kernel_cflags_iquote=$host_cflags_iquote
11073 kernel_cflags_iquote_end=$host_cflags_iquote_end
11074 if test "x-$cross_compiling" = "x-yes"; then
11075 CC="$aros_kernel_cc"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11077 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11078 if test "x-$crosstools" != "x-yes"; then
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11083 main ()
11087 return 0;
11089 _ACEOF
11090 if ac_fn_c_try_compile "$LINENO"; then :
11091 use_no_stack_protector="yes"
11092 else
11093 use_no_stack_protector="no"
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 else
11097 # we do know it is supported for the smallest version of gcc we are going to build
11098 # we assume it's also supported by later versions
11099 use_no_stack_protector=yes
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11102 $as_echo "$use_no_stack_protector" >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11104 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11105 if test "x-$crosstools" != "x-yes"; then
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11110 main ()
11114 return 0;
11116 _ACEOF
11117 if ac_fn_c_try_compile "$LINENO"; then :
11118 has_iquote="yes"
11119 else
11120 has_iquote="no"
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 else
11124 # we do know it is supported for the smallest version of gcc we are going to build
11125 # we assume it's also supported by later versions
11126 has_iquote=yes
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11129 $as_echo "$has_iquote" >&6; }
11130 if test "x-$has_iquote" = "x-yes" ; then
11131 kernel_cflags_iquote=-iquote
11132 kernel_cflags_iquote_end=
11133 else
11134 kernel_cflags_iquote=-I
11135 kernel_cflags_iquote_end=-I-
11138 aros_cflags_iquote=$kernel_cflags_iquote
11139 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11140 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11141 CC="$orig_target_cc"
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11143 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11144 if test "x-$crosstools" != "x-yes"; then
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11149 main ()
11153 return 0;
11155 _ACEOF
11156 if ac_fn_c_try_compile "$LINENO"; then :
11157 has_iquote="yes"
11158 else
11159 has_iquote="no"
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 else
11163 # we do know it is supported for the smallest version of gcc we are going to build
11164 # we assume it's also supported by later versions
11165 has_iquote=yes
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11168 $as_echo "$has_iquote" >&6; }
11169 if test "x-$has_iquote" = "x-yes" ; then
11170 aros_cflags_iquote=-iquote
11171 aros_cflags_iquote_end=
11172 else
11173 aros_cflags_iquote=-I
11174 aros_cflags_iquote_end=-I-
11177 if test "x-$use_no_stack_protector" = "x-yes" ; then
11178 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11182 #-----------------------------------------------------------------------------
11184 # Check if the target compiler supports some options used for delinting:
11185 # -Wunused-but-set-variable
11186 # -Warray-bounds
11187 # -Wenum-compare
11189 if test "x-$crosstools" != "x-yes"; then
11190 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11191 CC="$orig_target_cc"
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11194 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11195 CFLAGS=-Wunused-but-set-variable
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11200 main ()
11204 return 0;
11206 _ACEOF
11207 if ac_fn_c_try_compile "$LINENO"; then :
11208 aros_unused_but_set_variable="yes"
11209 else
11210 aros_unused_but_set_variable="no"
11212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11214 $as_echo "$aros_unused_but_set_variable" >&6; }
11215 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11216 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11220 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11221 CFLAGS=-Warray-bounds
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11226 main ()
11230 return 0;
11232 _ACEOF
11233 if ac_fn_c_try_compile "$LINENO"; then :
11234 aros_array_bounds="yes"
11235 else
11236 aros_array_bounds="no"
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11240 $as_echo "$aros_array_bounds" >&6; }
11241 if test "x-$aros_array_bounds" = "x-yes" ; then
11242 aros_cflags_array_bounds=-Wno-array-bounds
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11246 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11247 CFLAGS=-Wenum-compare
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11252 main ()
11256 return 0;
11258 _ACEOF
11259 if ac_fn_c_try_compile "$LINENO"; then :
11260 aros_enum_compare="yes"
11261 else
11262 aros_enum_compare="no"
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11266 $as_echo "$aros_enum_compare" >&6; }
11267 if test "x-$aros_enum_compare" = "x-yes" ; then
11268 aros_cflags_enum_compare=-Wno-enum-compare
11270 else
11271 # We do not know which gcc version we are going to build and what we need to know
11272 # here is different for different versions so this will be set later during the
11273 # build of crosstools.
11274 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
11275 aros_cflags_array_bounds=@aros_cflags_array_bounds@
11276 aros_cflags_enum_compare=@aros_cflags_enum_compare@
11279 #-----------------------------------------------------------------------------
11281 # Check if we can explicitly choose older version of symbol hashing
11283 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11284 CC="$aros_kernel_cc"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11286 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11291 main ()
11295 return 0;
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 use_hash_style="yes"
11300 else
11301 use_hash_style="no"
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11306 $as_echo "$use_hash_style" >&6; }
11307 if test "x-$use_hash_style" = "x-yes" ; then
11308 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11310 CC="$save_cc"
11311 CFLAGS="$save_cflags"
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11322 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11324 # Check whether --with-resolution was given.
11325 if test "${with_resolution+set}" = set; then :
11326 withval=$with_resolution; resolution=$withval
11327 else
11328 resolution=none
11331 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11332 if test "$resolution" = "yes" ; then
11333 resolution="none"
11335 if test "$resolution" = "no" ; then
11336 resolution="none"
11338 if test "$resolution" != "none" ; then
11339 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11340 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11341 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11344 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11345 aros_cv_default_wbwidth=$aros_default_wbwidth
11346 aros_cv_default_wbheight=$aros_default_wbheight
11347 aros_cv_default_wbdepth=$aros_default_wbdepth
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11350 $as_echo_n "checking if serial debug is enabled... " >&6; }
11352 # Check whether --with-serial-debug was given.
11353 if test "${with_serial_debug+set}" = set; then :
11354 withval=$with_serial_debug; serial_debug=$withval
11355 else
11356 serial_debug=none
11359 if test "$aros_serial_debug" = 0 ; then
11360 serial_debug_forced=""
11361 if test "$serial_debug" = "yes" ; then
11362 serial_debug="1"
11364 if test "$serial_debug" = "no" ; then
11365 serial_debug="none"
11367 else
11368 serial_debug_forced="(forced)"
11369 serial_debug=$aros_serial_debug
11371 if test "$serial_debug" != "none" ; then
11372 aros_serial_debug=$serial_debug
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11374 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11381 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11382 # Check whether --enable-palm_debug_hack was given.
11383 if test "${enable_palm_debug_hack+set}" = set; then :
11384 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11385 else
11386 palm_debug_hack="no"
11389 if test "$palm_debug_hack" = "yes" ; then
11390 aros_palm_debug_hack="1"
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11393 $as_echo "$palm_debug_hack" >&6; }
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11396 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11397 # Check whether --enable-usb30_code was given.
11398 if test "${enable_usb30_code+set}" = set; then :
11399 enableval=$enable_usb30_code; usb30_code="yes"
11400 else
11401 usb30_code="no"
11404 if test "$usb30_code" = "yes" ; then
11405 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11406 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11409 $as_echo "$usb30_code" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11412 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11413 # Check whether --enable-nesting_supervisor was given.
11414 if test "${enable_nesting_supervisor+set}" = set; then :
11415 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11416 else
11417 nesting_supervisor="no"
11420 if test "$nesting_supervisor" = "yes" ; then
11421 aros_nesting_supervisor="1"
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11424 $as_echo "$nesting_supervisor" >&6; }
11426 if test "$aros_enable_mmu" = "" ; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11428 $as_echo_n "checking if MMU support is enabled... " >&6; }
11429 # Check whether --enable-mmu was given.
11430 if test "${enable_mmu+set}" = set; then :
11431 enableval=$enable_mmu; aros_enable_mmu=$enableval
11432 else
11433 aros_enable_mmu="yes"
11436 if test "$aros_enable_mmu" = "" ; then
11437 aros_enable_mmu="yes"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11440 $as_echo "$aros_enable_mmu" >&6; }
11442 if test "$aros_enable_mmu" = "no" ; then
11443 aros_enable_mmu="0"
11444 else
11445 aros_enable_mmu="1"
11449 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11451 if test "x-$need_dlopen" != "x-no" ; then
11452 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11453 if test "x$ac_cv_func_dlopen" = xyes; then :
11454 have_dl="yes"
11455 else
11456 have_dl="no"
11459 if test "x-$have_dl" = "x-no" ; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11461 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11462 if ${ac_cv_lib_dl_dlopen+:} false; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 ac_check_lib_save_LIBS=$LIBS
11466 LIBS="-ldl $LIBS"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11470 /* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 char dlopen ();
11478 main ()
11480 return dlopen ();
11482 return 0;
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"; then :
11486 ac_cv_lib_dl_dlopen=yes
11487 else
11488 ac_cv_lib_dl_dlopen=no
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11495 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11496 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11497 have_dl="yes"
11498 aros_host_ldflags="$aros_host_ldflags -ldl"
11499 else
11500 have_dl="no"
11504 if test "x-$have_dl" = "x-no" ; then
11505 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11510 # Check whether --enable-x11_hidd was given.
11511 if test "${enable_x11_hidd+set}" = set; then :
11512 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11513 else
11514 x11_hidd="$need_x11"
11517 case "x-$x11_hidd" in
11518 x-yes|x-no|x-auto) ;;
11519 *) x11_hidd="$need_x11" ;;
11520 esac
11522 ENABLE_X11=0
11524 if test "x-$x11_hidd" != "x-no" ; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11527 $as_echo_n "checking for X... " >&6; }
11530 # Check whether --with-x was given.
11531 if test "${with_x+set}" = set; then :
11532 withval=$with_x;
11535 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11536 if test "x$with_x" = xno; then
11537 # The user explicitly disabled X.
11538 have_x=disabled
11539 else
11540 case $x_includes,$x_libraries in #(
11541 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11542 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 # One or both of the vars are not set, and there is no cached value.
11546 ac_x_includes=no ac_x_libraries=no
11547 rm -f -r conftest.dir
11548 if mkdir conftest.dir; then
11549 cd conftest.dir
11550 cat >Imakefile <<'_ACEOF'
11551 incroot:
11552 @echo incroot='${INCROOT}'
11553 usrlibdir:
11554 @echo usrlibdir='${USRLIBDIR}'
11555 libdir:
11556 @echo libdir='${LIBDIR}'
11557 _ACEOF
11558 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11559 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11560 for ac_var in incroot usrlibdir libdir; do
11561 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11562 done
11563 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11564 for ac_extension in a so sl dylib la dll; do
11565 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11566 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11567 ac_im_usrlibdir=$ac_im_libdir; break
11569 done
11570 # Screen out bogus values from the imake configuration. They are
11571 # bogus both because they are the default anyway, and because
11572 # using them would break gcc on systems where it needs fixed includes.
11573 case $ac_im_incroot in
11574 /usr/include) ac_x_includes= ;;
11575 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11576 esac
11577 case $ac_im_usrlibdir in
11578 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11579 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11580 esac
11582 cd ..
11583 rm -f -r conftest.dir
11586 # Standard set of common directories for X headers.
11587 # Check X11 before X11Rn because it is often a symlink to the current release.
11588 ac_x_header_dirs='
11589 /usr/X11/include
11590 /usr/X11R7/include
11591 /usr/X11R6/include
11592 /usr/X11R5/include
11593 /usr/X11R4/include
11595 /usr/include/X11
11596 /usr/include/X11R7
11597 /usr/include/X11R6
11598 /usr/include/X11R5
11599 /usr/include/X11R4
11601 /usr/local/X11/include
11602 /usr/local/X11R7/include
11603 /usr/local/X11R6/include
11604 /usr/local/X11R5/include
11605 /usr/local/X11R4/include
11607 /usr/local/include/X11
11608 /usr/local/include/X11R7
11609 /usr/local/include/X11R6
11610 /usr/local/include/X11R5
11611 /usr/local/include/X11R4
11613 /usr/X386/include
11614 /usr/x386/include
11615 /usr/XFree86/include/X11
11617 /usr/include
11618 /usr/local/include
11619 /usr/unsupported/include
11620 /usr/athena/include
11621 /usr/local/x11r5/include
11622 /usr/lpp/Xamples/include
11624 /usr/openwin/include
11625 /usr/openwin/share/include'
11627 if test "$ac_x_includes" = no; then
11628 # Guess where to find include files, by looking for Xlib.h.
11629 # First, try using that file with no special directory specified.
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632 #include <X11/Xlib.h>
11633 _ACEOF
11634 if ac_fn_c_try_cpp "$LINENO"; then :
11635 # We can compile using X headers with no special include directory.
11636 ac_x_includes=
11637 else
11638 for ac_dir in $ac_x_header_dirs; do
11639 if test -r "$ac_dir/X11/Xlib.h"; then
11640 ac_x_includes=$ac_dir
11641 break
11643 done
11645 rm -f conftest.err conftest.i conftest.$ac_ext
11646 fi # $ac_x_includes = no
11648 if test "$ac_x_libraries" = no; then
11649 # Check for the libraries.
11650 # See if we find them without any special options.
11651 # Don't add to $LIBS permanently.
11652 ac_save_LIBS=$LIBS
11653 LIBS="-lX11 $LIBS"
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656 #include <X11/Xlib.h>
11658 main ()
11660 XrmInitialize ()
11662 return 0;
11664 _ACEOF
11665 if ac_fn_c_try_link "$LINENO"; then :
11666 LIBS=$ac_save_LIBS
11667 # We can link X programs with no special library path.
11668 ac_x_libraries=
11669 else
11670 LIBS=$ac_save_LIBS
11671 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11673 # Don't even attempt the hair of trying to link an X program!
11674 for ac_extension in a so sl dylib la dll; do
11675 if test -r "$ac_dir/libX11.$ac_extension"; then
11676 ac_x_libraries=$ac_dir
11677 break 2
11679 done
11680 done
11682 rm -f core conftest.err conftest.$ac_objext \
11683 conftest$ac_exeext conftest.$ac_ext
11684 fi # $ac_x_libraries = no
11686 case $ac_x_includes,$ac_x_libraries in #(
11687 no,* | *,no | *\'*)
11688 # Didn't find X, or a directory has "'" in its name.
11689 ac_cv_have_x="have_x=no";; #(
11691 # Record where we found X for the cache.
11692 ac_cv_have_x="have_x=yes\
11693 ac_x_includes='$ac_x_includes'\
11694 ac_x_libraries='$ac_x_libraries'"
11695 esac
11697 ;; #(
11698 *) have_x=yes;;
11699 esac
11700 eval "$ac_cv_have_x"
11701 fi # $with_x != no
11703 if test "$have_x" != yes; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11705 $as_echo "$have_x" >&6; }
11706 no_x=yes
11707 else
11708 # If each of the values was on the command line, it overrides each guess.
11709 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11710 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11711 # Update the cache value to reflect the command line values.
11712 ac_cv_have_x="have_x=yes\
11713 ac_x_includes='$x_includes'\
11714 ac_x_libraries='$x_libraries'"
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11716 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11720 x_cflags=
11721 for path in $x_libraries
11723 x_cflags="$x_cflags -L$path"
11724 done
11726 for path in $x_includes
11728 x_cflags="$x_cflags -I$path"
11729 done
11731 if test "x-$no_x" = "x-yes" ; then
11733 if test "x-$x11_hidd" != "x-auto" ; then
11734 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11737 else
11738 x11_hidd_target=kernel-x11gfx-kobj
11739 ENABLE_X11=1
11741 # Check whether --enable-x11_shm was given.
11742 if test "${enable_x11_shm+set}" = set; then :
11743 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11744 else
11745 x11_hidd_shm="auto"
11748 case "x-$x11_hidd_shm" in
11749 x-yes|x-no|x-auto) ;;
11750 *) x11_hidd_shm="auto" ;;
11751 esac
11753 have_xshm=no
11755 if test "x-$x11_hidd_shm" != "x-no" ; then
11757 for ac_header in sys/ipc.h
11758 do :
11759 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11760 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11761 cat >>confdefs.h <<_ACEOF
11762 #define HAVE_SYS_IPC_H 1
11763 _ACEOF
11767 done
11769 for ac_header in sys/shm.h
11770 do :
11771 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11772 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11773 cat >>confdefs.h <<_ACEOF
11774 #define HAVE_SYS_SHM_H 1
11775 _ACEOF
11779 done
11782 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11784 save_cflags="$CFLAGS"
11785 CFLAGS="$CFLAGS $x_cflags"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11787 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11788 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791 ac_check_lib_save_LIBS=$LIBS
11792 LIBS="-lXext $LIBS"
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11796 /* Override any GCC internal prototype to avoid an error.
11797 Use char because int might match the return type of a GCC
11798 builtin and then its argument prototype would still apply. */
11799 #ifdef __cplusplus
11800 extern "C"
11801 #endif
11802 char XShmQueryExtension ();
11804 main ()
11806 return XShmQueryExtension ();
11808 return 0;
11810 _ACEOF
11811 if ac_fn_c_try_link "$LINENO"; then :
11812 ac_cv_lib_Xext_XShmQueryExtension=yes
11813 else
11814 ac_cv_lib_Xext_XShmQueryExtension=no
11816 rm -f core conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818 LIBS=$ac_check_lib_save_LIBS
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11821 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11822 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11823 have_xshm=yes
11826 CFLAGS="$save_cflags"
11830 if test "x-$have_xshm" = "x-yes" ; then
11831 DO_XSHM_SUPPORT="1"
11832 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11833 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11834 else
11835 DO_XSHM_SUPPORT="0"
11839 # Check whether --enable-x11_vidmode was given.
11840 if test "${enable_x11_vidmode+set}" = set; then :
11841 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11842 else
11843 x11_hidd_vidmode="auto"
11846 case "x-$x11_hidd_vidmode" in
11847 x-yes|x-no|x-auto) ;;
11848 *) x11_hidd_vidmode="auto" ;;
11849 esac
11851 have_vidmode=no
11853 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11855 save_cflags="$CFLAGS"
11856 CFLAGS="$CFLAGS $x_cflags"
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11858 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11859 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 ac_check_lib_save_LIBS=$LIBS
11863 LIBS="-lXxf86vm $LIBS"
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11867 /* Override any GCC internal prototype to avoid an error.
11868 Use char because int might match the return type of a GCC
11869 builtin and then its argument prototype would still apply. */
11870 #ifdef __cplusplus
11871 extern "C"
11872 #endif
11873 char XF86VidModeQueryExtension ();
11875 main ()
11877 return XF86VidModeQueryExtension ();
11879 return 0;
11881 _ACEOF
11882 if ac_fn_c_try_link "$LINENO"; then :
11883 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11884 else
11885 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11887 rm -f core conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11889 LIBS=$ac_check_lib_save_LIBS
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11892 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11893 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11894 have_vidmode=yes
11897 CFLAGS="$save_cflags"
11900 if test "x-$have_vidmode" = "x-yes" ; then
11901 DO_VIDMODE_SUPPORT="1"
11902 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11903 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11904 else
11905 DO_VIDMODE_SUPPORT="0"
11909 aros_host_x11_includes=$x_includes
11910 aros_host_x11_libdirs=$x_libraries
11914 # Check whether --enable-sdl_hidd was given.
11915 if test "${enable_sdl_hidd+set}" = set; then :
11916 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11917 else
11918 sdl_hidd="auto"
11921 case "x-$sdl_hidd" in
11922 x-yes|x-no|x-auto) ;;
11923 *) sdl_hidd="auto" ;;
11924 esac
11926 if test "x-$sdl_hidd" != "x-no" ; then
11929 # Check whether --with-sdl-prefix was given.
11930 if test "${with_sdl_prefix+set}" = set; then :
11931 withval=$with_sdl_prefix; sdl_prefix="$withval"
11932 else
11933 sdl_prefix=""
11937 # Check whether --with-sdl-exec-prefix was given.
11938 if test "${with_sdl_exec_prefix+set}" = set; then :
11939 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11940 else
11941 sdl_exec_prefix=""
11944 # Check whether --enable-sdltest was given.
11945 if test "${enable_sdltest+set}" = set; then :
11946 enableval=$enable_sdltest;
11947 else
11948 enable_sdltest=yes
11952 if test x$sdl_exec_prefix != x ; then
11953 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11954 if test x${SDL_CONFIG+set} != xset ; then
11955 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11958 if test x$sdl_prefix != x ; then
11959 sdl_args="$sdl_args --prefix=$sdl_prefix"
11960 if test x${SDL_CONFIG+set} != xset ; then
11961 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11965 if test "x$prefix" != xNONE; then
11966 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11968 # Extract the first word of "sdl-config", so it can be a program name with args.
11969 set dummy sdl-config; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 case $SDL_CONFIG in
11976 [\\/]* | ?:[\\/]*)
11977 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11987 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989 break 2
11991 done
11992 done
11993 IFS=$as_save_IFS
11995 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11997 esac
11999 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12000 if test -n "$SDL_CONFIG"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12002 $as_echo "$SDL_CONFIG" >&6; }
12003 else
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12009 min_sdl_version=1.2.10
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12011 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12012 no_sdl=""
12013 if test "$SDL_CONFIG" = "no" ; then
12014 no_sdl=yes
12015 else
12016 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12017 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12019 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12020 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12021 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12023 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12024 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12025 if test "x$enable_sdltest" = "xyes" ; then
12026 ac_save_CFLAGS="$CFLAGS"
12027 ac_save_CXXFLAGS="$CXXFLAGS"
12028 ac_save_LIBS="$LIBS"
12029 CFLAGS="$CFLAGS $SDL_CFLAGS"
12030 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12031 LIBS="$LIBS $SDL_LIBS"
12032 rm -f conf.sdltest
12033 if test "$cross_compiling" = yes; then :
12034 echo $ac_n "cross compiling; assumed OK... $ac_c"
12035 else
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12039 #include <stdio.h>
12040 #include <stdlib.h>
12041 #include <string.h>
12042 #include "SDL.h"
12044 char*
12045 my_strdup (char *str)
12047 char *new_str;
12049 if (str)
12051 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12052 strcpy (new_str, str);
12054 else
12055 new_str = NULL;
12057 return new_str;
12060 int main (int argc, char *argv[])
12062 int major, minor, micro;
12063 char *tmp_version;
12065 /* This hangs on some systems (?)
12066 system ("touch conf.sdltest");
12068 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12070 /* HP/UX 9 (%@#!) writes to sscanf strings */
12071 tmp_version = my_strdup("$min_sdl_version");
12072 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12073 printf("%s, bad version string\n", "$min_sdl_version");
12074 exit(1);
12077 if (($sdl_major_version > major) ||
12078 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12079 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12081 return 0;
12083 else
12085 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12086 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12087 printf("*** best to upgrade to the required version.\n");
12088 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12089 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12090 printf("*** config.cache before re-running configure\n");
12091 return 1;
12096 _ACEOF
12097 if ac_fn_c_try_run "$LINENO"; then :
12099 else
12100 no_sdl=yes
12102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12103 conftest.$ac_objext conftest.beam conftest.$ac_ext
12106 CFLAGS="$ac_save_CFLAGS"
12107 CXXFLAGS="$ac_save_CXXFLAGS"
12108 LIBS="$ac_save_LIBS"
12111 if test "x$no_sdl" = x ; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12113 $as_echo "yes" >&6; }
12114 have_sdl="yes"
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 if test "$SDL_CONFIG" = "no" ; then
12119 echo "*** The sdl-config script installed by SDL could not be found"
12120 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12121 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12122 echo "*** full path to sdl-config."
12123 else
12124 if test -f conf.sdltest ; then
12126 else
12127 echo "*** Could not run SDL test program, checking why..."
12128 CFLAGS="$CFLAGS $SDL_CFLAGS"
12129 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12130 LIBS="$LIBS $SDL_LIBS"
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12134 #include <stdio.h>
12135 #include "SDL.h"
12137 int main(int argc, char *argv[])
12138 { return 0; }
12139 #undef main
12140 #define main K_and_R_C_main
12143 main ()
12145 return 0;
12147 return 0;
12149 _ACEOF
12150 if ac_fn_c_try_link "$LINENO"; then :
12151 echo "*** The test program compiled, but did not run. This usually means"
12152 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12153 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12154 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12155 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12156 echo "*** is required on your system"
12157 echo "***"
12158 echo "*** If you have an old version installed, it is best to remove it, although"
12159 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12160 else
12161 echo "*** The test program failed to compile or link. See the file config.log for the"
12162 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12163 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12164 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 CFLAGS="$ac_save_CFLAGS"
12169 CXXFLAGS="$ac_save_CXXFLAGS"
12170 LIBS="$ac_save_LIBS"
12173 SDL_CFLAGS=""
12174 SDL_LIBS=""
12175 have_sdl="no"
12179 rm -f conf.sdltest
12182 if test "x-$have_sdl" != "x-yes" ; then
12184 if test "x-$sdl_hidd" != "x-auto" ; then
12185 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12188 else
12189 sdl_hidd_target=kernel-hidd-sdl
12190 aros_host_sdl_cflags=SDL_CFLAGS
12191 aros_host_sdl_libs=SDL_LIBS
12195 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12196 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12201 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12202 oss_library_target=workbench-libs-oss-unix
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12208 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12209 # Check whether --enable-dbus was given.
12210 if test "${enable_dbus+set}" = set; then :
12211 enableval=$enable_dbus; dbus="yes"
12212 else
12213 dbus="no"
12216 if test "$dbus" = "yes" ; then
12217 ENABLE_DBUS=1
12218 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12219 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12220 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12221 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12222 else
12223 ENABLE_DBUS=0
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12226 $as_echo "$dbus" >&6; }
12228 if test "$use_kernel_cc_wrapper" = "yes" ; then
12229 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12233 # Generic
12244 # Compatability with other Amiga-like operation systems
12247 # Host related
12272 # Target Related
12330 # Delinting target compiler flags
12335 # Graphics Related
12352 # Native version related
12355 # Palm native version related
12358 # USB3.0 code
12361 # Unix/Hosted version related
12364 # MMU related
12367 # Apple iOS related
12372 # Android related
12376 # DBUS related
12383 #X11 related
12386 # Debug related
12392 # Collect-aros stuff: "-ius" to ignore undefined symbols
12395 # C compiler related
12398 case "$aros_flavour" in
12399 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12400 aros_flavour="emulation" ;;
12401 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12402 aros_flavour="emulation" ;;
12403 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12404 aros_flavour="standalone";;
12405 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12406 aros_flavour="standalone";;
12407 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12408 aros_flavour="native" ;;
12409 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12410 aros_flavour="native" ;;
12411 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12412 aros_flavour="linklib" ;;
12413 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12414 aros_flavour="palmnative" ;;
12415 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12416 aros_flavour="mac68knative" ;;
12417 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12418 aros_flavour="ppcnative" ;;
12419 esac
12421 if test ! -d ${aros_inc_dir} ; then
12422 ${MKDIR} ${aros_inc_dir}
12424 if test ! -d ${aros_geninc_dir} ; then
12425 ${MKDIR} ${aros_geninc_dir}
12427 if test ! -d ${aros_hostcfg_dir} ; then
12428 ${MKDIR} ${aros_hostcfg_dir}
12430 if test ! -d ${aros_targetcfg_dir} ; then
12431 ${MKDIR} ${aros_targetcfg_dir}
12433 if test ! -d ${aros_tools_dir} ; then
12434 ${MKDIR} ${aros_tools_dir}
12436 if test ! -d ${aros_scripts_dir} ; then
12437 ${MKDIR} ${aros_scripts_dir}
12440 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12443 ac_config_commands="$ac_config_commands compiler_executable"
12445 ac_config_commands="$ac_config_commands genmf_executable"
12448 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"
12451 cat >confcache <<\_ACEOF
12452 # This file is a shell script that caches the results of configure
12453 # tests run on this system so they can be shared between configure
12454 # scripts and configure runs, see configure's option --config-cache.
12455 # It is not useful on other systems. If it contains results you don't
12456 # want to keep, you may remove or edit it.
12458 # config.status only pays attention to the cache file if you give it
12459 # the --recheck option to rerun configure.
12461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12463 # following values.
12465 _ACEOF
12467 # The following way of writing the cache mishandles newlines in values,
12468 # but we know of no workaround that is simple, portable, and efficient.
12469 # So, we kill variables containing newlines.
12470 # Ultrix sh set writes to stderr and can't be redirected directly,
12471 # and sets the high bit in the cache file unless we assign to the vars.
12473 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12474 eval ac_val=\$$ac_var
12475 case $ac_val in #(
12476 *${as_nl}*)
12477 case $ac_var in #(
12478 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12479 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12480 esac
12481 case $ac_var in #(
12482 _ | IFS | as_nl) ;; #(
12483 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12484 *) { eval $ac_var=; unset $ac_var;} ;;
12485 esac ;;
12486 esac
12487 done
12489 (set) 2>&1 |
12490 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12491 *${as_nl}ac_space=\ *)
12492 # `set' does not quote correctly, so add quotes: double-quote
12493 # substitution turns \\\\ into \\, and sed turns \\ into \.
12494 sed -n \
12495 "s/'/'\\\\''/g;
12496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12497 ;; #(
12499 # `set' quotes correctly as required by POSIX, so do not add quotes.
12500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12502 esac |
12503 sort
12505 sed '
12506 /^ac_cv_env_/b end
12507 t clear
12508 :clear
12509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12510 t end
12511 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12512 :end' >>confcache
12513 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12514 if test -w "$cache_file"; then
12515 if test "x$cache_file" != "x/dev/null"; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12517 $as_echo "$as_me: updating cache $cache_file" >&6;}
12518 if test ! -f "$cache_file" || test -h "$cache_file"; then
12519 cat confcache >"$cache_file"
12520 else
12521 case $cache_file in #(
12522 */* | ?:*)
12523 mv -f confcache "$cache_file"$$ &&
12524 mv -f "$cache_file"$$ "$cache_file" ;; #(
12526 mv -f confcache "$cache_file" ;;
12527 esac
12530 else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12532 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12535 rm -f confcache
12537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12538 # Let make expand exec_prefix.
12539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12541 DEFS=-DHAVE_CONFIG_H
12543 ac_libobjs=
12544 ac_ltlibobjs=
12546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12547 # 1. Remove the extension, and $U if already installed.
12548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12549 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12551 # will be set to the directory where LIBOBJS objects are built.
12552 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12553 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12554 done
12555 LIBOBJS=$ac_libobjs
12557 LTLIBOBJS=$ac_ltlibobjs
12561 : "${CONFIG_STATUS=./config.status}"
12562 ac_write_fail=0
12563 ac_clean_files_save=$ac_clean_files
12564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12566 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12567 as_write_fail=0
12568 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12569 #! $SHELL
12570 # Generated by $as_me.
12571 # Run this file to recreate the current configuration.
12572 # Compiler output produced by configure, useful for debugging
12573 # configure, is in config.log if it exists.
12575 debug=false
12576 ac_cs_recheck=false
12577 ac_cs_silent=false
12579 SHELL=\${CONFIG_SHELL-$SHELL}
12580 export SHELL
12581 _ASEOF
12582 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12583 ## -------------------- ##
12584 ## M4sh Initialization. ##
12585 ## -------------------- ##
12587 # Be more Bourne compatible
12588 DUALCASE=1; export DUALCASE # for MKS sh
12589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12590 emulate sh
12591 NULLCMD=:
12592 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12593 # is contrary to our usage. Disable this feature.
12594 alias -g '${1+"$@"}'='"$@"'
12595 setopt NO_GLOB_SUBST
12596 else
12597 case `(set -o) 2>/dev/null` in #(
12598 *posix*) :
12599 set -o posix ;; #(
12600 *) :
12602 esac
12606 as_nl='
12608 export as_nl
12609 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12610 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12611 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12613 # Prefer a ksh shell builtin over an external printf program on Solaris,
12614 # but without wasting forks for bash or zsh.
12615 if test -z "$BASH_VERSION$ZSH_VERSION" \
12616 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12617 as_echo='print -r --'
12618 as_echo_n='print -rn --'
12619 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12620 as_echo='printf %s\n'
12621 as_echo_n='printf %s'
12622 else
12623 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12624 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12625 as_echo_n='/usr/ucb/echo -n'
12626 else
12627 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12628 as_echo_n_body='eval
12629 arg=$1;
12630 case $arg in #(
12631 *"$as_nl"*)
12632 expr "X$arg" : "X\\(.*\\)$as_nl";
12633 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12634 esac;
12635 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12637 export as_echo_n_body
12638 as_echo_n='sh -c $as_echo_n_body as_echo'
12640 export as_echo_body
12641 as_echo='sh -c $as_echo_body as_echo'
12644 # The user is always right.
12645 if test "${PATH_SEPARATOR+set}" != set; then
12646 PATH_SEPARATOR=:
12647 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12648 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12649 PATH_SEPARATOR=';'
12654 # IFS
12655 # We need space, tab and new line, in precisely that order. Quoting is
12656 # there to prevent editors from complaining about space-tab.
12657 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12658 # splitting by setting IFS to empty value.)
12659 IFS=" "" $as_nl"
12661 # Find who we are. Look in the path if we contain no directory separator.
12662 as_myself=
12663 case $0 in #((
12664 *[\\/]* ) as_myself=$0 ;;
12665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $PATH
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12671 done
12672 IFS=$as_save_IFS
12675 esac
12676 # We did not find ourselves, most probably we were run as `sh COMMAND'
12677 # in which case we are not to be found in the path.
12678 if test "x$as_myself" = x; then
12679 as_myself=$0
12681 if test ! -f "$as_myself"; then
12682 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12683 exit 1
12686 # Unset variables that we do not need and which cause bugs (e.g. in
12687 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12688 # suppresses any "Segmentation fault" message there. '((' could
12689 # trigger a bug in pdksh 5.2.14.
12690 for as_var in BASH_ENV ENV MAIL MAILPATH
12691 do eval test x\${$as_var+set} = xset \
12692 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12693 done
12694 PS1='$ '
12695 PS2='> '
12696 PS4='+ '
12698 # NLS nuisances.
12699 LC_ALL=C
12700 export LC_ALL
12701 LANGUAGE=C
12702 export LANGUAGE
12704 # CDPATH.
12705 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12708 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12709 # ----------------------------------------
12710 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12711 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12712 # script with STATUS, using 1 if that was 0.
12713 as_fn_error ()
12715 as_status=$1; test $as_status -eq 0 && as_status=1
12716 if test "$4"; then
12717 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12718 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12720 $as_echo "$as_me: error: $2" >&2
12721 as_fn_exit $as_status
12722 } # as_fn_error
12725 # as_fn_set_status STATUS
12726 # -----------------------
12727 # Set $? to STATUS, without forking.
12728 as_fn_set_status ()
12730 return $1
12731 } # as_fn_set_status
12733 # as_fn_exit STATUS
12734 # -----------------
12735 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12736 as_fn_exit ()
12738 set +e
12739 as_fn_set_status $1
12740 exit $1
12741 } # as_fn_exit
12743 # as_fn_unset VAR
12744 # ---------------
12745 # Portably unset VAR.
12746 as_fn_unset ()
12748 { eval $1=; unset $1;}
12750 as_unset=as_fn_unset
12751 # as_fn_append VAR VALUE
12752 # ----------------------
12753 # Append the text in VALUE to the end of the definition contained in VAR. Take
12754 # advantage of any shell optimizations that allow amortized linear growth over
12755 # repeated appends, instead of the typical quadratic growth present in naive
12756 # implementations.
12757 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12758 eval 'as_fn_append ()
12760 eval $1+=\$2
12762 else
12763 as_fn_append ()
12765 eval $1=\$$1\$2
12767 fi # as_fn_append
12769 # as_fn_arith ARG...
12770 # ------------------
12771 # Perform arithmetic evaluation on the ARGs, and store the result in the
12772 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12773 # must be portable across $(()) and expr.
12774 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12775 eval 'as_fn_arith ()
12777 as_val=$(( $* ))
12779 else
12780 as_fn_arith ()
12782 as_val=`expr "$@" || test $? -eq 1`
12784 fi # as_fn_arith
12787 if expr a : '\(a\)' >/dev/null 2>&1 &&
12788 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12789 as_expr=expr
12790 else
12791 as_expr=false
12794 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12795 as_basename=basename
12796 else
12797 as_basename=false
12800 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12801 as_dirname=dirname
12802 else
12803 as_dirname=false
12806 as_me=`$as_basename -- "$0" ||
12807 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12808 X"$0" : 'X\(//\)$' \| \
12809 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12810 $as_echo X/"$0" |
12811 sed '/^.*\/\([^/][^/]*\)\/*$/{
12812 s//\1/
12815 /^X\/\(\/\/\)$/{
12816 s//\1/
12819 /^X\/\(\/\).*/{
12820 s//\1/
12823 s/.*/./; q'`
12825 # Avoid depending upon Character Ranges.
12826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12829 as_cr_digits='0123456789'
12830 as_cr_alnum=$as_cr_Letters$as_cr_digits
12832 ECHO_C= ECHO_N= ECHO_T=
12833 case `echo -n x` in #(((((
12834 -n*)
12835 case `echo 'xy\c'` in
12836 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12837 xy) ECHO_C='\c';;
12838 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12839 ECHO_T=' ';;
12840 esac;;
12842 ECHO_N='-n';;
12843 esac
12845 rm -f conf$$ conf$$.exe conf$$.file
12846 if test -d conf$$.dir; then
12847 rm -f conf$$.dir/conf$$.file
12848 else
12849 rm -f conf$$.dir
12850 mkdir conf$$.dir 2>/dev/null
12852 if (echo >conf$$.file) 2>/dev/null; then
12853 if ln -s conf$$.file conf$$ 2>/dev/null; then
12854 as_ln_s='ln -s'
12855 # ... but there are two gotchas:
12856 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12857 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12858 # In both cases, we have to default to `cp -p'.
12859 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12860 as_ln_s='cp -p'
12861 elif ln conf$$.file conf$$ 2>/dev/null; then
12862 as_ln_s=ln
12863 else
12864 as_ln_s='cp -p'
12866 else
12867 as_ln_s='cp -p'
12869 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12870 rmdir conf$$.dir 2>/dev/null
12873 # as_fn_mkdir_p
12874 # -------------
12875 # Create "$as_dir" as a directory, including parents if necessary.
12876 as_fn_mkdir_p ()
12879 case $as_dir in #(
12880 -*) as_dir=./$as_dir;;
12881 esac
12882 test -d "$as_dir" || eval $as_mkdir_p || {
12883 as_dirs=
12884 while :; do
12885 case $as_dir in #(
12886 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12887 *) as_qdir=$as_dir;;
12888 esac
12889 as_dirs="'$as_qdir' $as_dirs"
12890 as_dir=`$as_dirname -- "$as_dir" ||
12891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12892 X"$as_dir" : 'X\(//\)[^/]' \| \
12893 X"$as_dir" : 'X\(//\)$' \| \
12894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12895 $as_echo X"$as_dir" |
12896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12897 s//\1/
12900 /^X\(\/\/\)[^/].*/{
12901 s//\1/
12904 /^X\(\/\/\)$/{
12905 s//\1/
12908 /^X\(\/\).*/{
12909 s//\1/
12912 s/.*/./; q'`
12913 test -d "$as_dir" && break
12914 done
12915 test -z "$as_dirs" || eval "mkdir $as_dirs"
12916 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12919 } # as_fn_mkdir_p
12920 if mkdir -p . 2>/dev/null; then
12921 as_mkdir_p='mkdir -p "$as_dir"'
12922 else
12923 test -d ./-p && rmdir ./-p
12924 as_mkdir_p=false
12927 if test -x / >/dev/null 2>&1; then
12928 as_test_x='test -x'
12929 else
12930 if ls -dL / >/dev/null 2>&1; then
12931 as_ls_L_option=L
12932 else
12933 as_ls_L_option=
12935 as_test_x='
12936 eval sh -c '\''
12937 if test -d "$1"; then
12938 test -d "$1/.";
12939 else
12940 case $1 in #(
12941 -*)set "./$1";;
12942 esac;
12943 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12944 ???[sx]*):;;*)false;;esac;fi
12945 '\'' sh
12948 as_executable_p=$as_test_x
12950 # Sed expression to map a string onto a valid CPP name.
12951 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12953 # Sed expression to map a string onto a valid variable name.
12954 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12957 exec 6>&1
12958 ## ----------------------------------- ##
12959 ## Main body of $CONFIG_STATUS script. ##
12960 ## ----------------------------------- ##
12961 _ASEOF
12962 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12965 # Save the log message, to keep $0 and so on meaningful, and to
12966 # report actual input values of CONFIG_FILES etc. instead of their
12967 # values after options handling.
12968 ac_log="
12969 This file was extended by $as_me, which was
12970 generated by GNU Autoconf 2.68. Invocation command line was
12972 CONFIG_FILES = $CONFIG_FILES
12973 CONFIG_HEADERS = $CONFIG_HEADERS
12974 CONFIG_LINKS = $CONFIG_LINKS
12975 CONFIG_COMMANDS = $CONFIG_COMMANDS
12976 $ $0 $@
12978 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12981 _ACEOF
12983 case $ac_config_files in *"
12984 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12985 esac
12987 case $ac_config_headers in *"
12988 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12989 esac
12992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12993 # Files that config.status was made for.
12994 config_files="$ac_config_files"
12995 config_headers="$ac_config_headers"
12996 config_commands="$ac_config_commands"
12998 _ACEOF
13000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13001 ac_cs_usage="\
13002 \`$as_me' instantiates files and other configuration actions
13003 from templates according to the current configuration. Unless the files
13004 and actions are specified as TAGs, all are instantiated by default.
13006 Usage: $0 [OPTION]... [TAG]...
13008 -h, --help print this help, then exit
13009 -V, --version print version number and configuration settings, then exit
13010 --config print configuration, then exit
13011 -q, --quiet, --silent
13012 do not print progress messages
13013 -d, --debug don't remove temporary files
13014 --recheck update $as_me by reconfiguring in the same conditions
13015 --file=FILE[:TEMPLATE]
13016 instantiate the configuration file FILE
13017 --header=FILE[:TEMPLATE]
13018 instantiate the configuration header FILE
13020 Configuration files:
13021 $config_files
13023 Configuration headers:
13024 $config_headers
13026 Configuration commands:
13027 $config_commands
13029 Report bugs to the package provider."
13031 _ACEOF
13032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13034 ac_cs_version="\\
13035 config.status
13036 configured by $0, generated by GNU Autoconf 2.68,
13037 with options \\"\$ac_cs_config\\"
13039 Copyright (C) 2010 Free Software Foundation, Inc.
13040 This config.status script is free software; the Free Software Foundation
13041 gives unlimited permission to copy, distribute and modify it."
13043 ac_pwd='$ac_pwd'
13044 srcdir='$srcdir'
13045 test -n "\$AWK" || AWK=awk
13046 _ACEOF
13048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13049 # The default lists apply if the user does not specify any file.
13050 ac_need_defaults=:
13051 while test $# != 0
13053 case $1 in
13054 --*=?*)
13055 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13056 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13057 ac_shift=:
13059 --*=)
13060 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13061 ac_optarg=
13062 ac_shift=:
13065 ac_option=$1
13066 ac_optarg=$2
13067 ac_shift=shift
13069 esac
13071 case $ac_option in
13072 # Handling of the options.
13073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13074 ac_cs_recheck=: ;;
13075 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13076 $as_echo "$ac_cs_version"; exit ;;
13077 --config | --confi | --conf | --con | --co | --c )
13078 $as_echo "$ac_cs_config"; exit ;;
13079 --debug | --debu | --deb | --de | --d | -d )
13080 debug=: ;;
13081 --file | --fil | --fi | --f )
13082 $ac_shift
13083 case $ac_optarg in
13084 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13085 '') as_fn_error $? "missing file argument" ;;
13086 esac
13087 as_fn_append CONFIG_FILES " '$ac_optarg'"
13088 ac_need_defaults=false;;
13089 --header | --heade | --head | --hea )
13090 $ac_shift
13091 case $ac_optarg in
13092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13093 esac
13094 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13095 ac_need_defaults=false;;
13096 --he | --h)
13097 # Conflict between --help and --header
13098 as_fn_error $? "ambiguous option: \`$1'
13099 Try \`$0 --help' for more information.";;
13100 --help | --hel | -h )
13101 $as_echo "$ac_cs_usage"; exit ;;
13102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13103 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13104 ac_cs_silent=: ;;
13106 # This is an error.
13107 -*) as_fn_error $? "unrecognized option: \`$1'
13108 Try \`$0 --help' for more information." ;;
13110 *) as_fn_append ac_config_targets " $1"
13111 ac_need_defaults=false ;;
13113 esac
13114 shift
13115 done
13117 ac_configure_extra_args=
13119 if $ac_cs_silent; then
13120 exec 6>/dev/null
13121 ac_configure_extra_args="$ac_configure_extra_args --silent"
13124 _ACEOF
13125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13126 if \$ac_cs_recheck; then
13127 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13128 shift
13129 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13130 CONFIG_SHELL='$SHELL'
13131 export CONFIG_SHELL
13132 exec "\$@"
13135 _ACEOF
13136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13137 exec 5>>config.log
13139 echo
13140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13141 ## Running $as_me. ##
13142 _ASBOX
13143 $as_echo "$ac_log"
13144 } >&5
13146 _ACEOF
13147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13149 # INIT-COMMANDS
13152 aros_host_exe_suffix=${aros_host_exe_suffix}
13153 aros_tools_dir=${aros_tools_dir}
13154 aros_target_cpu=${aros_target_cpu}
13155 aros_target_arch=${aros_target_arch}
13156 aros_target_suffix=${aros_target_suffix}
13157 aros_target_nm_ln=${aros_target_nm_ln}
13158 aros_target_as_ln=${aros_target_as_ln}
13159 aros_target_ar_ln=${aros_target_ar_ln}
13160 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13161 aros_target_objdump_ln=${aros_target_objdump_ln}
13162 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13163 aros_target_strip_ln=${aros_target_strip_ln}
13164 aros_kernel_ld=${aros_kernel_ld}
13167 aros_tools_dir=${aros_tools_dir}
13170 _ACEOF
13172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13174 # Handling of arguments.
13175 for ac_config_target in $ac_config_targets
13177 case $ac_config_target in
13178 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13179 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13180 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13181 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13182 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13183 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13184 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13185 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13186 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13187 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13188 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13189 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13190 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13191 "${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" ;;
13192 "${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" ;;
13193 "${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" ;;
13194 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13195 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13196 "${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" ;;
13198 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13199 esac
13200 done
13203 # If the user did not use the arguments to specify the items to instantiate,
13204 # then the envvar interface is used. Set only those that are not.
13205 # We use the long form for the default assignment because of an extremely
13206 # bizarre bug on SunOS 4.1.3.
13207 if $ac_need_defaults; then
13208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13213 # Have a temporary directory for convenience. Make it in the build tree
13214 # simply because there is no reason against having it here, and in addition,
13215 # creating and moving files from /tmp can sometimes cause problems.
13216 # Hook for its removal unless debugging.
13217 # Note that there is a small window in which the directory will not be cleaned:
13218 # after its creation but before its name has been assigned to `$tmp'.
13219 $debug ||
13221 tmp= ac_tmp=
13222 trap 'exit_status=$?
13223 : "${ac_tmp:=$tmp}"
13224 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13226 trap 'as_fn_exit 1' 1 2 13 15
13228 # Create a (secure) tmp directory for tmp files.
13231 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13232 test -d "$tmp"
13233 } ||
13235 tmp=./conf$$-$RANDOM
13236 (umask 077 && mkdir "$tmp")
13237 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13238 ac_tmp=$tmp
13240 # Set up the scripts for CONFIG_FILES section.
13241 # No need to generate them if there are no CONFIG_FILES.
13242 # This happens for instance with `./config.status config.h'.
13243 if test -n "$CONFIG_FILES"; then
13246 ac_cr=`echo X | tr X '\015'`
13247 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13248 # But we know of no other shell where ac_cr would be empty at this
13249 # point, so we can use a bashism as a fallback.
13250 if test "x$ac_cr" = x; then
13251 eval ac_cr=\$\'\\r\'
13253 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13254 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13255 ac_cs_awk_cr='\\r'
13256 else
13257 ac_cs_awk_cr=$ac_cr
13260 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13261 _ACEOF
13265 echo "cat >conf$$subs.awk <<_ACEOF" &&
13266 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13267 echo "_ACEOF"
13268 } >conf$$subs.sh ||
13269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13270 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13271 ac_delim='%!_!# '
13272 for ac_last_try in false false false false false :; do
13273 . ./conf$$subs.sh ||
13274 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13276 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13277 if test $ac_delim_n = $ac_delim_num; then
13278 break
13279 elif $ac_last_try; then
13280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13281 else
13282 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13284 done
13285 rm -f conf$$subs.sh
13287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13288 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13289 _ACEOF
13290 sed -n '
13292 s/^/S["/; s/!.*/"]=/
13295 s/^[^!]*!//
13296 :repl
13297 t repl
13298 s/'"$ac_delim"'$//
13299 t delim
13302 s/\(.\{148\}\)..*/\1/
13303 t more1
13304 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13307 b repl
13308 :more1
13309 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13312 s/.\{148\}//
13313 t nl
13314 :delim
13316 s/\(.\{148\}\)..*/\1/
13317 t more2
13318 s/["\\]/\\&/g; s/^/"/; s/$/"/
13321 :more2
13322 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13325 s/.\{148\}//
13326 t delim
13327 ' <conf$$subs.awk | sed '
13328 /^[^""]/{
13330 s/\n//
13332 ' >>$CONFIG_STATUS || ac_write_fail=1
13333 rm -f conf$$subs.awk
13334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13335 _ACAWK
13336 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13337 for (key in S) S_is_set[key] = 1
13338 FS = "\a"
13342 line = $ 0
13343 nfields = split(line, field, "@")
13344 substed = 0
13345 len = length(field[1])
13346 for (i = 2; i < nfields; i++) {
13347 key = field[i]
13348 keylen = length(key)
13349 if (S_is_set[key]) {
13350 value = S[key]
13351 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13352 len += length(value) + length(field[++i])
13353 substed = 1
13354 } else
13355 len += 1 + keylen
13358 print line
13361 _ACAWK
13362 _ACEOF
13363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13364 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13365 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13366 else
13368 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13369 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13370 _ACEOF
13372 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13373 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13374 # trailing colons and then remove the whole line if VPATH becomes empty
13375 # (actually we leave an empty line to preserve line numbers).
13376 if test "x$srcdir" = x.; then
13377 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13379 s///
13380 s/^/:/
13381 s/[ ]*$/:/
13382 s/:\$(srcdir):/:/g
13383 s/:\${srcdir}:/:/g
13384 s/:@srcdir@:/:/g
13385 s/^:*//
13386 s/:*$//
13388 s/\(=[ ]*\).*/\1/
13390 s/\n//
13391 s/^[^=]*=[ ]*$//
13395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13396 fi # test -n "$CONFIG_FILES"
13398 # Set up the scripts for CONFIG_HEADERS section.
13399 # No need to generate them if there are no CONFIG_HEADERS.
13400 # This happens for instance with `./config.status Makefile'.
13401 if test -n "$CONFIG_HEADERS"; then
13402 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13403 BEGIN {
13404 _ACEOF
13406 # Transform confdefs.h into an awk script `defines.awk', embedded as
13407 # here-document in config.status, that substitutes the proper values into
13408 # config.h.in to produce config.h.
13410 # Create a delimiter string that does not exist in confdefs.h, to ease
13411 # handling of long lines.
13412 ac_delim='%!_!# '
13413 for ac_last_try in false false :; do
13414 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13415 if test -z "$ac_tt"; then
13416 break
13417 elif $ac_last_try; then
13418 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13419 else
13420 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13422 done
13424 # For the awk script, D is an array of macro values keyed by name,
13425 # likewise P contains macro parameters if any. Preserve backslash
13426 # newline sequences.
13428 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13429 sed -n '
13430 s/.\{148\}/&'"$ac_delim"'/g
13431 t rset
13432 :rset
13433 s/^[ ]*#[ ]*define[ ][ ]*/ /
13434 t def
13436 :def
13437 s/\\$//
13438 t bsnl
13439 s/["\\]/\\&/g
13440 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13441 D["\1"]=" \3"/p
13442 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13444 :bsnl
13445 s/["\\]/\\&/g
13446 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13447 D["\1"]=" \3\\\\\\n"\\/p
13448 t cont
13449 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13450 t cont
13452 :cont
13454 s/.\{148\}/&'"$ac_delim"'/g
13455 t clear
13456 :clear
13457 s/\\$//
13458 t bsnlc
13459 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13461 :bsnlc
13462 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13463 b cont
13464 ' <confdefs.h | sed '
13465 s/'"$ac_delim"'/"\\\
13466 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13469 for (key in D) D_is_set[key] = 1
13470 FS = "\a"
13472 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13473 line = \$ 0
13474 split(line, arg, " ")
13475 if (arg[1] == "#") {
13476 defundef = arg[2]
13477 mac1 = arg[3]
13478 } else {
13479 defundef = substr(arg[1], 2)
13480 mac1 = arg[2]
13482 split(mac1, mac2, "(") #)
13483 macro = mac2[1]
13484 prefix = substr(line, 1, index(line, defundef) - 1)
13485 if (D_is_set[macro]) {
13486 # Preserve the white space surrounding the "#".
13487 print prefix "define", macro P[macro] D[macro]
13488 next
13489 } else {
13490 # Replace #undef with comments. This is necessary, for example,
13491 # in the case of _POSIX_SOURCE, which is predefined and required
13492 # on some systems where configure will not decide to define it.
13493 if (defundef == "undef") {
13494 print "/*", prefix defundef, macro, "*/"
13495 next
13499 { print }
13500 _ACAWK
13501 _ACEOF
13502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13503 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13504 fi # test -n "$CONFIG_HEADERS"
13507 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13508 shift
13509 for ac_tag
13511 case $ac_tag in
13512 :[FHLC]) ac_mode=$ac_tag; continue;;
13513 esac
13514 case $ac_mode$ac_tag in
13515 :[FHL]*:*);;
13516 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13517 :[FH]-) ac_tag=-:-;;
13518 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13519 esac
13520 ac_save_IFS=$IFS
13521 IFS=:
13522 set x $ac_tag
13523 IFS=$ac_save_IFS
13524 shift
13525 ac_file=$1
13526 shift
13528 case $ac_mode in
13529 :L) ac_source=$1;;
13530 :[FH])
13531 ac_file_inputs=
13532 for ac_f
13534 case $ac_f in
13535 -) ac_f="$ac_tmp/stdin";;
13536 *) # Look for the file first in the build tree, then in the source tree
13537 # (if the path is not absolute). The absolute path cannot be DOS-style,
13538 # because $ac_f cannot contain `:'.
13539 test -f "$ac_f" ||
13540 case $ac_f in
13541 [\\/$]*) false;;
13542 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13543 esac ||
13544 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13545 esac
13546 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13547 as_fn_append ac_file_inputs " '$ac_f'"
13548 done
13550 # Let's still pretend it is `configure' which instantiates (i.e., don't
13551 # use $as_me), people would be surprised to read:
13552 # /* config.h. Generated by config.status. */
13553 configure_input='Generated from '`
13554 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13555 `' by configure.'
13556 if test x"$ac_file" != x-; then
13557 configure_input="$ac_file. $configure_input"
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13559 $as_echo "$as_me: creating $ac_file" >&6;}
13561 # Neutralize special characters interpreted by sed in replacement strings.
13562 case $configure_input in #(
13563 *\&* | *\|* | *\\* )
13564 ac_sed_conf_input=`$as_echo "$configure_input" |
13565 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13566 *) ac_sed_conf_input=$configure_input;;
13567 esac
13569 case $ac_tag in
13570 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13572 esac
13574 esac
13576 ac_dir=`$as_dirname -- "$ac_file" ||
13577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13578 X"$ac_file" : 'X\(//\)[^/]' \| \
13579 X"$ac_file" : 'X\(//\)$' \| \
13580 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13581 $as_echo X"$ac_file" |
13582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13583 s//\1/
13586 /^X\(\/\/\)[^/].*/{
13587 s//\1/
13590 /^X\(\/\/\)$/{
13591 s//\1/
13594 /^X\(\/\).*/{
13595 s//\1/
13598 s/.*/./; q'`
13599 as_dir="$ac_dir"; as_fn_mkdir_p
13600 ac_builddir=.
13602 case "$ac_dir" in
13603 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13606 # A ".." for each directory in $ac_dir_suffix.
13607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13608 case $ac_top_builddir_sub in
13609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13611 esac ;;
13612 esac
13613 ac_abs_top_builddir=$ac_pwd
13614 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13615 # for backward compatibility:
13616 ac_top_builddir=$ac_top_build_prefix
13618 case $srcdir in
13619 .) # We are building in place.
13620 ac_srcdir=.
13621 ac_top_srcdir=$ac_top_builddir_sub
13622 ac_abs_top_srcdir=$ac_pwd ;;
13623 [\\/]* | ?:[\\/]* ) # Absolute name.
13624 ac_srcdir=$srcdir$ac_dir_suffix;
13625 ac_top_srcdir=$srcdir
13626 ac_abs_top_srcdir=$srcdir ;;
13627 *) # Relative name.
13628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13629 ac_top_srcdir=$ac_top_build_prefix$srcdir
13630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13631 esac
13632 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13635 case $ac_mode in
13638 # CONFIG_FILE
13641 _ACEOF
13643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13644 # If the template does not know about datarootdir, expand it.
13645 # FIXME: This hack should be removed a few years after 2.60.
13646 ac_datarootdir_hack=; ac_datarootdir_seen=
13647 ac_sed_dataroot='
13648 /datarootdir/ {
13652 /@datadir@/p
13653 /@docdir@/p
13654 /@infodir@/p
13655 /@localedir@/p
13656 /@mandir@/p'
13657 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13658 *datarootdir*) ac_datarootdir_seen=yes;;
13659 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13661 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13662 _ACEOF
13663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13664 ac_datarootdir_hack='
13665 s&@datadir@&$datadir&g
13666 s&@docdir@&$docdir&g
13667 s&@infodir@&$infodir&g
13668 s&@localedir@&$localedir&g
13669 s&@mandir@&$mandir&g
13670 s&\\\${datarootdir}&$datarootdir&g' ;;
13671 esac
13672 _ACEOF
13674 # Neutralize VPATH when `$srcdir' = `.'.
13675 # Shell code in configure.ac might set extrasub.
13676 # FIXME: do we really want to maintain this feature?
13677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13678 ac_sed_extra="$ac_vpsub
13679 $extrasub
13680 _ACEOF
13681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13684 s|@configure_input@|$ac_sed_conf_input|;t t
13685 s&@top_builddir@&$ac_top_builddir_sub&;t t
13686 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13687 s&@srcdir@&$ac_srcdir&;t t
13688 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13689 s&@top_srcdir@&$ac_top_srcdir&;t t
13690 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13691 s&@builddir@&$ac_builddir&;t t
13692 s&@abs_builddir@&$ac_abs_builddir&;t t
13693 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13694 $ac_datarootdir_hack
13696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13697 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13700 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13702 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13704 which seems to be undefined. Please make sure it is defined" >&5
13705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13706 which seems to be undefined. Please make sure it is defined" >&2;}
13708 rm -f "$ac_tmp/stdin"
13709 case $ac_file in
13710 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13711 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13712 esac \
13713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13717 # CONFIG_HEADER
13719 if test x"$ac_file" != x-; then
13721 $as_echo "/* $configure_input */" \
13722 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13723 } >"$ac_tmp/config.h" \
13724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13725 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13727 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13728 else
13729 rm -f "$ac_file"
13730 mv "$ac_tmp/config.h" "$ac_file" \
13731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13733 else
13734 $as_echo "/* $configure_input */" \
13735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13736 || as_fn_error $? "could not create -" "$LINENO" 5
13740 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13741 $as_echo "$as_me: executing $ac_file commands" >&6;}
13743 esac
13746 case $ac_file$ac_mode in
13747 "compiler_executable":C)
13748 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13749 mkdir -p $prefix
13750 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13751 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13753 echo ${prefix2}
13754 echo ${prefix3}
13755 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
13757 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13758 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13759 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13760 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13761 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13762 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13763 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13765 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13767 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13769 esac
13770 done # for ac_tag
13773 as_fn_exit 0
13774 _ACEOF
13775 ac_clean_files=$ac_clean_files_save
13777 test $ac_write_fail = 0 ||
13778 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13781 # configure is writing to config.log, and then calls config.status.
13782 # config.status does its own redirection, appending to config.log.
13783 # Unfortunately, on DOS this fails, as config.log is still kept open
13784 # by configure, so config.status won't be able to write to it; its
13785 # output is simply discarded. So we exec the FD to /dev/null,
13786 # effectively closing config.log, so it can be properly (re)opened and
13787 # appended to by config.status. When coming back to configure, we
13788 # need to make the FD available again.
13789 if test "$no_create" != yes; then
13790 ac_cs_success=:
13791 ac_config_status_args=
13792 test "$silent" = yes &&
13793 ac_config_status_args="$ac_config_status_args --quiet"
13794 exec 5>/dev/null
13795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13796 exec 5>>config.log
13797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13798 # would make configure fail if this is the last instruction.
13799 $ac_cs_success || as_fn_exit 1
13801 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13803 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13808 #XXX compatability...
13809 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13811 if test -n "$aros_shared_cflags" ; then
13812 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13813 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg